html_url
stringlengths 51
51
| title
stringlengths 6
280
| comments
stringlengths 67
24.7k
| body
stringlengths 51
36.2k
| __index_level_0__
int64 1
1.17k
| comment_length
int64 16
1.45k
| text
stringlengths 190
38.3k
| embeddings
sequence |
---|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/4802 | `with_format` behavior is inconsistent on different datasets | Hi! You can get a `torch.Tensor` if you do the following:
```python
raw = load_dataset("beans", split="train")
raw = raw.select(range(100))
preprocessor = AutoFeatureExtractor.from_pretrained("nateraw/vit-base-beans")
from datasets import Array3D
features = raw.features.copy()
features["pixel_values"] = datasets.Array3D(shape=(3, 224, 224), dtype="float32")
def preprocess_func(examples):
imgs = [img.convert("RGB") for img in examples["image"]]
return preprocessor(imgs)
data = raw.map(preprocess_func, batched=True, features=features)
print(type(data[0]["pixel_values"]))
data = data.with_format("torch", columns=["pixel_values"])
print(type(data[0]["pixel_values"]))
```
The reason for this "inconsistency" in the default case is the way PyArrow infers the type of multi-dim arrays (in this case, the `pixel_values` column). If the type is not specified manually, PyArrow assumes it is a dynamic-length sequence (it needs to know the type before writing the first batch to a cache file, and it can't be sure the array is fixed ahead of time; `ArrayXD` is our way of telling that the dims are fixed), so it already fails to convert the corresponding array to NumPy properly (you get an array of `np.object` arrays). And `with_format("torch")` replaces NumPy arrays with Torch tensors, so this bad formatting propagates. | ## Describe the bug
I found a case where `with_format` does not transform the dataset to the requested format.
## Steps to reproduce the bug
Run:
```python
from transformers import AutoTokenizer, AutoFeatureExtractor
from datasets import load_dataset
raw = load_dataset("glue", "sst2", split="train")
raw = raw.select(range(100))
tokenizer = AutoTokenizer.from_pretrained("philschmid/tiny-bert-sst2-distilled")
def preprocess_func(examples):
return tokenizer(examples["sentence"], padding=True, max_length=256, truncation=True)
data = raw.map(preprocess_func, batched=True)
print(type(data[0]["input_ids"]))
data = data.with_format("torch", columns=["input_ids"])
print(type(data[0]["input_ids"]))
```
printing as expected:
```python
<class 'list'>
<class 'torch.Tensor'>
```
Then run:
```python
raw = load_dataset("beans", split="train")
raw = raw.select(range(100))
preprocessor = AutoFeatureExtractor.from_pretrained("nateraw/vit-base-beans")
def preprocess_func(examples):
imgs = [img.convert("RGB") for img in examples["image"]]
return preprocessor(imgs)
data = raw.map(preprocess_func, batched=True)
print(type(data[0]["pixel_values"]))
data = data.with_format("torch", columns=["pixel_values"])
print(type(data[0]["pixel_values"]))
```
Printing, unexpectedly
```python
<class 'list'>
<class 'list'>
```
## Expected results
`with_format` should transform into the requested format; it's not the case.
## Actual results
`type(data[0]["pixel_values"])` should be `torch.Tensor` in the example above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: dev version, commit 44af3fafb527302282f6b6507b952de7435f0979
- Platform: Linux
- Python version: 3.9.12
- PyArrow version: 7.0.0
| 586 | 167 | `with_format` behavior is inconsistent on different datasets
## Describe the bug
I found a case where `with_format` does not transform the dataset to the requested format.
## Steps to reproduce the bug
Run:
```python
from transformers import AutoTokenizer, AutoFeatureExtractor
from datasets import load_dataset
raw = load_dataset("glue", "sst2", split="train")
raw = raw.select(range(100))
tokenizer = AutoTokenizer.from_pretrained("philschmid/tiny-bert-sst2-distilled")
def preprocess_func(examples):
return tokenizer(examples["sentence"], padding=True, max_length=256, truncation=True)
data = raw.map(preprocess_func, batched=True)
print(type(data[0]["input_ids"]))
data = data.with_format("torch", columns=["input_ids"])
print(type(data[0]["input_ids"]))
```
printing as expected:
```python
<class 'list'>
<class 'torch.Tensor'>
```
Then run:
```python
raw = load_dataset("beans", split="train")
raw = raw.select(range(100))
preprocessor = AutoFeatureExtractor.from_pretrained("nateraw/vit-base-beans")
def preprocess_func(examples):
imgs = [img.convert("RGB") for img in examples["image"]]
return preprocessor(imgs)
data = raw.map(preprocess_func, batched=True)
print(type(data[0]["pixel_values"]))
data = data.with_format("torch", columns=["pixel_values"])
print(type(data[0]["pixel_values"]))
```
Printing, unexpectedly
```python
<class 'list'>
<class 'list'>
```
## Expected results
`with_format` should transform into the requested format; it's not the case.
## Actual results
`type(data[0]["pixel_values"])` should be `torch.Tensor` in the example above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: dev version, commit 44af3fafb527302282f6b6507b952de7435f0979
- Platform: Linux
- Python version: 3.9.12
- PyArrow version: 7.0.0
Hi! You can get a `torch.Tensor` if you do the following:
```python
raw = load_dataset("beans", split="train")
raw = raw.select(range(100))
preprocessor = AutoFeatureExtractor.from_pretrained("nateraw/vit-base-beans")
from datasets import Array3D
features = raw.features.copy()
features["pixel_values"] = datasets.Array3D(shape=(3, 224, 224), dtype="float32")
def preprocess_func(examples):
imgs = [img.convert("RGB") for img in examples["image"]]
return preprocessor(imgs)
data = raw.map(preprocess_func, batched=True, features=features)
print(type(data[0]["pixel_values"]))
data = data.with_format("torch", columns=["pixel_values"])
print(type(data[0]["pixel_values"]))
```
The reason for this "inconsistency" in the default case is the way PyArrow infers the type of multi-dim arrays (in this case, the `pixel_values` column). If the type is not specified manually, PyArrow assumes it is a dynamic-length sequence (it needs to know the type before writing the first batch to a cache file, and it can't be sure the array is fixed ahead of time; `ArrayXD` is our way of telling that the dims are fixed), so it already fails to convert the corresponding array to NumPy properly (you get an array of `np.object` arrays). And `with_format("torch")` replaces NumPy arrays with Torch tensors, so this bad formatting propagates. | [
-1.3223148584365845,
-0.8799800276756287,
-0.6138879656791687,
1.545101284980774,
-0.16546253859996796,
-1.1277824640274048,
0.20320723950862885,
-1.095628261566162,
1.7029356956481934,
-0.8627711534500122,
0.44284939765930176,
-1.7017226219177246,
-0.012692401185631752,
-0.6114117503166199,
-0.7764731645584106,
-0.8578606843948364,
-0.3537490963935852,
-0.6462618112564087,
1.104541540145874,
2.4287335872650146,
1.2759453058242798,
-1.3596028089523315,
2.79958176612854,
0.7759895324707031,
-0.25610941648483276,
-0.9862975478172302,
0.517027735710144,
0.03836360201239586,
-1.233571171760559,
-0.4375179409980774,
-1.0482994318008423,
-0.11856544762849808,
-0.5625002980232239,
-0.5716477036476135,
-0.00008734408766031265,
0.4545828402042389,
-0.3542415201663971,
-0.5032199025154114,
-0.6064760088920593,
-0.7585439085960388,
0.4377364218235016,
-0.3906952142715454,
0.9132314324378967,
-0.3651266396045685,
1.85249924659729,
-0.6654999852180481,
0.558316171169281,
0.6713743805885315,
1.3357893228530884,
0.2945481836795807,
-0.06505514681339264,
0.46674683690071106,
0.40573498606681824,
-0.08597496896982193,
0.6371439695358276,
1.2949397563934326,
0.6507071256637573,
0.5415610671043396,
0.7899859547615051,
-2.198160409927368,
1.24101984500885,
-1.08992600440979,
0.2975537180900574,
1.2611638307571411,
-0.9190362691879272,
0.3967946171760559,
-1.7213040590286255,
-0.06621909886598587,
0.589510440826416,
-2.22051739692688,
0.31927311420440674,
-1.4087966680526733,
-0.5277379155158997,
1.0609196424484253,
0.445164293050766,
-1.2381082773208618,
0.09524299949407578,
-0.3716869652271271,
1.0438052415847778,
0.34654074907302856,
1.0462703704833984,
-1.6443437337875366,
0.0007268013432621956,
-0.3886640965938568,
0.1440483033657074,
-1.1528784036636353,
-1.534802794456482,
0.6069283485412598,
0.5742032527923584,
0.5935706496238708,
-0.1595964878797531,
1.1467041969299316,
-1.0869945287704468,
0.7989462614059448,
-1.0619601011276245,
-1.7363163232803345,
-1.4686027765274048,
-2.192626953125,
-2.148124933242798,
0.737755537033081,
-0.488075852394104,
-0.6233690977096558,
2.1679131984710693,
-0.9816774725914001,
-1.7700303792953491,
1.0826293230056763,
0.3174826204776764,
-0.015711233019828796,
2.431291341781616,
0.19935455918312073,
-0.6871832609176636,
0.5017514824867249,
-0.7722039818763733,
0.7984704375267029,
-0.30826616287231445,
1.379960060119629,
0.38574886322021484,
-1.0518921613693237,
1.581588625907898,
-0.33110883831977844,
0.6125504374504089,
-0.6310572624206543,
-0.4886339604854584,
-0.6674198508262634,
0.3016323149204254,
1.9171839952468872,
-0.2807122766971588,
1.4783761501312256,
-0.3084072470664978,
-1.5154356956481934,
-1.697831153869629,
0.8563297986984253,
0.47675999999046326,
-0.7278374433517456,
0.13406267762184143,
-0.46483880281448364,
0.13704630732536316,
-0.0013897032476961613,
1.2891368865966797,
1.2973949909210205,
0.7719998955726624,
-0.26570627093315125,
-0.8267281651496887,
0.07496746629476547,
0.044152237474918365,
-0.7427602410316467,
-1.6587287187576294,
-0.4173373281955719,
0.17631737887859344,
0.607710599899292,
-1.2174713611602783,
1.7708771228790283,
0.8962178230285645,
1.8217685222625732,
1.0879583358764648,
-0.3012564480304718,
1.5193555355072021,
0.08314822614192963,
1.8033175468444824,
-0.4823105037212372,
0.5904195308685303,
-0.39682161808013916,
-1.2142879962921143,
0.7949370741844177,
-0.3644513487815857,
-2.0790889263153076,
-0.848081648349762,
-0.7602592706680298,
-0.10787652432918549,
-0.8036345839500427,
0.9687459468841553,
-0.39248961210250854,
-1.43790602684021,
0.19636105000972748,
-0.7482945919036865,
0.06614523380994797,
-1.195593237876892,
0.32746705412864685,
0.6432050466537476,
-0.6329898834228516,
0.17965371906757355,
-0.2072276473045349,
-1.2165946960449219,
-0.44324421882629395,
0.24462135136127472,
1.9508568048477173,
-0.7783856391906738,
0.914526104927063,
1.0729975700378418,
-0.7699355483055115,
-0.0742795541882515,
0.23937579989433289,
-0.359266459941864,
0.9039530158042908,
-1.0401424169540405,
-0.4763645529747009,
1.232214331626892,
-0.146511971950531,
-0.6235365271568298,
1.4474903345108032,
0.6744626760482788,
-1.0057886838912964,
-0.20209193229675293,
-0.08131049573421478,
-0.8277807831764221,
0.05683266744017601,
-1.50932776927948,
-0.1408357173204422,
0.5532776117324829,
-1.5192162990570068,
-0.544209361076355,
-0.16369064152240753,
1.2521271705627441,
-0.16676001250743866,
1.378968358039856,
-0.3998333811759949,
-0.1437816023826599,
-0.2875218093395233,
-0.38489869236946106,
0.06229543313384056,
-0.1923607587814331,
-0.6880859136581421,
0.09478272497653961,
-0.708746612071991,
0.3331061601638794,
1.4206414222717285,
0.4295552372932434,
0.006029588170349598,
0.5632818937301636,
1.181136965751648,
0.42363491654396057,
-0.12434494495391846,
-0.8980308175086975,
-1.5962193012237549,
1.9659793376922607,
-1.4080345630645752,
1.9999536275863647,
0.7698211073875427,
-0.05975429341197014,
-1.7517353296279907,
-1.8595021963119507,
1.3971418142318726,
1.2184371948242188,
2.3447890281677246,
0.5184715390205383,
0.39357468485832214,
-0.8290539979934692,
-0.6771889328956604,
0.3553760051727295,
-1.0347799062728882,
-0.6326863169670105,
0.20209071040153503,
2.3811442852020264,
1.8853636980056763,
-0.497152715921402,
-0.20403385162353516,
-0.9754758477210999,
1.4197078943252563,
-0.34120073914527893,
0.2639600336551666,
1.8885971307754517,
-0.28050732612609863,
-1.0775423049926758,
1.3146429061889648,
-2.2761082649230957,
0.0965655967593193,
2.002500057220459,
0.2665591239929199,
0.12062162160873413,
-1.2644542455673218,
-0.6113870739936829,
-0.39975494146347046,
-0.44634974002838135,
-1.2867730855941772,
0.4636245369911194,
-0.1727890968322754,
-0.6938009262084961,
-1.3439388275146484,
0.1915784329175949,
-1.1404386758804321,
-1.5878615379333496,
0.22312511503696442,
1.9352800846099854,
2.05332350730896,
-0.7873490452766418,
1.6842237710952759,
-0.35126733779907227,
0.24041739106178284,
1.159219741821289,
1.295139193534851,
3.10569429397583,
1.8103924989700317,
-1.248014211654663,
0.577768087387085,
-0.17644771933555603,
-0.5347756147384644,
1.2509092092514038,
-1.2856028079986572,
1.3119195699691772,
-0.05223244056105614,
-1.1425869464874268,
-1.2452565431594849,
0.90973961353302,
0.4177943766117096,
-0.01894669607281685,
-0.4912535846233368,
1.0753059387207031,
0.12139804661273956,
1.380177617073059,
0.5906205773353577,
-0.29899895191192627,
0.579705536365509,
-0.3306037485599518,
-0.3797037601470947,
1.4495539665222168,
0.10843024402856827,
-1.4329897165298462,
-2.2057833671569824,
-0.09859999269247055,
-0.8174925446510315,
0.19263431429862976,
-0.6636319160461426,
-1.0038491487503052,
1.6687297821044922,
0.30890780687332153,
-1.1978719234466553,
-0.2377289980649948,
-0.40872669219970703,
-0.5408680438995361,
2.752124786376953,
-1.2421990633010864,
-0.2439693808555603,
-1.0281676054000854,
-0.7555644512176514,
1.6800000667572021,
-1.0929996967315674,
-0.13366663455963135,
-0.9741221070289612,
-0.5238825082778931,
-1.359039068222046,
-0.5694602727890015,
0.0337095782160759,
-1.0015314817428589,
0.8026244044303894,
0.19774197041988373,
-1.2008024454116821,
-0.38494694232940674,
-0.8299779295921326,
0.9379627704620361,
-0.2647646963596344,
0.11501829326152802,
1.9912821054458618,
0.32193949818611145,
-0.3537621796131134,
0.870857834815979,
1.2044994831085205,
0.6264159083366394,
-0.5404581427574158,
0.24099935591220856,
-0.6617494225502014,
0.3635711073875427,
-1.3291810750961304,
0.21131904423236847,
-2.802236795425415,
0.6812680959701538,
-0.05038400739431381,
-0.11709263175725937,
0.06810525804758072,
-1.2577956914901733,
1.0672974586486816,
2.5795135498046875,
-1.2072161436080933,
0.4765511155128479,
0.3028163015842438,
1.1751315593719482,
-1.664325475692749,
0.22936929762363434,
-0.4831312298774719,
2.0302422046661377,
0.23874986171722412,
1.2366889715194702,
-0.42844513058662415,
-2.31330943107605,
0.6846238374710083,
-1.3586421012878418,
-1.2458045482635498,
0.7283115983009338,
-0.9983453154563904,
0.20845858752727509,
-1.3771846294403076,
-0.27489402890205383,
-0.8973346948623657,
-1.0517175197601318,
0.6679375171661377,
0.11038117855787277,
0.3051224946975708,
-0.563589334487915,
0.29897540807724,
-2.2269434928894043,
-1.4008013010025024,
-0.21031267940998077,
-0.9805738925933838,
0.507773756980896,
-0.384024053812027,
0.7203164100646973,
-0.20768150687217712,
0.0023116134107112885,
0.35166558623313904,
1.5100998878479004,
3.272942304611206,
0.2717786133289337,
0.30926865339279175,
-0.2350613921880722,
-0.9564260244369507,
1.4738185405731201,
0.8557869791984558,
-0.23903456330299377,
-0.5314566493034363,
-1.114764928817749,
1.2857682704925537,
1.864903450012207,
0.962992787361145,
0.025397032499313354,
-0.8753779530525208,
-0.7793034315109253,
-0.1011180579662323,
0.1728469580411911,
0.3408539295196533,
0.8424917459487915,
0.1584949791431427,
0.1055767610669136,
1.4625622034072876,
1.144554853439331,
-0.4780372679233551,
0.2525026202201843,
-0.8019778728485107,
-0.5289804339408875,
0.5516957640647888,
0.2380490005016327,
-0.05335473269224167,
0.26429712772369385,
-0.985787570476532,
-0.3122362792491913,
-0.4019339978694916,
-0.8052350282669067,
-0.693910539150238,
-0.3225875198841095,
-0.3173885941505432,
1.6082979440689087,
0.033644963055849075,
-0.5757518410682678,
-0.10251905769109726,
-0.8199747204780579,
-0.13809219002723694,
-1.0528481006622314,
0.2196822613477707,
-0.05304007604718208,
-0.16647331416606903,
-0.1898587942123413,
1.6225512027740479,
-0.9305707216262817,
-2.0094618797302246,
0.22222192585468292,
0.30252644419670105,
-0.21442651748657227,
0.17897871136665344,
1.636312484741211,
0.6346730589866638,
1.440836787223816,
1.3400553464889526,
0.8549851775169373,
-0.5696866512298584,
-1.276369333267212,
0.6457008123397827,
0.9677838087081909,
-1.302984356880188,
0.8184604644775391,
-0.0011112885549664497,
-0.5053456425666809,
0.46126508712768555,
1.250945806503296,
0.5942639112472534,
-1.8956841230392456,
0.7813098430633545,
-0.9853090643882751,
0.8110796213150024,
0.7199429869651794,
0.6184832453727722,
0.21087537705898285,
0.8880119323730469,
-1.1192039251327515,
-1.1915558576583862,
-0.6954829096794128,
-0.6904485821723938,
1.990827202796936,
-0.3211159408092499,
0.6846402287483215,
-0.2852712869644165,
-1.2897950410842896,
-0.04382789134979248,
0.5915799736976624,
0.2911410927772522,
-0.5341572761535645,
0.8329728841781616,
-0.613603413105011,
-1.0316506624221802,
-1.4368247985839844,
-0.33858999609947205,
-1.0518522262573242,
-0.9697129130363464,
1.0427632331848145,
0.7050588130950928,
0.2612505555152893,
1.8898926973342896,
0.6660415530204773,
0.27447739243507385,
-2.5602734088897705,
0.9111791849136353,
0.2338513880968094,
-0.20125171542167664,
0.8173577189445496,
0.41408151388168335,
0.9501718282699585,
-0.1260581761598587,
0.504041850566864,
-2.3812129497528076,
2.289257049560547,
-0.15133140981197357,
0.7224124073982239,
-0.05182689055800438,
-0.12793754041194916,
1.1766585111618042,
0.6238783001899719,
0.5103258490562439,
-0.9888487458229065,
0.5197012424468994,
-0.5160782933235168,
1.2878201007843018,
0.8667535781860352,
-0.7957103252410889,
-0.021531518548727036,
1.4636194705963135,
0.49632227420806885,
-0.5827392339706421,
-1.0269907712936401,
-0.9107913374900818,
1.016446828842163,
1.6735488176345825,
0.007139594294130802,
-0.06260281056165695,
0.8222378492355347,
0.6383494138717651,
-1.3053058385849,
0.05355926975607872,
-0.6341372132301331,
-0.6902468800544739,
1.7337377071380615,
2.1934280395507812,
-0.2869376540184021,
-0.2979752719402313,
-0.6476994156837463,
-1.2801213264465332,
0.8534970879554749,
-0.12056300044059753,
0.13197222352027893,
0.7560827136039734,
-0.6543832421302795,
1.1560802459716797,
0.9081756472587585,
0.8771953582763672,
0.3221932053565979,
0.22637127339839935,
0.35664641857147217,
-0.30160126090049744,
-1.269698143005371,
-0.10722673684358597,
-0.9717939496040344,
-2.566495418548584,
0.3495427370071411,
-0.1879977136850357,
-1.2764112949371338,
0.037161193788051605,
-1.032962679862976,
0.9364594221115112,
-0.5516356825828552,
-1.1076592206954956,
-1.5194282531738281,
0.11250077188014984,
0.07953101396560669,
0.9912078976631165,
-1.5945135354995728,
-0.15977361798286438,
1.2018840312957764,
0.9111575484275818,
-0.7569452524185181,
0.9220202565193176,
0.246745303273201,
1.043736457824707,
0.9166144728660583,
-0.4217446446418762,
0.5938361287117004,
-0.12125210464000702,
-1.3764568567276,
0.49515455961227417,
1.2482428550720215,
0.17456401884555817,
1.515101432800293,
-0.46884360909461975,
-0.03680488467216492,
0.3840984106063843,
-0.6381844878196716,
-0.4747476875782013,
-0.52810138463974,
0.5633208155632019,
0.05545758083462715,
-0.9236031770706177,
-0.12440060824155807,
0.05331260338425636,
-0.3393120765686035,
0.21243208646774292,
-1.572563648223877,
-0.016928277909755707,
-0.3519551455974579,
-0.7221957445144653,
-1.1390975713729858,
-0.12005767226219177,
1.4151257276535034,
-0.8716164827346802,
-0.17802424728870392,
0.43865910172462463,
0.18646225333213806,
0.48628032207489014,
0.594473123550415,
-0.772376298904419,
-0.25826308131217957,
-0.22635340690612793,
-0.39346691966056824,
0.3260669410228729,
1.3835041522979736,
-0.11979858577251434,
-0.9121075868606567,
0.5110821723937988,
-0.2841184139251709,
0.045322734862565994,
1.9134694337844849,
-0.00922931544482708,
-0.770667552947998,
0.2243378609418869,
-0.7801230549812317,
1.9092302322387695,
1.6926288604736328,
1.270911455154419,
-0.21003074944019318,
-0.852236807346344,
0.6351447105407715,
-0.3780284821987152,
-0.4197823405265808,
0.7592288255691528,
0.2698819935321808,
-0.267006516456604,
-1.4609497785568237,
0.8712512850761414,
1.2200742959976196,
-0.8602616786956787,
-0.7963680624961853,
0.13100364804267883,
-0.7924095392227173,
1.0789085626602173,
0.6375486254692078,
0.28279441595077515,
0.3709230422973633,
1.7169157266616821,
0.8407744765281677,
-0.4047873318195343,
0.48585188388824463,
0.5376268029212952,
-0.09098166972398758,
-2.161977767944336,
-1.1606000661849976,
0.34388986229896545,
-0.6002256870269775,
-1.6280336380004883,
1.4016003608703613,
-1.0942474603652954,
-1.0075733661651611,
0.6369320750236511,
0.10452582687139511,
1.425306797027588,
0.347252756357193,
1.5498965978622437,
2.0408575534820557,
0.7971463799476624,
0.46897828578948975,
1.1873893737792969,
-0.14300097525119781,
-0.45967787504196167,
1.7666515111923218,
-0.4584982991218567,
0.4654448628425598,
1.0459508895874023,
-0.28581035137176514,
-1.1431844234466553,
-0.7677887082099915,
-1.4074649810791016,
-0.8762804269790649,
1.1618245840072632,
0.1017904058098793,
-1.1241230964660645,
0.24895308911800385,
1.559173583984375,
0.10749513655900955,
-0.32753151655197144,
0.6280539631843567,
0.34023985266685486,
-0.7564558386802673,
-0.022856291383504868,
-0.8798291087150574,
0.6016864776611328,
-0.10618410259485245,
-0.35257670283317566,
0.26874250173568726,
0.38726043701171875,
1.4555109739303589,
-0.030671145766973495,
0.13833221793174744,
1.0905308723449707,
-1.4511005878448486,
1.4937691688537598,
-0.7651330828666687,
0.3185224235057831,
-2.4074110984802246,
1.5142093896865845,
-0.8629881739616394,
1.9709359407424927,
-2.6357223987579346,
0.5270341038703918,
-0.5622700452804565,
-0.4975484013557434,
0.26048925518989563,
-0.33402785658836365,
0.12167207896709442,
-0.08869852870702744,
-1.1736758947372437,
-0.01915603317320347,
-0.5933793187141418,
0.5833565592765808,
1.0865905284881592,
1.3597644567489624,
-1.1696178913116455,
-0.2988359034061432,
-1.7550233602523804,
-0.0971652939915657,
-0.6774855256080627,
0.2866269648075104,
-1.9768335819244385,
-0.24561388790607452,
-1.8318369388580322,
-2.4321749210357666,
-1.2158859968185425,
-0.7017682194709778,
1.1584254503250122,
0.01397439744323492,
-0.8554771542549133,
1.3380475044250488,
-0.43146616220474243,
-1.8600579500198364,
1.1320399045944214,
-2.176922559738159
] |
https://github.com/huggingface/datasets/issues/4799 | video dataset loader/parser | Hi! We've just started discussing the video support in `datasets` (decoding backends, video feature type, etc.), so I believe we should have something tangible by the end of this year.
Also, if you have additional video features in mind that you would like to see, feel free to let us know | you know how you can [use `load_dataset` with any arbitrary csv file](https://huggingface.co/docs/datasets/loading#csv)? and you can also [use it to load a local image dataset](https://huggingface.co/docs/datasets/image_load#local-files)?
could you please add functionality to load a video dataset? it would be really cool if i could point it to a bunch of video files and use pytorch to start looping through batches of videos. like if my batch size is 16, each sample in the batch is a frame from a video. i'm competing in the [minerl challenge](https://www.aicrowd.com/challenges/neurips-2022-minerl-basalt-competition), and it would be awesome to use the HF ecosystem. | 587 | 51 | video dataset loader/parser
you know how you can [use `load_dataset` with any arbitrary csv file](https://huggingface.co/docs/datasets/loading#csv)? and you can also [use it to load a local image dataset](https://huggingface.co/docs/datasets/image_load#local-files)?
could you please add functionality to load a video dataset? it would be really cool if i could point it to a bunch of video files and use pytorch to start looping through batches of videos. like if my batch size is 16, each sample in the batch is a frame from a video. i'm competing in the [minerl challenge](https://www.aicrowd.com/challenges/neurips-2022-minerl-basalt-competition), and it would be awesome to use the HF ecosystem.
Hi! We've just started discussing the video support in `datasets` (decoding backends, video feature type, etc.), so I believe we should have something tangible by the end of this year.
Also, if you have additional video features in mind that you would like to see, feel free to let us know | [
-1.1959599256515503,
-0.9134562611579895,
-0.9125519394874573,
1.421703577041626,
-0.14651086926460266,
-1.2543821334838867,
0.07898581773042679,
-1.0282896757125854,
1.6608412265777588,
-0.9070125818252563,
0.36855456233024597,
-1.6851530075073242,
0.10021072626113892,
-0.6344366669654846,
-0.7956106662750244,
-0.8758817911148071,
-0.3818861246109009,
-0.8044694662094116,
1.005922555923462,
2.561577796936035,
1.1099377870559692,
-1.356996774673462,
2.7258706092834473,
0.7010824680328369,
-0.17493154108524323,
-1.0363729000091553,
0.49812790751457214,
0.08456278592348099,
-1.2322821617126465,
-0.46944552659988403,
-0.9883702397346497,
0.043759237974882126,
-0.5926268696784973,
-0.5773350596427917,
0.042974308133125305,
0.35287266969680786,
-0.13981465995311737,
-0.2954777777194977,
-0.5791797041893005,
-0.7330924868583679,
0.5131176114082336,
-0.35520657896995544,
1.0173059701919556,
-0.3641003668308258,
1.8853951692581177,
-0.5223259329795837,
0.3369426727294922,
0.6891041994094849,
1.4076563119888306,
0.20070700347423553,
0.015773914754390717,
0.21253731846809387,
0.43310117721557617,
-0.018203239887952805,
0.4710675776004791,
1.1486519575119019,
0.5836406946182251,
0.5027818083763123,
0.6846818923950195,
-2.2261059284210205,
1.373582363128662,
-1.0765377283096313,
0.32130855321884155,
1.320838212966919,
-0.8886966109275818,
0.36538803577423096,
-1.744557499885559,
-0.12535187602043152,
0.5580068230628967,
-2.2911951541900635,
0.2054256647825241,
-1.3226641416549683,
-0.5234792828559875,
0.898566484451294,
0.32386255264282227,
-1.27754807472229,
0.2917998731136322,
-0.45603370666503906,
1.006509780883789,
0.4841722548007965,
1.1677502393722534,
-1.7274987697601318,
0.0281122624874115,
-0.23331379890441895,
0.0973891168832779,
-1.2695752382278442,
-1.4778492450714111,
0.48109593987464905,
0.6434508562088013,
0.5927373766899109,
-0.11028722673654556,
0.9331477284431458,
-0.9780597686767578,
0.8785712122917175,
-0.8328389525413513,
-1.6846470832824707,
-1.3754080533981323,
-2.2376155853271484,
-2.4381344318389893,
0.8898657560348511,
-0.554472804069519,
-0.5582048296928406,
2.0200467109680176,
-1.0638861656188965,
-1.7986809015274048,
1.1428381204605103,
0.2851882874965668,
0.022640593349933624,
2.412996530532837,
0.2027631253004074,
-0.7612148523330688,
0.41638806462287903,
-0.6711520552635193,
0.9280699491500854,
-0.44102567434310913,
1.3895485401153564,
0.5133470892906189,
-0.993914008140564,
1.592116355895996,
-0.5369026064872742,
0.4683478772640228,
-0.6295734643936157,
-0.5313312411308289,
-0.8578227162361145,
0.3874320089817047,
1.8433393239974976,
-0.2698577344417572,
1.6076627969741821,
-0.34918248653411865,
-1.579604983329773,
-1.5845476388931274,
0.8708265423774719,
0.5106173753738403,
-0.8113377094268799,
0.09305065125226974,
-0.412396639585495,
0.1062941774725914,
-0.01804104633629322,
1.1067001819610596,
1.183887004852295,
0.7369472980499268,
-0.2697461247444153,
-0.858212411403656,
0.2536379396915436,
-0.11513414233922958,
-0.5874062180519104,
-1.8793712854385376,
-0.3648205101490021,
0.24444887042045593,
0.6687784194946289,
-1.2217576503753662,
1.7539145946502686,
0.8674256801605225,
1.9748518466949463,
0.9980267286300659,
-0.2793232202529907,
1.4922887086868286,
-0.025567609816789627,
1.8767035007476807,
-0.5352193117141724,
0.6616231799125671,
-0.34741929173469543,
-1.1615180969238281,
0.7633580565452576,
-0.4816167950630188,
-2.032169818878174,
-0.6940651535987854,
-0.9519986510276794,
-0.172566756606102,
-0.7782480120658875,
0.9128270745277405,
-0.33243292570114136,
-1.3809794187545776,
0.24614205956459045,
-0.5998275876045227,
0.1259654015302658,
-1.1790428161621094,
0.33569350838661194,
0.7336457967758179,
-0.6481665372848511,
-0.04692049324512482,
-0.28380221128463745,
-1.3532867431640625,
-0.46506616473197937,
0.23708857595920563,
1.899922490119934,
-0.7751695513725281,
0.9044396877288818,
1.0295031070709229,
-0.6741602420806885,
-0.015172578394412994,
0.44308120012283325,
-0.3264671564102173,
0.8389484882354736,
-1.0341423749923706,
-0.30640709400177,
1.2014940977096558,
-0.10971761494874954,
-0.6198607683181763,
1.4342631101608276,
0.8325409293174744,
-0.9903046488761902,
-0.20418952405452728,
-0.21432463824748993,
-0.7655340433120728,
-0.03056729957461357,
-1.6291042566299438,
-0.13631793856620789,
0.2545640468597412,
-1.4550431966781616,
-0.45503172278404236,
-0.16604095697402954,
1.1789978742599487,
-0.17884209752082825,
1.456579327583313,
-0.36550724506378174,
-0.2232159674167633,
-0.3776387572288513,
-0.4630318880081177,
0.19773319363594055,
-0.1554688811302185,
-0.6270913481712341,
0.3125085234642029,
-0.8163359761238098,
0.35853272676467896,
1.4306929111480713,
0.4021584391593933,
0.055747296661138535,
0.465533584356308,
1.0667756795883179,
0.3126658797264099,
0.015219724737107754,
-0.933352530002594,
-1.5465840101242065,
2.113431930541992,
-1.420850396156311,
1.918497920036316,
0.7920228242874146,
-0.011220754124224186,
-1.8297494649887085,
-1.800917387008667,
1.4022483825683594,
1.241715669631958,
2.2967164516448975,
0.566230058670044,
0.3045094609260559,
-0.796950101852417,
-0.6860895752906799,
0.38150373101234436,
-1.0203791856765747,
-0.7396776080131531,
0.0853421613574028,
2.3950016498565674,
1.8147664070129395,
-0.5611205697059631,
-0.22908484935760498,
-0.9995195269584656,
1.3095815181732178,
-0.2511349618434906,
0.23093678057193756,
2.0481855869293213,
-0.35840728878974915,
-1.0532673597335815,
1.2540210485458374,
-2.351008415222168,
0.14395472407341003,
2.0048162937164307,
0.31975480914115906,
0.10941962897777557,
-1.437435507774353,
-0.5801758766174316,
-0.2485034465789795,
-0.42123088240623474,
-1.2120131254196167,
0.6461357474327087,
-0.3079261779785156,
-0.9053124189376831,
-1.3957029581069946,
0.13559365272521973,
-1.1469260454177856,
-1.659901738166809,
0.3953889012336731,
1.7877267599105835,
2.052769899368286,
-0.7430874109268188,
1.436996340751648,
-0.26257482171058655,
0.20977383852005005,
1.2941867113113403,
1.23483407497406,
3.2092881202697754,
1.9388651847839355,
-1.228467583656311,
0.5923262238502502,
-0.17775674164295197,
-0.5541699528694153,
1.222122073173523,
-1.0089809894561768,
1.1498337984085083,
-0.11227349936962128,
-1.2249151468276978,
-1.2120436429977417,
1.0442376136779785,
0.4478589594364166,
0.10681065171957016,
-0.5959713459014893,
1.2466959953308105,
0.01978345960378647,
1.2496830224990845,
0.6309598684310913,
-0.40903130173683167,
0.5206232070922852,
-0.4535219967365265,
-0.5567477345466614,
1.5962215662002563,
0.19767498970031738,
-1.5075454711914062,
-2.3101589679718018,
-0.2272629737854004,
-0.8681219220161438,
-0.06771355867385864,
-0.5693973898887634,
-1.0280269384384155,
1.6419140100479126,
0.3783460557460785,
-1.2815643548965454,
-0.29283326864242554,
-0.3573469817638397,
-0.644498348236084,
2.6348564624786377,
-1.4664212465286255,
-0.20923219621181488,
-0.9918085932731628,
-0.4735947549343109,
1.613299012184143,
-1.2060014009475708,
-0.10667199641466141,
-1.0370577573776245,
-0.6564439535140991,
-1.4016594886779785,
-0.49788644909858704,
-0.1700899600982666,
-0.8347432613372803,
0.6811485886573792,
0.08299188315868378,
-1.1068031787872314,
-0.24989062547683716,
-0.9053376317024231,
0.8443796038627625,
-0.13174653053283691,
0.31488901376724243,
1.886107325553894,
0.46710649132728577,
-0.4419509172439575,
0.657469630241394,
1.2080646753311157,
0.6314358711242676,
-0.7183997631072998,
0.19375087320804596,
-0.7887806296348572,
0.23728279769420624,
-1.3555190563201904,
0.26581332087516785,
-2.8456709384918213,
0.7156575322151184,
-0.055245913565158844,
-0.19760249555110931,
-0.008767853491008282,
-1.2837563753128052,
1.065138578414917,
2.6125857830047607,
-1.1529215574264526,
0.38176846504211426,
0.2747941017150879,
1.265023946762085,
-1.5148427486419678,
0.2932847738265991,
-0.40951845049858093,
2.0907299518585205,
0.19751694798469543,
1.1662333011627197,
-0.4908134341239929,
-2.172818183898926,
0.6310714483261108,
-1.3076659440994263,
-1.042763352394104,
0.7870931625366211,
-0.8529952764511108,
0.09515112638473511,
-1.4512157440185547,
-0.07054568082094193,
-0.8744089007377625,
-1.2508937120437622,
0.8395785689353943,
0.08188482373952866,
0.3989259600639343,
-0.5633496046066284,
0.3091782331466675,
-2.1023776531219482,
-1.3573369979858398,
-0.21683494746685028,
-0.961513340473175,
0.49074694514274597,
-0.22571510076522827,
0.6256470084190369,
-0.1501530408859253,
0.06945794075727463,
0.3879396319389343,
1.3413116931915283,
3.3979389667510986,
0.2575116753578186,
0.45151159167289734,
-0.0882415845990181,
-0.918294370174408,
1.4484474658966064,
1.0162698030471802,
-0.07471422851085663,
-0.503690779209137,
-1.0191439390182495,
1.3633532524108887,
1.970777153968811,
1.0603495836257935,
0.11435142904520035,
-0.8008794784545898,
-0.7559307217597961,
0.07236522436141968,
0.14501184225082397,
0.46244916319847107,
0.9118682146072388,
-0.037148259580135345,
0.1371755599975586,
1.3730618953704834,
1.203690767288208,
-0.4228692054748535,
0.41867613792419434,
-0.8676184415817261,
-0.3525896370410919,
0.4938748776912689,
0.2876945734024048,
0.0046876464039087296,
0.5104468464851379,
-0.9614844918251038,
-0.3537239730358124,
-0.3523763418197632,
-0.9608802199363708,
-0.6797096729278564,
-0.48239654302597046,
-0.3790978789329529,
1.6315703392028809,
0.16744671761989594,
-0.48658812046051025,
-0.017494704574346542,
-0.8265280723571777,
-0.15827465057373047,
-1.066637635231018,
0.21374520659446716,
-0.06763584911823273,
-0.10923997312784195,
-0.1014617457985878,
1.816293716430664,
-0.9392213821411133,
-2.1092429161071777,
0.27767565846443176,
0.23943576216697693,
-0.41304537653923035,
0.14207740128040314,
1.6683956384658813,
0.45035848021507263,
1.4273631572723389,
1.3203977346420288,
1.0065866708755493,
-0.6240155696868896,
-1.2260923385620117,
0.7102515697479248,
0.9836440086364746,
-1.4561342000961304,
0.8672791123390198,
-0.03676601126790047,
-0.5935158133506775,
0.7258490324020386,
1.2325249910354614,
0.3658056855201721,
-1.9215565919876099,
0.7606601715087891,
-0.8520392775535583,
0.7676390409469604,
0.6224434971809387,
0.7626951932907104,
0.26484760642051697,
0.8936667442321777,
-1.279266119003296,
-1.2022426128387451,
-0.8259924650192261,
-0.5893024206161499,
1.9065778255462646,
-0.15990549325942993,
0.5509566068649292,
-0.16650648415088654,
-1.2956714630126953,
-0.1458277553319931,
0.7657133340835571,
0.29981139302253723,
-0.4229857921600342,
0.9228766560554504,
-0.7433123588562012,
-1.094247579574585,
-1.4625251293182373,
-0.4649508595466614,
-0.9710251092910767,
-0.888028621673584,
1.138250470161438,
0.8880552053451538,
0.3256900906562805,
1.889966368675232,
0.6338495016098022,
0.22343580424785614,
-2.602212429046631,
0.8556936383247375,
0.22113074362277985,
-0.0463268905878067,
0.8752682209014893,
0.3342705965042114,
1.0708338022232056,
-0.08373700827360153,
0.5394439697265625,
-2.334275960922241,
2.1898744106292725,
-0.2599024176597595,
0.6862317323684692,
0.005989410914480686,
-0.15670181810855865,
1.1590216159820557,
0.5333251953125,
0.6282491683959961,
-1.0980310440063477,
0.686636209487915,
-0.584549069404602,
1.1544644832611084,
0.9881000518798828,
-0.8166640996932983,
-0.01669982820749283,
1.425553798675537,
0.4595859944820404,
-0.47979098558425903,
-0.8815317153930664,
-0.8571273684501648,
0.9303895831108093,
1.6693569421768188,
-0.0207511056214571,
-0.10508972406387329,
0.8575630187988281,
0.5613003373146057,
-1.358721137046814,
0.0984763652086258,
-0.7416889071464539,
-0.7869870066642761,
1.682004690170288,
2.047677516937256,
-0.07596201449632645,
-0.1436886489391327,
-0.7383953928947449,
-1.2029094696044922,
0.7004176378250122,
0.017981957644224167,
0.07316789776086807,
0.7094845771789551,
-0.6691920161247253,
1.107551097869873,
0.923480749130249,
0.8130719661712646,
0.08146911859512329,
0.3358655571937561,
0.373095840215683,
-0.3286801278591156,
-1.1293834447860718,
-0.36272546648979187,
-1.1477950811386108,
-2.5861310958862305,
0.4886147975921631,
-0.38301387429237366,
-1.4779592752456665,
0.016609471291303635,
-1.040971040725708,
0.8623380661010742,
-0.5868215560913086,
-0.978826105594635,
-1.4949595928192139,
0.3018859922885895,
-0.12048795819282532,
0.9282513856887817,
-1.6577749252319336,
-0.05712851136922836,
1.157291054725647,
0.8589897751808167,
-0.5457891225814819,
1.027582049369812,
0.28224894404411316,
1.046913981437683,
0.8470188975334167,
-0.434645414352417,
0.467385470867157,
0.21564443409442902,
-1.371488094329834,
0.4417334794998169,
1.1429330110549927,
0.2178201526403427,
1.3478807210922241,
-0.4378716051578522,
0.0682179406285286,
0.41629642248153687,
-0.5266178250312805,
-0.45237258076667786,
-0.5713621377944946,
0.7680861949920654,
0.20053225755691528,
-0.8847362399101257,
0.05855753645300865,
-0.10333455353975296,
-0.2469511330127716,
0.2645992040634155,
-1.5585368871688843,
-0.25158926844596863,
-0.3682018220424652,
-0.47729700803756714,
-1.3272814750671387,
-0.03358474373817444,
1.3965511322021484,
-0.770041286945343,
-0.1570860892534256,
0.5277799367904663,
0.4190272390842438,
0.4990733563899994,
0.6344814300537109,
-0.5718050599098206,
-0.3468948006629944,
-0.3065331280231476,
-0.3182273209095001,
0.22433696687221527,
1.249182939529419,
-0.14764980971813202,
-0.9663729071617126,
0.7351797223091125,
-0.3530682921409607,
0.017554055899381638,
1.9485820531845093,
0.08147387951612473,
-0.7923661470413208,
0.3428589701652527,
-0.7002019286155701,
1.8903025388717651,
1.7050727605819702,
1.315044641494751,
-0.04103492572903633,
-0.9129868149757385,
0.5799608826637268,
-0.2304600179195404,
-0.33208903670310974,
0.9194467067718506,
0.46005797386169434,
-0.13820518553256989,
-1.4553968906402588,
0.5340957045555115,
1.266489028930664,
-0.893844485282898,
-0.8220284581184387,
0.051299843937158585,
-0.8343573808670044,
1.0744287967681885,
0.6596319675445557,
0.3987101912498474,
0.16174785792827606,
1.6225430965423584,
0.7184547781944275,
-0.5747596621513367,
0.4855705201625824,
0.566291332244873,
-0.13514478504657745,
-2.133450746536255,
-1.0793741941452026,
0.2663730978965759,
-0.31721872091293335,
-1.5827723741531372,
1.3385218381881714,
-1.1709353923797607,
-0.9223479628562927,
0.5922025442123413,
0.1208011731505394,
1.441257119178772,
0.2424962818622589,
1.5644643306732178,
2.0671908855438232,
0.8191864490509033,
0.346748948097229,
1.3782474994659424,
-0.10330154746770859,
-0.39244741201400757,
1.7727302312850952,
-0.4246916174888611,
0.5026686787605286,
0.9745274782180786,
-0.4035164713859558,
-1.0041378736495972,
-0.7945953011512756,
-1.1392546892166138,
-0.6121459603309631,
1.1460654735565186,
0.1073082759976387,
-1.1363918781280518,
0.17146745324134827,
1.6499903202056885,
0.05794335529208183,
-0.3265267014503479,
0.5573601126670837,
0.41652485728263855,
-0.6843990087509155,
0.012789417989552021,
-1.092684268951416,
0.5837699174880981,
-0.03954385593533516,
-0.33936867117881775,
0.38693398237228394,
0.42871034145355225,
1.174538493156433,
-0.02214304730296135,
0.17141255736351013,
1.1926010847091675,
-1.3467018604278564,
1.394835352897644,
-0.533177375793457,
0.2708008885383606,
-2.535036325454712,
1.484022855758667,
-0.8338969349861145,
1.8754597902297974,
-2.536916971206665,
0.41635239124298096,
-0.7026925086975098,
-0.5112060904502869,
0.41481712460517883,
-0.38133704662323,
0.16748806834220886,
-0.11073535680770874,
-1.0846141576766968,
-0.05042983964085579,
-0.7724133133888245,
0.5507637858390808,
1.1929914951324463,
1.3199386596679688,
-1.1273869276046753,
-0.3244224786758423,
-1.7596259117126465,
-0.14990799129009247,
-0.6647785902023315,
0.2974318563938141,
-2.0401864051818848,
-0.12639573216438293,
-1.916355848312378,
-2.332937717437744,
-1.5603781938552856,
-0.8419055938720703,
1.065191626548767,
0.13384048640727997,
-0.9557775259017944,
1.0984398126602173,
-0.3731778860092163,
-1.905404806137085,
1.0286797285079956,
-2.1355297565460205
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | @mariosasko I'm getting a similar issue when creating a Dataset from a Pandas dataframe, like so:
```
from datasets import Dataset, Features, Image, Value
import pandas as pd
import requests
import PIL
# we need to define the features ourselves
features = Features({
'a': Value(dtype='int32'),
'b': Image(),
})
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = PIL.Image.open(requests.get(url, stream=True).raw)
df = pd.DataFrame({"a": [1, 2],
"b": [image, image]})
dataset = Dataset.from_pandas(df, features=features)
```
results in
```
ArrowInvalid: ('Could not convert <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=640x480 at 0x7F7991A15C10> with type JpegImageFile: did not recognize Python value type when inferring an Arrow data type', 'Conversion failed for column b with type object')
```
Will the PR linked above also fix that? | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 113 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
@mariosasko I'm getting a similar issue when creating a Dataset from a Pandas dataframe, like so:
```
from datasets import Dataset, Features, Image, Value
import pandas as pd
import requests
import PIL
# we need to define the features ourselves
features = Features({
'a': Value(dtype='int32'),
'b': Image(),
})
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = PIL.Image.open(requests.get(url, stream=True).raw)
df = pd.DataFrame({"a": [1, 2],
"b": [image, image]})
dataset = Dataset.from_pandas(df, features=features)
```
results in
```
ArrowInvalid: ('Could not convert <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=640x480 at 0x7F7991A15C10> with type JpegImageFile: did not recognize Python value type when inferring an Arrow data type', 'Conversion failed for column b with type object')
```
Will the PR linked above also fix that? | [
-1.2769436836242676,
-1.0069760084152222,
-0.7846863865852356,
1.4932087659835815,
-0.2770245671272278,
-1.190245509147644,
0.1390184760093689,
-1.0740150213241577,
1.737371802330017,
-0.8204181790351868,
0.28870588541030884,
-1.668653130531311,
0.001955450512468815,
-0.6054529547691345,
-0.7624165415763855,
-0.8193601369857788,
-0.40615373849868774,
-0.7789750099182129,
1.183480143547058,
2.4787092208862305,
1.1976615190505981,
-1.3446213006973267,
2.6490559577941895,
0.720712423324585,
-0.2105296552181244,
-1.001487374305725,
0.48361846804618835,
-0.01582934334874153,
-1.349094033241272,
-0.4697294533252716,
-0.8311913013458252,
-0.025538358837366104,
-0.5996862053871155,
-0.5757021903991699,
-0.03772852569818497,
0.4283350706100464,
-0.3664625883102417,
-0.5963308215141296,
-0.5809034109115601,
-0.7412351965904236,
0.4353500306606293,
-0.44713807106018066,
0.8821343183517456,
-0.28698697686195374,
1.7403963804244995,
-0.6166283488273621,
0.4085760712623596,
0.7264053821563721,
1.2892311811447144,
0.21076977252960205,
-0.011704829521477222,
0.42610296607017517,
0.3252599239349365,
-0.05604417622089386,
0.5194525718688965,
1.1591253280639648,
0.6767555475234985,
0.4998542368412018,
0.8078081011772156,
-2.3400838375091553,
1.279183268547058,
-1.0967427492141724,
0.34887227416038513,
1.3812975883483887,
-0.8499035239219666,
0.3781870901584625,
-1.7348986864089966,
0.0036105839535593987,
0.6031239032745361,
-2.1972458362579346,
0.3988088369369507,
-1.3098342418670654,
-0.4713887572288513,
1.0525720119476318,
0.4161073863506317,
-1.0991313457489014,
0.09980908036231995,
-0.47991707921028137,
1.034902811050415,
0.4408470094203949,
1.0616785287857056,
-1.701235055923462,
-0.05168332904577255,
-0.32909533381462097,
0.1560720056295395,
-1.3076266050338745,
-1.5381830930709839,
0.5150187015533447,
0.6543672680854797,
0.6715051531791687,
-0.1478739082813263,
1.0937001705169678,
-0.9309719800949097,
0.6329734325408936,
-1.0132814645767212,
-1.7195360660552979,
-1.4610472917556763,
-2.1791868209838867,
-2.2134757041931152,
0.6259404420852661,
-0.4576140344142914,
-0.5494110584259033,
2.0986857414245605,
-0.9478381872177124,
-1.9151322841644287,
1.1591334342956543,
0.3239592909812927,
-0.04695698618888855,
2.340456008911133,
0.23308439552783966,
-0.6965392231941223,
0.5085793733596802,
-0.7899600267410278,
0.8097860813140869,
-0.3608042299747467,
1.3791568279266357,
0.38151317834854126,
-0.9991151690483093,
1.6048855781555176,
-0.40240705013275146,
0.6121678352355957,
-0.6115642786026001,
-0.43078479170799255,
-0.8269293904304504,
0.33849862217903137,
1.898079514503479,
-0.21947583556175232,
1.489201545715332,
-0.48515585064888,
-1.6496801376342773,
-1.6649415493011475,
0.9173160195350647,
0.573107898235321,
-0.7078421711921692,
0.20791921019554138,
-0.35384848713874817,
0.14891883730888367,
-0.1073402464389801,
1.1894251108169556,
1.2951467037200928,
0.8257302641868591,
-0.31505751609802246,
-0.8029491901397705,
0.20698516070842743,
-0.020989499986171722,
-0.7720754742622375,
-1.7465840578079224,
-0.31696873903274536,
0.1542094349861145,
0.6527782678604126,
-1.2352075576782227,
1.7509266138076782,
0.9217926859855652,
1.9550727605819702,
0.9756573438644409,
-0.42103612422943115,
1.4199872016906738,
0.15090185403823853,
1.8024654388427734,
-0.5047357678413391,
0.7538943886756897,
-0.2896212339401245,
-1.1026380062103271,
0.8458736538887024,
-0.24037788808345795,
-2.085735321044922,
-0.7605270147323608,
-0.7359507083892822,
-0.24077242612838745,
-0.7552770376205444,
0.8763229846954346,
-0.34501683712005615,
-1.3982175588607788,
0.14581415057182312,
-0.7999075651168823,
0.232811838388443,
-1.2056255340576172,
0.21383552253246307,
0.7360659837722778,
-0.6743194460868835,
0.12503786385059357,
-0.2051600217819214,
-1.25897216796875,
-0.4359818696975708,
0.24835838377475739,
1.8496649265289307,
-0.7525728344917297,
0.8624832034111023,
1.0526790618896484,
-0.7015983462333679,
0.005660719238221645,
0.2566005289554596,
-0.18204621970653534,
0.8232182264328003,
-1.0219027996063232,
-0.47205644845962524,
1.1866341829299927,
-0.17991463840007782,
-0.6270728707313538,
1.483517050743103,
0.668684720993042,
-1.0168284177780151,
-0.17707736790180206,
-0.16381467878818512,
-0.8063918352127075,
-0.07068096846342087,
-1.5811145305633545,
-0.08239110559225082,
0.5232674479484558,
-1.5475852489471436,
-0.5086007714271545,
-0.24883180856704712,
1.2825356721878052,
-0.26245081424713135,
1.3534852266311646,
-0.3656594753265381,
-0.16617152094841003,
-0.27577129006385803,
-0.3050578236579895,
0.18854394555091858,
-0.15324917435646057,
-0.6475194096565247,
0.06958311051130295,
-0.8622546195983887,
0.35905778408050537,
1.5201873779296875,
0.3620685636997223,
0.03956346586346626,
0.44713714718818665,
1.1459823846817017,
0.4182600975036621,
-0.024994105100631714,
-0.8810866475105286,
-1.499307632446289,
1.9300297498703003,
-1.4039489030838013,
1.9546104669570923,
0.7198677659034729,
0.0781932845711708,
-1.8468002080917358,
-1.837986707687378,
1.3634517192840576,
1.1406892538070679,
2.394261598587036,
0.6645822525024414,
0.46881285309791565,
-0.8768473267555237,
-0.6715352535247803,
0.22841930389404297,
-0.9433383345603943,
-0.7822479605674744,
0.22448480129241943,
2.334613084793091,
1.80269455909729,
-0.479349285364151,
-0.15659619867801666,
-1.0194982290267944,
1.406980276107788,
-0.10828910022974014,
0.24337069690227509,
1.9510565996170044,
-0.18737874925136566,
-1.0274640321731567,
1.3027664422988892,
-2.3024754524230957,
0.2124912589788437,
1.917383074760437,
0.20858459174633026,
0.1673031896352768,
-1.3645364046096802,
-0.6942721009254456,
-0.23700127005577087,
-0.3779946267604828,
-1.275192379951477,
0.44919031858444214,
-0.2197984904050827,
-0.66960608959198,
-1.4143599271774292,
0.18680554628372192,
-1.0230695009231567,
-1.5970412492752075,
0.2295096516609192,
1.9006683826446533,
1.9976392984390259,
-0.8995696306228638,
1.5586317777633667,
-0.3689035475254059,
0.16292248666286469,
1.2408558130264282,
1.1726289987564087,
2.947052478790283,
1.8909544944763184,
-1.3248095512390137,
0.6680837273597717,
-0.1574324369430542,
-0.4486682415008545,
1.1782323122024536,
-1.2166171073913574,
1.2528581619262695,
-0.07203997671604156,
-1.1688655614852905,
-1.2032318115234375,
0.9514937400817871,
0.5353230237960815,
0.09038350731134415,
-0.5239498019218445,
1.2058929204940796,
-0.01800752617418766,
1.3278875350952148,
0.6158081293106079,
-0.40384942293167114,
0.7125245332717896,
-0.3365793526172638,
-0.5312733054161072,
1.5334059000015259,
0.13036410510540009,
-1.3787270784378052,
-2.2084977626800537,
-0.20374825596809387,
-0.8219606876373291,
0.10621888935565948,
-0.5700696110725403,
-0.998163104057312,
1.7354536056518555,
0.32407844066619873,
-1.2349333763122559,
-0.21167847514152527,
-0.3543778657913208,
-0.5941720008850098,
2.741443157196045,
-1.3468952178955078,
-0.2049570381641388,
-1.075096845626831,
-0.6451777219772339,
1.60548996925354,
-1.1789296865463257,
-0.20954665541648865,
-1.0584889650344849,
-0.5228258967399597,
-1.3990216255187988,
-0.5802531838417053,
-0.07789195328950882,
-0.7943885326385498,
0.8690202236175537,
0.25834381580352783,
-1.1638206243515015,
-0.4278295934200287,
-0.8634047508239746,
0.9645936489105225,
-0.19946391880512238,
0.14810194075107574,
1.9569424390792847,
0.4195268154144287,
-0.2900167405605316,
0.8005189895629883,
1.1018060445785522,
0.6614426374435425,
-0.6053973436355591,
0.23387549817562103,
-0.6438344120979309,
0.2554047405719757,
-1.3591545820236206,
0.1902540773153305,
-2.8561959266662598,
0.6418667435646057,
0.027260594069957733,
-0.03902919217944145,
0.007303950376808643,
-1.3344204425811768,
1.0234050750732422,
2.6135852336883545,
-1.2581487894058228,
0.4635353982448578,
0.3485942482948303,
1.2090675830841064,
-1.579742670059204,
0.2526106536388397,
-0.4036830961704254,
2.094938278198242,
0.26929786801338196,
1.2794413566589355,
-0.5318158268928528,
-2.3024280071258545,
0.5978044867515564,
-1.2712390422821045,
-1.143776535987854,
0.7828754782676697,
-0.8634587526321411,
0.15041767060756683,
-1.483582615852356,
-0.3470434546470642,
-0.9092586636543274,
-1.204932689666748,
0.7995609045028687,
0.14461800456047058,
0.397053599357605,
-0.6029030680656433,
0.4110918939113617,
-2.274395704269409,
-1.3861217498779297,
-0.3096115291118622,
-0.9327368140220642,
0.5392100214958191,
-0.35376855731010437,
0.6882045269012451,
-0.17711083590984344,
0.04432036727666855,
0.39022544026374817,
1.4698172807693481,
3.479050636291504,
0.22532562911510468,
0.30132588744163513,
-0.20538340508937836,
-0.9112974405288696,
1.415112018585205,
0.9865524768829346,
-0.13225555419921875,
-0.492194265127182,
-1.1535422801971436,
1.2277580499649048,
1.9677083492279053,
0.9472057819366455,
-0.05477200821042061,
-0.9047412872314453,
-0.8179851174354553,
0.05268194526433945,
0.09683014452457428,
0.41775083541870117,
0.8508182764053345,
0.21952009201049805,
0.14395654201507568,
1.4482800960540771,
1.180930256843567,
-0.42793557047843933,
0.436058908700943,
-0.8537172675132751,
-0.5426226258277893,
0.43819481134414673,
0.3303329050540924,
-0.019894838333129883,
0.3825518488883972,
-1.0864289999008179,
-0.1650131791830063,
-0.3742482364177704,
-0.9036059379577637,
-0.7241905927658081,
-0.4127253293991089,
-0.37559521198272705,
1.5296903848648071,
0.1898394376039505,
-0.5639640092849731,
-0.08509883284568787,
-0.7268314361572266,
-0.09130625426769257,
-1.0029813051223755,
0.3057774603366852,
-0.1345592737197876,
-0.21955206990242004,
-0.19305698573589325,
1.7478902339935303,
-0.8905566334724426,
-1.9298169612884521,
0.2003464549779892,
0.2535797655582428,
-0.30338364839553833,
0.2597582936286926,
1.711282730102539,
0.5825849175453186,
1.4725255966186523,
1.3521597385406494,
0.9519827365875244,
-0.6810145378112793,
-1.2351888418197632,
0.6331606507301331,
0.959038496017456,
-1.3502997159957886,
0.6688110828399658,
-0.029272425919771194,
-0.5263016223907471,
0.637137770652771,
1.3992034196853638,
0.48597168922424316,
-2.044915199279785,
0.7807026505470276,
-0.943064272403717,
0.8211808800697327,
0.7578030824661255,
0.6931824684143066,
0.16044721007347107,
0.7942482829093933,
-1.1977771520614624,
-1.1123378276824951,
-0.6989217400550842,
-0.7190146446228027,
1.8903673887252808,
-0.36428239941596985,
0.613503634929657,
-0.266733318567276,
-1.3146789073944092,
-0.13305199146270752,
0.6924779415130615,
0.328228235244751,
-0.5547335743904114,
0.7695267796516418,
-0.5281679630279541,
-1.1352688074111938,
-1.2227493524551392,
-0.5245643854141235,
-0.9908280968666077,
-0.9936037063598633,
0.9859894514083862,
0.855074942111969,
0.24561981856822968,
1.8054101467132568,
0.6684604287147522,
0.1460665464401245,
-2.6032211780548096,
0.8474464416503906,
0.16799065470695496,
0.04259328544139862,
0.8588297963142395,
0.3853670060634613,
0.9588748812675476,
-0.058158375322818756,
0.48795005679130554,
-2.3768668174743652,
2.307570457458496,
-0.22469191253185272,
0.677124559879303,
-0.16219307482242584,
-0.14688439667224884,
1.149368405342102,
0.5497580766677856,
0.4484025835990906,
-0.9965536594390869,
0.5585747361183167,
-0.6291812062263489,
1.2813620567321777,
0.8096570372581482,
-0.8375790119171143,
-0.08664914220571518,
1.3791828155517578,
0.328739732503891,
-0.584327757358551,
-0.9753079414367676,
-1.0490144491195679,
1.014554738998413,
1.711769461631775,
-0.09065224230289459,
-0.06317230314016342,
0.7834542989730835,
0.6500260829925537,
-1.3182227611541748,
0.10332997888326645,
-0.748651921749115,
-0.6690259575843811,
1.7303887605667114,
2.011321783065796,
-0.1995983123779297,
-0.2466495931148529,
-0.6498819589614868,
-1.283104419708252,
0.7514793276786804,
0.015279334969818592,
0.14142082631587982,
0.638047456741333,
-0.6136300563812256,
1.0356484651565552,
0.9429540038108826,
0.9248729348182678,
0.12401571869850159,
0.3193269968032837,
0.3298974633216858,
-0.4713548421859741,
-1.2521891593933105,
-0.19807001948356628,
-1.1123045682907104,
-2.412661552429199,
0.392051637172699,
-0.0709931030869484,
-1.4724479913711548,
0.027445539832115173,
-1.0283150672912598,
0.9230245351791382,
-0.535070538520813,
-1.1111726760864258,
-1.5038700103759766,
0.18703946471214294,
-0.03846712037920952,
0.9281181693077087,
-1.53242826461792,
-0.09678792208433151,
1.1851344108581543,
0.9719581007957458,
-0.7085726857185364,
1.0583451986312866,
0.20857276022434235,
1.0589755773544312,
0.8642646074295044,
-0.374451607465744,
0.48417243361473083,
-0.06100992485880852,
-1.2990763187408447,
0.38790032267570496,
1.0727622509002686,
0.2671419680118561,
1.5665942430496216,
-0.5417926907539368,
0.03533745929598808,
0.37880828976631165,
-0.5031232833862305,
-0.40827056765556335,
-0.5414483547210693,
0.6004081964492798,
0.05935307964682579,
-0.8463936448097229,
-0.02260691300034523,
0.05711493268609047,
-0.213889017701149,
0.20692916214466095,
-1.512401819229126,
-0.05438578873872757,
-0.43411967158317566,
-0.6710015535354614,
-1.114431381225586,
-0.057937707751989365,
1.4632712602615356,
-0.7766373157501221,
-0.23412197828292847,
0.6112778782844543,
0.22169502079486847,
0.5292337536811829,
0.6587928533554077,
-0.6602257490158081,
-0.31625476479530334,
-0.17904147505760193,
-0.3055495619773865,
0.4014245569705963,
1.3926913738250732,
-0.09596239775419235,
-1.0203813314437866,
0.7536931037902832,
-0.36627912521362305,
0.07954074442386627,
1.819277286529541,
0.0028327368199825287,
-0.8396081924438477,
0.24642698466777802,
-0.7477545142173767,
1.9285500049591064,
1.7483596801757812,
1.3765015602111816,
-0.09250185638666153,
-1.0144603252410889,
0.6207213401794434,
-0.31157582998275757,
-0.4625047743320465,
0.8929966688156128,
0.4745223820209503,
-0.21892033517360687,
-1.3871279954910278,
0.7787217497825623,
1.3046324253082275,
-0.8561505675315857,
-0.8565529584884644,
0.16195359826087952,
-0.7256112098693848,
1.1063153743743896,
0.6942418217658997,
0.3080178201198578,
0.2938373386859894,
1.6127526760101318,
0.896665096282959,
-0.4027196764945984,
0.5986369848251343,
0.6068010926246643,
-0.21732085943222046,
-2.162048101425171,
-1.2368648052215576,
0.3203723430633545,
-0.5174232125282288,
-1.7498805522918701,
1.352421522140503,
-1.1871259212493896,
-0.9507990479469299,
0.6182304620742798,
0.14327748119831085,
1.396529197692871,
0.3272683322429657,
1.4986063241958618,
2.0588901042938232,
0.8471426963806152,
0.31558099389076233,
1.2654106616973877,
-0.21861271560192108,
-0.49998921155929565,
1.7807679176330566,
-0.5392653346061707,
0.49038341641426086,
1.0370272397994995,
-0.29666781425476074,
-1.0994186401367188,
-0.7760226726531982,
-1.3826614618301392,
-0.8008608222007751,
1.2055708169937134,
0.09746813774108887,
-1.1015620231628418,
0.1959349364042282,
1.5162509679794312,
0.05477624014019966,
-0.3298499286174774,
0.7812618017196655,
0.4107809066772461,
-0.9535673260688782,
-0.07436895370483398,
-0.8323661088943481,
0.4931831657886505,
-0.13720601797103882,
-0.29554978013038635,
0.2930918037891388,
0.4513000547885895,
1.3479889631271362,
0.007985192351043224,
0.1430329978466034,
1.0929557085037231,
-1.2625328302383423,
1.5073180198669434,
-0.641420304775238,
0.35876381397247314,
-2.447049140930176,
1.3892918825149536,
-0.7627983689308167,
1.9346743822097778,
-2.662968635559082,
0.5116866827011108,
-0.6607394218444824,
-0.388625830411911,
0.3335854113101959,
-0.38492700457572937,
0.12267683446407318,
-0.07642459124326706,
-1.1419109106063843,
-0.06646885722875595,
-0.7012026906013489,
0.6352306008338928,
1.1484861373901367,
1.4455642700195312,
-1.1805157661437988,
-0.20091377198696136,
-1.7775827646255493,
-0.16819560527801514,
-0.7717707753181458,
0.45246821641921997,
-2.017930746078491,
-0.19840160012245178,
-1.8908153772354126,
-2.3719489574432373,
-1.2850450277328491,
-0.7388046979904175,
1.103013515472412,
0.05941769853234291,
-0.79816073179245,
1.202994704246521,
-0.37180981040000916,
-1.8998812437057495,
1.1243796348571777,
-2.1324644088745117
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | I would expect this to work, but it doesn't. Shouldn't be too hard to fix tho (in a subsequent PR). | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 20 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
I would expect this to work, but it doesn't. Shouldn't be too hard to fix tho (in a subsequent PR). | [
-1.2448108196258545,
-0.9718414545059204,
-0.8342286348342896,
1.5007526874542236,
-0.2309616059064865,
-1.2015467882156372,
0.12195834517478943,
-1.0636162757873535,
1.7337102890014648,
-0.852557897567749,
0.3216294050216675,
-1.6462255716323853,
0.008772214874625206,
-0.643004298210144,
-0.7407006621360779,
-0.8430628180503845,
-0.40578392148017883,
-0.7111321687698364,
1.1804497241973877,
2.4786362648010254,
1.1534051895141602,
-1.39116370677948,
2.611177444458008,
0.6798220872879028,
-0.2367982715368271,
-0.985367476940155,
0.45026901364326477,
0.028473425656557083,
-1.2892402410507202,
-0.5021126866340637,
-0.7796863317489624,
-0.02208477258682251,
-0.6228655576705933,
-0.5558999180793762,
-0.03960207849740982,
0.4371485710144043,
-0.38869187235832214,
-0.5895239114761353,
-0.5596756339073181,
-0.7813769578933716,
0.3979909121990204,
-0.49610215425491333,
0.8755814433097839,
-0.3129313886165619,
1.7382835149765015,
-0.6279249787330627,
0.4216032922267914,
0.7197178602218628,
1.314867377281189,
0.2545287013053894,
-0.016666971147060394,
0.4161483943462372,
0.3005499541759491,
-0.06425401568412781,
0.5284162759780884,
1.068335771560669,
0.6661033630371094,
0.5238942503929138,
0.7406480312347412,
-2.358097553253174,
1.2888832092285156,
-1.1346442699432373,
0.300465852022171,
1.417871117591858,
-0.8718801736831665,
0.36172565817832947,
-1.7347238063812256,
-0.025661956518888474,
0.6115919947624207,
-2.2041501998901367,
0.3765925467014313,
-1.271607756614685,
-0.45664548873901367,
1.081153392791748,
0.4155065417289734,
-1.1188852787017822,
0.08254437148571014,
-0.46282336115837097,
1.0448726415634155,
0.41615983843803406,
1.0689976215362549,
-1.6745444536209106,
-0.020908601582050323,
-0.3487076759338379,
0.16583307087421417,
-1.3493632078170776,
-1.510632872581482,
0.4984809458255768,
0.6142207980155945,
0.6480729579925537,
-0.11097961664199829,
1.0572950839996338,
-0.9389006495475769,
0.6394557952880859,
-1.0250757932662964,
-1.7332738637924194,
-1.4215097427368164,
-2.178464412689209,
-2.2898108959198,
0.6408655047416687,
-0.4367866814136505,
-0.5648317933082581,
2.078500509262085,
-0.9361716508865356,
-1.8903834819793701,
1.1817069053649902,
0.3169872760772705,
-0.05121161416172981,
2.3710098266601562,
0.2122187465429306,
-0.6956813931465149,
0.5277427434921265,
-0.8063942790031433,
0.8194289207458496,
-0.40128451585769653,
1.379455804824829,
0.4025515913963318,
-1.0360223054885864,
1.5844261646270752,
-0.40681329369544983,
0.6089136600494385,
-0.6273481249809265,
-0.43672969937324524,
-0.8798755407333374,
0.34095022082328796,
1.9273362159729004,
-0.16602227091789246,
1.5317740440368652,
-0.45407816767692566,
-1.646000623703003,
-1.6479252576828003,
0.947812020778656,
0.5662352442741394,
-0.6906254887580872,
0.24247249960899353,
-0.3372145891189575,
0.18273724615573883,
-0.09164062142372131,
1.171912431716919,
1.2949862480163574,
0.7990085482597351,
-0.3064013421535492,
-0.8235214948654175,
0.21279150247573853,
-0.01495794765651226,
-0.7402328848838806,
-1.7496650218963623,
-0.32510727643966675,
0.15667209029197693,
0.6251465678215027,
-1.2621992826461792,
1.7555309534072876,
0.8935043215751648,
1.9496515989303589,
0.9877364039421082,
-0.4058845043182373,
1.4343645572662354,
0.1230427622795105,
1.808967113494873,
-0.4578329920768738,
0.7874138355255127,
-0.27853089570999146,
-1.104889154434204,
0.8443114161491394,
-0.26948556303977966,
-2.064152479171753,
-0.7896008491516113,
-0.7193492650985718,
-0.25099658966064453,
-0.7564977407455444,
0.8711589574813843,
-0.302502304315567,
-1.3958981037139893,
0.16800783574581146,
-0.7834990620613098,
0.22699223458766937,
-1.2435226440429688,
0.24833282828330994,
0.7322136163711548,
-0.6765954494476318,
0.09874041378498077,
-0.2594001591205597,
-1.276647925376892,
-0.42085281014442444,
0.23662520945072174,
1.8629710674285889,
-0.7249180674552917,
0.8678504228591919,
1.0296218395233154,
-0.7044068574905396,
-0.026813793927431107,
0.25088268518447876,
-0.20448589324951172,
0.8248445391654968,
-1.0102572441101074,
-0.4894231855869293,
1.2272602319717407,
-0.18954741954803467,
-0.6502053737640381,
1.5250111818313599,
0.6490258574485779,
-1.0218101739883423,
-0.13455399870872498,
-0.1987791508436203,
-0.829776406288147,
-0.05063559487462044,
-1.609312891960144,
-0.0706092119216919,
0.5193160176277161,
-1.5296428203582764,
-0.4596771001815796,
-0.20240366458892822,
1.2990039587020874,
-0.2949765920639038,
1.361061453819275,
-0.4099724292755127,
-0.1753726750612259,
-0.2912498116493225,
-0.3439094126224518,
0.178910031914711,
-0.10681547224521637,
-0.7099411487579346,
0.08411513268947601,
-0.8080757856369019,
0.39489683508872986,
1.4701648950576782,
0.3564014434814453,
0.02262111008167267,
0.43094590306282043,
1.1015735864639282,
0.37303879857063293,
-0.015188852325081825,
-0.9172908067703247,
-1.518831491470337,
1.9327914714813232,
-1.3920488357543945,
1.9958657026290894,
0.7326534390449524,
0.050164468586444855,
-1.821340560913086,
-1.782738208770752,
1.3905264139175415,
1.131924033164978,
2.36698842048645,
0.6639420390129089,
0.49163874983787537,
-0.8882482647895813,
-0.6649882793426514,
0.2219843715429306,
-0.9528924822807312,
-0.7972996830940247,
0.2285330444574356,
2.2995996475219727,
1.7704750299453735,
-0.45102590322494507,
-0.11445686221122742,
-1.0194134712219238,
1.4134581089019775,
-0.1315462738275528,
0.24423563480377197,
1.9507765769958496,
-0.204102024435997,
-1.0445901155471802,
1.282434344291687,
-2.2778944969177246,
0.2022305130958557,
1.9376860857009888,
0.2165125459432602,
0.1453586369752884,
-1.3554390668869019,
-0.7301681041717529,
-0.25378578901290894,
-0.3267444670200348,
-1.2920325994491577,
0.42724040150642395,
-0.2123810350894928,
-0.6430558562278748,
-1.406080722808838,
0.22694699466228485,
-1.037132740020752,
-1.5880285501480103,
0.23832406103610992,
1.8581286668777466,
1.9929636716842651,
-0.9042063355445862,
1.5385304689407349,
-0.3559662401676178,
0.17251600325107574,
1.2125391960144043,
1.1152511835098267,
2.911039113998413,
1.916440725326538,
-1.308544635772705,
0.6678589582443237,
-0.13768523931503296,
-0.46407920122146606,
1.228424072265625,
-1.1811760663986206,
1.2716563940048218,
-0.09671777486801147,
-1.1441655158996582,
-1.2913488149642944,
0.9609131217002869,
0.5422624945640564,
0.07834267616271973,
-0.5515204668045044,
1.2371916770935059,
-0.015297498553991318,
1.3388793468475342,
0.5941820740699768,
-0.41308465600013733,
0.7075782418251038,
-0.39170315861701965,
-0.5357187390327454,
1.5818579196929932,
0.15225841104984283,
-1.4037009477615356,
-2.255152702331543,
-0.18597297370433807,
-0.7933386564254761,
0.11920066177845001,
-0.5842622518539429,
-0.9768654704093933,
1.7633603811264038,
0.33763957023620605,
-1.2583107948303223,
-0.2607859969139099,
-0.3576647937297821,
-0.6676191687583923,
2.7711527347564697,
-1.3572039604187012,
-0.1636779010295868,
-1.0560650825500488,
-0.6787463426589966,
1.5969278812408447,
-1.2106660604476929,
-0.18638277053833008,
-1.0441842079162598,
-0.530448317527771,
-1.3945753574371338,
-0.6043534278869629,
-0.10396537184715271,
-0.8238548636436462,
0.8546136617660522,
0.24486160278320312,
-1.1807048320770264,
-0.4462693929672241,
-0.8658053278923035,
0.9164029955863953,
-0.19771739840507507,
0.1957651972770691,
1.9161651134490967,
0.438434362411499,
-0.28792083263397217,
0.8149867653846741,
1.0981074571609497,
0.6456401348114014,
-0.5959216356277466,
0.22392332553863525,
-0.6572292447090149,
0.2557711601257324,
-1.286231517791748,
0.20366288721561432,
-2.8700923919677734,
0.6622868180274963,
0.005155165679752827,
0.016789067536592484,
-0.013627712614834309,
-1.2513325214385986,
1.0636547803878784,
2.623667001724243,
-1.2811617851257324,
0.5066385865211487,
0.33504870533943176,
1.1748850345611572,
-1.604280948638916,
0.26347798109054565,
-0.3836936950683594,
2.131746292114258,
0.24650496244430542,
1.2777680158615112,
-0.5452932119369507,
-2.2947280406951904,
0.622943103313446,
-1.256740927696228,
-1.2092701196670532,
0.8086004257202148,
-0.8738449811935425,
0.12591271102428436,
-1.487993836402893,
-0.38727274537086487,
-0.889722466468811,
-1.2299424409866333,
0.800717830657959,
0.10662516951560974,
0.4415668249130249,
-0.5849583148956299,
0.3793070614337921,
-2.3395421504974365,
-1.404966115951538,
-0.32348519563674927,
-0.9510834813117981,
0.5239453911781311,
-0.3438512980937958,
0.6951655745506287,
-0.18357694149017334,
0.09559467434883118,
0.3667031526565552,
1.4674838781356812,
3.4665751457214355,
0.24532634019851685,
0.3467700779438019,
-0.20746372640132904,
-0.8827504515647888,
1.3820143938064575,
0.9696871042251587,
-0.11474531888961792,
-0.46484196186065674,
-1.1344472169876099,
1.2372468709945679,
1.9613897800445557,
0.9473587870597839,
-0.028649235144257545,
-0.8874083161354065,
-0.7802653908729553,
-0.015893330797553062,
0.05975417420268059,
0.40912002325057983,
0.841986894607544,
0.23477619886398315,
0.1860761046409607,
1.4288009405136108,
1.2009410858154297,
-0.4273015558719635,
0.4169439375400543,
-0.8159604668617249,
-0.4862040877342224,
0.46971940994262695,
0.3422411382198334,
-0.0301256962120533,
0.41011282801628113,
-1.0229369401931763,
-0.13695843517780304,
-0.3742988407611847,
-0.9249104857444763,
-0.7291242480278015,
-0.4325192868709564,
-0.39667144417762756,
1.5745201110839844,
0.17743363976478577,
-0.5329131484031677,
-0.06087103113532066,
-0.7557288408279419,
-0.05155947804450989,
-1.002413034439087,
0.261648029088974,
-0.12694162130355835,
-0.21678051352500916,
-0.1935371309518814,
1.8117693662643433,
-0.9403592348098755,
-1.940380573272705,
0.22425217926502228,
0.27778148651123047,
-0.297417014837265,
0.22771722078323364,
1.7224540710449219,
0.5859864950180054,
1.4754714965820312,
1.3555021286010742,
0.9606577754020691,
-0.727702796459198,
-1.254294753074646,
0.6018781661987305,
1.0200767517089844,
-1.3328418731689453,
0.6465029716491699,
0.022233996540308,
-0.4774574637413025,
0.643679141998291,
1.390488862991333,
0.4997693598270416,
-1.9837466478347778,
0.7601512670516968,
-0.9448281526565552,
0.7913616895675659,
0.7603302597999573,
0.637749433517456,
0.15478788316249847,
0.7919941544532776,
-1.137546181678772,
-1.1186182498931885,
-0.6975117325782776,
-0.7153404355049133,
1.862126111984253,
-0.37150147557258606,
0.591355562210083,
-0.2325270175933838,
-1.2915294170379639,
-0.10245287418365479,
0.6956750750541687,
0.36314162611961365,
-0.48403191566467285,
0.765464186668396,
-0.5021132826805115,
-1.1555362939834595,
-1.2734663486480713,
-0.48396381735801697,
-0.9861188530921936,
-1.001674771308899,
1.0042591094970703,
0.840685248374939,
0.20593886077404022,
1.789321780204773,
0.6876474618911743,
0.150661900639534,
-2.6137678623199463,
0.8133623600006104,
0.17440584301948547,
0.06346961855888367,
0.8707928657531738,
0.4255259931087494,
0.9666739106178284,
-0.08332796394824982,
0.4407399892807007,
-2.335529327392578,
2.323397159576416,
-0.24232815206050873,
0.6529368758201599,
-0.16162621974945068,
-0.115897536277771,
1.117368221282959,
0.538788914680481,
0.45484575629234314,
-1.0268709659576416,
0.5883181095123291,
-0.6398969292640686,
1.2864762544631958,
0.8387213349342346,
-0.806795060634613,
-0.11460511386394501,
1.4092994928359985,
0.2951805293560028,
-0.5981979370117188,
-0.9674426317214966,
-1.0345818996429443,
1.0049552917480469,
1.725264072418213,
-0.07654371857643127,
-0.09228862822055817,
0.8029257655143738,
0.6499914526939392,
-1.3304246664047241,
0.10028377175331116,
-0.7703589797019958,
-0.6911598443984985,
1.7189191579818726,
2.025153398513794,
-0.1401566118001938,
-0.2819327712059021,
-0.7173503637313843,
-1.2950785160064697,
0.7411904335021973,
0.03986828774213791,
0.12109149992465973,
0.6390538811683655,
-0.5979833602905273,
1.0247318744659424,
0.9885383248329163,
0.9046130180358887,
0.13718438148498535,
0.29815906286239624,
0.3231161832809448,
-0.4379635453224182,
-1.2586536407470703,
-0.1878042072057724,
-1.1371983289718628,
-2.4196882247924805,
0.3662910461425781,
-0.14644834399223328,
-1.4764748811721802,
-0.023538250476121902,
-1.0422989130020142,
0.9281064867973328,
-0.5107828378677368,
-1.1218557357788086,
-1.5238592624664307,
0.16463081538677216,
-0.03430015593767166,
0.9373234510421753,
-1.5193229913711548,
-0.08507540822029114,
1.1735047101974487,
0.9743419289588928,
-0.731305718421936,
1.0775063037872314,
0.18999545276165009,
1.0632973909378052,
0.8616255521774292,
-0.4052334129810333,
0.48432639241218567,
-0.047318823635578156,
-1.287140130996704,
0.41069653630256653,
1.0438222885131836,
0.25323960185050964,
1.575304388999939,
-0.5505418181419373,
0.03278416022658348,
0.3139972686767578,
-0.46038302779197693,
-0.37381264567375183,
-0.5756781101226807,
0.6574195623397827,
0.06368601322174072,
-0.8305677175521851,
0.04709137976169586,
0.035158995538949966,
-0.17758573591709137,
0.22136946022510529,
-1.5295146703720093,
-0.02600737474858761,
-0.4214504063129425,
-0.7037575840950012,
-1.1015772819519043,
-0.04851040616631508,
1.462035059928894,
-0.7987090945243835,
-0.19372309744358063,
0.6155790686607361,
0.2596230208873749,
0.5603626370429993,
0.6668830513954163,
-0.6369342803955078,
-0.3300684988498688,
-0.2028040587902069,
-0.2705726623535156,
0.41014641523361206,
1.3714607954025269,
-0.09910008311271667,
-1.0027681589126587,
0.7704678177833557,
-0.3389705717563629,
0.06869970262050629,
1.838210105895996,
0.04061504080891609,
-0.8981767892837524,
0.2601706087589264,
-0.7659528851509094,
1.9191986322402954,
1.744265079498291,
1.353804111480713,
-0.04749288409948349,
-1.0643728971481323,
0.663780689239502,
-0.30520686507225037,
-0.49007388949394226,
0.8778668642044067,
0.4891986846923828,
-0.242119699716568,
-1.3818864822387695,
0.7624720931053162,
1.260678768157959,
-0.7974862456321716,
-0.9054250121116638,
0.16035406291484833,
-0.7506812214851379,
1.077322244644165,
0.683472216129303,
0.3527851104736328,
0.27436745166778564,
1.6374223232269287,
0.8970164060592651,
-0.42198774218559265,
0.5659149289131165,
0.6323200464248657,
-0.2488054484128952,
-2.0911943912506104,
-1.237199306488037,
0.3223974108695984,
-0.5320967435836792,
-1.7429205179214478,
1.3907966613769531,
-1.1940438747406006,
-0.9373399615287781,
0.6450571417808533,
0.15241442620754242,
1.4051014184951782,
0.26150330901145935,
1.526982307434082,
2.046379327774048,
0.8588910698890686,
0.335750013589859,
1.284840703010559,
-0.2705770432949066,
-0.519582211971283,
1.814250111579895,
-0.5278440713882446,
0.47763994336128235,
1.0673848390579224,
-0.28579404950141907,
-1.0543134212493896,
-0.7811589241027832,
-1.3430886268615723,
-0.7723167538642883,
1.200949788093567,
0.14796939492225647,
-1.1143181324005127,
0.14217615127563477,
1.5334818363189697,
0.07747352123260498,
-0.3278003931045532,
0.7255121469497681,
0.4188348948955536,
-0.9470462799072266,
-0.03825538605451584,
-0.8789840936660767,
0.4772132337093353,
-0.14089664816856384,
-0.24050699174404144,
0.26976969838142395,
0.4544232487678528,
1.3478777408599854,
-0.0066060228273272514,
0.16822275519371033,
1.114619493484497,
-1.2285679578781128,
1.4747331142425537,
-0.6003993153572083,
0.36153683066368103,
-2.4207911491394043,
1.3711687326431274,
-0.7355889081954956,
1.9145649671554565,
-2.672889232635498,
0.4708860218524933,
-0.7119659185409546,
-0.37052255868911743,
0.3358355462551117,
-0.42985495924949646,
0.12835536897182465,
-0.06981846690177917,
-1.1728817224502563,
-0.11190424859523773,
-0.6945641040802002,
0.6070247292518616,
1.136857032775879,
1.4535726308822632,
-1.1489943265914917,
-0.21866637468338013,
-1.7861887216567993,
-0.15387456119060516,
-0.7373915314674377,
0.47629064321517944,
-1.9985766410827637,
-0.19805224239826202,
-1.911529541015625,
-2.37246036529541,
-1.341808557510376,
-0.7038295269012451,
1.0753263235092163,
0.04133792966604233,
-0.7796685695648193,
1.1774041652679443,
-0.33866897225379944,
-1.8844655752182007,
1.1448156833648682,
-2.0808658599853516
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | Hi @mariosasko just wanted to check in if there is a PR to follow for this. I was looking to create a demo app using this. If it's not working I can just use byte encoded images in the dataset which are not displayed. | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 44 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
Hi @mariosasko just wanted to check in if there is a PR to follow for this. I was looking to create a demo app using this. If it's not working I can just use byte encoded images in the dataset which are not displayed. | [
-1.2421504259109497,
-0.9620027542114258,
-0.8377519845962524,
1.494523286819458,
-0.24212118983268738,
-1.1972159147262573,
0.1319531351327896,
-1.0886069536209106,
1.7382419109344482,
-0.8545240163803101,
0.32184818387031555,
-1.6496938467025757,
0.024424854665994644,
-0.6168657541275024,
-0.7690229415893555,
-0.8315033912658691,
-0.3959963321685791,
-0.734076201915741,
1.1939318180084229,
2.4771347045898438,
1.158170461654663,
-1.3911757469177246,
2.615586519241333,
0.6624279022216797,
-0.23443856835365295,
-0.9904690980911255,
0.45197418332099915,
0.02725616842508316,
-1.2834585905075073,
-0.47863537073135376,
-0.7835444808006287,
-0.01760048419237137,
-0.6429921984672546,
-0.5529762506484985,
-0.04122866317629814,
0.4305824637413025,
-0.4079618453979492,
-0.5703060030937195,
-0.5661617517471313,
-0.7915254831314087,
0.40374743938446045,
-0.4826149642467499,
0.8895344138145447,
-0.3195125460624695,
1.7769505977630615,
-0.6206430792808533,
0.40529370307922363,
0.7356781363487244,
1.2688566446304321,
0.22631871700286865,
-0.01326607447117567,
0.3959696888923645,
0.31196510791778564,
-0.06597624719142914,
0.4883355498313904,
1.083930492401123,
0.6437248587608337,
0.5394778251647949,
0.7405382990837097,
-2.351456880569458,
1.3173844814300537,
-1.0858275890350342,
0.3213266134262085,
1.4185782670974731,
-0.8846203088760376,
0.3625068664550781,
-1.7458109855651855,
-0.03041251003742218,
0.6075848937034607,
-2.18033766746521,
0.3725965619087219,
-1.2787681818008423,
-0.4750252366065979,
1.0723257064819336,
0.41695716977119446,
-1.117272138595581,
0.10245852172374725,
-0.4677135646343231,
1.027429461479187,
0.41824066638946533,
1.0984777212142944,
-1.695523977279663,
-0.03662961348891258,
-0.3556884229183197,
0.183045893907547,
-1.3455458879470825,
-1.5335793495178223,
0.5354106426239014,
0.6330630779266357,
0.6366187334060669,
-0.13698500394821167,
1.0689512491226196,
-0.949888288974762,
0.6772676110267639,
-1.021223545074463,
-1.7406519651412964,
-1.4157570600509644,
-2.1984171867370605,
-2.291022300720215,
0.6355744004249573,
-0.4475691020488739,
-0.5528373718261719,
2.11238169670105,
-0.9415918588638306,
-1.8559757471084595,
1.180511713027954,
0.3041207194328308,
-0.0548875518143177,
2.3355095386505127,
0.21856629848480225,
-0.7078736424446106,
0.5249036550521851,
-0.7875065803527832,
0.8358426690101624,
-0.38825109601020813,
1.3621699810028076,
0.4110214114189148,
-1.0462779998779297,
1.573249101638794,
-0.4029886722564697,
0.6140401363372803,
-0.6200807690620422,
-0.4441484808921814,
-0.8740696907043457,
0.33645182847976685,
1.9207969903945923,
-0.1825125515460968,
1.5436992645263672,
-0.46050748229026794,
-1.6481701135635376,
-1.6742109060287476,
0.9491204023361206,
0.5901941061019897,
-0.676104724407196,
0.23538903892040253,
-0.3346942067146301,
0.1896865963935852,
-0.0900699645280838,
1.1734004020690918,
1.3005454540252686,
0.8002828359603882,
-0.3200627863407135,
-0.840532124042511,
0.20315517485141754,
-0.04043102636933327,
-0.7369276285171509,
-1.7600630521774292,
-0.3065451383590698,
0.1624252200126648,
0.6177916526794434,
-1.2404509782791138,
1.7619558572769165,
0.9195474982261658,
1.9688576459884644,
0.9910081624984741,
-0.3969350755214691,
1.4070119857788086,
0.12395476549863815,
1.7964160442352295,
-0.44474318623542786,
0.774318516254425,
-0.2977569103240967,
-1.1191200017929077,
0.8481333255767822,
-0.24681898951530457,
-2.05167555809021,
-0.8004485964775085,
-0.7443492412567139,
-0.257257878780365,
-0.7369362115859985,
0.8659625053405762,
-0.28810033202171326,
-1.3879119157791138,
0.18647685647010803,
-0.7617119550704956,
0.2167189121246338,
-1.2447221279144287,
0.2276730090379715,
0.7224287986755371,
-0.6838159561157227,
0.10501506924629211,
-0.23262865841388702,
-1.2739942073822021,
-0.41821178793907166,
0.24247291684150696,
1.8718287944793701,
-0.7203366756439209,
0.8942780494689941,
1.0282964706420898,
-0.7030162811279297,
-0.009042431600391865,
0.25413432717323303,
-0.22065360844135284,
0.8193783164024353,
-1.0276917219161987,
-0.4851320683956146,
1.2029297351837158,
-0.20245498418807983,
-0.665020227432251,
1.5052056312561035,
0.6366984248161316,
-1.011620283126831,
-0.13845446705818176,
-0.19906766712665558,
-0.8109899163246155,
-0.04568945989012718,
-1.6084046363830566,
-0.09111220389604568,
0.4880523085594177,
-1.5364035367965698,
-0.4786572754383087,
-0.23960071802139282,
1.2743358612060547,
-0.3125561475753784,
1.3618698120117188,
-0.38874536752700806,
-0.17091244459152222,
-0.3131842315196991,
-0.3513123095035553,
0.16206678748130798,
-0.08579466491937637,
-0.693697988986969,
0.09626521915197372,
-0.8218657970428467,
0.38951820135116577,
1.446516990661621,
0.33747023344039917,
0.03335459530353546,
0.411097913980484,
1.0913705825805664,
0.3568275272846222,
-0.014088070020079613,
-0.9041056632995605,
-1.5226659774780273,
1.923666000366211,
-1.4021066427230835,
2.0080742835998535,
0.7672476768493652,
0.0741342082619667,
-1.8416041135787964,
-1.7959431409835815,
1.3871119022369385,
1.1337471008300781,
2.3704323768615723,
0.655290961265564,
0.48420923948287964,
-0.8720645308494568,
-0.6718326210975647,
0.23090484738349915,
-0.9412155747413635,
-0.7955126762390137,
0.21610623598098755,
2.3166656494140625,
1.7430307865142822,
-0.45288488268852234,
-0.10716181993484497,
-1.0072877407073975,
1.4079594612121582,
-0.10838111490011215,
0.24457111954689026,
1.9559918642044067,
-0.21899725496768951,
-1.0427523851394653,
1.2494007349014282,
-2.2786738872528076,
0.19743607938289642,
1.9449418783187866,
0.20755882561206818,
0.1304684281349182,
-1.3524962663650513,
-0.700928270816803,
-0.24782024323940277,
-0.3486602008342743,
-1.2962777614593506,
0.43440884351730347,
-0.22136633098125458,
-0.6506136059761047,
-1.4194531440734863,
0.24200236797332764,
-1.0554206371307373,
-1.5752164125442505,
0.23734061419963837,
1.8925528526306152,
1.9837908744812012,
-0.9147223830223083,
1.5264203548431396,
-0.35267117619514465,
0.1596398502588272,
1.2029941082000732,
1.1282991170883179,
2.9423582553863525,
1.9266846179962158,
-1.3242236375808716,
0.6581461429595947,
-0.1331959217786789,
-0.45832186937332153,
1.2238794565200806,
-1.1534903049468994,
1.2605897188186646,
-0.10859362781047821,
-1.1608177423477173,
-1.3037245273590088,
0.9801602363586426,
0.5616481900215149,
0.07885336875915527,
-0.5230010151863098,
1.2542381286621094,
0.013001375831663609,
1.334815263748169,
0.5936830043792725,
-0.39507922530174255,
0.7309098243713379,
-0.3862713873386383,
-0.5220285654067993,
1.5676920413970947,
0.13606484234333038,
-1.3809583187103271,
-2.2546708583831787,
-0.2245888113975525,
-0.8064777851104736,
0.12280794233083725,
-0.5786017179489136,
-0.9854952692985535,
1.7437570095062256,
0.34099918603897095,
-1.2695074081420898,
-0.2400762289762497,
-0.36738765239715576,
-0.6765926480293274,
2.7032196521759033,
-1.343698501586914,
-0.1758458912372589,
-1.0552234649658203,
-0.6943143606185913,
1.5898480415344238,
-1.2197550535202026,
-0.20120061933994293,
-1.040324330329895,
-0.532370924949646,
-1.3980493545532227,
-0.5934091806411743,
-0.0894026905298233,
-0.8027322292327881,
0.8463571667671204,
0.2522718012332916,
-1.177473783493042,
-0.4226054251194,
-0.8573459982872009,
0.9261967539787292,
-0.19590866565704346,
0.17695239186286926,
1.9171812534332275,
0.43233004212379456,
-0.31624025106430054,
0.8048528432846069,
1.1005595922470093,
0.6650902032852173,
-0.6116413474082947,
0.23308338224887848,
-0.6529077887535095,
0.24245896935462952,
-1.297093391418457,
0.22202715277671814,
-2.8677704334259033,
0.669421911239624,
-0.004911988042294979,
-0.0038314620032906532,
0.005568353459239006,
-1.266892671585083,
1.0360413789749146,
2.6181886196136475,
-1.2680566310882568,
0.49512091279029846,
0.33747702836990356,
1.146699070930481,
-1.606756329536438,
0.2782750725746155,
-0.3899778127670288,
2.123685121536255,
0.25450897216796875,
1.2715446949005127,
-0.5496511459350586,
-2.272841215133667,
0.5892764329910278,
-1.2324109077453613,
-1.2139408588409424,
0.8363164663314819,
-0.8675253987312317,
0.1247735396027565,
-1.4638423919677734,
-0.39679020643234253,
-0.9125122427940369,
-1.2530845403671265,
0.7979282736778259,
0.10966794192790985,
0.4592001736164093,
-0.618296205997467,
0.3729889392852783,
-2.340712785720825,
-1.398174524307251,
-0.3070719242095947,
-0.9601722955703735,
0.5225926637649536,
-0.33669090270996094,
0.707981288433075,
-0.1698751151561737,
0.125551238656044,
0.35130661725997925,
1.474145770072937,
3.5048434734344482,
0.2260724902153015,
0.3323253095149994,
-0.20385189354419708,
-0.8963130116462708,
1.3942347764968872,
0.9818963408470154,
-0.10121005028486252,
-0.4777332842350006,
-1.1427706480026245,
1.2171632051467896,
1.9880799055099487,
0.9183806777000427,
-0.03293405845761299,
-0.8859381079673767,
-0.7770283818244934,
0.022097326815128326,
0.08515942841768265,
0.44228479266166687,
0.8279892802238464,
0.24444502592086792,
0.19581493735313416,
1.422025442123413,
1.214004397392273,
-0.4346120059490204,
0.4126788377761841,
-0.8271675705909729,
-0.5229030251502991,
0.4378235936164856,
0.3519601821899414,
-0.01452428288757801,
0.39323773980140686,
-1.0330337285995483,
-0.1699703335762024,
-0.35840997099876404,
-0.966349720954895,
-0.7237231731414795,
-0.4169446527957916,
-0.39272406697273254,
1.5663065910339355,
0.15604574978351593,
-0.5025919079780579,
-0.05784546211361885,
-0.7480483055114746,
-0.05809688940644264,
-0.9995121359825134,
0.25208476185798645,
-0.12561151385307312,
-0.22510284185409546,
-0.1724759042263031,
1.8129775524139404,
-0.9340024590492249,
-1.9306141138076782,
0.22037295997142792,
0.26798883080482483,
-0.31131184101104736,
0.20946837961673737,
1.7266054153442383,
0.5686637759208679,
1.4713016748428345,
1.3387316465377808,
0.9570105671882629,
-0.7128722071647644,
-1.254697561264038,
0.6039028763771057,
0.9802312850952148,
-1.3329129219055176,
0.6562077403068542,
0.007764051668345928,
-0.48779982328414917,
0.6612940430641174,
1.3864784240722656,
0.5270612239837646,
-1.9998303651809692,
0.7540560364723206,
-0.9465163350105286,
0.7928627133369446,
0.754926860332489,
0.6551544666290283,
0.1385444849729538,
0.7947918772697449,
-1.1503905057907104,
-1.094325304031372,
-0.6754190921783447,
-0.7112476825714111,
1.8825657367706299,
-0.35793519020080566,
0.5638469457626343,
-0.23749086260795593,
-1.3050915002822876,
-0.103212870657444,
0.7094833850860596,
0.3499717712402344,
-0.4833516478538513,
0.7482219338417053,
-0.5142879486083984,
-1.127793550491333,
-1.2967309951782227,
-0.4640214741230011,
-0.996667742729187,
-0.9909430146217346,
0.9894475340843201,
0.8523895740509033,
0.21915116906166077,
1.8124769926071167,
0.6768354177474976,
0.1498231738805771,
-2.6040637493133545,
0.8270826935768127,
0.18308702111244202,
0.043797507882118225,
0.8977802395820618,
0.40555718541145325,
0.9750385284423828,
-0.06590380519628525,
0.46485841274261475,
-2.3299567699432373,
2.317401170730591,
-0.2480052411556244,
0.658180832862854,
-0.15161080658435822,
-0.1434399038553238,
1.1407266855239868,
0.548373281955719,
0.46271711587905884,
-1.0276695489883423,
0.5901309251785278,
-0.6413772106170654,
1.274951696395874,
0.8451301455497742,
-0.8060696125030518,
-0.1116497591137886,
1.4032753705978394,
0.3131459653377533,
-0.5841225981712341,
-0.9697257876396179,
-1.0516191720962524,
0.991157054901123,
1.7431596517562866,
-0.07744430005550385,
-0.09303966909646988,
0.7901994585990906,
0.6265523433685303,
-1.3299940824508667,
0.13022421300411224,
-0.7878193259239197,
-0.7060679793357849,
1.7197476625442505,
2.020181894302368,
-0.1326870620250702,
-0.28099584579467773,
-0.7018856406211853,
-1.2877331972122192,
0.764596700668335,
0.029377512633800507,
0.11363386362791061,
0.6253885626792908,
-0.6230206489562988,
1.0382215976715088,
0.9787893295288086,
0.9317811131477356,
0.11085844784975052,
0.27873432636260986,
0.3321332335472107,
-0.4312491714954376,
-1.2261854410171509,
-0.16863742470741272,
-1.0996345281600952,
-2.434312343597412,
0.3856809437274933,
-0.13130730390548706,
-1.470512866973877,
-0.03285885974764824,
-1.043729543685913,
0.9075498580932617,
-0.49980831146240234,
-1.1271398067474365,
-1.538909912109375,
0.14495150744915009,
-0.03443850949406624,
0.9445552825927734,
-1.5252773761749268,
-0.08858216553926468,
1.1921716928482056,
0.9612453579902649,
-0.7240914106369019,
1.0945967435836792,
0.19024930894374847,
1.0348807573318481,
0.8853034973144531,
-0.39477792382240295,
0.4812031686306,
-0.023941926658153534,
-1.2766780853271484,
0.3969627022743225,
1.0473910570144653,
0.24240919947624207,
1.5800758600234985,
-0.5317893624305725,
0.04559509456157684,
0.3434712588787079,
-0.4477629065513611,
-0.39512544870376587,
-0.5515496730804443,
0.6261320114135742,
0.06727845966815948,
-0.8149074912071228,
0.0625419020652771,
0.015839669853448868,
-0.18854334950447083,
0.22517478466033936,
-1.5037686824798584,
-0.031101152300834656,
-0.4148443937301636,
-0.6875038146972656,
-1.123784065246582,
-0.0244925357401371,
1.4647667407989502,
-0.7843264937400818,
-0.21132105588912964,
0.6022442579269409,
0.27567464113235474,
0.5491456985473633,
0.650198757648468,
-0.6454975605010986,
-0.3417057394981384,
-0.21761932969093323,
-0.2565877437591553,
0.4085962176322937,
1.3623098134994507,
-0.11335505545139313,
-1.0217081308364868,
0.7663896679878235,
-0.370282918214798,
0.07468777149915695,
1.8325868844985962,
0.04581790417432785,
-0.8937854170799255,
0.2578199505805969,
-0.7541645765304565,
1.925726056098938,
1.7427171468734741,
1.3775627613067627,
-0.01453140564262867,
-1.070691704750061,
0.6589043736457825,
-0.30175116658210754,
-0.48108476400375366,
0.9234548211097717,
0.49224886298179626,
-0.2332105189561844,
-1.3836909532546997,
0.7371581196784973,
1.2880357503890991,
-0.8040863275527954,
-0.9026585221290588,
0.1558646410703659,
-0.7329590320587158,
1.0929509401321411,
0.6898728013038635,
0.386599600315094,
0.27670538425445557,
1.6080597639083862,
0.8826358914375305,
-0.43561428785324097,
0.5901083946228027,
0.592319130897522,
-0.23062273859977722,
-2.0961239337921143,
-1.2420027256011963,
0.33899936079978943,
-0.5309793949127197,
-1.7485357522964478,
1.4164597988128662,
-1.1806517839431763,
-0.9857288599014282,
0.6280409097671509,
0.09260126203298569,
1.3872345685958862,
0.25276991724967957,
1.549345850944519,
2.021834135055542,
0.8719638586044312,
0.3435363471508026,
1.293281078338623,
-0.2595801055431366,
-0.5276473164558411,
1.7991045713424683,
-0.557055652141571,
0.46930015087127686,
1.0823110342025757,
-0.2796219289302826,
-1.046744465827942,
-0.7942602634429932,
-1.2996362447738647,
-0.7687047719955444,
1.1919180154800415,
0.13657736778259277,
-1.090901494026184,
0.17884290218353271,
1.5476771593093872,
0.09704294055700302,
-0.3218049108982086,
0.7397794723510742,
0.40839245915412903,
-0.9707210063934326,
-0.05472605302929878,
-0.8676603436470032,
0.4953819811344147,
-0.14015279710292816,
-0.2521311938762665,
0.28742244839668274,
0.4277263283729553,
1.3385049104690552,
-0.0205274298787117,
0.15438242256641388,
1.1421934366226196,
-1.2547205686569214,
1.4919767379760742,
-0.5891600847244263,
0.3581599295139313,
-2.4464831352233887,
1.3774832487106323,
-0.7311756610870361,
1.9114340543746948,
-2.656975507736206,
0.4659970998764038,
-0.6962538957595825,
-0.36469802260398865,
0.3666369616985321,
-0.40496793389320374,
0.15895609557628632,
-0.1017342060804367,
-1.1608155965805054,
-0.12340062111616135,
-0.7327250242233276,
0.6058627963066101,
1.1501508951187134,
1.4233903884887695,
-1.1470036506652832,
-0.2070363461971283,
-1.7528513669967651,
-0.15322242677211761,
-0.7048959136009216,
0.4515654146671295,
-2.0074872970581055,
-0.18105772137641907,
-1.9237947463989258,
-2.4012157917022705,
-1.3403092622756958,
-0.7141620516777039,
1.0466662645339966,
0.034301742911338806,
-0.7870175838470459,
1.1600341796875,
-0.34475845098495483,
-1.8645493984222412,
1.1439299583435059,
-2.062283515930176
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | I was just pointed here by @mariosasko, meanwhile I found a workaround using `encode_example` like so:
```
from datasets import load_from_disk, Dataset
DATASET_PATH = "/hf/m4-master/data/cm4/cm4-10000-v0.1"
ds1 = load_from_disk(DATASET_PATH)
ds2 = Dataset.from_dict(mapping={k: [] for k in ds1[99].keys()},
features=ds1.features
)
for i in range(2):
# could add several representative items here
row = ds1[99]
row_encoded = ds2.features.encode_example(row)
ds2 = ds2.add_item(row_encoded)
``` | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 59 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
I was just pointed here by @mariosasko, meanwhile I found a workaround using `encode_example` like so:
```
from datasets import load_from_disk, Dataset
DATASET_PATH = "/hf/m4-master/data/cm4/cm4-10000-v0.1"
ds1 = load_from_disk(DATASET_PATH)
ds2 = Dataset.from_dict(mapping={k: [] for k in ds1[99].keys()},
features=ds1.features
)
for i in range(2):
# could add several representative items here
row = ds1[99]
row_encoded = ds2.features.encode_example(row)
ds2 = ds2.add_item(row_encoded)
``` | [
-1.2800424098968506,
-0.9636260271072388,
-0.7847251296043396,
1.483056902885437,
-0.2430148869752884,
-1.212647795677185,
0.18919061124324799,
-1.0947076082229614,
1.7236998081207275,
-0.8379773497581482,
0.30618545413017273,
-1.6561083793640137,
-0.002155187539756298,
-0.6228939890861511,
-0.755561113357544,
-0.8303871154785156,
-0.39769887924194336,
-0.750559389591217,
1.1863166093826294,
2.4432549476623535,
1.2257301807403564,
-1.3375674486160278,
2.6511199474334717,
0.719294011592865,
-0.2555696666240692,
-0.9779417514801025,
0.44720757007598877,
0.014473571442067623,
-1.3248952627182007,
-0.44942599534988403,
-0.8393526077270508,
-0.04655825346708298,
-0.6110661029815674,
-0.550671398639679,
-0.04687751829624176,
0.4400516450405121,
-0.39321672916412354,
-0.5314613580703735,
-0.5699712634086609,
-0.7554966807365417,
0.42622140049934387,
-0.4523235261440277,
0.9058438539505005,
-0.29706162214279175,
1.7449668645858765,
-0.6593954563140869,
0.40033233165740967,
0.7099031805992126,
1.2678383588790894,
0.2083764523267746,
0.0007609063759446144,
0.40299710631370544,
0.30946341156959534,
-0.024891987442970276,
0.5244497060775757,
1.157228946685791,
0.6904383897781372,
0.5190476775169373,
0.7817910313606262,
-2.3254313468933105,
1.2884443998336792,
-1.0710850954055786,
0.324998676776886,
1.3950177431106567,
-0.8889504075050354,
0.33604854345321655,
-1.7137551307678223,
-0.059083081781864166,
0.6089383363723755,
-2.2195487022399902,
0.3735942840576172,
-1.3159364461898804,
-0.5071728825569153,
1.0404068231582642,
0.4098282754421234,
-1.1115171909332275,
0.09557628631591797,
-0.493447870016098,
1.0287388563156128,
0.4169611930847168,
1.0700514316558838,
-1.6945754289627075,
-0.041151344776153564,
-0.3515750467777252,
0.17101438343524933,
-1.3278626203536987,
-1.5540573596954346,
0.539127767086029,
0.6194797158241272,
0.6958068609237671,
-0.1901603639125824,
1.120915174484253,
-0.9745193719863892,
0.6774584650993347,
-1.0317929983139038,
-1.707288146018982,
-1.415783166885376,
-2.2140421867370605,
-2.22670578956604,
0.6269882917404175,
-0.4407694339752197,
-0.572582483291626,
2.090500593185425,
-0.9813697338104248,
-1.8313475847244263,
1.1380984783172607,
0.2811056971549988,
-0.07333489507436752,
2.326794147491455,
0.21428224444389343,
-0.7435585260391235,
0.5441270470619202,
-0.7923616170883179,
0.7908816337585449,
-0.3111521303653717,
1.3377987146377563,
0.41457441449165344,
-1.0490622520446777,
1.5721383094787598,
-0.3991072475910187,
0.6000722050666809,
-0.6411636471748352,
-0.4621630311012268,
-0.8272928595542908,
0.27996543049812317,
1.9158713817596436,
-0.22098493576049805,
1.548189401626587,
-0.4249458312988281,
-1.642320990562439,
-1.6495015621185303,
0.9247607588768005,
0.5662870407104492,
-0.6952667832374573,
0.2000449150800705,
-0.3865726590156555,
0.18301601707935333,
-0.09299936890602112,
1.1867047548294067,
1.3035593032836914,
0.7885143160820007,
-0.35071226954460144,
-0.7789739370346069,
0.1943816840648651,
-0.0022146054543554783,
-0.7973297238349915,
-1.7490297555923462,
-0.28901323676109314,
0.13367176055908203,
0.6297121047973633,
-1.2442394495010376,
1.7839696407318115,
0.8726044297218323,
1.963158369064331,
1.0086699724197388,
-0.3918895721435547,
1.4314929246902466,
0.13330897688865662,
1.7767937183380127,
-0.4828168749809265,
0.7525511980056763,
-0.316110759973526,
-1.1070159673690796,
0.8447117805480957,
-0.25908470153808594,
-2.0594229698181152,
-0.7370668053627014,
-0.7214513421058655,
-0.19723902642726898,
-0.8094368577003479,
0.8670835494995117,
-0.33224084973335266,
-1.4465323686599731,
0.1752300262451172,
-0.7654297947883606,
0.21496319770812988,
-1.2279598712921143,
0.24077747762203217,
0.7003205418586731,
-0.6539643406867981,
0.0849640965461731,
-0.21443234384059906,
-1.2666444778442383,
-0.41314807534217834,
0.2632210850715637,
1.820975661277771,
-0.7050473690032959,
0.8687539100646973,
1.0431033372879028,
-0.6902108788490295,
0.01103536318987608,
0.2853711247444153,
-0.21315428614616394,
0.8099095225334167,
-1.004333734512329,
-0.46482646465301514,
1.173203945159912,
-0.15863797068595886,
-0.6324892640113831,
1.5071018934249878,
0.6633287072181702,
-0.9980983734130859,
-0.16768132150173187,
-0.13984593749046326,
-0.8302788734436035,
-0.04110528528690338,
-1.5782585144042969,
-0.09963826835155487,
0.5170274972915649,
-1.530308723449707,
-0.4838852286338806,
-0.22517186403274536,
1.2939690351486206,
-0.3024841547012329,
1.3360674381256104,
-0.3687501847743988,
-0.14906637370586395,
-0.2781154215335846,
-0.33755579590797424,
0.1416684091091156,
-0.08437851071357727,
-0.6549919843673706,
0.08182843774557114,
-0.8118252754211426,
0.34424808621406555,
1.4906247854232788,
0.3262203335762024,
0.040270932018756866,
0.43800801038742065,
1.143664836883545,
0.376956045627594,
-0.06585541367530823,
-0.879727303981781,
-1.5392265319824219,
1.9004186391830444,
-1.405727505683899,
1.9960535764694214,
0.7670078873634338,
0.035324789583683014,
-1.8388762474060059,
-1.8200017213821411,
1.3573306798934937,
1.1373554468154907,
2.3893868923187256,
0.6225591897964478,
0.47102001309394836,
-0.8336124420166016,
-0.6850698590278625,
0.2347455471754074,
-0.9240722060203552,
-0.7573315501213074,
0.22098508477210999,
2.3335013389587402,
1.801122784614563,
-0.43916985392570496,
-0.1635688692331314,
-1.020706057548523,
1.3734873533248901,
-0.15763340890407562,
0.2434948831796646,
1.9391932487487793,
-0.22909153997898102,
-1.021759033203125,
1.3285306692123413,
-2.280038833618164,
0.20224198698997498,
1.9568662643432617,
0.2237805426120758,
0.10716316103935242,
-1.3058137893676758,
-0.6833206415176392,
-0.2782689034938812,
-0.40757882595062256,
-1.3056200742721558,
0.40792718529701233,
-0.2505161762237549,
-0.6844144463539124,
-1.387751579284668,
0.21974629163742065,
-1.0354397296905518,
-1.6129937171936035,
0.254590779542923,
1.908246397972107,
1.977640986442566,
-0.902566134929657,
1.5011425018310547,
-0.4117033779621124,
0.17690494656562805,
1.2022815942764282,
1.1670352220535278,
2.968966007232666,
1.9221845865249634,
-1.3402016162872314,
0.7039365768432617,
-0.15968430042266846,
-0.47410497069358826,
1.1928168535232544,
-1.2068365812301636,
1.2634984254837036,
-0.1261174976825714,
-1.213693380355835,
-1.2565884590148926,
0.9932314157485962,
0.5265960097312927,
0.07995890825986862,
-0.5359907150268555,
1.2260587215423584,
-0.009434251114726067,
1.3539013862609863,
0.5994214415550232,
-0.394075483083725,
0.7036101818084717,
-0.3380301296710968,
-0.537534773349762,
1.5609363317489624,
0.14609922468662262,
-1.3906643390655518,
-2.2523481845855713,
-0.21249394118785858,
-0.8063747882843018,
0.14689238369464874,
-0.5989264845848083,
-0.9980125427246094,
1.7492907047271729,
0.33737912774086,
-1.2580597400665283,
-0.22382213175296783,
-0.33770594000816345,
-0.5878893733024597,
2.7208378314971924,
-1.3242759704589844,
-0.16059644520282745,
-1.0863558053970337,
-0.6774662137031555,
1.6160173416137695,
-1.1929646730422974,
-0.19324679672718048,
-1.0721172094345093,
-0.5170698165893555,
-1.3610353469848633,
-0.5607585310935974,
-0.049811605364084244,
-0.8407343029975891,
0.8309386372566223,
0.18754225969314575,
-1.192505121231079,
-0.42918696999549866,
-0.8657510876655579,
1.0062739849090576,
-0.1984049528837204,
0.1715877801179886,
1.910017728805542,
0.39107927680015564,
-0.3484296202659607,
0.7759238481521606,
1.1268738508224487,
0.6577939987182617,
-0.6443489193916321,
0.20929406583309174,
-0.6693333983421326,
0.2684788405895233,
-1.3458558320999146,
0.1829347461462021,
-2.851370334625244,
0.6621798872947693,
0.008030782453715801,
0.0035457611083984375,
-0.023363228887319565,
-1.351193904876709,
1.013738751411438,
2.6146786212921143,
-1.223028302192688,
0.4532867968082428,
0.36651477217674255,
1.1707574129104614,
-1.6002095937728882,
0.24369128048419952,
-0.4263378381729126,
2.077752113342285,
0.24974985420703888,
1.3059487342834473,
-0.5256032943725586,
-2.300532102584839,
0.6015543937683105,
-1.2116036415100098,
-1.1782535314559937,
0.8669309616088867,
-0.8922277092933655,
0.2063061147928238,
-1.4709359407424927,
-0.37127602100372314,
-0.8863042593002319,
-1.183786153793335,
0.770309329032898,
0.14334014058113098,
0.4565894901752472,
-0.6561066508293152,
0.370606005191803,
-2.3120133876800537,
-1.3637371063232422,
-0.24256549775600433,
-0.9369918704032898,
0.5492891073226929,
-0.36094164848327637,
0.6625458598136902,
-0.17027224600315094,
0.051200978457927704,
0.35860270261764526,
1.49832022190094,
3.4560530185699463,
0.2240668535232544,
0.27335092425346375,
-0.20113904774188995,
-0.8991177678108215,
1.4103013277053833,
0.942052960395813,
-0.08392053842544556,
-0.48951256275177,
-1.1064391136169434,
1.2272329330444336,
1.955814003944397,
0.9671293497085571,
-0.05106240138411522,
-0.907569944858551,
-0.8121823072433472,
0.015208705328404903,
0.1247502937912941,
0.42922407388687134,
0.8681144118309021,
0.22567380964756012,
0.14054176211357117,
1.4184315204620361,
1.1677114963531494,
-0.4231278598308563,
0.46014752984046936,
-0.8592597842216492,
-0.5292956829071045,
0.4360623061656952,
0.34680044651031494,
-0.005323084536939859,
0.4128144383430481,
-1.082197904586792,
-0.17540448904037476,
-0.37614843249320984,
-0.8895540833473206,
-0.7404596209526062,
-0.39428338408470154,
-0.39048200845718384,
1.5656569004058838,
0.12591829895973206,
-0.5437646508216858,
-0.055757734924554825,
-0.7533037066459656,
-0.11753775924444199,
-0.9967641830444336,
0.2993261516094208,
-0.1493247151374817,
-0.18577128648757935,
-0.18319812417030334,
1.7526605129241943,
-0.917320728302002,
-1.9461992979049683,
0.21684664487838745,
0.24213404953479767,
-0.2700650990009308,
0.23256167769432068,
1.720719337463379,
0.5922644734382629,
1.442003846168518,
1.3313406705856323,
0.9628090262413025,
-0.6865814328193665,
-1.2421356439590454,
0.6324440240859985,
0.9868828654289246,
-1.303457498550415,
0.7114748358726501,
-0.03766627609729767,
-0.5316547751426697,
0.6262203454971313,
1.3673745393753052,
0.5202897787094116,
-2.0316853523254395,
0.8011765480041504,
-0.9561913013458252,
0.7587515115737915,
0.7877374291419983,
0.6658461689949036,
0.1886451095342636,
0.8112708926200867,
-1.1810778379440308,
-1.1045478582382202,
-0.6954246759414673,
-0.7212530374526978,
1.8733433485031128,
-0.35671788454055786,
0.6096904277801514,
-0.24670550227165222,
-1.2873594760894775,
-0.09480444341897964,
0.7041700482368469,
0.3794402778148651,
-0.5314486026763916,
0.7622571587562561,
-0.5197834968566895,
-1.0852723121643066,
-1.2490272521972656,
-0.4782950282096863,
-1.0227017402648926,
-0.9667123556137085,
0.9580493569374084,
0.8298466205596924,
0.27744007110595703,
1.8367677927017212,
0.6804946064949036,
0.2082732617855072,
-2.565886974334717,
0.8326107859611511,
0.1704125553369522,
0.0320710614323616,
0.8799708485603333,
0.4143696427345276,
0.9962186813354492,
-0.01786775514483452,
0.48618385195732117,
-2.3831026554107666,
2.295271873474121,
-0.2335912138223648,
0.6325516104698181,
-0.16124312579631805,
-0.171066015958786,
1.1580462455749512,
0.5821952223777771,
0.4441258907318115,
-1.008650779724121,
0.5870132446289062,
-0.6306892037391663,
1.2682076692581177,
0.855286717414856,
-0.8102470636367798,
-0.10990545898675919,
1.4230090379714966,
0.32265734672546387,
-0.5654640793800354,
-0.9841475486755371,
-1.0237047672271729,
0.9651936292648315,
1.705794095993042,
-0.04167468473315239,
-0.10128330439329147,
0.8128502368927002,
0.7169053554534912,
-1.3016222715377808,
0.11400997638702393,
-0.7291293740272522,
-0.703433096408844,
1.7636921405792236,
2.062932252883911,
-0.17512762546539307,
-0.23734867572784424,
-0.6945022940635681,
-1.2464241981506348,
0.7854313254356384,
-0.010834965854883194,
0.11784776300191879,
0.6577718257904053,
-0.630460798740387,
1.0185964107513428,
0.9202339053153992,
0.8975208401679993,
0.1571875810623169,
0.3019244074821472,
0.3452472984790802,
-0.4053029716014862,
-1.2734102010726929,
-0.20014098286628723,
-1.1100083589553833,
-2.425905466079712,
0.37833172082901,
-0.1268187165260315,
-1.4588364362716675,
0.02272048220038414,
-1.081081748008728,
0.8821743130683899,
-0.5712338089942932,
-1.102089762687683,
-1.5345133543014526,
0.2113349884748459,
-0.021849416196346283,
0.9546990990638733,
-1.5303877592086792,
-0.09724463522434235,
1.1562820672988892,
0.9439295530319214,
-0.6713597178459167,
1.084973692893982,
0.18489837646484375,
1.0810160636901855,
0.8849362134933472,
-0.40019914507865906,
0.5039190053939819,
-0.03989700600504875,
-1.2891032695770264,
0.43215546011924744,
1.0906656980514526,
0.26147618889808655,
1.5945261716842651,
-0.5079103112220764,
0.027059100568294525,
0.3981834650039673,
-0.5136327147483826,
-0.3908025622367859,
-0.5504035949707031,
0.6137892603874207,
0.07878744602203369,
-0.8765003681182861,
-0.03407852351665497,
0.020331650972366333,
-0.23182205855846405,
0.2074165791273117,
-1.526885747909546,
-0.029450029134750366,
-0.42878296971321106,
-0.7001959085464478,
-1.175827980041504,
-0.0075659858994185925,
1.4566179513931274,
-0.7977251410484314,
-0.2035723179578781,
0.5663843154907227,
0.2514706552028656,
0.5485187768936157,
0.6899368762969971,
-0.6810581684112549,
-0.30489394068717957,
-0.21494491398334503,
-0.32317253947257996,
0.39668920636177063,
1.3839929103851318,
-0.10362393409013748,
-1.0192794799804688,
0.7269385457038879,
-0.3749440610408783,
0.08895908296108246,
1.8645672798156738,
0.053189653903245926,
-0.8321184515953064,
0.2585596442222595,
-0.7605330348014832,
1.907564401626587,
1.7707849740982056,
1.3803564310073853,
-0.08752121776342392,
-1.0136480331420898,
0.6183698177337646,
-0.3289562463760376,
-0.4513031542301178,
0.8892603516578674,
0.40995004773139954,
-0.223379448056221,
-1.3987746238708496,
0.7661638259887695,
1.3124409914016724,
-0.8276887536048889,
-0.8459842801094055,
0.14841987192630768,
-0.7424126863479614,
1.119472861289978,
0.6519572734832764,
0.3221321105957031,
0.32652172446250916,
1.5856670141220093,
0.8554697632789612,
-0.40368449687957764,
0.5740997791290283,
0.611903965473175,
-0.20191916823387146,
-2.1540393829345703,
-1.1995795965194702,
0.3238851726055145,
-0.5250144004821777,
-1.7335649728775024,
1.4155539274215698,
-1.1981573104858398,
-0.9781067371368408,
0.6065418124198914,
0.11940421909093857,
1.3709121942520142,
0.2834841012954712,
1.5602542161941528,
2.0621337890625,
0.8666425347328186,
0.366780161857605,
1.2923208475112915,
-0.26259592175483704,
-0.47539395093917847,
1.7579468488693237,
-0.5487896203994751,
0.4994051456451416,
1.0480669736862183,
-0.2598586976528168,
-1.0947751998901367,
-0.7945241332054138,
-1.3413723707199097,
-0.7744450569152832,
1.1950693130493164,
0.1054215207695961,
-1.1043230295181274,
0.19138813018798828,
1.5465859174728394,
0.10077334195375443,
-0.32885637879371643,
0.760654091835022,
0.39727964997291565,
-0.9192639589309692,
-0.06656546145677567,
-0.8413078784942627,
0.5332615375518799,
-0.17062383890151978,
-0.2877223491668701,
0.27395668625831604,
0.5028433799743652,
1.3414528369903564,
-0.028241347521543503,
0.1149052157998085,
1.1325750350952148,
-1.286331057548523,
1.4705750942230225,
-0.648270308971405,
0.33629703521728516,
-2.4343454837799072,
1.3871159553527832,
-0.7445432543754578,
1.9308615922927856,
-2.657945394515991,
0.5220990180969238,
-0.6434519290924072,
-0.3968011736869812,
0.33125683665275574,
-0.39399245381355286,
0.11836440116167068,
-0.04351748153567314,
-1.152696967124939,
-0.07340515404939651,
-0.7315876483917236,
0.6160842180252075,
1.138344645500183,
1.4608298540115356,
-1.1609139442443848,
-0.2051108330488205,
-1.7361832857131958,
-0.15489426255226135,
-0.7337230443954468,
0.39285340905189514,
-2.002551794052124,
-0.2035350352525711,
-1.9409016370773315,
-2.42871356010437,
-1.2880539894104004,
-0.7259404063224792,
1.0529769659042358,
0.06939394026994705,
-0.8276060819625854,
1.1939934492111206,
-0.36908766627311707,
-1.856900691986084,
1.1326812505722046,
-2.1303861141204834
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | Hmm, interesting. If I create the dataset on the fly:
```
from datasets import load_from_disk, Dataset
DATASET_PATH = "/hf/m4-master/data/cm4/cm4-10000-v0.1"
ds1 = load_from_disk(DATASET_PATH)
ds2 = Dataset.from_dict(mapping={k: [v]*2 for k, v in ds1[99].items()},
features=ds1.features)
```
it doesn't fail with the error in the OP, as `from_dict` performs `encode_batch`.
However if I try to use this dataset it fails now with:
```
Traceback (most recent call last):
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 557, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 524, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/fingerprint.py", line 480, in wrapper
out = func(self, *args, **kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2775, in _map_single
batch = apply_function_on_filtered_inputs(
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2655, in apply_function_on_filtered_inputs
processed_inputs = function(*fn_args, *additional_args, **fn_kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2347, in decorated
result = f(decorated_item, *args, **kwargs)
File "debug_leak2.py", line 235, in split_pack_and_pad
images.append(image_transform(image.convert("RGB")))
AttributeError: 'dict' object has no attribute 'convert'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "debug_leak2.py", line 418, in <module>
train_loader, val_loader = get_dataloaders()
File "debug_leak2.py", line 348, in get_dataloaders
dataset = dataset.map(mapper, batch_size=32, batched=True, remove_columns=dataset.column_names, num_proc=4)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2500, in map
transformed_shards[index] = async_result.get()
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/multiprocess/pool.py", line 771, in get
raise self._value
AttributeError: 'dict' object has no attribute 'convert'
```
but if I create that same dataset one item at a time as in the previous comment's code snippet it doesn't fail.
The features of this dataset are set to:
```
{'texts': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None),
'images': Sequence(feature=Image(decode=True, id=None), length=-1, id=None)}
``` | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 264 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
Hmm, interesting. If I create the dataset on the fly:
```
from datasets import load_from_disk, Dataset
DATASET_PATH = "/hf/m4-master/data/cm4/cm4-10000-v0.1"
ds1 = load_from_disk(DATASET_PATH)
ds2 = Dataset.from_dict(mapping={k: [v]*2 for k, v in ds1[99].items()},
features=ds1.features)
```
it doesn't fail with the error in the OP, as `from_dict` performs `encode_batch`.
However if I try to use this dataset it fails now with:
```
Traceback (most recent call last):
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 557, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 524, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/fingerprint.py", line 480, in wrapper
out = func(self, *args, **kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2775, in _map_single
batch = apply_function_on_filtered_inputs(
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2655, in apply_function_on_filtered_inputs
processed_inputs = function(*fn_args, *additional_args, **fn_kwargs)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2347, in decorated
result = f(decorated_item, *args, **kwargs)
File "debug_leak2.py", line 235, in split_pack_and_pad
images.append(image_transform(image.convert("RGB")))
AttributeError: 'dict' object has no attribute 'convert'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "debug_leak2.py", line 418, in <module>
train_loader, val_loader = get_dataloaders()
File "debug_leak2.py", line 348, in get_dataloaders
dataset = dataset.map(mapper, batch_size=32, batched=True, remove_columns=dataset.column_names, num_proc=4)
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2500, in map
transformed_shards[index] = async_result.get()
File "/home/stas/anaconda3/envs/py38-pt112/lib/python3.8/site-packages/multiprocess/pool.py", line 771, in get
raise self._value
AttributeError: 'dict' object has no attribute 'convert'
```
but if I create that same dataset one item at a time as in the previous comment's code snippet it doesn't fail.
The features of this dataset are set to:
```
{'texts': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None),
'images': Sequence(feature=Image(decode=True, id=None), length=-1, id=None)}
``` | [
-1.2415897846221924,
-0.9457746744155884,
-0.7811295390129089,
1.4758609533309937,
-0.23769022524356842,
-1.2347564697265625,
0.17681387066841125,
-1.112502932548523,
1.7423704862594604,
-0.8426616191864014,
0.3005836009979248,
-1.6654932498931885,
0.038545187562704086,
-0.6263467073440552,
-0.7490665316581726,
-0.8194566965103149,
-0.3785114586353302,
-0.7470570802688599,
1.1711513996124268,
2.4199118614196777,
1.2090070247650146,
-1.338676929473877,
2.654590606689453,
0.6944339871406555,
-0.23949751257896423,
-0.9836941361427307,
0.4348399043083191,
-0.0038512730970978737,
-1.328816294670105,
-0.45198237895965576,
-0.8421263694763184,
-0.027786102145910263,
-0.6009939312934875,
-0.5614474415779114,
-0.028665833175182343,
0.4356030523777008,
-0.402905136346817,
-0.5462992787361145,
-0.5475434064865112,
-0.7763420939445496,
0.4241221845149994,
-0.44831180572509766,
0.8982044458389282,
-0.31313180923461914,
1.7516837120056152,
-0.6519326567649841,
0.4054243564605713,
0.7227993011474609,
1.2738429307937622,
0.22190262377262115,
-0.016711052507162094,
0.39226362109184265,
0.31445038318634033,
-0.019786648452281952,
0.5051030516624451,
1.144379734992981,
0.6838511824607849,
0.5392230153083801,
0.7709300518035889,
-2.348358392715454,
1.2768964767456055,
-1.0839533805847168,
0.30417218804359436,
1.3880144357681274,
-0.8800681233406067,
0.3320227265357971,
-1.7258974313735962,
-0.04779437184333801,
0.5950157642364502,
-2.2292585372924805,
0.37929069995880127,
-1.3360052108764648,
-0.4875503480434418,
1.0560553073883057,
0.4068868160247803,
-1.0849463939666748,
0.11282320320606232,
-0.4550016224384308,
1.0151567459106445,
0.4373036324977875,
1.0531152486801147,
-1.6950639486312866,
-0.042554792016744614,
-0.3415699601173401,
0.17849121987819672,
-1.3181812763214111,
-1.567728877067566,
0.5388063788414001,
0.6070868968963623,
0.69129878282547,
-0.1860801726579666,
1.1103345155715942,
-0.956092894077301,
0.6462821364402771,
-1.0363187789916992,
-1.7215538024902344,
-1.4035686254501343,
-2.172710418701172,
-2.2359001636505127,
0.6574505567550659,
-0.4442591071128845,
-0.564208984375,
2.088460922241211,
-0.9779959917068481,
-1.8308017253875732,
1.1347103118896484,
0.26467788219451904,
-0.08335509896278381,
2.3342819213867188,
0.19460147619247437,
-0.7216600179672241,
0.5384663343429565,
-0.7829861044883728,
0.801671028137207,
-0.33347010612487793,
1.340206503868103,
0.41985225677490234,
-1.0551000833511353,
1.5695222616195679,
-0.405713826417923,
0.6012195348739624,
-0.6250200867652893,
-0.4620651304721832,
-0.8351735472679138,
0.3033169209957123,
1.9077309370040894,
-0.20757576823234558,
1.5342596769332886,
-0.4234895706176758,
-1.6221145391464233,
-1.6516759395599365,
0.9494915008544922,
0.5680925846099854,
-0.6772722601890564,
0.19581176340579987,
-0.37953981757164,
0.18441596627235413,
-0.12101934850215912,
1.1942957639694214,
1.294709324836731,
0.8041242361068726,
-0.3476850390434265,
-0.7865532040596008,
0.18548914790153503,
-0.012240322306752205,
-0.7766301035881042,
-1.7587497234344482,
-0.286028116941452,
0.14671607315540314,
0.6131478548049927,
-1.2143551111221313,
1.780887484550476,
0.8497464060783386,
1.9629364013671875,
1.0054054260253906,
-0.3931494951248169,
1.419405460357666,
0.15157510340213776,
1.7962476015090942,
-0.48454296588897705,
0.733162522315979,
-0.3098275363445282,
-1.1077508926391602,
0.8550459742546082,
-0.24944819509983063,
-2.0528573989868164,
-0.7175943851470947,
-0.7336535453796387,
-0.2090587615966797,
-0.77364581823349,
0.8701009750366211,
-0.3130281865596771,
-1.459093451499939,
0.16497734189033508,
-0.7537938952445984,
0.20866014063358307,
-1.2424460649490356,
0.24381552636623383,
0.7180874943733215,
-0.6633780002593994,
0.07032373547554016,
-0.21767869591712952,
-1.2685728073120117,
-0.43426674604415894,
0.27731141448020935,
1.836748719215393,
-0.7133774757385254,
0.8703155517578125,
1.0513944625854492,
-0.7033200263977051,
0.002653711475431919,
0.2826070487499237,
-0.2216041088104248,
0.7932255864143372,
-1.017432451248169,
-0.46996748447418213,
1.2059557437896729,
-0.18492217361927032,
-0.6257363557815552,
1.5167362689971924,
0.6589099764823914,
-1.0340666770935059,
-0.1507178544998169,
-0.16431820392608643,
-0.8479324579238892,
-0.04942052438855171,
-1.5619862079620361,
-0.09530670195817947,
0.5160701870918274,
-1.5334336757659912,
-0.4782967269420624,
-0.2011605054140091,
1.3115211725234985,
-0.2896999418735504,
1.34522545337677,
-0.36692366003990173,
-0.1662060171365738,
-0.2748507857322693,
-0.3326322138309479,
0.12571844458580017,
-0.10209093242883682,
-0.6648121476173401,
0.0877227783203125,
-0.8157654404640198,
0.3382176160812378,
1.467075228691101,
0.3229648172855377,
0.01959201693534851,
0.44618526101112366,
1.1359299421310425,
0.3763946294784546,
-0.06557589024305344,
-0.9092269539833069,
-1.5369925498962402,
1.8983066082000732,
-1.3863568305969238,
1.9910035133361816,
0.7329095602035522,
0.02603202313184738,
-1.8300890922546387,
-1.8164600133895874,
1.3965351581573486,
1.1261285543441772,
2.379055976867676,
0.6240085959434509,
0.4658469557762146,
-0.8263453841209412,
-0.6849464178085327,
0.2302255630493164,
-0.9289587140083313,
-0.7438786625862122,
0.2371126413345337,
2.328026056289673,
1.7871806621551514,
-0.4549664855003357,
-0.1623104363679886,
-1.0294111967086792,
1.3813749551773071,
-0.16023121774196625,
0.256369411945343,
1.9504963159561157,
-0.2260873019695282,
-1.0255061388015747,
1.331661581993103,
-2.278498649597168,
0.21485787630081177,
1.9632766246795654,
0.1909744292497635,
0.11095893383026123,
-1.2870705127716064,
-0.6871960163116455,
-0.282185435295105,
-0.4065837860107422,
-1.2995893955230713,
0.40766310691833496,
-0.24625055491924286,
-0.6699627637863159,
-1.4001476764678955,
0.2277066707611084,
-1.0272102355957031,
-1.6141091585159302,
0.25558266043663025,
1.9212037324905396,
1.9722434282302856,
-0.8824173808097839,
1.5138664245605469,
-0.39190107583999634,
0.18027116358280182,
1.2143698930740356,
1.1636804342269897,
2.981527090072632,
1.921582818031311,
-1.341983675956726,
0.7082529067993164,
-0.15331977605819702,
-0.48753589391708374,
1.204553246498108,
-1.1970856189727783,
1.229413628578186,
-0.11871115863323212,
-1.1997543573379517,
-1.2617058753967285,
0.9679896235466003,
0.5253108739852905,
0.09613396972417831,
-0.5294317007064819,
1.2111490964889526,
0.01688889041543007,
1.3605448007583618,
0.6079381108283997,
-0.3913034498691559,
0.7067155241966248,
-0.34238409996032715,
-0.5476895570755005,
1.5446968078613281,
0.16183717548847198,
-1.3988909721374512,
-2.262742280960083,
-0.212444469332695,
-0.8146870136260986,
0.15466226637363434,
-0.5866853594779968,
-0.9795358180999756,
1.7534421682357788,
0.33794644474983215,
-1.2483923435211182,
-0.21958027780056,
-0.3478453457355499,
-0.5894671082496643,
2.7231667041778564,
-1.3307846784591675,
-0.16738834977149963,
-1.0844132900238037,
-0.7062857151031494,
1.633568286895752,
-1.1986044645309448,
-0.19596081972122192,
-1.06182062625885,
-0.508302628993988,
-1.3660202026367188,
-0.5636641979217529,
-0.04064451903104782,
-0.8404433727264404,
0.8519679307937622,
0.20750431716442108,
-1.1980013847351074,
-0.4193442165851593,
-0.8573498129844666,
0.9886532425880432,
-0.2113656848669052,
0.14247576892375946,
1.9122339487075806,
0.4054301381111145,
-0.3596685528755188,
0.7608683705329895,
1.1295840740203857,
0.6387525200843811,
-0.6126289367675781,
0.2365807294845581,
-0.6800170540809631,
0.2682102620601654,
-1.353384017944336,
0.18667759001255035,
-2.8490426540374756,
0.6686724424362183,
0.0030510062351822853,
0.0030226409435272217,
-0.032332345843315125,
-1.3591870069503784,
1.004576325416565,
2.607732057571411,
-1.238742470741272,
0.4673444330692291,
0.35863104462623596,
1.196250319480896,
-1.5932137966156006,
0.252867728471756,
-0.41629400849342346,
2.0814075469970703,
0.23812387883663177,
1.2872936725616455,
-0.5020233988761902,
-2.2906131744384766,
0.5960562229156494,
-1.2116611003875732,
-1.1884874105453491,
0.8489522337913513,
-0.8679057359695435,
0.18975695967674255,
-1.4892767667770386,
-0.35658586025238037,
-0.8741377592086792,
-1.1845693588256836,
0.7865994572639465,
0.11366346478462219,
0.4483695924282074,
-0.6631039381027222,
0.36551347374916077,
-2.290595531463623,
-1.3669077157974243,
-0.2595334053039551,
-0.9367049932479858,
0.5595290660858154,
-0.3593432605266571,
0.6724230051040649,
-0.19186405837535858,
0.05043628439307213,
0.3772573173046112,
1.4988415241241455,
3.4525020122528076,
0.20943622291088104,
0.2928212285041809,
-0.19316740334033966,
-0.898261547088623,
1.3979113101959229,
0.9657902121543884,
-0.08069196343421936,
-0.47431209683418274,
-1.1066641807556152,
1.2037997245788574,
1.9624080657958984,
0.9589798450469971,
-0.033433713018894196,
-0.8892625570297241,
-0.7985994815826416,
0.010768539272248745,
0.12071607261896133,
0.4137862026691437,
0.8642835021018982,
0.22866038978099823,
0.13730737566947937,
1.413616418838501,
1.1732310056686401,
-0.4174087345600128,
0.4629252254962921,
-0.8564329147338867,
-0.5110539197921753,
0.47061851620674133,
0.3583958148956299,
-0.016657836735248566,
0.4112548828125,
-1.058528184890747,
-0.17957229912281036,
-0.38017240166664124,
-0.8803711533546448,
-0.7382201552391052,
-0.41538283228874207,
-0.3909248113632202,
1.575905680656433,
0.12497907131910324,
-0.538764476776123,
-0.06383562088012695,
-0.7424669861793518,
-0.10461649298667908,
-0.9968924522399902,
0.3156906068325043,
-0.15931566059589386,
-0.19377362728118896,
-0.18526947498321533,
1.7314808368682861,
-0.9224071502685547,
-1.9292829036712646,
0.21977363526821136,
0.2524811923503876,
-0.28273606300354004,
0.2331315129995346,
1.7245999574661255,
0.5777851939201355,
1.455742597579956,
1.3404415845870972,
0.9620693325996399,
-0.6804838180541992,
-1.2562463283538818,
0.6374515295028687,
0.9707986116409302,
-1.3342902660369873,
0.6850719451904297,
-0.01350051537156105,
-0.5219088196754456,
0.615551233291626,
1.3444397449493408,
0.5029141902923584,
-2.037238359451294,
0.791024923324585,
-0.965704083442688,
0.7559125423431396,
0.8058436512947083,
0.6571449637413025,
0.17675723135471344,
0.8184863924980164,
-1.1734392642974854,
-1.117371916770935,
-0.697449803352356,
-0.7247710227966309,
1.867893934249878,
-0.3459857404232025,
0.6184727549552917,
-0.2545439898967743,
-1.2944025993347168,
-0.10492518544197083,
0.7016571164131165,
0.38143861293792725,
-0.5319193005561829,
0.7396595478057861,
-0.5265088677406311,
-1.077514886856079,
-1.2600291967391968,
-0.5035489797592163,
-1.0560165643692017,
-0.9575432538986206,
0.9671899080276489,
0.8233836889266968,
0.2786691188812256,
1.8339370489120483,
0.6954809427261353,
0.22004184126853943,
-2.5758767127990723,
0.8414325714111328,
0.1883564293384552,
0.005541004240512848,
0.8794598579406738,
0.424782931804657,
0.9926828742027283,
-0.02810145914554596,
0.5086950063705444,
-2.386593818664551,
2.310713291168213,
-0.2419460117816925,
0.6391461491584778,
-0.15238679945468903,
-0.17689941823482513,
1.1537870168685913,
0.5628561973571777,
0.43207260966300964,
-1.0340142250061035,
0.6155595183372498,
-0.6509572863578796,
1.277320146560669,
0.8474539518356323,
-0.8178392052650452,
-0.11430540680885315,
1.4211057424545288,
0.34756702184677124,
-0.5625460743904114,
-0.9747016429901123,
-1.0543133020401,
0.9609318375587463,
1.6771445274353027,
-0.06214400380849838,
-0.07486142218112946,
0.8339160680770874,
0.7141920328140259,
-1.303823709487915,
0.12320274859666824,
-0.7503749132156372,
-0.6902085542678833,
1.744707703590393,
2.036687135696411,
-0.17343135178089142,
-0.24554729461669922,
-0.7176981568336487,
-1.224861979484558,
0.7661203145980835,
0.0009641963988542557,
0.09905444830656052,
0.6517786383628845,
-0.6361355781555176,
1.031308889389038,
0.9298915863037109,
0.8983696103096008,
0.1742164045572281,
0.3040747344493866,
0.3345511555671692,
-0.42961740493774414,
-1.2592313289642334,
-0.17477434873580933,
-1.1119873523712158,
-2.430204391479492,
0.3915507197380066,
-0.1562223881483078,
-1.467349648475647,
0.012630102224647999,
-1.0833666324615479,
0.9034420251846313,
-0.5635284781455994,
-1.1394139528274536,
-1.5264724493026733,
0.212025985121727,
-0.03337801992893219,
0.9700036644935608,
-1.5299104452133179,
-0.09215949475765228,
1.16230046749115,
0.9363749027252197,
-0.7015281319618225,
1.0631067752838135,
0.19251400232315063,
1.102731704711914,
0.8792545199394226,
-0.39365753531455994,
0.5049371123313904,
-0.043532490730285645,
-1.30226469039917,
0.43459048867225647,
1.0687859058380127,
0.25256261229515076,
1.573097825050354,
-0.5063647031784058,
0.04323830455541611,
0.3938947021961212,
-0.5029790997505188,
-0.40593037009239197,
-0.5827667117118835,
0.6449922323226929,
0.04093894362449646,
-0.8682385087013245,
0.015817981213331223,
0.04665102809667587,
-0.21837423741817474,
0.2115834653377533,
-1.5139055252075195,
-0.022372182458639145,
-0.42327192425727844,
-0.6782882809638977,
-1.1690900325775146,
-0.018976746127009392,
1.4426552057266235,
-0.790459156036377,
-0.2152591347694397,
0.5907086730003357,
0.247452512383461,
0.5316252112388611,
0.6798174977302551,
-0.6751975417137146,
-0.2970667779445648,
-0.22577504813671112,
-0.33735769987106323,
0.40427345037460327,
1.4170652627944946,
-0.10061224550008774,
-1.0086296796798706,
0.7304567694664001,
-0.36820951104164124,
0.058691106736660004,
1.850851058959961,
0.04439700022339821,
-0.8349947333335876,
0.2641824781894684,
-0.7489884495735168,
1.9035276174545288,
1.797575831413269,
1.3718016147613525,
-0.07594958692789078,
-1.0170117616653442,
0.5941792130470276,
-0.32600337266921997,
-0.46273258328437805,
0.9096907377243042,
0.42823299765586853,
-0.21691088378429413,
-1.3889094591140747,
0.7741540670394897,
1.300028681755066,
-0.8064113855361938,
-0.8691493272781372,
0.15536104142665863,
-0.728073239326477,
1.1157251596450806,
0.6739945411682129,
0.3201167583465576,
0.30824530124664307,
1.5921269655227661,
0.8709000945091248,
-0.3983473479747772,
0.5950948596000671,
0.6014547348022461,
-0.20401720702648163,
-2.152313232421875,
-1.2257481813430786,
0.33363479375839233,
-0.5207889080047607,
-1.733786702156067,
1.4215058088302612,
-1.1673862934112549,
-0.9711009860038757,
0.5942493081092834,
0.1351647973060608,
1.3824892044067383,
0.30549466609954834,
1.5531526803970337,
2.0792770385742188,
0.8743025064468384,
0.37365078926086426,
1.3053176403045654,
-0.25545403361320496,
-0.4862750768661499,
1.7579519748687744,
-0.5463176369667053,
0.4883075952529907,
1.0479223728179932,
-0.24873919785022736,
-1.0883678197860718,
-0.8056740760803223,
-1.350169062614441,
-0.7787335515022278,
1.190790057182312,
0.09114492684602737,
-1.1056219339370728,
0.21092914044857025,
1.5516527891159058,
0.07511197775602341,
-0.3252798914909363,
0.7761567234992981,
0.3928415775299072,
-0.9106139540672302,
-0.07565413415431976,
-0.8413262367248535,
0.5395869016647339,
-0.1863478422164917,
-0.28446322679519653,
0.27729418873786926,
0.4755312502384186,
1.3671767711639404,
-0.047175001353025436,
0.13855697214603424,
1.123650312423706,
-1.2834298610687256,
1.4597978591918945,
-0.6497511267662048,
0.3493403196334839,
-2.4308228492736816,
1.3717385530471802,
-0.7549157738685608,
1.929953694343567,
-2.6616196632385254,
0.49831274151802063,
-0.6331008076667786,
-0.3985450863838196,
0.33608072996139526,
-0.41686955094337463,
0.1171233281493187,
-0.050383713096380234,
-1.1748939752578735,
-0.05184364318847656,
-0.724323034286499,
0.6206835508346558,
1.1289019584655762,
1.4845807552337646,
-1.1528973579406738,
-0.21209503710269928,
-1.7701843976974487,
-0.14916358888149261,
-0.7117207646369934,
0.42049920558929443,
-1.9856160879135132,
-0.1803778111934662,
-1.9486163854599,
-2.422478437423706,
-1.3115993738174438,
-0.7364612817764282,
1.0380622148513794,
0.035861171782016754,
-0.8142735362052917,
1.1811788082122803,
-0.36727967858314514,
-1.881705403327942,
1.1397349834442139,
-2.1303606033325195
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | > @mariosasko I'm getting a similar issue when creating a Dataset from a Pandas dataframe, like so:
>
> ```
> from datasets import Dataset, Features, Image, Value
> import pandas as pd
> import requests
> import PIL
>
> # we need to define the features ourselves
> features = Features({
> 'a': Value(dtype='int32'),
> 'b': Image(),
> })
>
> url = "http://images.cocodataset.org/val2017/000000039769.jpg"
> image = PIL.Image.open(requests.get(url, stream=True).raw)
>
> df = pd.DataFrame({"a": [1, 2],
> "b": [image, image]})
>
> dataset = Dataset.from_pandas(df, features=features)
> ```
>
> results in
>
> ```
> ArrowInvalid: ('Could not convert <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=640x480 at 0x7F7991A15C10> with type JpegImageFile: did not recognize Python value type when inferring an Arrow data type', 'Conversion failed for column b with type object')
> ```
>
> Will the PR linked above also fix that?
It looks like the problem still exists.
Any news ? Any good workaround ?
Thank you | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 159 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
> @mariosasko I'm getting a similar issue when creating a Dataset from a Pandas dataframe, like so:
>
> ```
> from datasets import Dataset, Features, Image, Value
> import pandas as pd
> import requests
> import PIL
>
> # we need to define the features ourselves
> features = Features({
> 'a': Value(dtype='int32'),
> 'b': Image(),
> })
>
> url = "http://images.cocodataset.org/val2017/000000039769.jpg"
> image = PIL.Image.open(requests.get(url, stream=True).raw)
>
> df = pd.DataFrame({"a": [1, 2],
> "b": [image, image]})
>
> dataset = Dataset.from_pandas(df, features=features)
> ```
>
> results in
>
> ```
> ArrowInvalid: ('Could not convert <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=640x480 at 0x7F7991A15C10> with type JpegImageFile: did not recognize Python value type when inferring an Arrow data type', 'Conversion failed for column b with type object')
> ```
>
> Will the PR linked above also fix that?
It looks like the problem still exists.
Any news ? Any good workaround ?
Thank you | [
-1.256359577178955,
-1.009610652923584,
-0.8076683282852173,
1.4996901750564575,
-0.26900091767311096,
-1.2063113451004028,
0.13005764782428741,
-1.1055964231491089,
1.7354167699813843,
-0.8021696209907532,
0.2929607927799225,
-1.6791869401931763,
-0.03754493221640587,
-0.603963315486908,
-0.7586414813995361,
-0.8517307639122009,
-0.3861568570137024,
-0.8159072399139404,
1.1546125411987305,
2.4768753051757812,
1.2022347450256348,
-1.3283193111419678,
2.627769947052002,
0.7193582653999329,
-0.23591579496860504,
-0.9939020872116089,
0.5050315260887146,
-0.05935196578502655,
-1.3553704023361206,
-0.48164549469947815,
-0.8156200051307678,
-0.013324497267603874,
-0.6377760171890259,
-0.5649091005325317,
-0.03738608956336975,
0.396531343460083,
-0.3602365255355835,
-0.5269676446914673,
-0.5756246447563171,
-0.7645408511161804,
0.39689701795578003,
-0.46166911721229553,
0.8693794012069702,
-0.28954261541366577,
1.6921228170394897,
-0.6252275109291077,
0.412395715713501,
0.7301143407821655,
1.2883191108703613,
0.23645256459712982,
-0.025679638609290123,
0.40339964628219604,
0.3236197233200073,
-0.06670144945383072,
0.4938861131668091,
1.1115131378173828,
0.6522555351257324,
0.5128434896469116,
0.8055721521377563,
-2.356590986251831,
1.269950270652771,
-1.0614399909973145,
0.33104950189590454,
1.3812003135681152,
-0.8078781962394714,
0.37628844380378723,
-1.7629107236862183,
0.015872536227107048,
0.6313853859901428,
-2.2392385005950928,
0.37928444147109985,
-1.3408145904541016,
-0.48425009846687317,
1.016854166984558,
0.402885377407074,
-1.1012388467788696,
0.07254868745803833,
-0.4609813392162323,
1.0200586318969727,
0.4633316099643707,
1.0571331977844238,
-1.744649887084961,
-0.05378184840083122,
-0.3308244049549103,
0.1869361698627472,
-1.289531946182251,
-1.5565886497497559,
0.5498723983764648,
0.6588622331619263,
0.671605110168457,
-0.1387903243303299,
1.0771352052688599,
-0.8934878706932068,
0.602777361869812,
-0.9765961170196533,
-1.7420793771743774,
-1.4316500425338745,
-2.1503918170928955,
-2.2095043659210205,
0.5894911885261536,
-0.5146369934082031,
-0.529760479927063,
2.1088943481445312,
-0.9621030688285828,
-1.9257880449295044,
1.1614506244659424,
0.32937192916870117,
-0.04823025315999985,
2.365201711654663,
0.24198055267333984,
-0.677160918712616,
0.5127146244049072,
-0.7868736386299133,
0.8076770901679993,
-0.3566088378429413,
1.3821320533752441,
0.3505679666996002,
-0.9804536700248718,
1.617289662361145,
-0.4291035830974579,
0.6273771524429321,
-0.6206422448158264,
-0.44910743832588196,
-0.8190308809280396,
0.3218176066875458,
1.9056570529937744,
-0.20651300251483917,
1.5213775634765625,
-0.4493894577026367,
-1.6468117237091064,
-1.6740169525146484,
0.9251806735992432,
0.574336588382721,
-0.7650495171546936,
0.2346753180027008,
-0.3726384937763214,
0.16938559710979462,
-0.09381116926670074,
1.1953855752944946,
1.3402339220046997,
0.8125517964363098,
-0.313638299703598,
-0.8100495338439941,
0.2020997554063797,
-0.005409788805991411,
-0.7835416793823242,
-1.7411168813705444,
-0.2992883622646332,
0.13046738505363464,
0.6688287258148193,
-1.2188764810562134,
1.7377077341079712,
0.8977698683738708,
1.9749870300292969,
0.997939944267273,
-0.43698668479919434,
1.402588129043579,
0.16662943363189697,
1.7855356931686401,
-0.5249902009963989,
0.7452576756477356,
-0.3148108422756195,
-1.0829198360443115,
0.8531756401062012,
-0.25072187185287476,
-2.025636911392212,
-0.7310922741889954,
-0.7443463206291199,
-0.2752455174922943,
-0.7574490308761597,
0.8588472604751587,
-0.31833741068840027,
-1.3656400442123413,
0.17967388033866882,
-0.8316593766212463,
0.20793040096759796,
-1.2323951721191406,
0.2413707673549652,
0.7249071002006531,
-0.6666865348815918,
0.10326789319515228,
-0.24428018927574158,
-1.2779932022094727,
-0.4563765227794647,
0.23123641312122345,
1.8702421188354492,
-0.7171028256416321,
0.8618672490119934,
1.0278922319412231,
-0.7108099460601807,
0.00763683021068573,
0.27533113956451416,
-0.16058683395385742,
0.8184607625007629,
-1.0453606843948364,
-0.4538721740245819,
1.189773440361023,
-0.18923749029636383,
-0.6122030019760132,
1.4565407037734985,
0.6337037682533264,
-1.0253244638442993,
-0.1870395988225937,
-0.1659436970949173,
-0.7806414365768433,
-0.05636923015117645,
-1.6269619464874268,
-0.06777477264404297,
0.518610954284668,
-1.551073431968689,
-0.519791305065155,
-0.241080179810524,
1.2976100444793701,
-0.23479507863521576,
1.3013461828231812,
-0.34849461913108826,
-0.12542732059955597,
-0.28574562072753906,
-0.3264906704425812,
0.1625649780035019,
-0.18639324605464935,
-0.6300272941589355,
0.07693827152252197,
-0.8730132579803467,
0.3310685157775879,
1.5350914001464844,
0.32837700843811035,
0.024987787008285522,
0.41168662905693054,
1.1169217824935913,
0.42271313071250916,
-0.03418273478746414,
-0.8999110460281372,
-1.4818819761276245,
1.9579882621765137,
-1.428436040878296,
1.9570903778076172,
0.7108598947525024,
0.05800948664546013,
-1.8330323696136475,
-1.9011133909225464,
1.3632956743240356,
1.1228410005569458,
2.3689260482788086,
0.6918736696243286,
0.4798884093761444,
-0.8557868003845215,
-0.6710190176963806,
0.20499001443386078,
-0.9035093188285828,
-0.8228999972343445,
0.20908011496067047,
2.3405544757843018,
1.7601890563964844,
-0.5074586868286133,
-0.1331007033586502,
-0.9781613945960999,
1.392582893371582,
-0.09105104207992554,
0.2395319640636444,
1.9477888345718384,
-0.19445790350437164,
-1.0643367767333984,
1.3077564239501953,
-2.284426212310791,
0.19491352140903473,
1.925593376159668,
0.1705850511789322,
0.20445963740348816,
-1.3220919370651245,
-0.726307213306427,
-0.24566785991191864,
-0.3795780837535858,
-1.2703138589859009,
0.44828617572784424,
-0.21383777260780334,
-0.6620240807533264,
-1.438483476638794,
0.19925557076931,
-0.9830043911933899,
-1.6136579513549805,
0.2081846445798874,
1.921244502067566,
2.0256569385528564,
-0.9094417095184326,
1.549293875694275,
-0.41325482726097107,
0.10608646273612976,
1.2203820943832397,
1.17923903465271,
2.9610111713409424,
1.897689700126648,
-1.3157535791397095,
0.6667875647544861,
-0.1422358751296997,
-0.4619016945362091,
1.223096489906311,
-1.1830289363861084,
1.2133913040161133,
-0.11878368258476257,
-1.2020323276519775,
-1.2188349962234497,
0.9162427186965942,
0.518768310546875,
0.08098876476287842,
-0.5338120460510254,
1.2428797483444214,
-0.05114597827196121,
1.3396192789077759,
0.5996124744415283,
-0.40429577231407166,
0.7294313907623291,
-0.3498128354549408,
-0.5304734110832214,
1.548538327217102,
0.15668964385986328,
-1.4005399942398071,
-2.2433054447174072,
-0.20033641159534454,
-0.8268651366233826,
0.1335279792547226,
-0.5772107839584351,
-1.0438716411590576,
1.7274161577224731,
0.323402464389801,
-1.210060715675354,
-0.26296746730804443,
-0.3546288013458252,
-0.5605629682540894,
2.73036789894104,
-1.3575217723846436,
-0.18112486600875854,
-1.0686687231063843,
-0.6287962794303894,
1.6029785871505737,
-1.2120585441589355,
-0.2049829065799713,
-1.0787686109542847,
-0.4936898946762085,
-1.4085428714752197,
-0.5550095438957214,
-0.06568937748670578,
-0.8179951906204224,
0.8621476292610168,
0.2950798273086548,
-1.1967881917953491,
-0.39293524622917175,
-0.8847165107727051,
0.9618911743164062,
-0.20100806653499603,
0.18783266842365265,
1.9706047773361206,
0.4198385775089264,
-0.28889989852905273,
0.7917857766151428,
1.1136387586593628,
0.6410967111587524,
-0.6216959953308105,
0.18927495181560516,
-0.6387607455253601,
0.3063695728778839,
-1.3877031803131104,
0.16636157035827637,
-2.8658289909362793,
0.6789688467979431,
0.038562189787626266,
0.0005764327943325043,
0.027844980359077454,
-1.3677339553833008,
1.0323506593704224,
2.635885000228882,
-1.267613410949707,
0.46992942690849304,
0.34634634852409363,
1.2138100862503052,
-1.572636604309082,
0.25290176272392273,
-0.39813634753227234,
2.163504123687744,
0.25464192032814026,
1.274169683456421,
-0.4997319281101227,
-2.348226308822632,
0.5852006077766418,
-1.230167269706726,
-1.133174180984497,
0.7603507041931152,
-0.8690812587738037,
0.09022295475006104,
-1.5246202945709229,
-0.31651782989501953,
-0.9142640233039856,
-1.1720479726791382,
0.8435378074645996,
0.10701826214790344,
0.40689465403556824,
-0.6013314723968506,
0.40645232796669006,
-2.2884976863861084,
-1.407097339630127,
-0.2955106198787689,
-0.9392265677452087,
0.5474778413772583,
-0.34091487526893616,
0.7356659173965454,
-0.19186381995677948,
0.050993096083402634,
0.4234093725681305,
1.466452956199646,
3.4809229373931885,
0.2000182420015335,
0.30337750911712646,
-0.2356378734111786,
-0.90980064868927,
1.4068032503128052,
0.9618534445762634,
-0.1267962008714676,
-0.4648347496986389,
-1.1440726518630981,
1.2460510730743408,
1.9920589923858643,
0.9237777590751648,
-0.03475034236907959,
-0.9450207352638245,
-0.7726418375968933,
0.03533178195357323,
0.14357900619506836,
0.43944039940834045,
0.8473343849182129,
0.23063154518604279,
0.14589820802211761,
1.3998979330062866,
1.1647710800170898,
-0.3866922855377197,
0.4836435616016388,
-0.8578164577484131,
-0.5249289274215698,
0.4831104278564453,
0.3256447911262512,
-0.01216517947614193,
0.3828565180301666,
-1.0337505340576172,
-0.1602644920349121,
-0.36488476395606995,
-0.8608529567718506,
-0.7404175996780396,
-0.3956759572029114,
-0.3406413793563843,
1.5334498882293701,
0.16457492113113403,
-0.5627897381782532,
-0.05641759932041168,
-0.7259626984596252,
-0.08124281466007233,
-1.0331169366836548,
0.27688542008399963,
-0.17572350800037384,
-0.19989389181137085,
-0.17418889701366425,
1.7094228267669678,
-0.8777405023574829,
-1.921387791633606,
0.21236266195774078,
0.31055545806884766,
-0.3691602051258087,
0.27280643582344055,
1.7486013174057007,
0.5795782208442688,
1.486764669418335,
1.3472861051559448,
0.9807847142219543,
-0.7073505520820618,
-1.2029105424880981,
0.6062150597572327,
0.9445680379867554,
-1.3248306512832642,
0.7167781591415405,
-0.03433557599782944,
-0.5435153841972351,
0.593159019947052,
1.3822195529937744,
0.5123562812805176,
-2.03527569770813,
0.8142388463020325,
-0.9296090602874756,
0.8526979684829712,
0.7473827600479126,
0.7494592070579529,
0.1741660237312317,
0.7916765809059143,
-1.1738228797912598,
-1.090520977973938,
-0.7160028219223022,
-0.6981287002563477,
1.8610553741455078,
-0.3374500572681427,
0.5735629200935364,
-0.2745448052883148,
-1.294058918952942,
-0.1356118768453598,
0.6862346529960632,
0.35002949833869934,
-0.5330986976623535,
0.7600252628326416,
-0.5182893872261047,
-1.1390681266784668,
-1.2024569511413574,
-0.5196376442909241,
-0.9853461980819702,
-0.9986602067947388,
1.0114023685455322,
0.8534908294677734,
0.26996228098869324,
1.8145760297775269,
0.6131837964057922,
0.1299237459897995,
-2.5983734130859375,
0.8676713109016418,
0.1717345118522644,
0.007841741666197777,
0.8922286033630371,
0.45434632897377014,
1.0078002214431763,
-0.06370902061462402,
0.4923754930496216,
-2.336799144744873,
2.2998199462890625,
-0.2276783585548401,
0.6682839393615723,
-0.13577565550804138,
-0.11982181668281555,
1.0930187702178955,
0.5291009545326233,
0.4360305368900299,
-0.9959490299224854,
0.6102832555770874,
-0.6262776255607605,
1.2544058561325073,
0.8183218836784363,
-0.8479933142662048,
-0.05568123608827591,
1.3665807247161865,
0.3339327275753021,
-0.6118330359458923,
-0.9847491383552551,
-0.9913676381111145,
1.0083119869232178,
1.6975189447402954,
-0.09816832840442657,
-0.06511417776346207,
0.7307696342468262,
0.652553379535675,
-1.320438265800476,
0.11676973104476929,
-0.7141335606575012,
-0.670063316822052,
1.715470314025879,
1.9723796844482422,
-0.1666901558637619,
-0.23176760971546173,
-0.6760562062263489,
-1.3091448545455933,
0.7747721076011658,
0.017199134454131126,
0.13690419495105743,
0.6273889541625977,
-0.6019994616508484,
1.038178563117981,
0.9237688183784485,
0.9448627233505249,
0.1351340264081955,
0.37063318490982056,
0.3891665041446686,
-0.46432411670684814,
-1.185962200164795,
-0.21126708388328552,
-1.1642117500305176,
-2.4138028621673584,
0.4377078711986542,
-0.1254158616065979,
-1.4446516036987305,
-0.0175858773291111,
-1.0047178268432617,
0.933722198009491,
-0.5684582591056824,
-1.062612771987915,
-1.479371428489685,
0.18842607736587524,
-0.05194411799311638,
0.95246422290802,
-1.5258997678756714,
-0.10543513298034668,
1.1741058826446533,
0.992282509803772,
-0.7512023448944092,
1.073410153388977,
0.23270510137081146,
1.0731709003448486,
0.8752020001411438,
-0.38466933369636536,
0.48449134826660156,
-0.060929007828235626,
-1.2750743627548218,
0.3735160231590271,
1.0818153619766235,
0.31209462881088257,
1.525246500968933,
-0.5496601462364197,
-0.0021752938628196716,
0.37288588285446167,
-0.4433557391166687,
-0.3945893943309784,
-0.5406966805458069,
0.5944244265556335,
0.06642413139343262,
-0.8824067711830139,
-0.023156987503170967,
0.026532109826803207,
-0.17748305201530457,
0.2248474657535553,
-1.5351154804229736,
-0.04711389169096947,
-0.45549482107162476,
-0.6053647398948669,
-1.1153384447097778,
-0.10266764461994171,
1.4803968667984009,
-0.748974621295929,
-0.21969643235206604,
0.617957592010498,
0.2206890881061554,
0.5156979560852051,
0.6620687246322632,
-0.6470514535903931,
-0.31522655487060547,
-0.22538942098617554,
-0.33181267976760864,
0.3737262189388275,
1.364317774772644,
-0.09188981354236603,
-1.0368142127990723,
0.7326518893241882,
-0.3483968675136566,
0.0716591328382492,
1.8151345252990723,
-0.00047812145203351974,
-0.851736307144165,
0.20845788717269897,
-0.6922093033790588,
1.924953579902649,
1.7492425441741943,
1.3635354042053223,
-0.09189161658287048,
-1.044740915298462,
0.6437581777572632,
-0.3032311797142029,
-0.4625198543071747,
0.8623048663139343,
0.48390549421310425,
-0.2341737449169159,
-1.4392327070236206,
0.7641903758049011,
1.2804204225540161,
-0.880772054195404,
-0.8658534288406372,
0.13702978193759918,
-0.7020235657691956,
1.0726649761199951,
0.7051423192024231,
0.3292813301086426,
0.293452650308609,
1.6283907890319824,
0.8781459927558899,
-0.4341960549354553,
0.5978835225105286,
0.5728819370269775,
-0.23763902485370636,
-2.134253978729248,
-1.2668547630310059,
0.2992621958255768,
-0.48342177271842957,
-1.7162352800369263,
1.38594651222229,
-1.2162797451019287,
-0.9415956139564514,
0.5984327793121338,
0.182344451546669,
1.39773690700531,
0.311432808637619,
1.532028079032898,
2.0602376461029053,
0.8210340738296509,
0.3118985593318939,
1.265358567237854,
-0.23228920996189117,
-0.4789063632488251,
1.7697606086730957,
-0.5253092050552368,
0.4922778010368347,
1.0850518941879272,
-0.3078853487968445,
-1.086896300315857,
-0.8181585073471069,
-1.3851449489593506,
-0.8221585154533386,
1.2066842317581177,
0.0865447074174881,
-1.1159617900848389,
0.21077066659927368,
1.5724481344223022,
0.04111992567777634,
-0.34959134459495544,
0.7974447011947632,
0.4419490694999695,
-0.956434965133667,
-0.08097667992115021,
-0.8724599480628967,
0.5186883807182312,
-0.1403050571680069,
-0.29531750082969666,
0.29151681065559387,
0.4323057234287262,
1.3738126754760742,
0.03961781784892082,
0.1448030024766922,
1.0937201976776123,
-1.2078160047531128,
1.4915730953216553,
-0.6300853490829468,
0.34145301580429077,
-2.43058180809021,
1.3911142349243164,
-0.7271707057952881,
1.9393864870071411,
-2.6547603607177734,
0.5108094811439514,
-0.6488766074180603,
-0.34640324115753174,
0.3141616880893707,
-0.37945756316185,
0.154811829328537,
-0.11018376052379608,
-1.1216881275177002,
-0.08394791185855865,
-0.6962928771972656,
0.6340205669403076,
1.1440590620040894,
1.4610469341278076,
-1.1589518785476685,
-0.19105900824069977,
-1.7971761226654053,
-0.1504642218351364,
-0.7539657950401306,
0.39763954281806946,
-1.9797003269195557,
-0.21711526811122894,
-1.9043530225753784,
-2.4007880687713623,
-1.2851450443267822,
-0.7173705697059631,
1.0873157978057861,
0.03688408061861992,
-0.8042910099029541,
1.2282297611236572,
-0.36991164088249207,
-1.8855230808258057,
1.1382274627685547,
-2.113980770111084
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | There is a workaround:
Create a loader python scrypt and upload the dataset to huggingface.
Here is an example how to do that:
https://huggingface.co/datasets/jamescalam/image-text-demo/tree/main
and Here are videos with explanations:
https://www.youtube.com/watch?v=lqK4ocAKveE and https://www.youtube.com/watch?v=ODdKC30dT8c | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 33 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
There is a workaround:
Create a loader python scrypt and upload the dataset to huggingface.
Here is an example how to do that:
https://huggingface.co/datasets/jamescalam/image-text-demo/tree/main
and Here are videos with explanations:
https://www.youtube.com/watch?v=lqK4ocAKveE and https://www.youtube.com/watch?v=ODdKC30dT8c | [
-1.2144490480422974,
-0.988673985004425,
-0.8487427234649658,
1.5013006925582886,
-0.20577290654182434,
-1.2150201797485352,
0.13016927242279053,
-1.0579849481582642,
1.7140365839004517,
-0.8390099406242371,
0.3143223226070404,
-1.6636772155761719,
-0.025993945077061653,
-0.6235305070877075,
-0.7424222230911255,
-0.8242539167404175,
-0.4055749773979187,
-0.7595813274383545,
1.1379703283309937,
2.4799623489379883,
1.201204776763916,
-1.3742996454238892,
2.631711959838867,
0.6875344514846802,
-0.27057644724845886,
-1.0019510984420776,
0.44813868403434753,
0.014731235802173615,
-1.3274481296539307,
-0.4538609981536865,
-0.7856656312942505,
0.007487615570425987,
-0.6171704530715942,
-0.5541420578956604,
-0.03273635357618332,
0.43656718730926514,
-0.36616554856300354,
-0.5067408680915833,
-0.5901046991348267,
-0.7827358245849609,
0.43277838826179504,
-0.45961523056030273,
0.8682989478111267,
-0.3308241367340088,
1.7270753383636475,
-0.6223997473716736,
0.3837997317314148,
0.7520235180854797,
1.2877147197723389,
0.20752722024917603,
0.010169006884098053,
0.35708221793174744,
0.33264294266700745,
-0.043018780648708344,
0.4999637007713318,
1.1426204442977905,
0.659612774848938,
0.507422924041748,
0.7385181784629822,
-2.3446497917175293,
1.320841908454895,
-1.0454751253128052,
0.34818947315216064,
1.3845621347427368,
-0.8806858658790588,
0.357859343290329,
-1.7802321910858154,
-0.057948753237724304,
0.5786097049713135,
-2.212693929672241,
0.35551589727401733,
-1.270393967628479,
-0.5126500129699707,
1.0440548658370972,
0.3869713544845581,
-1.1278201341629028,
0.12570002675056458,
-0.49369505047798157,
1.0396740436553955,
0.44266921281814575,
1.1011549234390259,
-1.7137585878372192,
-0.10920370370149612,
-0.32117754220962524,
0.15192657709121704,
-1.3485500812530518,
-1.5420782566070557,
0.5151190161705017,
0.6203081011772156,
0.6624965071678162,
-0.1322196125984192,
1.0360145568847656,
-0.9483511447906494,
0.7055649161338806,
-1.0111838579177856,
-1.7480055093765259,
-1.4090461730957031,
-2.1735734939575195,
-2.2629451751708984,
0.6350340247154236,
-0.4224552810192108,
-0.5250853300094604,
2.0666379928588867,
-0.921662449836731,
-1.88151216506958,
1.151885986328125,
0.3166056275367737,
-0.040474604815244675,
2.333268642425537,
0.22339728474617004,
-0.724100649356842,
0.5072228908538818,
-0.7895578145980835,
0.8238248229026794,
-0.3828146457672119,
1.3410894870758057,
0.41017234325408936,
-1.0292454957962036,
1.5510761737823486,
-0.421043336391449,
0.6049160957336426,
-0.6481904983520508,
-0.44978490471839905,
-0.8198668360710144,
0.31330952048301697,
1.908408284187317,
-0.25476396083831787,
1.5427658557891846,
-0.415937215089798,
-1.6242408752441406,
-1.663190484046936,
0.9063001275062561,
0.5906838774681091,
-0.7123517990112305,
0.2065725028514862,
-0.3579574227333069,
0.1631087362766266,
-0.09285811334848404,
1.1497911214828491,
1.2855671644210815,
0.8053215742111206,
-0.32315653562545776,
-0.8084632158279419,
0.227909654378891,
-0.03295416012406349,
-0.7330489754676819,
-1.7522294521331787,
-0.3107471764087677,
0.18448442220687866,
0.6087729334831238,
-1.2864123582839966,
1.755996823310852,
0.8784868121147156,
1.9884101152420044,
0.9965991377830505,
-0.40020036697387695,
1.4106084108352661,
0.10822750627994537,
1.821881651878357,
-0.4631083607673645,
0.7623066902160645,
-0.30689743161201477,
-1.1132320165634155,
0.8502252697944641,
-0.2560361623764038,
-2.073086977005005,
-0.7686796188354492,
-0.7477573752403259,
-0.22562536597251892,
-0.7592052221298218,
0.850568950176239,
-0.26713722944259644,
-1.417698621749878,
0.14480647444725037,
-0.7878530025482178,
0.2113116979598999,
-1.2402034997940063,
0.19209745526313782,
0.723080039024353,
-0.6675273776054382,
0.06683570891618729,
-0.1965653896331787,
-1.2754486799240112,
-0.41562899947166443,
0.25791963934898376,
1.8505911827087402,
-0.7160438895225525,
0.9029113054275513,
1.0307912826538086,
-0.6944400668144226,
0.05141165107488632,
0.27555155754089355,
-0.24407541751861572,
0.8280755877494812,
-1.0149497985839844,
-0.4597196578979492,
1.1667108535766602,
-0.15276512503623962,
-0.6903209686279297,
1.5074903964996338,
0.7013530135154724,
-1.0129605531692505,
-0.18459925055503845,
-0.18660101294517517,
-0.8037518262863159,
-0.05738675594329834,
-1.6062566041946411,
-0.06826673448085785,
0.46179869771003723,
-1.5100425481796265,
-0.4838997721672058,
-0.2685350477695465,
1.293359398841858,
-0.26523375511169434,
1.355617642402649,
-0.37474000453948975,
-0.15059328079223633,
-0.30115655064582825,
-0.3561108112335205,
0.151114821434021,
-0.1489381492137909,
-0.6532394289970398,
0.1364988386631012,
-0.8652229905128479,
0.35288068652153015,
1.49696683883667,
0.38195711374282837,
0.041393257677555084,
0.4190663695335388,
1.0926927328109741,
0.38866111636161804,
-0.04064762219786644,
-0.885377824306488,
-1.4797557592391968,
1.9381390810012817,
-1.38109290599823,
2.0091726779937744,
0.7812598347663879,
0.07014012336730957,
-1.8509149551391602,
-1.863210678100586,
1.3512605428695679,
1.1265190839767456,
2.420689105987549,
0.6446219086647034,
0.4982154369354248,
-0.8599212765693665,
-0.6897580027580261,
0.2481600046157837,
-0.948456883430481,
-0.7834434509277344,
0.19792738556861877,
2.3380348682403564,
1.7986314296722412,
-0.47553756833076477,
-0.15688559412956238,
-1.0019069910049438,
1.3844021558761597,
-0.09805142134428024,
0.22445610165596008,
1.9931259155273438,
-0.20157963037490845,
-1.022688388824463,
1.291221022605896,
-2.2788145542144775,
0.20766612887382507,
1.940231204032898,
0.21738043427467346,
0.13336381316184998,
-1.3424501419067383,
-0.6993627548217773,
-0.2471390664577484,
-0.3880026936531067,
-1.2556993961334229,
0.4236447513103485,
-0.21836316585540771,
-0.7173224091529846,
-1.425186038017273,
0.1669052243232727,
-1.0358084440231323,
-1.6387008428573608,
0.3002108931541443,
1.865756869316101,
1.9691238403320312,
-0.9266082048416138,
1.520401120185852,
-0.363930881023407,
0.11436362564563751,
1.2230043411254883,
1.1772501468658447,
2.9608988761901855,
1.8843278884887695,
-1.380617380142212,
0.7082375288009644,
-0.15904384851455688,
-0.44078922271728516,
1.1709754467010498,
-1.1795717477798462,
1.2012830972671509,
-0.14920836687088013,
-1.1692461967468262,
-1.2621405124664307,
1.0231428146362305,
0.5750308632850647,
0.0543845072388649,
-0.5538552403450012,
1.2330890893936157,
-0.0014026565477252007,
1.3416000604629517,
0.6005129814147949,
-0.39178913831710815,
0.7182579636573792,
-0.3694685697555542,
-0.5284633636474609,
1.5676029920578003,
0.137234628200531,
-1.3701344728469849,
-2.3071937561035156,
-0.2129485011100769,
-0.8266302943229675,
0.0880037322640419,
-0.5959102511405945,
-1.0042965412139893,
1.7532234191894531,
0.37168824672698975,
-1.3267470598220825,
-0.26046910881996155,
-0.34516799449920654,
-0.6065255999565125,
2.715399980545044,
-1.404016375541687,
-0.12146500498056412,
-1.051477313041687,
-0.6183497905731201,
1.6160482168197632,
-1.2217665910720825,
-0.20984932780265808,
-1.0680075883865356,
-0.5589178204536438,
-1.3725214004516602,
-0.6042813062667847,
-0.08022195100784302,
-0.8177151679992676,
0.8277885913848877,
0.2180689573287964,
-1.1340994834899902,
-0.3864266574382782,
-0.8579654693603516,
0.9712364077568054,
-0.1762426793575287,
0.1530240774154663,
1.9214143753051758,
0.4570935070514679,
-0.3295834958553314,
0.7724136710166931,
1.102002501487732,
0.6439974308013916,
-0.6444938778877258,
0.22452139854431152,
-0.6624085903167725,
0.2440946102142334,
-1.3516384363174438,
0.18363302946090698,
-2.8712549209594727,
0.6830959916114807,
-0.008656105026602745,
0.013517213985323906,
0.01504996232688427,
-1.2626196146011353,
1.0668301582336426,
2.622516393661499,
-1.2141485214233398,
0.47570469975471497,
0.34967708587646484,
1.142737627029419,
-1.5654295682907104,
0.23472824692726135,
-0.3998851776123047,
2.107576847076416,
0.24612775444984436,
1.2807013988494873,
-0.545644998550415,
-2.218151092529297,
0.5898561477661133,
-1.2423081398010254,
-1.1351277828216553,
0.8283984661102295,
-0.8301286697387695,
0.13567298650741577,
-1.502647042274475,
-0.35882896184921265,
-0.9013373851776123,
-1.2001208066940308,
0.8131363391876221,
0.11325425654649734,
0.4425746202468872,
-0.6412084102630615,
0.380523145198822,
-2.2569127082824707,
-1.3769716024398804,
-0.305316299200058,
-0.9567409753799438,
0.5198581218719482,
-0.2990669906139374,
0.6702829003334045,
-0.15110304951667786,
0.08262978494167328,
0.3512161672115326,
1.3961296081542969,
3.4654548168182373,
0.21664968132972717,
0.28933897614479065,
-0.2075383961200714,
-0.9193407893180847,
1.3928728103637695,
0.9848564863204956,
-0.07297763228416443,
-0.4732944369316101,
-1.1269545555114746,
1.2375348806381226,
1.9920592308044434,
1.0109245777130127,
-0.011253874748945236,
-0.8964207768440247,
-0.8052932620048523,
0.012469585984945297,
0.14340171217918396,
0.4580034613609314,
0.8484888672828674,
0.20289042592048645,
0.1812116801738739,
1.4186787605285645,
1.2267701625823975,
-0.41060858964920044,
0.43395066261291504,
-0.8741089105606079,
-0.49587687849998474,
0.4065224230289459,
0.3429778218269348,
-0.0012497315183281898,
0.4017903506755829,
-1.0821539163589478,
-0.1622428596019745,
-0.36276891827583313,
-0.9442662596702576,
-0.7309806942939758,
-0.4309707283973694,
-0.41171297430992126,
1.5751506090164185,
0.1576378345489502,
-0.4662729799747467,
-0.043436553329229355,
-0.7440155148506165,
-0.07108631730079651,
-1.031353235244751,
0.30511507391929626,
-0.15951120853424072,
-0.1401023268699646,
-0.18334278464317322,
1.7939629554748535,
-0.8982524871826172,
-1.9582146406173706,
0.25530651211738586,
0.2416691780090332,
-0.37743905186653137,
0.21633392572402954,
1.7551360130310059,
0.5980678200721741,
1.424798607826233,
1.3365943431854248,
0.9501904249191284,
-0.6984884738922119,
-1.214730143547058,
0.6140479445457458,
1.0044279098510742,
-1.3385183811187744,
0.6978012919425964,
-0.000585668720304966,
-0.49644842743873596,
0.6872757077217102,
1.3645610809326172,
0.46752849221229553,
-2.0388221740722656,
0.7692267894744873,
-0.9007555842399597,
0.7778040766716003,
0.749279797077179,
0.6822860240936279,
0.18400609493255615,
0.7820737957954407,
-1.2053042650222778,
-1.0879920721054077,
-0.7188773155212402,
-0.6761142015457153,
1.849893569946289,
-0.31540876626968384,
0.6022215485572815,
-0.24589529633522034,
-1.2662187814712524,
-0.12883523106575012,
0.7156289219856262,
0.34847956895828247,
-0.5165085792541504,
0.7597514390945435,
-0.4700435996055603,
-1.0940587520599365,
-1.2351069450378418,
-0.46845880150794983,
-1.009977102279663,
-0.9769853949546814,
0.9857698082923889,
0.8495254516601562,
0.2844027280807495,
1.8229161500930786,
0.6484929323196411,
0.1811816394329071,
-2.6309423446655273,
0.8302533626556396,
0.2083500623703003,
0.027694210410118103,
0.933886706829071,
0.39635956287384033,
1.0069606304168701,
-0.04989035800099373,
0.47475823760032654,
-2.3459763526916504,
2.288475275039673,
-0.1879328191280365,
0.646790087223053,
-0.1403680145740509,
-0.14825287461280823,
1.1450071334838867,
0.5397679805755615,
0.44638916850090027,
-1.0278196334838867,
0.6063544154167175,
-0.6412381529808044,
1.2431482076644897,
0.8159918189048767,
-0.8160023093223572,
-0.09743797034025192,
1.3869820833206177,
0.34265294671058655,
-0.5439546704292297,
-0.9278066158294678,
-1.0219287872314453,
0.9991398453712463,
1.7658579349517822,
-0.06972101330757141,
-0.07100731134414673,
0.8648257851600647,
0.6543922424316406,
-1.3474105596542358,
0.09910733997821808,
-0.7528080344200134,
-0.6579524874687195,
1.7246509790420532,
2.012493371963501,
-0.14860856533050537,
-0.2670157253742218,
-0.7069150805473328,
-1.2868348360061646,
0.7446975708007812,
0.006397873163223267,
0.13801255822181702,
0.663070797920227,
-0.6317972540855408,
1.1037384271621704,
0.9046937823295593,
0.9338343739509583,
0.05533786118030548,
0.30563411116600037,
0.3206743001937866,
-0.468964546918869,
-1.2623393535614014,
-0.21225908398628235,
-1.1310105323791504,
-2.4328575134277344,
0.4485248327255249,
-0.08296268433332443,
-1.4795786142349243,
-0.036433104425668716,
-1.0352016687393188,
0.9101594686508179,
-0.5561023354530334,
-1.125645399093628,
-1.5276334285736084,
0.2016199231147766,
-0.08422777056694031,
0.9395856857299805,
-1.5443005561828613,
-0.07315702736377716,
1.193471074104309,
0.9453680515289307,
-0.6757060289382935,
1.06544029712677,
0.19843339920043945,
1.0621693134307861,
0.8712387084960938,
-0.3702157437801361,
0.4815150201320648,
0.010670268908143044,
-1.296491265296936,
0.3534170687198639,
1.0722578763961792,
0.27254408597946167,
1.5578258037567139,
-0.567560613155365,
0.0796172246336937,
0.3753053545951843,
-0.4426068365573883,
-0.4193533957004547,
-0.5748010277748108,
0.6573162078857422,
0.05286981165409088,
-0.9191877841949463,
0.02949419617652893,
0.010728193446993828,
-0.18777906894683838,
0.25423702597618103,
-1.4523335695266724,
-0.05337041988968849,
-0.3930831849575043,
-0.6549460291862488,
-1.149452567100525,
0.025498781353235245,
1.4391463994979858,
-0.7962949872016907,
-0.22418612241744995,
0.618364691734314,
0.23176592588424683,
0.5901433825492859,
0.6370205283164978,
-0.6711066961288452,
-0.34428659081459045,
-0.21012091636657715,
-0.3164375126361847,
0.38583335280418396,
1.3508412837982178,
-0.11190586537122726,
-1.0115855932235718,
0.7947235107421875,
-0.4157717525959015,
0.09995707869529724,
1.9058253765106201,
0.027220234274864197,
-0.8627291321754456,
0.2704247534275055,
-0.7275159955024719,
1.910648226737976,
1.7347166538238525,
1.3780983686447144,
-0.05213107541203499,
-1.0301743745803833,
0.6168007850646973,
-0.29359033703804016,
-0.45229974389076233,
0.9272834062576294,
0.4764343202114105,
-0.23407095670700073,
-1.410188913345337,
0.6706146597862244,
1.3147028684616089,
-0.8637861013412476,
-0.8833275437355042,
0.15996673703193665,
-0.769375205039978,
1.1037933826446533,
0.6958368420600891,
0.3200088143348694,
0.27772560715675354,
1.5420541763305664,
0.8754377961158752,
-0.4156024158000946,
0.5602344274520874,
0.5822505354881287,
-0.23467233777046204,
-2.103600025177002,
-1.1694828271865845,
0.3265451192855835,
-0.5026184916496277,
-1.7161139249801636,
1.3804612159729004,
-1.1892061233520508,
-0.9792648553848267,
0.612634539604187,
0.12974813580513,
1.3873448371887207,
0.25096699595451355,
1.561143159866333,
2.051342248916626,
0.8790767192840576,
0.298810750246048,
1.3243298530578613,
-0.226526141166687,
-0.5033524632453918,
1.8094894886016846,
-0.5614332556724548,
0.475217342376709,
1.0412403345108032,
-0.28918367624282837,
-1.059175729751587,
-0.7873139381408691,
-1.3047592639923096,
-0.7851086854934692,
1.265886902809143,
0.14197200536727905,
-1.0765342712402344,
0.1574486494064331,
1.5474141836166382,
0.09360073506832123,
-0.34581154584884644,
0.7571393847465515,
0.4016704857349396,
-0.9239400625228882,
-0.04130730777978897,
-0.8539978265762329,
0.4748528301715851,
-0.09531062096357346,
-0.2542404532432556,
0.25158077478408813,
0.46426570415496826,
1.3054031133651733,
-0.013468848541378975,
0.17177358269691467,
1.1450138092041016,
-1.2377272844314575,
1.5186775922775269,
-0.5831947922706604,
0.34457114338874817,
-2.4790194034576416,
1.409397840499878,
-0.7601768374443054,
1.9162667989730835,
-2.6277623176574707,
0.47020670771598816,
-0.6515974402427673,
-0.3549219071865082,
0.31264781951904297,
-0.4029034674167633,
0.12297280877828598,
-0.08595479279756546,
-1.1437654495239258,
-0.11507179588079453,
-0.7425730228424072,
0.6111061573028564,
1.158231258392334,
1.425649881362915,
-1.1828410625457764,
-0.2409275770187378,
-1.7765686511993408,
-0.15529349446296692,
-0.7782651782035828,
0.43610602617263794,
-1.9990921020507812,
-0.14930126070976257,
-1.9222757816314697,
-2.3948721885681152,
-1.3832286596298218,
-0.7557389736175537,
1.030073642730713,
0.07566772401332855,
-0.8054470419883728,
1.108579158782959,
-0.3751809298992157,
-1.8601552248001099,
1.1344777345657349,
-2.1285367012023926
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | > Any update on this? I'm still facing this issure. Any workaround?
I was able to resolve my issue with a quick workaround:
```
from collections import defaultdict
from datasets import Dataset
data = defaultdict(list)
for idx in tqdm(range( len(dataloader)),desc="Captioning..."):
img = dataloader[idx]
data['image'].append(img)
data['text'].append(f"{img_{idx}})
dataset = Dataset.from_dict(data)
dataset = dataset.filter(lambda example: example['image'] is not None)
dataset = dataset.filter(lambda example: example['text'] is not None)
dataset.push_to_hub(path-to-repo', private=False)
```
Hope it helps!
Happy coding | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 72 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
> Any update on this? I'm still facing this issure. Any workaround?
I was able to resolve my issue with a quick workaround:
```
from collections import defaultdict
from datasets import Dataset
data = defaultdict(list)
for idx in tqdm(range( len(dataloader)),desc="Captioning..."):
img = dataloader[idx]
data['image'].append(img)
data['text'].append(f"{img_{idx}})
dataset = Dataset.from_dict(data)
dataset = dataset.filter(lambda example: example['image'] is not None)
dataset = dataset.filter(lambda example: example['text'] is not None)
dataset.push_to_hub(path-to-repo', private=False)
```
Hope it helps!
Happy coding | [
-1.2412388324737549,
-0.9939414858818054,
-0.806617259979248,
1.5083202123641968,
-0.26297852396965027,
-1.1864991188049316,
0.13959375023841858,
-1.1046315431594849,
1.739721655845642,
-0.8370953798294067,
0.290422648191452,
-1.663325309753418,
0.019933953881263733,
-0.6044787764549255,
-0.7566289901733398,
-0.8531519770622253,
-0.4186265170574188,
-0.714782178401947,
1.175682544708252,
2.4620048999786377,
1.162984848022461,
-1.3556264638900757,
2.6635608673095703,
0.7141385078430176,
-0.21244922280311584,
-1.0179357528686523,
0.4782346785068512,
0.047183435410261154,
-1.343834400177002,
-0.42940425872802734,
-0.8515085577964783,
-0.011540940962731838,
-0.5716666579246521,
-0.575546145439148,
-0.04271576926112175,
0.4526080787181854,
-0.36953985691070557,
-0.6112408638000488,
-0.5689522624015808,
-0.7601993083953857,
0.4253637194633484,
-0.48510873317718506,
0.8693428039550781,
-0.314990371465683,
1.7458735704421997,
-0.617302656173706,
0.4085911512374878,
0.7285957336425781,
1.2966974973678589,
0.2719985842704773,
-0.01616460457444191,
0.4196585416793823,
0.33576545119285583,
-0.024014431983232498,
0.5019211173057556,
1.1428064107894897,
0.6751243472099304,
0.5075675845146179,
0.7845189571380615,
-2.3496487140655518,
1.262967586517334,
-1.0733304023742676,
0.36813586950302124,
1.3278864622116089,
-0.9111720323562622,
0.3649967610836029,
-1.7384172677993774,
-0.05450819060206413,
0.6124155521392822,
-2.175184726715088,
0.36645087599754333,
-1.2794545888900757,
-0.4912111163139343,
1.0272700786590576,
0.41498467326164246,
-1.085277795791626,
0.1240055188536644,
-0.5142070651054382,
1.0326184034347534,
0.38724571466445923,
1.0907548666000366,
-1.6597079038619995,
-0.03636852279305458,
-0.3718439042568207,
0.1501401960849762,
-1.3220669031143188,
-1.5385600328445435,
0.5611215233802795,
0.6593213677406311,
0.6458243727684021,
-0.1851843297481537,
1.0728132724761963,
-0.9373683929443359,
0.683398425579071,
-1.0375657081604004,
-1.7595324516296387,
-1.416231393814087,
-2.160038948059082,
-2.2162013053894043,
0.6496764421463013,
-0.4206676185131073,
-0.5755465030670166,
2.1082420349121094,
-0.9564142227172852,
-1.8943121433258057,
1.162737250328064,
0.2695837914943695,
-0.036003340035676956,
2.3519527912139893,
0.20914489030838013,
-0.7396214008331299,
0.5109504461288452,
-0.7721269130706787,
0.80026775598526,
-0.35044893622398376,
1.3730605840682983,
0.3664800524711609,
-0.9888209700584412,
1.6025495529174805,
-0.3530420660972595,
0.5943724513053894,
-0.623394250869751,
-0.45274657011032104,
-0.8154054284095764,
0.30038517713546753,
1.9490852355957031,
-0.23789961636066437,
1.5166926383972168,
-0.4674087166786194,
-1.6697498559951782,
-1.641223430633545,
0.8894813060760498,
0.6082360744476318,
-0.6922776103019714,
0.20025299489498138,
-0.39702722430229187,
0.1770688146352768,
-0.09473156183958054,
1.2082847356796265,
1.2748167514801025,
0.818576455116272,
-0.3366212844848633,
-0.8328979015350342,
0.18558423221111298,
0.008874368853867054,
-0.7587915658950806,
-1.7334239482879639,
-0.3068310618400574,
0.1624154895544052,
0.623160719871521,
-1.2412816286087036,
1.7368398904800415,
0.8910197615623474,
1.9447827339172363,
1.0245968103408813,
-0.37840771675109863,
1.4265875816345215,
0.14196300506591797,
1.7724210023880005,
-0.494261771440506,
0.7275546789169312,
-0.3075988292694092,
-1.1078134775161743,
0.8392381072044373,
-0.24882450699806213,
-2.081186056137085,
-0.7697674632072449,
-0.7082464694976807,
-0.1963011473417282,
-0.763843297958374,
0.8808488845825195,
-0.3312026560306549,
-1.4271990060806274,
0.1616857796907425,
-0.7779501080513,
0.21793930232524872,
-1.2126905918121338,
0.2304207980632782,
0.7041456699371338,
-0.66014164686203,
0.10629343241453171,
-0.22163711488246918,
-1.2774652242660522,
-0.42714154720306396,
0.24633003771305084,
1.8430424928665161,
-0.7879807353019714,
0.8556433916091919,
1.061423659324646,
-0.7121239304542542,
0.017674412578344345,
0.24817393720149994,
-0.2168414294719696,
0.8351691961288452,
-1.0074775218963623,
-0.4636792838573456,
1.208032250404358,
-0.19250349700450897,
-0.6218250393867493,
1.512596845626831,
0.6720399856567383,
-0.9801375269889832,
-0.20104289054870605,
-0.12255807965993881,
-0.8790145516395569,
-0.06962189823389053,
-1.5931910276412964,
-0.0846552774310112,
0.521943211555481,
-1.5406748056411743,
-0.5082852244377136,
-0.2722053825855255,
1.2645044326782227,
-0.23749251663684845,
1.330847144126892,
-0.34123483300209045,
-0.1784663051366806,
-0.24630968272686005,
-0.3207598626613617,
0.16383059322834015,
-0.17746880650520325,
-0.6721001863479614,
0.08936250954866409,
-0.8296316266059875,
0.35274308919906616,
1.4957069158554077,
0.3772302269935608,
0.03760823607444763,
0.4787765443325043,
1.1068828105926514,
0.37251049280166626,
-0.041991133242845535,
-0.8591152429580688,
-1.5385770797729492,
1.9155064821243286,
-1.4025218486785889,
1.9910333156585693,
0.7440727353096008,
0.024986233562231064,
-1.8397771120071411,
-1.8522934913635254,
1.3971667289733887,
1.102502465248108,
2.390463352203369,
0.6265121698379517,
0.46577897667884827,
-0.8485374450683594,
-0.6897460222244263,
0.22608159482479095,
-0.933232307434082,
-0.7962743639945984,
0.2097610980272293,
2.3417747020721436,
1.7982416152954102,
-0.4790143072605133,
-0.12982933223247528,
-1.035330891609192,
1.4002240896224976,
-0.135762557387352,
0.25505921244621277,
1.951798677444458,
-0.23827703297138214,
-1.0445334911346436,
1.29183828830719,
-2.308983325958252,
0.15833711624145508,
1.9319500923156738,
0.21323326230049133,
0.12739220261573792,
-1.3322089910507202,
-0.6735457181930542,
-0.2810509204864502,
-0.3625078797340393,
-1.275399088859558,
0.446475625038147,
-0.21437908709049225,
-0.6911588311195374,
-1.3990422487258911,
0.15898701548576355,
-1.0401173830032349,
-1.580112099647522,
0.2655961811542511,
1.9001458883285522,
2.0017523765563965,
-0.8834353685379028,
1.5838536024093628,
-0.39428800344467163,
0.19893954694271088,
1.1965116262435913,
1.1619460582733154,
2.9658522605895996,
1.8888325691223145,
-1.353958249092102,
0.6780012845993042,
-0.12087154388427734,
-0.46708711981773376,
1.216619849205017,
-1.1779279708862305,
1.2559505701065063,
-0.09832963347434998,
-1.1671103239059448,
-1.2378807067871094,
0.9793757200241089,
0.5337051749229431,
0.04504367709159851,
-0.5229607820510864,
1.1955127716064453,
0.007766720838844776,
1.3448840379714966,
0.5928345918655396,
-0.38187283277511597,
0.702816367149353,
-0.3559350371360779,
-0.5241603851318359,
1.5418320894241333,
0.14176684617996216,
-1.3641401529312134,
-2.2636020183563232,
-0.1997491866350174,
-0.8056884407997131,
0.14509685337543488,
-0.5935240983963013,
-1.002176284790039,
1.7576556205749512,
0.3245324492454529,
-1.2827844619750977,
-0.22384224832057953,
-0.34527385234832764,
-0.6115145087242126,
2.710622549057007,
-1.3112514019012451,
-0.1815691441297531,
-1.038050651550293,
-0.6702089905738831,
1.6396582126617432,
-1.1585623025894165,
-0.2097676396369934,
-1.0554319620132446,
-0.5341181755065918,
-1.4114116430282593,
-0.6283187866210938,
-0.007886315695941448,
-0.8640634417533875,
0.8739099502563477,
0.21682864427566528,
-1.1467891931533813,
-0.3770034909248352,
-0.8540076613426208,
0.9749255776405334,
-0.24647025763988495,
0.150383859872818,
1.9429312944412231,
0.43382227420806885,
-0.34611618518829346,
0.7893317341804504,
1.0936510562896729,
0.6765359044075012,
-0.6107524037361145,
0.21775011718273163,
-0.6850059628486633,
0.2545706331729889,
-1.3341553211212158,
0.19892174005508423,
-2.8580310344696045,
0.6638686060905457,
0.018060460686683655,
0.03403535485267639,
0.03244543448090553,
-1.3090416193008423,
1.0253928899765015,
2.6450538635253906,
-1.2579644918441772,
0.4883083701133728,
0.36843523383140564,
1.1825076341629028,
-1.5853753089904785,
0.26213929057121277,
-0.40678054094314575,
2.088433265686035,
0.27022072672843933,
1.300704002380371,
-0.5259714722633362,
-2.253286838531494,
0.6330046057701111,
-1.2913674116134644,
-1.1884708404541016,
0.7852967977523804,
-0.9112526178359985,
0.1878303438425064,
-1.516181468963623,
-0.358718603849411,
-0.9120156764984131,
-1.1655012369155884,
0.7739827632904053,
0.1338929384946823,
0.40994992852211,
-0.6402072310447693,
0.35653555393218994,
-2.2596068382263184,
-1.3662101030349731,
-0.29437312483787537,
-0.973919153213501,
0.5454211235046387,
-0.3256019055843353,
0.6887849569320679,
-0.1776650846004486,
0.07074154913425446,
0.3390581011772156,
1.4502332210540771,
3.432346820831299,
0.24039815366268158,
0.2556213140487671,
-0.1867549568414688,
-0.8751112818717957,
1.4093821048736572,
0.9500397443771362,
-0.11960526555776596,
-0.4773780405521393,
-1.1603240966796875,
1.2223821878433228,
1.9538477659225464,
0.9431613683700562,
-0.015036769211292267,
-0.8607769012451172,
-0.8085640668869019,
-0.010565010830760002,
0.1236848458647728,
0.40321972966194153,
0.815386176109314,
0.18614253401756287,
0.16497553884983063,
1.4422966241836548,
1.203316569328308,
-0.43564513325691223,
0.4502083957195282,
-0.8785004019737244,
-0.5370467305183411,
0.46776244044303894,
0.2952197194099426,
-0.01849069818854332,
0.35820698738098145,
-1.101847767829895,
-0.1693401336669922,
-0.37363401055336,
-0.8884076476097107,
-0.7080904841423035,
-0.40645715594291687,
-0.39567485451698303,
1.5608810186386108,
0.15897740423679352,
-0.5535717606544495,
-0.11430397629737854,
-0.7258616089820862,
-0.0779259130358696,
-0.9872872829437256,
0.2795168459415436,
-0.14960330724716187,
-0.1637016236782074,
-0.17846985161304474,
1.775386095046997,
-0.8882080316543579,
-1.9423658847808838,
0.23440203070640564,
0.2448836714029312,
-0.3053886890411377,
0.24360226094722748,
1.7053146362304688,
0.595731258392334,
1.4794609546661377,
1.3774243593215942,
0.9393339157104492,
-0.6813840866088867,
-1.2388293743133545,
0.6223682165145874,
0.9536424279212952,
-1.3148943185806274,
0.6854206919670105,
0.018817804753780365,
-0.5215241312980652,
0.6373515725135803,
1.377145767211914,
0.5180618762969971,
-2.02142596244812,
0.7890778183937073,
-0.9302203059196472,
0.7465096712112427,
0.7550519704818726,
0.6858450174331665,
0.15201778709888458,
0.8118856549263,
-1.1573070287704468,
-1.1203862428665161,
-0.7476588487625122,
-0.6944478154182434,
1.8804281949996948,
-0.35187238454818726,
0.5889363884925842,
-0.2632461488246918,
-1.280809998512268,
-0.1403750628232956,
0.6690895557403564,
0.3226025402545929,
-0.5357258915901184,
0.7895240783691406,
-0.5307115316390991,
-1.1593718528747559,
-1.2092504501342773,
-0.45198264718055725,
-1.0094751119613647,
-0.9648675918579102,
0.9944173693656921,
0.845617413520813,
0.2655037045478821,
1.8220031261444092,
0.6658484935760498,
0.17664834856987,
-2.58735990524292,
0.8416586518287659,
0.17849119007587433,
0.008580631576478481,
0.8517180681228638,
0.3705892860889435,
0.9480031132698059,
-0.0489770732820034,
0.48879188299179077,
-2.3484089374542236,
2.294485330581665,
-0.22402423620224,
0.6957864761352539,
-0.15593144297599792,
-0.11745858937501907,
1.1290910243988037,
0.5429796576499939,
0.48627370595932007,
-0.9966448545455933,
0.584352433681488,
-0.6240113377571106,
1.2775367498397827,
0.8502089381217957,
-0.7928913831710815,
-0.08727443963289261,
1.4181489944458008,
0.34767845273017883,
-0.5579970479011536,
-0.9570594429969788,
-1.0189244747161865,
0.9989597201347351,
1.7351880073547363,
-0.05975119024515152,
-0.06258860230445862,
0.8344395160675049,
0.6760327219963074,
-1.3137372732162476,
0.04746634513139725,
-0.7489780187606812,
-0.6485476493835449,
1.7471675872802734,
2.0567424297332764,
-0.17524339258670807,
-0.26035889983177185,
-0.6845726370811462,
-1.2833718061447144,
0.7839742302894592,
-0.02584671601653099,
0.0962357372045517,
0.6833229064941406,
-0.6035584807395935,
1.0695953369140625,
0.9467691779136658,
0.908958375453949,
0.13850218057632446,
0.2868031859397888,
0.32804596424102783,
-0.3814722001552582,
-1.23934006690979,
-0.173837810754776,
-1.1020886898040771,
-2.3850021362304688,
0.3766311705112457,
-0.08737660944461823,
-1.4725040197372437,
-0.008920232765376568,
-1.0627793073654175,
0.9565128684043884,
-0.5437169075012207,
-1.1215128898620605,
-1.5318336486816406,
0.18102498352527618,
-0.012752382084727287,
0.9511337280273438,
-1.5592710971832275,
-0.05329488217830658,
1.1551759243011475,
0.9445061087608337,
-0.7156320214271545,
1.03437077999115,
0.24641914665699005,
1.0610138177871704,
0.8720796704292297,
-0.38403263688087463,
0.4980545938014984,
-0.046574704349040985,
-1.2807657718658447,
0.38966992497444153,
1.0683908462524414,
0.24060319364070892,
1.5479577779769897,
-0.5220130085945129,
-0.026744700968265533,
0.40742436051368713,
-0.5040819048881531,
-0.38844943046569824,
-0.5598107576370239,
0.6143239140510559,
0.05667002871632576,
-0.8314184546470642,
-0.0503164604306221,
0.05772710219025612,
-0.22269020974636078,
0.26720568537712097,
-1.50006103515625,
-0.0347822904586792,
-0.414998322725296,
-0.6865962147712708,
-1.1016590595245361,
-0.025340363383293152,
1.4808083772659302,
-0.830740749835968,
-0.23242291808128357,
0.5955016016960144,
0.23016221821308136,
0.5500537157058716,
0.6474859118461609,
-0.6652503609657288,
-0.29906538128852844,
-0.19295062124729156,
-0.3315701186656952,
0.3446020185947418,
1.3941365480422974,
-0.10689622163772583,
-0.994185745716095,
0.7479248046875,
-0.37290480732917786,
0.06751346588134766,
1.8291382789611816,
0.018135320395231247,
-0.8629648685455322,
0.22209961712360382,
-0.7702663540840149,
1.9368712902069092,
1.7620723247528076,
1.3941317796707153,
-0.09971416741609573,
-1.0560145378112793,
0.5943082571029663,
-0.29838860034942627,
-0.46647870540618896,
0.8687839508056641,
0.4762382507324219,
-0.20026960968971252,
-1.3764411211013794,
0.8023748397827148,
1.2809749841690063,
-0.8657255172729492,
-0.8254982829093933,
0.17274941504001617,
-0.747897744178772,
1.109774112701416,
0.6884667277336121,
0.32107263803482056,
0.28579965233802795,
1.6194828748703003,
0.8747598528862,
-0.3975994884967804,
0.539773166179657,
0.6402307152748108,
-0.17056810855865479,
-2.1338915824890137,
-1.2095273733139038,
0.3255164623260498,
-0.49361348152160645,
-1.748422384262085,
1.3820732831954956,
-1.1737602949142456,
-0.9467524886131287,
0.6052072048187256,
0.11260884255170822,
1.413356900215149,
0.30510008335113525,
1.537292718887329,
2.033088207244873,
0.8692024946212769,
0.36303335428237915,
1.3047406673431396,
-0.21794317662715912,
-0.5122349262237549,
1.7854145765304565,
-0.5004087686538696,
0.5044289827346802,
1.0531278848648071,
-0.28104284405708313,
-1.0963884592056274,
-0.7563353776931763,
-1.3608484268188477,
-0.7967591881752014,
1.1939462423324585,
0.10350597649812698,
-1.1241170167922974,
0.18223369121551514,
1.522469401359558,
0.07964976131916046,
-0.3441585600376129,
0.7325962781906128,
0.36432093381881714,
-0.9054057002067566,
-0.0603795163333416,
-0.8606187701225281,
0.49191638827323914,
-0.170137420296669,
-0.28458863496780396,
0.2713671326637268,
0.43538331985473633,
1.3591985702514648,
-0.013067226856946945,
0.14208266139030457,
1.1352795362472534,
-1.3032914400100708,
1.4631708860397339,
-0.6530849933624268,
0.36560723185539246,
-2.483921527862549,
1.3969364166259766,
-0.7728855609893799,
1.9316179752349854,
-2.720919132232666,
0.5101895332336426,
-0.6755008101463318,
-0.3897863030433655,
0.3010278046131134,
-0.38947686553001404,
0.09866470843553543,
-0.03495212644338608,
-1.1450921297073364,
-0.06650360673666,
-0.6889194846153259,
0.6264034509658813,
1.1604945659637451,
1.410310983657837,
-1.1814409494400024,
-0.22072434425354004,
-1.7482246160507202,
-0.2059289515018463,
-0.7633862495422363,
0.44802525639533997,
-2.026073455810547,
-0.17356595396995544,
-1.876783847808838,
-2.4144434928894043,
-1.2820974588394165,
-0.7441251873970032,
1.0640314817428589,
0.056894365698099136,
-0.8188104629516602,
1.191160798072815,
-0.36506134271621704,
-1.91343092918396,
1.1701536178588867,
-2.137197971343994
] |
https://github.com/huggingface/datasets/issues/4796 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset | > > Any update on this? I'm still facing this issure. Any workaround?
>
> I was able to resolve my issue with a quick workaround:
>
> ```
> from collections import defaultdict
> from datasets import Dataset
>
> data = defaultdict(list)
> for idx in tqdm(range( len(dataloader)),desc="Captioning..."):
> img = dataloader[idx]
> data['image'].append(img)
> data['text'].append(f"{img_{idx}})
>
> dataset = Dataset.from_dict(data)
> dataset = dataset.filter(lambda example: example['image'] is not None)
> dataset = dataset.filter(lambda example: example['text'] is not None)
>
> dataset.push_to_hub(path-to-repo', private=False)
> ```
>
> Hope it helps! Happy coding
It works!! | ## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
| 588 | 96 | ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB when adding image to Dataset
## Describe the bug
When adding a Pillow image to an existing Dataset on the hub, `add_item` fails due to the Pillow image not being automatically converted into the Image feature.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from PIL import Image
dataset = load_dataset("hf-internal-testing/example-documents")
# load any random Pillow image
image = Image.open("/content/cord_example.png").convert("RGB")
new_image = {'image': image}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Expected results
The image should be automatically casted to the Image feature when using `add_item`. For now, this can be fixed by using `encode_example`:
```
import datasets
feature = datasets.Image(decode=False)
new_image = {'image': feature.encode_example(image)}
dataset['test'] = dataset['test'].add_item(new_image)
```
## Actual results
```
ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=576x864 at 0x7F7CCC4589D0> with type Image: did not recognize Python value type when inferring an Arrow data type
```
> > Any update on this? I'm still facing this issure. Any workaround?
>
> I was able to resolve my issue with a quick workaround:
>
> ```
> from collections import defaultdict
> from datasets import Dataset
>
> data = defaultdict(list)
> for idx in tqdm(range( len(dataloader)),desc="Captioning..."):
> img = dataloader[idx]
> data['image'].append(img)
> data['text'].append(f"{img_{idx}})
>
> dataset = Dataset.from_dict(data)
> dataset = dataset.filter(lambda example: example['image'] is not None)
> dataset = dataset.filter(lambda example: example['text'] is not None)
>
> dataset.push_to_hub(path-to-repo', private=False)
> ```
>
> Hope it helps! Happy coding
It works!! | [
-1.222718596458435,
-0.9803125858306885,
-0.8079345226287842,
1.5054720640182495,
-0.257229208946228,
-1.195570707321167,
0.13114270567893982,
-1.1175330877304077,
1.7383666038513184,
-0.836266815662384,
0.3037085235118866,
-1.686421275138855,
-0.007801922038197517,
-0.6013092994689941,
-0.7700986862182617,
-0.8567960262298584,
-0.3972684442996979,
-0.7459276914596558,
1.148463487625122,
2.4567010402679443,
1.1929489374160767,
-1.3493002653121948,
2.652364492416382,
0.727232813835144,
-0.23312482237815857,
-1.0157071352005005,
0.4954717457294464,
0.034991711378097534,
-1.3268027305603027,
-0.44771063327789307,
-0.8352527618408203,
-0.01255725510418415,
-0.608064591884613,
-0.5660411715507507,
-0.05533476173877716,
0.4236784875392914,
-0.36457446217536926,
-0.5684918165206909,
-0.5826466083526611,
-0.7786980271339417,
0.3883801996707916,
-0.49386945366859436,
0.8697806000709534,
-0.31537485122680664,
1.699844241142273,
-0.6221338510513306,
0.42682355642318726,
0.7312948703765869,
1.2846643924713135,
0.295066237449646,
-0.042825739830732346,
0.39972594380378723,
0.3297271132469177,
-0.03342391178011894,
0.5034106373786926,
1.1206228733062744,
0.6775973439216614,
0.5143076181411743,
0.794485330581665,
-2.3506217002868652,
1.266889214515686,
-1.0620677471160889,
0.3477453589439392,
1.320381999015808,
-0.876613438129425,
0.3768210709095001,
-1.761743426322937,
-0.03895973414182663,
0.628157377243042,
-2.2169933319091797,
0.3523740768432617,
-1.3171614408493042,
-0.5054644346237183,
0.9837291836738586,
0.4045676290988922,
-1.1011379957199097,
0.08336450904607773,
-0.4887239634990692,
1.0277146100997925,
0.41052472591400146,
1.0693345069885254,
-1.7064993381500244,
-0.027537476271390915,
-0.35508620738983154,
0.16291049122810364,
-1.2930995225906372,
-1.556115984916687,
0.5834206342697144,
0.6731706261634827,
0.6387606859207153,
-0.16561055183410645,
1.0598586797714233,
-0.9171507358551025,
0.6566838026046753,
-1.0070966482162476,
-1.7655344009399414,
-1.3914638757705688,
-2.1352100372314453,
-2.1893653869628906,
0.6178655624389648,
-0.47893989086151123,
-0.5790991187095642,
2.119325876235962,
-0.954362690448761,
-1.9128683805465698,
1.1522376537322998,
0.2767565846443176,
-0.03543047234416008,
2.3809762001037598,
0.20822006464004517,
-0.7127242684364319,
0.5176307559013367,
-0.781489372253418,
0.8027582168579102,
-0.35503095388412476,
1.3776624202728271,
0.34287944436073303,
-0.963506817817688,
1.6325660943984985,
-0.382367342710495,
0.5834452509880066,
-0.6363973021507263,
-0.4662139117717743,
-0.8094867467880249,
0.2797900438308716,
1.961258053779602,
-0.2205568253993988,
1.5362224578857422,
-0.4400131404399872,
-1.6580320596694946,
-1.6615476608276367,
0.9023038148880005,
0.5916414260864258,
-0.7479953169822693,
0.23670879006385803,
-0.4283854365348816,
0.1856410801410675,
-0.06386637687683105,
1.2103370428085327,
1.3161028623580933,
0.8123695850372314,
-0.30758193135261536,
-0.8301047086715698,
0.1763908863067627,
0.021775802597403526,
-0.7577680945396423,
-1.7412208318710327,
-0.289152592420578,
0.13731491565704346,
0.6434404253959656,
-1.226009726524353,
1.721072793006897,
0.8853423595428467,
1.9539662599563599,
1.0420329570770264,
-0.39018964767456055,
1.4247668981552124,
0.155112624168396,
1.7612826824188232,
-0.5236278176307678,
0.7304081320762634,
-0.33405768871307373,
-1.073768138885498,
0.8594858050346375,
-0.26014813780784607,
-2.024651050567627,
-0.736518383026123,
-0.7305160164833069,
-0.22170832753181458,
-0.7778174877166748,
0.885520339012146,
-0.304487407207489,
-1.382007122039795,
0.20395177602767944,
-0.8091624975204468,
0.199599027633667,
-1.226609468460083,
0.26704397797584534,
0.7107923030853271,
-0.6430545449256897,
0.09964834898710251,
-0.2685237526893616,
-1.2919883728027344,
-0.4461628198623657,
0.2376972734928131,
1.8631306886672974,
-0.7467190623283386,
0.8607275485992432,
1.0451619625091553,
-0.7202915549278259,
0.0008224071934819221,
0.2653631865978241,
-0.20219436287879944,
0.8189499378204346,
-1.020982265472412,
-0.44070857763290405,
1.2029180526733398,
-0.21762576699256897,
-0.6027851104736328,
1.4894990921020508,
0.6319747567176819,
-1.0032875537872314,
-0.19738182425498962,
-0.1333843469619751,
-0.8427723050117493,
-0.056989580392837524,
-1.636920690536499,
-0.06922152638435364,
0.528397798538208,
-1.5620698928833008,
-0.5336595773696899,
-0.2516810894012451,
1.2645397186279297,
-0.20237630605697632,
1.302828311920166,
-0.32605308294296265,
-0.14218434691429138,
-0.2601091265678406,
-0.3256223797798157,
0.13875412940979004,
-0.1903539001941681,
-0.6508640646934509,
0.0914335697889328,
-0.8482686877250671,
0.32007941603660583,
1.5210119485855103,
0.3418891131877899,
0.026980973780155182,
0.454587459564209,
1.0922703742980957,
0.3757447600364685,
-0.07501263171434402,
-0.8738811612129211,
-1.52263605594635,
1.930532693862915,
-1.4244937896728516,
1.9896317720413208,
0.7261784076690674,
0.023594971746206284,
-1.828465461730957,
-1.887894630432129,
1.392124891281128,
1.0917049646377563,
2.3838272094726562,
0.6763135194778442,
0.45685797929763794,
-0.8246148824691772,
-0.6775914430618286,
0.2090667188167572,
-0.9370290637016296,
-0.8230512738227844,
0.19118386507034302,
2.336184501647949,
1.7602492570877075,
-0.5078607797622681,
-0.12383338063955307,
-1.001132845878601,
1.4013338088989258,
-0.12137984484434128,
0.25946250557899475,
1.9332762956619263,
-0.24351435899734497,
-1.069498896598816,
1.2802343368530273,
-2.299058675765991,
0.15156495571136475,
1.9348628520965576,
0.19318091869354248,
0.16415444016456604,
-1.316440224647522,
-0.6935307383537292,
-0.2847430109977722,
-0.36343732476234436,
-1.2639186382293701,
0.44981318712234497,
-0.20923727750778198,
-0.6738927960395813,
-1.4141454696655273,
0.17332333326339722,
-0.998622477054596,
-1.5890806913375854,
0.2443287968635559,
1.9280149936676025,
2.032416820526123,
-0.8890431523323059,
1.5976351499557495,
-0.4438365399837494,
0.16249963641166687,
1.1819660663604736,
1.1648833751678467,
2.969230890274048,
1.906702995300293,
-1.3430640697479248,
0.6644260287284851,
-0.12177792191505432,
-0.4732547700405121,
1.2539783716201782,
-1.1644381284713745,
1.2196073532104492,
-0.13440275192260742,
-1.1823331117630005,
-1.2464555501937866,
0.9544803500175476,
0.5084877014160156,
0.02819303423166275,
-0.541781485080719,
1.2243461608886719,
-0.008883298374712467,
1.3599603176116943,
0.5851925015449524,
-0.3835090398788452,
0.7002114653587341,
-0.3625587522983551,
-0.5023146271705627,
1.5710468292236328,
0.15321606397628784,
-1.373235821723938,
-2.2940797805786133,
-0.19087105989456177,
-0.8148316740989685,
0.18298771977424622,
-0.583340048789978,
-1.0342267751693726,
1.7575021982192993,
0.33326852321624756,
-1.2475329637527466,
-0.25449901819229126,
-0.36966750025749207,
-0.5875363945960999,
2.6905665397644043,
-1.3299146890640259,
-0.1842023730278015,
-1.0417413711547852,
-0.6674104332923889,
1.614526391029358,
-1.2008157968521118,
-0.20771241188049316,
-1.0533231496810913,
-0.5041799545288086,
-1.408212423324585,
-0.5998474359512329,
-0.020960088819265366,
-0.8653077483177185,
0.8478946089744568,
0.26288139820098877,
-1.1703541278839111,
-0.3628377616405487,
-0.8641499876976013,
0.9544035196304321,
-0.2522292733192444,
0.19354939460754395,
1.944021463394165,
0.40946775674819946,
-0.3376156985759735,
0.8029720187187195,
1.08931565284729,
0.650572657585144,
-0.6071551442146301,
0.1898486614227295,
-0.6646345257759094,
0.3070811331272125,
-1.344164252281189,
0.17748448252677917,
-2.8650553226470947,
0.6809400916099548,
0.031146865338087082,
0.04634476825594902,
0.032894883304834366,
-1.3284941911697388,
1.0626022815704346,
2.647883653640747,
-1.251860499382019,
0.504727303981781,
0.36451050639152527,
1.1932377815246582,
-1.5867738723754883,
0.2587457597255707,
-0.3995055556297302,
2.147799015045166,
0.25897926092147827,
1.293202519416809,
-0.48469728231430054,
-2.315678358078003,
0.6165648698806763,
-1.2472254037857056,
-1.1926097869873047,
0.7684845328330994,
-0.9123052954673767,
0.11052373051643372,
-1.5270845890045166,
-0.33504951000213623,
-0.9179496169090271,
-1.1348035335540771,
0.8169851899147034,
0.11176620423793793,
0.40266501903533936,
-0.648517370223999,
0.351839154958725,
-2.2753472328186035,
-1.3696486949920654,
-0.2739191949367523,
-0.9860402345657349,
0.5391392707824707,
-0.32974669337272644,
0.7309133410453796,
-0.18039190769195557,
0.07455504685640335,
0.36020687222480774,
1.4693523645401,
3.435628652572632,
0.20725733041763306,
0.2632671296596527,
-0.22348198294639587,
-0.8802542090415955,
1.429947018623352,
0.9241141676902771,
-0.12471193075180054,
-0.463474839925766,
-1.1534184217453003,
1.2288049459457397,
1.969123363494873,
0.9099531173706055,
-0.004202510230243206,
-0.8934987187385559,
-0.7737531065940857,
-0.023992870002985,
0.1576979160308838,
0.4098835587501526,
0.8265051245689392,
0.19920459389686584,
0.16388067603111267,
1.3961703777313232,
1.208652138710022,
-0.4071480929851532,
0.4937131106853485,
-0.8845099806785583,
-0.5179728865623474,
0.4828644394874573,
0.3068600594997406,
-0.027989977970719337,
0.3357143998146057,
-1.0471384525299072,
-0.16256538033485413,
-0.35344892740249634,
-0.842036783695221,
-0.7133688926696777,
-0.3838554620742798,
-0.3430075943470001,
1.559751272201538,
0.1440909206867218,
-0.5596570372581482,
-0.08732400089502335,
-0.728780210018158,
-0.07301880419254303,
-1.0252102613449097,
0.25377848744392395,
-0.17614781856536865,
-0.17331290245056152,
-0.14971596002578735,
1.7414964437484741,
-0.886406660079956,
-1.9268434047698975,
0.2522106170654297,
0.2830888330936432,
-0.3574412167072296,
0.2577252686023712,
1.7407835721969604,
0.5955536961555481,
1.489521861076355,
1.3858685493469238,
0.9620266556739807,
-0.7143280506134033,
-1.2087600231170654,
0.6066868901252747,
0.9383115768432617,
-1.296270489692688,
0.7059282064437866,
0.02522933855652809,
-0.536627471446991,
0.5706913471221924,
1.3577111959457397,
0.5467049479484558,
-2.0150375366210938,
0.820651113986969,
-0.9187487363815308,
0.7851784229278564,
0.7419539093971252,
0.7273685336112976,
0.18216031789779663,
0.8115264773368835,
-1.1563447713851929,
-1.097619891166687,
-0.7516125440597534,
-0.6818474531173706,
1.8390333652496338,
-0.34758079051971436,
0.5674426555633545,
-0.2682519257068634,
-1.2785513401031494,
-0.15161541104316711,
0.6765776872634888,
0.3480898141860962,
-0.5119038224220276,
0.7680373787879944,
-0.5026184916496277,
-1.170408010482788,
-1.201932430267334,
-0.4431954622268677,
-0.9720742702484131,
-0.9808624386787415,
0.9994128942489624,
0.842106819152832,
0.28641176223754883,
1.8304071426391602,
0.6216073036193848,
0.1533176302909851,
-2.594193458557129,
0.8642491102218628,
0.19199681282043457,
-0.02224789373576641,
0.8804841637611389,
0.43232277035713196,
0.9819148182868958,
-0.048816531896591187,
0.495376318693161,
-2.3211402893066406,
2.2919373512268066,
-0.22194910049438477,
0.7215122580528259,
-0.11596271395683289,
-0.0826525092124939,
1.0865478515625,
0.5404418706893921,
0.47660520672798157,
-1.004124402999878,
0.6206594705581665,
-0.6361930966377258,
1.2657707929611206,
0.835197389125824,
-0.8005743026733398,
-0.07163650542497635,
1.4129490852355957,
0.3354399800300598,
-0.6139322519302368,
-0.9698364734649658,
-0.9717922210693359,
0.9920377731323242,
1.7435288429260254,
-0.056401096284389496,
-0.07078602910041809,
0.7793248295783997,
0.666219174861908,
-1.3267748355865479,
0.04161844775080681,
-0.7260750532150269,
-0.6582015752792358,
1.7458250522613525,
1.999747395515442,
-0.1523803174495697,
-0.2541162073612213,
-0.709515392780304,
-1.3110085725784302,
0.8052442073822021,
-0.013465669006109238,
0.08991163969039917,
0.674368143081665,
-0.5871863961219788,
1.0690008401870728,
0.9237146377563477,
0.9311262369155884,
0.14977720379829407,
0.3249977231025696,
0.39955219626426697,
-0.3925588130950928,
-1.1909277439117432,
-0.17255806922912598,
-1.144399642944336,
-2.3997762203216553,
0.4208933115005493,
-0.12765124440193176,
-1.4393523931503296,
-0.05438486859202385,
-1.0394248962402344,
0.9700669646263123,
-0.5612348318099976,
-1.0802298784255981,
-1.5103100538253784,
0.14876168966293335,
-0.026833197101950645,
0.9576045870780945,
-1.5415053367614746,
-0.06965389102697372,
1.1350300312042236,
0.9763205051422119,
-0.7448403835296631,
1.0503395795822144,
0.2658204436302185,
1.0688942670822144,
0.8655555248260498,
-0.4021104872226715,
0.5016270279884338,
-0.058631911873817444,
-1.2634096145629883,
0.3782595098018646,
1.0798956155776978,
0.25160855054855347,
1.5146416425704956,
-0.540805459022522,
-0.055413879454135895,
0.3808356523513794,
-0.455564945936203,
-0.3762778043746948,
-0.5672736167907715,
0.6002604961395264,
0.047586649656295776,
-0.8678505420684814,
-0.06913043558597565,
0.04413038492202759,
-0.19747138023376465,
0.2595963776111603,
-1.514712929725647,
-0.02064238116145134,
-0.4314979612827301,
-0.6331782937049866,
-1.1188267469406128,
-0.06687179952859879,
1.495010256767273,
-0.8208258748054504,
-0.21016821265220642,
0.5906050205230713,
0.2188848853111267,
0.5358866453170776,
0.6375985741615295,
-0.6587974429130554,
-0.3111743628978729,
-0.23514720797538757,
-0.35360777378082275,
0.34894898533821106,
1.3594062328338623,
-0.10776504129171371,
-1.0009403228759766,
0.7243179082870483,
-0.3496682643890381,
0.07031884789466858,
1.8250281810760498,
0.008574195206165314,
-0.8753213882446289,
0.18030181527137756,
-0.726459801197052,
1.9379160404205322,
1.7581124305725098,
1.3909878730773926,
-0.102165088057518,
-1.0563136339187622,
0.631272554397583,
-0.30273133516311646,
-0.4703465700149536,
0.8150898814201355,
0.49444499611854553,
-0.2291002869606018,
-1.4230587482452393,
0.786442756652832,
1.2607312202453613,
-0.8773500919342041,
-0.8311038017272949,
0.14894163608551025,
-0.709078311920166,
1.0745654106140137,
0.714426577091217,
0.34140652418136597,
0.2904956638813019,
1.6444175243377686,
0.8470774292945862,
-0.43683403730392456,
0.5513184070587158,
0.6195573210716248,
-0.20065215229988098,
-2.1201329231262207,
-1.244405746459961,
0.31113559007644653,
-0.4735272228717804,
-1.7309646606445312,
1.4052973985671997,
-1.2076184749603271,
-0.9349306225776672,
0.5754615664482117,
0.1674797534942627,
1.421160101890564,
0.285366415977478,
1.577939748764038,
2.028977155685425,
0.8712794780731201,
0.36618947982788086,
1.3129503726959229,
-0.24765276908874512,
-0.4865683913230896,
1.7680716514587402,
-0.4944268465042114,
0.5146751999855042,
1.0990756750106812,
-0.28067418932914734,
-1.0794090032577515,
-0.7928495407104492,
-1.3875439167022705,
-0.8299149870872498,
1.1940351724624634,
0.10308808088302612,
-1.128135085105896,
0.206697016954422,
1.5651332139968872,
0.06511571258306503,
-0.34973376989364624,
0.7309855818748474,
0.40072059631347656,
-0.9111455082893372,
-0.07285837829113007,
-0.8988378047943115,
0.5202804207801819,
-0.1767657995223999,
-0.2976088225841522,
0.28010550141334534,
0.40739908814430237,
1.3663372993469238,
0.01447145827114582,
0.1545538604259491,
1.1439597606658936,
-1.2581185102462769,
1.4633848667144775,
-0.6400349736213684,
0.35418644547462463,
-2.4522993564605713,
1.4076858758926392,
-0.7520044445991516,
1.9565198421478271,
-2.7034912109375,
0.5114235877990723,
-0.6729821562767029,
-0.3570230007171631,
0.295504629611969,
-0.3696126341819763,
0.11991069465875626,
-0.0785556510090828,
-1.1387786865234375,
-0.08216919749975204,
-0.6620217561721802,
0.6074079871177673,
1.142272710800171,
1.4282252788543701,
-1.1586263179779053,
-0.18836617469787598,
-1.7699743509292603,
-0.19199752807617188,
-0.7612343430519104,
0.40991902351379395,
-2.009157657623291,
-0.18715068697929382,
-1.8968919515609741,
-2.417680025100708,
-1.2795876264572144,
-0.7132136225700378,
1.0482407808303833,
0.009995101019740105,
-0.8085883259773254,
1.2249476909637451,
-0.35656341910362244,
-1.8753762245178223,
1.1721725463867188,
-2.116626024246216
] |
https://github.com/huggingface/datasets/issues/4795 | Missing MBPP splits | Thanks for reporting this as well, @stadlerb.
I suggest waiting for the answer of the data owners... | (@albertvillanova)
The [MBPP dataset on the Hub](https://huggingface.co/datasets/mbpp) has only a test split for both its "full" and its "sanitized" subset, while the [paper](https://arxiv.org/abs/2108.07732) states in subsection 2.1 regarding the full split:
> In the experiments described later in the paper, we hold out 10 problems for **few-shot prompting**, another 500 as our **test** dataset (which is used to evaluate both few-shot inference and fine-tuned models), 374 problems for **fine-tuning**, and the rest for **validation**.
If the dataset on the Hub should reproduce most closely what the original authors use, I guess this four-way split should be reflected.
The paper doesn't explicitly state the task_id ranges of the splits, but the [GitHub readme](https://github.com/google-research/google-research/tree/master/mbpp) referenced in the paper specifies exact task_id ranges, although it misstates the total number of samples:
> We specify a train and test split to use for evaluation. Specifically:
>
> * Task IDs 11-510 are used for evaluation.
> * Task IDs 1-10 and 511-1000 are used for training and/or prompting. We typically used 1-10 for few-shot prompting, although you can feel free to use any of the training examples.
I.e. the few-shot, train and validation splits are combined into one split, with a soft suggestion of using the first ten for few-shot prompting. It is not explicitly stated whether the 374 fine-tuning samples mentioned in the paper have task_id 511 to 784 or 601 to 974 or are randomly sampled from task_id 511 to 974.
Regarding the "sanitized" split the paper states the following:
> For evaluations involving the edited dataset, we perform comparisons with 100 problems that appear in both the original and edited dataset, using the same held out 10 problems for few-shot prompting and 374 problems for fine-tuning.
The statement doesn't appear to be very precise, as among the 10 few-shot problems, those with task_id 1, 5 and 10 are not even part of the sanitized variant, and many from the task_id range from 511 to 974 are missing (e.g. task_id 511 to 553). I suppose the idea the task_id ranges for each split remain the same, even if some of the task_ids are not present. That would result in 7 few-shot, 257 test, 141 train and 22 validation examples in the sanitized split. | 589 | 17 | Missing MBPP splits
(@albertvillanova)
The [MBPP dataset on the Hub](https://huggingface.co/datasets/mbpp) has only a test split for both its "full" and its "sanitized" subset, while the [paper](https://arxiv.org/abs/2108.07732) states in subsection 2.1 regarding the full split:
> In the experiments described later in the paper, we hold out 10 problems for **few-shot prompting**, another 500 as our **test** dataset (which is used to evaluate both few-shot inference and fine-tuned models), 374 problems for **fine-tuning**, and the rest for **validation**.
If the dataset on the Hub should reproduce most closely what the original authors use, I guess this four-way split should be reflected.
The paper doesn't explicitly state the task_id ranges of the splits, but the [GitHub readme](https://github.com/google-research/google-research/tree/master/mbpp) referenced in the paper specifies exact task_id ranges, although it misstates the total number of samples:
> We specify a train and test split to use for evaluation. Specifically:
>
> * Task IDs 11-510 are used for evaluation.
> * Task IDs 1-10 and 511-1000 are used for training and/or prompting. We typically used 1-10 for few-shot prompting, although you can feel free to use any of the training examples.
I.e. the few-shot, train and validation splits are combined into one split, with a soft suggestion of using the first ten for few-shot prompting. It is not explicitly stated whether the 374 fine-tuning samples mentioned in the paper have task_id 511 to 784 or 601 to 974 or are randomly sampled from task_id 511 to 974.
Regarding the "sanitized" split the paper states the following:
> For evaluations involving the edited dataset, we perform comparisons with 100 problems that appear in both the original and edited dataset, using the same held out 10 problems for few-shot prompting and 374 problems for fine-tuning.
The statement doesn't appear to be very precise, as among the 10 few-shot problems, those with task_id 1, 5 and 10 are not even part of the sanitized variant, and many from the task_id range from 511 to 974 are missing (e.g. task_id 511 to 553). I suppose the idea the task_id ranges for each split remain the same, even if some of the task_ids are not present. That would result in 7 few-shot, 257 test, 141 train and 22 validation examples in the sanitized split.
Thanks for reporting this as well, @stadlerb.
I suggest waiting for the answer of the data owners... | [
-1.2763214111328125,
-1.0013370513916016,
-0.7500472664833069,
1.3340860605239868,
-0.19160017371177673,
-1.3324792385101318,
0.10684128105640411,
-1.165877103805542,
1.6554774045944214,
-0.759626567363739,
0.23130536079406738,
-1.6585646867752075,
0.015085511840879917,
-0.5477842688560486,
-0.8164882659912109,
-0.8471623659133911,
-0.4802223742008209,
-0.9047452807426453,
0.9760002493858337,
2.5350289344787598,
1.2231721878051758,
-1.433477759361267,
2.771669387817383,
0.6775052547454834,
-0.18217386305332184,
-0.9444942474365234,
0.5544643402099609,
-0.10780815035104752,
-1.3046088218688965,
-0.48519882559776306,
-0.9254213571548462,
-0.07522372901439667,
-0.5340491533279419,
-0.41096049547195435,
0.14201678335666656,
0.3046962320804596,
-0.16578899323940277,
-0.32520225644111633,
-0.5395662188529968,
-0.7286377549171448,
0.503531277179718,
-0.3883930742740631,
0.9258730411529541,
-0.37241366505622864,
1.810520052909851,
-0.5969183444976807,
0.37938088178634644,
0.6676472425460815,
1.3938665390014648,
0.20399247109889984,
-0.06497426331043243,
0.1927819848060608,
0.36930742859840393,
-0.06569568067789078,
0.46493101119995117,
1.1584333181381226,
0.6764605045318604,
0.5293521285057068,
0.718099057674408,
-2.224126100540161,
1.3178200721740723,
-1.0116031169891357,
0.34143251180648804,
1.477089285850525,
-0.9460233449935913,
0.4494539797306061,
-1.9032458066940308,
-0.08724729716777802,
0.5203616619110107,
-2.362617015838623,
0.11653238534927368,
-1.237436056137085,
-0.5593775510787964,
0.9704256653785706,
0.19662557542324066,
-1.3198180198669434,
0.26055553555488586,
-0.5012564659118652,
1.0234649181365967,
0.4866454601287842,
1.2186490297317505,
-1.7151463031768799,
-0.028319545090198517,
-0.1909535974264145,
0.17031648755073547,
-1.279585838317871,
-1.5588890314102173,
0.6846882104873657,
0.6067192554473877,
0.503415048122406,
-0.11433247476816177,
0.9729832410812378,
-0.9948533177375793,
0.8883995413780212,
-0.9624189734458923,
-1.6693350076675415,
-1.3913061618804932,
-2.2620978355407715,
-2.2131412029266357,
0.8288692235946655,
-0.49104273319244385,
-0.5115151405334473,
2.0266623497009277,
-1.0814651250839233,
-1.6836234331130981,
1.079651117324829,
0.21167270839214325,
0.06569716334342957,
2.4674386978149414,
0.15242378413677216,
-0.6797687411308289,
0.4303428828716278,
-0.7435893416404724,
0.7643669247627258,
-0.46364304423332214,
1.351767659187317,
0.42594945430755615,
-1.0052382946014404,
1.5957216024398804,
-0.43072715401649475,
0.4869481921195984,
-0.6218590140342712,
-0.552746593952179,
-0.7400028705596924,
0.44887399673461914,
1.932079792022705,
-0.34565404057502747,
1.5391288995742798,
-0.2999042570590973,
-1.5474648475646973,
-1.5439558029174805,
0.8701121211051941,
0.596951425075531,
-0.8695880770683289,
0.0948546826839447,
-0.3453236222267151,
0.06966570019721985,
-0.062184590846300125,
0.9665637612342834,
1.237673044204712,
0.7139725685119629,
-0.2653771936893463,
-0.8828926682472229,
0.23960503935813904,
-0.14390864968299866,
-0.7141988277435303,
-1.7756832838058472,
-0.3633418381214142,
0.14347608387470245,
0.6255040168762207,
-1.212673306465149,
1.7082313299179077,
0.8652347326278687,
1.993737816810608,
0.9761595726013184,
-0.4031568169593811,
1.4730418920516968,
0.12069852650165558,
1.7679774761199951,
-0.5073755979537964,
0.7002275586128235,
-0.40419262647628784,
-1.1336960792541504,
0.862635612487793,
-0.42406556010246277,
-1.9539176225662231,
-0.6358867883682251,
-0.8568989634513855,
-0.22507844865322113,
-0.7847643494606018,
0.9301680326461792,
-0.19580668210983276,
-1.3643255233764648,
0.3033474087715149,
-0.5992153286933899,
0.14846765995025635,
-1.2904471158981323,
0.3557873070240021,
0.8065309524536133,
-0.6028260588645935,
-0.12646138668060303,
-0.2908398509025574,
-1.3474023342132568,
-0.5453987121582031,
0.2171192765235901,
1.9250177145004272,
-0.7009537816047668,
0.9184998273849487,
0.9199585318565369,
-0.6875790357589722,
-0.02659982070326805,
0.39873823523521423,
-0.2976880669593811,
0.8297331929206848,
-1.0305566787719727,
-0.4319532811641693,
0.9840660691261292,
-0.17135019600391388,
-0.42427176237106323,
1.4630987644195557,
0.6651466488838196,
-1.0249755382537842,
-0.2995721399784088,
-0.1836586743593216,
-0.9180845618247986,
0.019306443631649017,
-1.5735617876052856,
-0.23604558408260345,
0.23670493066310883,
-1.5350569486618042,
-0.4834800362586975,
-0.21902373433113098,
1.3014458417892456,
-0.1691625416278839,
1.4686992168426514,
-0.38692981004714966,
-0.2201034426689148,
-0.4002697169780731,
-0.4095567464828491,
0.18027763068675995,
-0.23143595457077026,
-0.6079866290092468,
0.26750457286834717,
-0.8356672525405884,
0.2942442297935486,
1.472417950630188,
0.4154890179634094,
-0.0038329935632646084,
0.5140156745910645,
1.039950966835022,
0.35169243812561035,
-0.0641082301735878,
-0.9399134516716003,
-1.5721956491470337,
2.070634126663208,
-1.5980576276779175,
1.9412649869918823,
0.8218232989311218,
-0.014308910816907883,
-1.724331259727478,
-1.8345849514007568,
1.3479429483413696,
1.158689260482788,
2.3248536586761475,
0.563120424747467,
0.43990859389305115,
-0.8063601851463318,
-0.6514570116996765,
0.3328682482242584,
-0.9848036766052246,
-0.7192988395690918,
0.0699232965707779,
2.309664249420166,
1.7048014402389526,
-0.518280565738678,
-0.20691581070423126,
-0.8881890773773193,
1.3134751319885254,
-0.12056318670511246,
0.1977980136871338,
2.0238773822784424,
-0.3415445387363434,
-1.0862234830856323,
1.3070658445358276,
-2.382077217102051,
0.15214723348617554,
1.9378321170806885,
0.31439292430877686,
0.031492508947849274,
-1.297606348991394,
-0.5861612558364868,
-0.23169484734535217,
-0.41180360317230225,
-1.2800664901733398,
0.4945892095565796,
-0.2884863018989563,
-0.8654415011405945,
-1.5581892728805542,
0.09787249565124512,
-1.2292530536651611,
-1.6230239868164062,
0.32589516043663025,
1.9146190881729126,
2.0963540077209473,
-0.6829172372817993,
1.4450135231018066,
-0.3199220597743988,
0.06040440872311592,
1.183829665184021,
1.2024942636489868,
3.1418232917785645,
1.8615992069244385,
-1.2479956150054932,
0.574695885181427,
-0.2537189722061157,
-0.4235445559024811,
1.0158333778381348,
-0.9751419425010681,
1.2557870149612427,
-0.18995267152786255,
-1.2415351867675781,
-1.1864633560180664,
0.9812986850738525,
0.46212533116340637,
0.09992682933807373,
-0.457277774810791,
1.2054752111434937,
0.10975848883390427,
1.3843764066696167,
0.5040221214294434,
-0.36811578273773193,
0.51689612865448,
-0.409594863653183,
-0.5470173358917236,
1.6574223041534424,
0.17669321596622467,
-1.4221909046173096,
-2.381916046142578,
-0.25141990184783936,
-0.8854864239692688,
0.0835522934794426,
-0.6597896814346313,
-1.0207873582839966,
1.683664321899414,
0.4768702983856201,
-1.243310570716858,
-0.3655940890312195,
-0.4166423976421356,
-0.6299723982810974,
2.574542760848999,
-1.5069228410720825,
-0.16251975297927856,
-0.926586389541626,
-0.5394896864891052,
1.6123312711715698,
-1.2575647830963135,
-0.16417695581912994,
-0.9834165573120117,
-0.6334536671638489,
-1.285521149635315,
-0.5572257041931152,
-0.0657326802611351,
-0.9599376916885376,
0.8145658373832703,
0.15188580751419067,
-1.1188734769821167,
-0.2625405788421631,
-0.8576471209526062,
0.8012214303016663,
-0.06691905856132507,
0.24814943969249725,
1.9149200916290283,
0.30346807837486267,
-0.43721726536750793,
0.6584255695343018,
1.173014760017395,
0.6569556593894958,
-0.6002219319343567,
0.0014874525368213654,
-0.6651658415794373,
0.4044438898563385,
-1.3001848459243774,
0.3065190315246582,
-2.857741355895996,
0.7136904001235962,
-0.03293322026729584,
0.010526834987103939,
0.0037506530061364174,
-1.3380053043365479,
1.0735191106796265,
2.6056931018829346,
-1.1459343433380127,
0.42721644043922424,
0.3872848451137543,
1.1737892627716064,
-1.5855568647384644,
0.2576836347579956,
-0.41114509105682373,
2.1553165912628174,
0.1249755471944809,
1.1783772706985474,
-0.5506482720375061,
-2.3076119422912598,
0.5756173133850098,
-1.1934826374053955,
-1.1756482124328613,
0.7183055281639099,
-0.7559416890144348,
0.015517444349825382,
-1.4916898012161255,
-0.1298932284116745,
-0.903423547744751,
-1.1777487993240356,
0.7070393562316895,
0.07738102972507477,
0.5191004872322083,
-0.7113285064697266,
0.30954015254974365,
-2.1925227642059326,
-1.4006081819534302,
-0.20300836861133575,
-0.8802472949028015,
0.4717830419540405,
-0.39638781547546387,
0.7212819457054138,
-0.061946749687194824,
0.10789027065038681,
0.28584015369415283,
1.3830500841140747,
3.4024789333343506,
0.15585312247276306,
0.421293705701828,
-0.18259678781032562,
-0.9841336607933044,
1.479588508605957,
0.8975327610969543,
-0.034026533365249634,
-0.567315399646759,
-0.986586332321167,
1.3636462688446045,
1.9494026899337769,
0.9760890007019043,
0.1701979637145996,
-0.8229439854621887,
-0.5795483589172363,
-0.017542611807584763,
0.29932647943496704,
0.5233024954795837,
1.0185308456420898,
-0.019998449832201004,
0.12436117231845856,
1.4730535745620728,
1.298097848892212,
-0.44443145394325256,
0.43487706780433655,
-0.8366336226463318,
-0.47372180223464966,
0.49191951751708984,
0.385274738073349,
-0.027882106602191925,
0.395415335893631,
-0.9296899437904358,
-0.25441721081733704,
-0.2734198570251465,
-0.9293376803398132,
-0.6790077090263367,
-0.32336750626564026,
-0.3912307620048523,
1.6691279411315918,
0.16724152863025665,
-0.42606496810913086,
-0.004912508651614189,
-0.8432259559631348,
-0.1081482544541359,
-1.127209186553955,
0.21031984686851501,
-0.07012402266263962,
-0.06323449313640594,
-0.13737525045871735,
1.7556171417236328,
-0.8495041131973267,
-2.0177619457244873,
0.25474831461906433,
0.2625597417354584,
-0.4050704836845398,
0.08420287817716599,
1.6758272647857666,
0.4926677346229553,
1.5327204465866089,
1.3286432027816772,
1.050613284111023,
-0.626634418964386,
-1.3037654161453247,
0.6779370903968811,
0.9072230458259583,
-1.4388408660888672,
0.7949886322021484,
-0.02667130157351494,
-0.5596172213554382,
0.6789194345474243,
1.284826636314392,
0.4153737723827362,
-2.043839931488037,
0.947691023349762,
-0.9927276968955994,
0.7672508955001831,
0.7005630731582642,
0.7821803092956543,
0.2402457892894745,
0.8277415037155151,
-1.2420563697814941,
-1.1244443655014038,
-0.7484922409057617,
-0.6151218414306641,
1.9959715604782104,
-0.2237781137228012,
0.545239269733429,
-0.22821016609668732,
-1.27511465549469,
-0.08650945127010345,
0.6740663647651672,
0.4283336102962494,
-0.26402536034584045,
0.7961642742156982,
-0.6639916896820068,
-1.1478208303451538,
-1.3653466701507568,
-0.38534682989120483,
-0.9258982539176941,
-0.8839092254638672,
1.0548769235610962,
0.9217038154602051,
0.38131949305534363,
2.006769895553589,
0.5207425951957703,
0.22020605206489563,
-2.673203706741333,
0.8312221765518188,
0.37469282746315,
-0.11720967292785645,
0.9927136301994324,
0.2511390149593353,
1.1491789817810059,
0.045764174312353134,
0.48915496468544006,
-2.382762908935547,
2.2500083446502686,
-0.15053676068782806,
0.7746154069900513,
0.046220604330301285,
-0.12800416350364685,
1.062374234199524,
0.5702745914459229,
0.5876787304878235,
-1.1545865535736084,
0.7287737131118774,
-0.6724745631217957,
1.235077142715454,
0.9612484574317932,
-0.7659590244293213,
0.025972701609134674,
1.281342625617981,
0.5435996651649475,
-0.517882227897644,
-0.9580906629562378,
-0.9033837914466858,
0.9016565084457397,
1.8342615365982056,
-0.01422475278377533,
0.043143607676029205,
0.7461147308349609,
0.6941539645195007,
-1.2676416635513306,
0.03686608374118805,
-0.711954653263092,
-0.7893187403678894,
1.6045786142349243,
2.0409858226776123,
-0.01996287703514099,
-0.10511352121829987,
-0.642522931098938,
-1.343247413635254,
0.782289981842041,
0.01740580052137375,
0.20994220674037933,
0.6682530045509338,
-0.674092173576355,
1.164737343788147,
0.8701245784759521,
0.9717049598693848,
0.15353409945964813,
0.3587687611579895,
0.3573688268661499,
-0.31356242299079895,
-1.0126135349273682,
-0.19721442461013794,
-1.0828917026519775,
-2.5573956966400146,
0.4855271875858307,
-0.26004698872566223,
-1.431870460510254,
0.04649042338132858,
-0.9339268207550049,
0.8837743401527405,
-0.6327342391014099,
-1.1648212671279907,
-1.555032730102539,
0.2673560678958893,
-0.04392356052994728,
0.959735095500946,
-1.6168100833892822,
-0.12351888418197632,
1.181130290031433,
0.9035333395004272,
-0.5341521501541138,
0.9023814797401428,
0.2685004770755768,
1.00540030002594,
0.7838448882102966,
-0.3586392104625702,
0.420478492975235,
0.12544316053390503,
-1.3955076932907104,
0.42907702922821045,
1.1892592906951904,
0.22822381556034088,
1.2800440788269043,
-0.531082808971405,
0.05035607889294624,
0.47450315952301025,
-0.4343346953392029,
-0.40977948904037476,
-0.5473759174346924,
0.6806508302688599,
-0.06124858185648918,
-0.9096532464027405,
-0.002375911921262741,
-0.14549477398395538,
-0.29046717286109924,
0.23405757546424866,
-1.4732413291931152,
-0.24896307289600372,
-0.46750733256340027,
-0.5279293060302734,
-1.3551357984542847,
-0.04746759682893753,
1.3905829191207886,
-0.7727275490760803,
-0.1544436514377594,
0.5591886043548584,
0.4730358421802521,
0.5050800442695618,
0.6671048998832703,
-0.6629215478897095,
-0.3471907079219818,
-0.23500967025756836,
-0.39153245091438293,
0.2126043438911438,
1.2841325998306274,
-0.21559074521064758,
-0.9945191144943237,
0.66572505235672,
-0.3836175799369812,
0.03802704066038132,
1.9667484760284424,
0.11999975144863129,
-0.7845359444618225,
0.33672404289245605,
-0.7058882117271423,
1.8354328870773315,
1.7113406658172607,
1.3291804790496826,
-0.09924430400133133,
-0.9244636297225952,
0.6216748952865601,
-0.2684114873409271,
-0.2977813184261322,
0.9109644889831543,
0.4132365882396698,
-0.203119695186615,
-1.5385794639587402,
0.5002768039703369,
1.2629386186599731,
-0.8892754912376404,
-0.7099844217300415,
0.02654382959008217,
-0.8082910180091858,
1.1194311380386353,
0.6822881102561951,
0.4631991386413574,
0.24396507441997528,
1.677839756011963,
0.7692869305610657,
-0.5579203367233276,
0.41894716024398804,
0.5662910342216492,
-0.15461434423923492,
-2.1819536685943604,
-1.12028169631958,
0.2082238793373108,
-0.3588024377822876,
-1.514548897743225,
1.3456084728240967,
-1.1595512628555298,
-0.9762827754020691,
0.444379597902298,
0.11567863076925278,
1.3531700372695923,
0.38339120149612427,
1.6341502666473389,
2.057049036026001,
0.8898987770080566,
0.2969267964363098,
1.3429032564163208,
-0.10204171389341354,
-0.36761274933815,
1.813547134399414,
-0.4699792265892029,
0.5475688576698303,
1.1289546489715576,
-0.402856707572937,
-1.1119277477264404,
-0.8173995614051819,
-1.1462481021881104,
-0.6454746127128601,
1.1626324653625488,
0.10667640715837479,
-1.0989817380905151,
0.2554306089878082,
1.6020187139511108,
0.09544918686151505,
-0.2257254719734192,
0.5155820846557617,
0.5306567549705505,
-0.6945835947990417,
-0.07640741020441055,
-0.8663261532783508,
0.5439364910125732,
-0.17432016134262085,
-0.37555214762687683,
0.38349649310112,
0.46593591570854187,
1.2722188234329224,
-0.0362209789454937,
0.10159625858068466,
1.2041926383972168,
-1.4628194570541382,
1.4532089233398438,
-0.6827507019042969,
0.23861730098724365,
-2.378357172012329,
1.4361745119094849,
-0.726338803768158,
1.9836500883102417,
-2.6549503803253174,
0.35609376430511475,
-0.5875137448310852,
-0.4232875108718872,
0.3288094401359558,
-0.4101223647594452,
0.1388459950685501,
-0.10808423161506653,
-1.0527458190917969,
-0.08967412263154984,
-0.706309974193573,
0.5604813694953918,
1.108994722366333,
1.399269938468933,
-1.0396898984909058,
-0.29989364743232727,
-1.6835659742355347,
-0.19008806347846985,
-0.6937602162361145,
0.22936221957206726,
-1.9515801668167114,
-0.11410842835903168,
-2.0286037921905518,
-2.285938262939453,
-1.4482475519180298,
-0.8719767928123474,
1.0722516775131226,
0.07330839335918427,
-0.9331011176109314,
1.188536286354065,
-0.447158545255661,
-1.7701139450073242,
1.0936391353607178,
-2.1369574069976807
] |
https://github.com/huggingface/datasets/issues/4795 | Missing MBPP splits | @albertvillanova The first author of the paper responded to the upstream issue:
> Task IDs 11-510 are the 500 test problems. We use 90 problems (511-600) for validation and then remaining 374 for fine-tuning (601-974). The other problems can be used as desired, either for training or few-shot prompting (although this should be specified). | (@albertvillanova)
The [MBPP dataset on the Hub](https://huggingface.co/datasets/mbpp) has only a test split for both its "full" and its "sanitized" subset, while the [paper](https://arxiv.org/abs/2108.07732) states in subsection 2.1 regarding the full split:
> In the experiments described later in the paper, we hold out 10 problems for **few-shot prompting**, another 500 as our **test** dataset (which is used to evaluate both few-shot inference and fine-tuned models), 374 problems for **fine-tuning**, and the rest for **validation**.
If the dataset on the Hub should reproduce most closely what the original authors use, I guess this four-way split should be reflected.
The paper doesn't explicitly state the task_id ranges of the splits, but the [GitHub readme](https://github.com/google-research/google-research/tree/master/mbpp) referenced in the paper specifies exact task_id ranges, although it misstates the total number of samples:
> We specify a train and test split to use for evaluation. Specifically:
>
> * Task IDs 11-510 are used for evaluation.
> * Task IDs 1-10 and 511-1000 are used for training and/or prompting. We typically used 1-10 for few-shot prompting, although you can feel free to use any of the training examples.
I.e. the few-shot, train and validation splits are combined into one split, with a soft suggestion of using the first ten for few-shot prompting. It is not explicitly stated whether the 374 fine-tuning samples mentioned in the paper have task_id 511 to 784 or 601 to 974 or are randomly sampled from task_id 511 to 974.
Regarding the "sanitized" split the paper states the following:
> For evaluations involving the edited dataset, we perform comparisons with 100 problems that appear in both the original and edited dataset, using the same held out 10 problems for few-shot prompting and 374 problems for fine-tuning.
The statement doesn't appear to be very precise, as among the 10 few-shot problems, those with task_id 1, 5 and 10 are not even part of the sanitized variant, and many from the task_id range from 511 to 974 are missing (e.g. task_id 511 to 553). I suppose the idea the task_id ranges for each split remain the same, even if some of the task_ids are not present. That would result in 7 few-shot, 257 test, 141 train and 22 validation examples in the sanitized split. | 589 | 54 | Missing MBPP splits
(@albertvillanova)
The [MBPP dataset on the Hub](https://huggingface.co/datasets/mbpp) has only a test split for both its "full" and its "sanitized" subset, while the [paper](https://arxiv.org/abs/2108.07732) states in subsection 2.1 regarding the full split:
> In the experiments described later in the paper, we hold out 10 problems for **few-shot prompting**, another 500 as our **test** dataset (which is used to evaluate both few-shot inference and fine-tuned models), 374 problems for **fine-tuning**, and the rest for **validation**.
If the dataset on the Hub should reproduce most closely what the original authors use, I guess this four-way split should be reflected.
The paper doesn't explicitly state the task_id ranges of the splits, but the [GitHub readme](https://github.com/google-research/google-research/tree/master/mbpp) referenced in the paper specifies exact task_id ranges, although it misstates the total number of samples:
> We specify a train and test split to use for evaluation. Specifically:
>
> * Task IDs 11-510 are used for evaluation.
> * Task IDs 1-10 and 511-1000 are used for training and/or prompting. We typically used 1-10 for few-shot prompting, although you can feel free to use any of the training examples.
I.e. the few-shot, train and validation splits are combined into one split, with a soft suggestion of using the first ten for few-shot prompting. It is not explicitly stated whether the 374 fine-tuning samples mentioned in the paper have task_id 511 to 784 or 601 to 974 or are randomly sampled from task_id 511 to 974.
Regarding the "sanitized" split the paper states the following:
> For evaluations involving the edited dataset, we perform comparisons with 100 problems that appear in both the original and edited dataset, using the same held out 10 problems for few-shot prompting and 374 problems for fine-tuning.
The statement doesn't appear to be very precise, as among the 10 few-shot problems, those with task_id 1, 5 and 10 are not even part of the sanitized variant, and many from the task_id range from 511 to 974 are missing (e.g. task_id 511 to 553). I suppose the idea the task_id ranges for each split remain the same, even if some of the task_ids are not present. That would result in 7 few-shot, 257 test, 141 train and 22 validation examples in the sanitized split.
@albertvillanova The first author of the paper responded to the upstream issue:
> Task IDs 11-510 are the 500 test problems. We use 90 problems (511-600) for validation and then remaining 374 for fine-tuning (601-974). The other problems can be used as desired, either for training or few-shot prompting (although this should be specified). | [
-1.2763214111328125,
-1.0013370513916016,
-0.7500472664833069,
1.3340860605239868,
-0.19160017371177673,
-1.3324792385101318,
0.10684128105640411,
-1.165877103805542,
1.6554774045944214,
-0.759626567363739,
0.23130536079406738,
-1.6585646867752075,
0.015085511840879917,
-0.5477842688560486,
-0.8164882659912109,
-0.8471623659133911,
-0.4802223742008209,
-0.9047452807426453,
0.9760002493858337,
2.5350289344787598,
1.2231721878051758,
-1.433477759361267,
2.771669387817383,
0.6775052547454834,
-0.18217386305332184,
-0.9444942474365234,
0.5544643402099609,
-0.10780815035104752,
-1.3046088218688965,
-0.48519882559776306,
-0.9254213571548462,
-0.07522372901439667,
-0.5340491533279419,
-0.41096049547195435,
0.14201678335666656,
0.3046962320804596,
-0.16578899323940277,
-0.32520225644111633,
-0.5395662188529968,
-0.7286377549171448,
0.503531277179718,
-0.3883930742740631,
0.9258730411529541,
-0.37241366505622864,
1.810520052909851,
-0.5969183444976807,
0.37938088178634644,
0.6676472425460815,
1.3938665390014648,
0.20399247109889984,
-0.06497426331043243,
0.1927819848060608,
0.36930742859840393,
-0.06569568067789078,
0.46493101119995117,
1.1584333181381226,
0.6764605045318604,
0.5293521285057068,
0.718099057674408,
-2.224126100540161,
1.3178200721740723,
-1.0116031169891357,
0.34143251180648804,
1.477089285850525,
-0.9460233449935913,
0.4494539797306061,
-1.9032458066940308,
-0.08724729716777802,
0.5203616619110107,
-2.362617015838623,
0.11653238534927368,
-1.237436056137085,
-0.5593775510787964,
0.9704256653785706,
0.19662557542324066,
-1.3198180198669434,
0.26055553555488586,
-0.5012564659118652,
1.0234649181365967,
0.4866454601287842,
1.2186490297317505,
-1.7151463031768799,
-0.028319545090198517,
-0.1909535974264145,
0.17031648755073547,
-1.279585838317871,
-1.5588890314102173,
0.6846882104873657,
0.6067192554473877,
0.503415048122406,
-0.11433247476816177,
0.9729832410812378,
-0.9948533177375793,
0.8883995413780212,
-0.9624189734458923,
-1.6693350076675415,
-1.3913061618804932,
-2.2620978355407715,
-2.2131412029266357,
0.8288692235946655,
-0.49104273319244385,
-0.5115151405334473,
2.0266623497009277,
-1.0814651250839233,
-1.6836234331130981,
1.079651117324829,
0.21167270839214325,
0.06569716334342957,
2.4674386978149414,
0.15242378413677216,
-0.6797687411308289,
0.4303428828716278,
-0.7435893416404724,
0.7643669247627258,
-0.46364304423332214,
1.351767659187317,
0.42594945430755615,
-1.0052382946014404,
1.5957216024398804,
-0.43072715401649475,
0.4869481921195984,
-0.6218590140342712,
-0.552746593952179,
-0.7400028705596924,
0.44887399673461914,
1.932079792022705,
-0.34565404057502747,
1.5391288995742798,
-0.2999042570590973,
-1.5474648475646973,
-1.5439558029174805,
0.8701121211051941,
0.596951425075531,
-0.8695880770683289,
0.0948546826839447,
-0.3453236222267151,
0.06966570019721985,
-0.062184590846300125,
0.9665637612342834,
1.237673044204712,
0.7139725685119629,
-0.2653771936893463,
-0.8828926682472229,
0.23960503935813904,
-0.14390864968299866,
-0.7141988277435303,
-1.7756832838058472,
-0.3633418381214142,
0.14347608387470245,
0.6255040168762207,
-1.212673306465149,
1.7082313299179077,
0.8652347326278687,
1.993737816810608,
0.9761595726013184,
-0.4031568169593811,
1.4730418920516968,
0.12069852650165558,
1.7679774761199951,
-0.5073755979537964,
0.7002275586128235,
-0.40419262647628784,
-1.1336960792541504,
0.862635612487793,
-0.42406556010246277,
-1.9539176225662231,
-0.6358867883682251,
-0.8568989634513855,
-0.22507844865322113,
-0.7847643494606018,
0.9301680326461792,
-0.19580668210983276,
-1.3643255233764648,
0.3033474087715149,
-0.5992153286933899,
0.14846765995025635,
-1.2904471158981323,
0.3557873070240021,
0.8065309524536133,
-0.6028260588645935,
-0.12646138668060303,
-0.2908398509025574,
-1.3474023342132568,
-0.5453987121582031,
0.2171192765235901,
1.9250177145004272,
-0.7009537816047668,
0.9184998273849487,
0.9199585318565369,
-0.6875790357589722,
-0.02659982070326805,
0.39873823523521423,
-0.2976880669593811,
0.8297331929206848,
-1.0305566787719727,
-0.4319532811641693,
0.9840660691261292,
-0.17135019600391388,
-0.42427176237106323,
1.4630987644195557,
0.6651466488838196,
-1.0249755382537842,
-0.2995721399784088,
-0.1836586743593216,
-0.9180845618247986,
0.019306443631649017,
-1.5735617876052856,
-0.23604558408260345,
0.23670493066310883,
-1.5350569486618042,
-0.4834800362586975,
-0.21902373433113098,
1.3014458417892456,
-0.1691625416278839,
1.4686992168426514,
-0.38692981004714966,
-0.2201034426689148,
-0.4002697169780731,
-0.4095567464828491,
0.18027763068675995,
-0.23143595457077026,
-0.6079866290092468,
0.26750457286834717,
-0.8356672525405884,
0.2942442297935486,
1.472417950630188,
0.4154890179634094,
-0.0038329935632646084,
0.5140156745910645,
1.039950966835022,
0.35169243812561035,
-0.0641082301735878,
-0.9399134516716003,
-1.5721956491470337,
2.070634126663208,
-1.5980576276779175,
1.9412649869918823,
0.8218232989311218,
-0.014308910816907883,
-1.724331259727478,
-1.8345849514007568,
1.3479429483413696,
1.158689260482788,
2.3248536586761475,
0.563120424747467,
0.43990859389305115,
-0.8063601851463318,
-0.6514570116996765,
0.3328682482242584,
-0.9848036766052246,
-0.7192988395690918,
0.0699232965707779,
2.309664249420166,
1.7048014402389526,
-0.518280565738678,
-0.20691581070423126,
-0.8881890773773193,
1.3134751319885254,
-0.12056318670511246,
0.1977980136871338,
2.0238773822784424,
-0.3415445387363434,
-1.0862234830856323,
1.3070658445358276,
-2.382077217102051,
0.15214723348617554,
1.9378321170806885,
0.31439292430877686,
0.031492508947849274,
-1.297606348991394,
-0.5861612558364868,
-0.23169484734535217,
-0.41180360317230225,
-1.2800664901733398,
0.4945892095565796,
-0.2884863018989563,
-0.8654415011405945,
-1.5581892728805542,
0.09787249565124512,
-1.2292530536651611,
-1.6230239868164062,
0.32589516043663025,
1.9146190881729126,
2.0963540077209473,
-0.6829172372817993,
1.4450135231018066,
-0.3199220597743988,
0.06040440872311592,
1.183829665184021,
1.2024942636489868,
3.1418232917785645,
1.8615992069244385,
-1.2479956150054932,
0.574695885181427,
-0.2537189722061157,
-0.4235445559024811,
1.0158333778381348,
-0.9751419425010681,
1.2557870149612427,
-0.18995267152786255,
-1.2415351867675781,
-1.1864633560180664,
0.9812986850738525,
0.46212533116340637,
0.09992682933807373,
-0.457277774810791,
1.2054752111434937,
0.10975848883390427,
1.3843764066696167,
0.5040221214294434,
-0.36811578273773193,
0.51689612865448,
-0.409594863653183,
-0.5470173358917236,
1.6574223041534424,
0.17669321596622467,
-1.4221909046173096,
-2.381916046142578,
-0.25141990184783936,
-0.8854864239692688,
0.0835522934794426,
-0.6597896814346313,
-1.0207873582839966,
1.683664321899414,
0.4768702983856201,
-1.243310570716858,
-0.3655940890312195,
-0.4166423976421356,
-0.6299723982810974,
2.574542760848999,
-1.5069228410720825,
-0.16251975297927856,
-0.926586389541626,
-0.5394896864891052,
1.6123312711715698,
-1.2575647830963135,
-0.16417695581912994,
-0.9834165573120117,
-0.6334536671638489,
-1.285521149635315,
-0.5572257041931152,
-0.0657326802611351,
-0.9599376916885376,
0.8145658373832703,
0.15188580751419067,
-1.1188734769821167,
-0.2625405788421631,
-0.8576471209526062,
0.8012214303016663,
-0.06691905856132507,
0.24814943969249725,
1.9149200916290283,
0.30346807837486267,
-0.43721726536750793,
0.6584255695343018,
1.173014760017395,
0.6569556593894958,
-0.6002219319343567,
0.0014874525368213654,
-0.6651658415794373,
0.4044438898563385,
-1.3001848459243774,
0.3065190315246582,
-2.857741355895996,
0.7136904001235962,
-0.03293322026729584,
0.010526834987103939,
0.0037506530061364174,
-1.3380053043365479,
1.0735191106796265,
2.6056931018829346,
-1.1459343433380127,
0.42721644043922424,
0.3872848451137543,
1.1737892627716064,
-1.5855568647384644,
0.2576836347579956,
-0.41114509105682373,
2.1553165912628174,
0.1249755471944809,
1.1783772706985474,
-0.5506482720375061,
-2.3076119422912598,
0.5756173133850098,
-1.1934826374053955,
-1.1756482124328613,
0.7183055281639099,
-0.7559416890144348,
0.015517444349825382,
-1.4916898012161255,
-0.1298932284116745,
-0.903423547744751,
-1.1777487993240356,
0.7070393562316895,
0.07738102972507477,
0.5191004872322083,
-0.7113285064697266,
0.30954015254974365,
-2.1925227642059326,
-1.4006081819534302,
-0.20300836861133575,
-0.8802472949028015,
0.4717830419540405,
-0.39638781547546387,
0.7212819457054138,
-0.061946749687194824,
0.10789027065038681,
0.28584015369415283,
1.3830500841140747,
3.4024789333343506,
0.15585312247276306,
0.421293705701828,
-0.18259678781032562,
-0.9841336607933044,
1.479588508605957,
0.8975327610969543,
-0.034026533365249634,
-0.567315399646759,
-0.986586332321167,
1.3636462688446045,
1.9494026899337769,
0.9760890007019043,
0.1701979637145996,
-0.8229439854621887,
-0.5795483589172363,
-0.017542611807584763,
0.29932647943496704,
0.5233024954795837,
1.0185308456420898,
-0.019998449832201004,
0.12436117231845856,
1.4730535745620728,
1.298097848892212,
-0.44443145394325256,
0.43487706780433655,
-0.8366336226463318,
-0.47372180223464966,
0.49191951751708984,
0.385274738073349,
-0.027882106602191925,
0.395415335893631,
-0.9296899437904358,
-0.25441721081733704,
-0.2734198570251465,
-0.9293376803398132,
-0.6790077090263367,
-0.32336750626564026,
-0.3912307620048523,
1.6691279411315918,
0.16724152863025665,
-0.42606496810913086,
-0.004912508651614189,
-0.8432259559631348,
-0.1081482544541359,
-1.127209186553955,
0.21031984686851501,
-0.07012402266263962,
-0.06323449313640594,
-0.13737525045871735,
1.7556171417236328,
-0.8495041131973267,
-2.0177619457244873,
0.25474831461906433,
0.2625597417354584,
-0.4050704836845398,
0.08420287817716599,
1.6758272647857666,
0.4926677346229553,
1.5327204465866089,
1.3286432027816772,
1.050613284111023,
-0.626634418964386,
-1.3037654161453247,
0.6779370903968811,
0.9072230458259583,
-1.4388408660888672,
0.7949886322021484,
-0.02667130157351494,
-0.5596172213554382,
0.6789194345474243,
1.284826636314392,
0.4153737723827362,
-2.043839931488037,
0.947691023349762,
-0.9927276968955994,
0.7672508955001831,
0.7005630731582642,
0.7821803092956543,
0.2402457892894745,
0.8277415037155151,
-1.2420563697814941,
-1.1244443655014038,
-0.7484922409057617,
-0.6151218414306641,
1.9959715604782104,
-0.2237781137228012,
0.545239269733429,
-0.22821016609668732,
-1.27511465549469,
-0.08650945127010345,
0.6740663647651672,
0.4283336102962494,
-0.26402536034584045,
0.7961642742156982,
-0.6639916896820068,
-1.1478208303451538,
-1.3653466701507568,
-0.38534682989120483,
-0.9258982539176941,
-0.8839092254638672,
1.0548769235610962,
0.9217038154602051,
0.38131949305534363,
2.006769895553589,
0.5207425951957703,
0.22020605206489563,
-2.673203706741333,
0.8312221765518188,
0.37469282746315,
-0.11720967292785645,
0.9927136301994324,
0.2511390149593353,
1.1491789817810059,
0.045764174312353134,
0.48915496468544006,
-2.382762908935547,
2.2500083446502686,
-0.15053676068782806,
0.7746154069900513,
0.046220604330301285,
-0.12800416350364685,
1.062374234199524,
0.5702745914459229,
0.5876787304878235,
-1.1545865535736084,
0.7287737131118774,
-0.6724745631217957,
1.235077142715454,
0.9612484574317932,
-0.7659590244293213,
0.025972701609134674,
1.281342625617981,
0.5435996651649475,
-0.517882227897644,
-0.9580906629562378,
-0.9033837914466858,
0.9016565084457397,
1.8342615365982056,
-0.01422475278377533,
0.043143607676029205,
0.7461147308349609,
0.6941539645195007,
-1.2676416635513306,
0.03686608374118805,
-0.711954653263092,
-0.7893187403678894,
1.6045786142349243,
2.0409858226776123,
-0.01996287703514099,
-0.10511352121829987,
-0.642522931098938,
-1.343247413635254,
0.782289981842041,
0.01740580052137375,
0.20994220674037933,
0.6682530045509338,
-0.674092173576355,
1.164737343788147,
0.8701245784759521,
0.9717049598693848,
0.15353409945964813,
0.3587687611579895,
0.3573688268661499,
-0.31356242299079895,
-1.0126135349273682,
-0.19721442461013794,
-1.0828917026519775,
-2.5573956966400146,
0.4855271875858307,
-0.26004698872566223,
-1.431870460510254,
0.04649042338132858,
-0.9339268207550049,
0.8837743401527405,
-0.6327342391014099,
-1.1648212671279907,
-1.555032730102539,
0.2673560678958893,
-0.04392356052994728,
0.959735095500946,
-1.6168100833892822,
-0.12351888418197632,
1.181130290031433,
0.9035333395004272,
-0.5341521501541138,
0.9023814797401428,
0.2685004770755768,
1.00540030002594,
0.7838448882102966,
-0.3586392104625702,
0.420478492975235,
0.12544316053390503,
-1.3955076932907104,
0.42907702922821045,
1.1892592906951904,
0.22822381556034088,
1.2800440788269043,
-0.531082808971405,
0.05035607889294624,
0.47450315952301025,
-0.4343346953392029,
-0.40977948904037476,
-0.5473759174346924,
0.6806508302688599,
-0.06124858185648918,
-0.9096532464027405,
-0.002375911921262741,
-0.14549477398395538,
-0.29046717286109924,
0.23405757546424866,
-1.4732413291931152,
-0.24896307289600372,
-0.46750733256340027,
-0.5279293060302734,
-1.3551357984542847,
-0.04746759682893753,
1.3905829191207886,
-0.7727275490760803,
-0.1544436514377594,
0.5591886043548584,
0.4730358421802521,
0.5050800442695618,
0.6671048998832703,
-0.6629215478897095,
-0.3471907079219818,
-0.23500967025756836,
-0.39153245091438293,
0.2126043438911438,
1.2841325998306274,
-0.21559074521064758,
-0.9945191144943237,
0.66572505235672,
-0.3836175799369812,
0.03802704066038132,
1.9667484760284424,
0.11999975144863129,
-0.7845359444618225,
0.33672404289245605,
-0.7058882117271423,
1.8354328870773315,
1.7113406658172607,
1.3291804790496826,
-0.09924430400133133,
-0.9244636297225952,
0.6216748952865601,
-0.2684114873409271,
-0.2977813184261322,
0.9109644889831543,
0.4132365882396698,
-0.203119695186615,
-1.5385794639587402,
0.5002768039703369,
1.2629386186599731,
-0.8892754912376404,
-0.7099844217300415,
0.02654382959008217,
-0.8082910180091858,
1.1194311380386353,
0.6822881102561951,
0.4631991386413574,
0.24396507441997528,
1.677839756011963,
0.7692869305610657,
-0.5579203367233276,
0.41894716024398804,
0.5662910342216492,
-0.15461434423923492,
-2.1819536685943604,
-1.12028169631958,
0.2082238793373108,
-0.3588024377822876,
-1.514548897743225,
1.3456084728240967,
-1.1595512628555298,
-0.9762827754020691,
0.444379597902298,
0.11567863076925278,
1.3531700372695923,
0.38339120149612427,
1.6341502666473389,
2.057049036026001,
0.8898987770080566,
0.2969267964363098,
1.3429032564163208,
-0.10204171389341354,
-0.36761274933815,
1.813547134399414,
-0.4699792265892029,
0.5475688576698303,
1.1289546489715576,
-0.402856707572937,
-1.1119277477264404,
-0.8173995614051819,
-1.1462481021881104,
-0.6454746127128601,
1.1626324653625488,
0.10667640715837479,
-1.0989817380905151,
0.2554306089878082,
1.6020187139511108,
0.09544918686151505,
-0.2257254719734192,
0.5155820846557617,
0.5306567549705505,
-0.6945835947990417,
-0.07640741020441055,
-0.8663261532783508,
0.5439364910125732,
-0.17432016134262085,
-0.37555214762687683,
0.38349649310112,
0.46593591570854187,
1.2722188234329224,
-0.0362209789454937,
0.10159625858068466,
1.2041926383972168,
-1.4628194570541382,
1.4532089233398438,
-0.6827507019042969,
0.23861730098724365,
-2.378357172012329,
1.4361745119094849,
-0.726338803768158,
1.9836500883102417,
-2.6549503803253174,
0.35609376430511475,
-0.5875137448310852,
-0.4232875108718872,
0.3288094401359558,
-0.4101223647594452,
0.1388459950685501,
-0.10808423161506653,
-1.0527458190917969,
-0.08967412263154984,
-0.706309974193573,
0.5604813694953918,
1.108994722366333,
1.399269938468933,
-1.0396898984909058,
-0.29989364743232727,
-1.6835659742355347,
-0.19008806347846985,
-0.6937602162361145,
0.22936221957206726,
-1.9515801668167114,
-0.11410842835903168,
-2.0286037921905518,
-2.285938262939453,
-1.4482475519180298,
-0.8719767928123474,
1.0722516775131226,
0.07330839335918427,
-0.9331011176109314,
1.188536286354065,
-0.447158545255661,
-1.7701139450073242,
1.0936391353607178,
-2.1369574069976807
] |
https://github.com/huggingface/datasets/issues/4795 | Missing MBPP splits | Thanks for the follow-up, @stadlerb.
Would you be willing to open a Pull Request to address this issue? :wink: | (@albertvillanova)
The [MBPP dataset on the Hub](https://huggingface.co/datasets/mbpp) has only a test split for both its "full" and its "sanitized" subset, while the [paper](https://arxiv.org/abs/2108.07732) states in subsection 2.1 regarding the full split:
> In the experiments described later in the paper, we hold out 10 problems for **few-shot prompting**, another 500 as our **test** dataset (which is used to evaluate both few-shot inference and fine-tuned models), 374 problems for **fine-tuning**, and the rest for **validation**.
If the dataset on the Hub should reproduce most closely what the original authors use, I guess this four-way split should be reflected.
The paper doesn't explicitly state the task_id ranges of the splits, but the [GitHub readme](https://github.com/google-research/google-research/tree/master/mbpp) referenced in the paper specifies exact task_id ranges, although it misstates the total number of samples:
> We specify a train and test split to use for evaluation. Specifically:
>
> * Task IDs 11-510 are used for evaluation.
> * Task IDs 1-10 and 511-1000 are used for training and/or prompting. We typically used 1-10 for few-shot prompting, although you can feel free to use any of the training examples.
I.e. the few-shot, train and validation splits are combined into one split, with a soft suggestion of using the first ten for few-shot prompting. It is not explicitly stated whether the 374 fine-tuning samples mentioned in the paper have task_id 511 to 784 or 601 to 974 or are randomly sampled from task_id 511 to 974.
Regarding the "sanitized" split the paper states the following:
> For evaluations involving the edited dataset, we perform comparisons with 100 problems that appear in both the original and edited dataset, using the same held out 10 problems for few-shot prompting and 374 problems for fine-tuning.
The statement doesn't appear to be very precise, as among the 10 few-shot problems, those with task_id 1, 5 and 10 are not even part of the sanitized variant, and many from the task_id range from 511 to 974 are missing (e.g. task_id 511 to 553). I suppose the idea the task_id ranges for each split remain the same, even if some of the task_ids are not present. That would result in 7 few-shot, 257 test, 141 train and 22 validation examples in the sanitized split. | 589 | 19 | Missing MBPP splits
(@albertvillanova)
The [MBPP dataset on the Hub](https://huggingface.co/datasets/mbpp) has only a test split for both its "full" and its "sanitized" subset, while the [paper](https://arxiv.org/abs/2108.07732) states in subsection 2.1 regarding the full split:
> In the experiments described later in the paper, we hold out 10 problems for **few-shot prompting**, another 500 as our **test** dataset (which is used to evaluate both few-shot inference and fine-tuned models), 374 problems for **fine-tuning**, and the rest for **validation**.
If the dataset on the Hub should reproduce most closely what the original authors use, I guess this four-way split should be reflected.
The paper doesn't explicitly state the task_id ranges of the splits, but the [GitHub readme](https://github.com/google-research/google-research/tree/master/mbpp) referenced in the paper specifies exact task_id ranges, although it misstates the total number of samples:
> We specify a train and test split to use for evaluation. Specifically:
>
> * Task IDs 11-510 are used for evaluation.
> * Task IDs 1-10 and 511-1000 are used for training and/or prompting. We typically used 1-10 for few-shot prompting, although you can feel free to use any of the training examples.
I.e. the few-shot, train and validation splits are combined into one split, with a soft suggestion of using the first ten for few-shot prompting. It is not explicitly stated whether the 374 fine-tuning samples mentioned in the paper have task_id 511 to 784 or 601 to 974 or are randomly sampled from task_id 511 to 974.
Regarding the "sanitized" split the paper states the following:
> For evaluations involving the edited dataset, we perform comparisons with 100 problems that appear in both the original and edited dataset, using the same held out 10 problems for few-shot prompting and 374 problems for fine-tuning.
The statement doesn't appear to be very precise, as among the 10 few-shot problems, those with task_id 1, 5 and 10 are not even part of the sanitized variant, and many from the task_id range from 511 to 974 are missing (e.g. task_id 511 to 553). I suppose the idea the task_id ranges for each split remain the same, even if some of the task_ids are not present. That would result in 7 few-shot, 257 test, 141 train and 22 validation examples in the sanitized split.
Thanks for the follow-up, @stadlerb.
Would you be willing to open a Pull Request to address this issue? :wink: | [
-1.2763214111328125,
-1.0013370513916016,
-0.7500472664833069,
1.3340860605239868,
-0.19160017371177673,
-1.3324792385101318,
0.10684128105640411,
-1.165877103805542,
1.6554774045944214,
-0.759626567363739,
0.23130536079406738,
-1.6585646867752075,
0.015085511840879917,
-0.5477842688560486,
-0.8164882659912109,
-0.8471623659133911,
-0.4802223742008209,
-0.9047452807426453,
0.9760002493858337,
2.5350289344787598,
1.2231721878051758,
-1.433477759361267,
2.771669387817383,
0.6775052547454834,
-0.18217386305332184,
-0.9444942474365234,
0.5544643402099609,
-0.10780815035104752,
-1.3046088218688965,
-0.48519882559776306,
-0.9254213571548462,
-0.07522372901439667,
-0.5340491533279419,
-0.41096049547195435,
0.14201678335666656,
0.3046962320804596,
-0.16578899323940277,
-0.32520225644111633,
-0.5395662188529968,
-0.7286377549171448,
0.503531277179718,
-0.3883930742740631,
0.9258730411529541,
-0.37241366505622864,
1.810520052909851,
-0.5969183444976807,
0.37938088178634644,
0.6676472425460815,
1.3938665390014648,
0.20399247109889984,
-0.06497426331043243,
0.1927819848060608,
0.36930742859840393,
-0.06569568067789078,
0.46493101119995117,
1.1584333181381226,
0.6764605045318604,
0.5293521285057068,
0.718099057674408,
-2.224126100540161,
1.3178200721740723,
-1.0116031169891357,
0.34143251180648804,
1.477089285850525,
-0.9460233449935913,
0.4494539797306061,
-1.9032458066940308,
-0.08724729716777802,
0.5203616619110107,
-2.362617015838623,
0.11653238534927368,
-1.237436056137085,
-0.5593775510787964,
0.9704256653785706,
0.19662557542324066,
-1.3198180198669434,
0.26055553555488586,
-0.5012564659118652,
1.0234649181365967,
0.4866454601287842,
1.2186490297317505,
-1.7151463031768799,
-0.028319545090198517,
-0.1909535974264145,
0.17031648755073547,
-1.279585838317871,
-1.5588890314102173,
0.6846882104873657,
0.6067192554473877,
0.503415048122406,
-0.11433247476816177,
0.9729832410812378,
-0.9948533177375793,
0.8883995413780212,
-0.9624189734458923,
-1.6693350076675415,
-1.3913061618804932,
-2.2620978355407715,
-2.2131412029266357,
0.8288692235946655,
-0.49104273319244385,
-0.5115151405334473,
2.0266623497009277,
-1.0814651250839233,
-1.6836234331130981,
1.079651117324829,
0.21167270839214325,
0.06569716334342957,
2.4674386978149414,
0.15242378413677216,
-0.6797687411308289,
0.4303428828716278,
-0.7435893416404724,
0.7643669247627258,
-0.46364304423332214,
1.351767659187317,
0.42594945430755615,
-1.0052382946014404,
1.5957216024398804,
-0.43072715401649475,
0.4869481921195984,
-0.6218590140342712,
-0.552746593952179,
-0.7400028705596924,
0.44887399673461914,
1.932079792022705,
-0.34565404057502747,
1.5391288995742798,
-0.2999042570590973,
-1.5474648475646973,
-1.5439558029174805,
0.8701121211051941,
0.596951425075531,
-0.8695880770683289,
0.0948546826839447,
-0.3453236222267151,
0.06966570019721985,
-0.062184590846300125,
0.9665637612342834,
1.237673044204712,
0.7139725685119629,
-0.2653771936893463,
-0.8828926682472229,
0.23960503935813904,
-0.14390864968299866,
-0.7141988277435303,
-1.7756832838058472,
-0.3633418381214142,
0.14347608387470245,
0.6255040168762207,
-1.212673306465149,
1.7082313299179077,
0.8652347326278687,
1.993737816810608,
0.9761595726013184,
-0.4031568169593811,
1.4730418920516968,
0.12069852650165558,
1.7679774761199951,
-0.5073755979537964,
0.7002275586128235,
-0.40419262647628784,
-1.1336960792541504,
0.862635612487793,
-0.42406556010246277,
-1.9539176225662231,
-0.6358867883682251,
-0.8568989634513855,
-0.22507844865322113,
-0.7847643494606018,
0.9301680326461792,
-0.19580668210983276,
-1.3643255233764648,
0.3033474087715149,
-0.5992153286933899,
0.14846765995025635,
-1.2904471158981323,
0.3557873070240021,
0.8065309524536133,
-0.6028260588645935,
-0.12646138668060303,
-0.2908398509025574,
-1.3474023342132568,
-0.5453987121582031,
0.2171192765235901,
1.9250177145004272,
-0.7009537816047668,
0.9184998273849487,
0.9199585318565369,
-0.6875790357589722,
-0.02659982070326805,
0.39873823523521423,
-0.2976880669593811,
0.8297331929206848,
-1.0305566787719727,
-0.4319532811641693,
0.9840660691261292,
-0.17135019600391388,
-0.42427176237106323,
1.4630987644195557,
0.6651466488838196,
-1.0249755382537842,
-0.2995721399784088,
-0.1836586743593216,
-0.9180845618247986,
0.019306443631649017,
-1.5735617876052856,
-0.23604558408260345,
0.23670493066310883,
-1.5350569486618042,
-0.4834800362586975,
-0.21902373433113098,
1.3014458417892456,
-0.1691625416278839,
1.4686992168426514,
-0.38692981004714966,
-0.2201034426689148,
-0.4002697169780731,
-0.4095567464828491,
0.18027763068675995,
-0.23143595457077026,
-0.6079866290092468,
0.26750457286834717,
-0.8356672525405884,
0.2942442297935486,
1.472417950630188,
0.4154890179634094,
-0.0038329935632646084,
0.5140156745910645,
1.039950966835022,
0.35169243812561035,
-0.0641082301735878,
-0.9399134516716003,
-1.5721956491470337,
2.070634126663208,
-1.5980576276779175,
1.9412649869918823,
0.8218232989311218,
-0.014308910816907883,
-1.724331259727478,
-1.8345849514007568,
1.3479429483413696,
1.158689260482788,
2.3248536586761475,
0.563120424747467,
0.43990859389305115,
-0.8063601851463318,
-0.6514570116996765,
0.3328682482242584,
-0.9848036766052246,
-0.7192988395690918,
0.0699232965707779,
2.309664249420166,
1.7048014402389526,
-0.518280565738678,
-0.20691581070423126,
-0.8881890773773193,
1.3134751319885254,
-0.12056318670511246,
0.1977980136871338,
2.0238773822784424,
-0.3415445387363434,
-1.0862234830856323,
1.3070658445358276,
-2.382077217102051,
0.15214723348617554,
1.9378321170806885,
0.31439292430877686,
0.031492508947849274,
-1.297606348991394,
-0.5861612558364868,
-0.23169484734535217,
-0.41180360317230225,
-1.2800664901733398,
0.4945892095565796,
-0.2884863018989563,
-0.8654415011405945,
-1.5581892728805542,
0.09787249565124512,
-1.2292530536651611,
-1.6230239868164062,
0.32589516043663025,
1.9146190881729126,
2.0963540077209473,
-0.6829172372817993,
1.4450135231018066,
-0.3199220597743988,
0.06040440872311592,
1.183829665184021,
1.2024942636489868,
3.1418232917785645,
1.8615992069244385,
-1.2479956150054932,
0.574695885181427,
-0.2537189722061157,
-0.4235445559024811,
1.0158333778381348,
-0.9751419425010681,
1.2557870149612427,
-0.18995267152786255,
-1.2415351867675781,
-1.1864633560180664,
0.9812986850738525,
0.46212533116340637,
0.09992682933807373,
-0.457277774810791,
1.2054752111434937,
0.10975848883390427,
1.3843764066696167,
0.5040221214294434,
-0.36811578273773193,
0.51689612865448,
-0.409594863653183,
-0.5470173358917236,
1.6574223041534424,
0.17669321596622467,
-1.4221909046173096,
-2.381916046142578,
-0.25141990184783936,
-0.8854864239692688,
0.0835522934794426,
-0.6597896814346313,
-1.0207873582839966,
1.683664321899414,
0.4768702983856201,
-1.243310570716858,
-0.3655940890312195,
-0.4166423976421356,
-0.6299723982810974,
2.574542760848999,
-1.5069228410720825,
-0.16251975297927856,
-0.926586389541626,
-0.5394896864891052,
1.6123312711715698,
-1.2575647830963135,
-0.16417695581912994,
-0.9834165573120117,
-0.6334536671638489,
-1.285521149635315,
-0.5572257041931152,
-0.0657326802611351,
-0.9599376916885376,
0.8145658373832703,
0.15188580751419067,
-1.1188734769821167,
-0.2625405788421631,
-0.8576471209526062,
0.8012214303016663,
-0.06691905856132507,
0.24814943969249725,
1.9149200916290283,
0.30346807837486267,
-0.43721726536750793,
0.6584255695343018,
1.173014760017395,
0.6569556593894958,
-0.6002219319343567,
0.0014874525368213654,
-0.6651658415794373,
0.4044438898563385,
-1.3001848459243774,
0.3065190315246582,
-2.857741355895996,
0.7136904001235962,
-0.03293322026729584,
0.010526834987103939,
0.0037506530061364174,
-1.3380053043365479,
1.0735191106796265,
2.6056931018829346,
-1.1459343433380127,
0.42721644043922424,
0.3872848451137543,
1.1737892627716064,
-1.5855568647384644,
0.2576836347579956,
-0.41114509105682373,
2.1553165912628174,
0.1249755471944809,
1.1783772706985474,
-0.5506482720375061,
-2.3076119422912598,
0.5756173133850098,
-1.1934826374053955,
-1.1756482124328613,
0.7183055281639099,
-0.7559416890144348,
0.015517444349825382,
-1.4916898012161255,
-0.1298932284116745,
-0.903423547744751,
-1.1777487993240356,
0.7070393562316895,
0.07738102972507477,
0.5191004872322083,
-0.7113285064697266,
0.30954015254974365,
-2.1925227642059326,
-1.4006081819534302,
-0.20300836861133575,
-0.8802472949028015,
0.4717830419540405,
-0.39638781547546387,
0.7212819457054138,
-0.061946749687194824,
0.10789027065038681,
0.28584015369415283,
1.3830500841140747,
3.4024789333343506,
0.15585312247276306,
0.421293705701828,
-0.18259678781032562,
-0.9841336607933044,
1.479588508605957,
0.8975327610969543,
-0.034026533365249634,
-0.567315399646759,
-0.986586332321167,
1.3636462688446045,
1.9494026899337769,
0.9760890007019043,
0.1701979637145996,
-0.8229439854621887,
-0.5795483589172363,
-0.017542611807584763,
0.29932647943496704,
0.5233024954795837,
1.0185308456420898,
-0.019998449832201004,
0.12436117231845856,
1.4730535745620728,
1.298097848892212,
-0.44443145394325256,
0.43487706780433655,
-0.8366336226463318,
-0.47372180223464966,
0.49191951751708984,
0.385274738073349,
-0.027882106602191925,
0.395415335893631,
-0.9296899437904358,
-0.25441721081733704,
-0.2734198570251465,
-0.9293376803398132,
-0.6790077090263367,
-0.32336750626564026,
-0.3912307620048523,
1.6691279411315918,
0.16724152863025665,
-0.42606496810913086,
-0.004912508651614189,
-0.8432259559631348,
-0.1081482544541359,
-1.127209186553955,
0.21031984686851501,
-0.07012402266263962,
-0.06323449313640594,
-0.13737525045871735,
1.7556171417236328,
-0.8495041131973267,
-2.0177619457244873,
0.25474831461906433,
0.2625597417354584,
-0.4050704836845398,
0.08420287817716599,
1.6758272647857666,
0.4926677346229553,
1.5327204465866089,
1.3286432027816772,
1.050613284111023,
-0.626634418964386,
-1.3037654161453247,
0.6779370903968811,
0.9072230458259583,
-1.4388408660888672,
0.7949886322021484,
-0.02667130157351494,
-0.5596172213554382,
0.6789194345474243,
1.284826636314392,
0.4153737723827362,
-2.043839931488037,
0.947691023349762,
-0.9927276968955994,
0.7672508955001831,
0.7005630731582642,
0.7821803092956543,
0.2402457892894745,
0.8277415037155151,
-1.2420563697814941,
-1.1244443655014038,
-0.7484922409057617,
-0.6151218414306641,
1.9959715604782104,
-0.2237781137228012,
0.545239269733429,
-0.22821016609668732,
-1.27511465549469,
-0.08650945127010345,
0.6740663647651672,
0.4283336102962494,
-0.26402536034584045,
0.7961642742156982,
-0.6639916896820068,
-1.1478208303451538,
-1.3653466701507568,
-0.38534682989120483,
-0.9258982539176941,
-0.8839092254638672,
1.0548769235610962,
0.9217038154602051,
0.38131949305534363,
2.006769895553589,
0.5207425951957703,
0.22020605206489563,
-2.673203706741333,
0.8312221765518188,
0.37469282746315,
-0.11720967292785645,
0.9927136301994324,
0.2511390149593353,
1.1491789817810059,
0.045764174312353134,
0.48915496468544006,
-2.382762908935547,
2.2500083446502686,
-0.15053676068782806,
0.7746154069900513,
0.046220604330301285,
-0.12800416350364685,
1.062374234199524,
0.5702745914459229,
0.5876787304878235,
-1.1545865535736084,
0.7287737131118774,
-0.6724745631217957,
1.235077142715454,
0.9612484574317932,
-0.7659590244293213,
0.025972701609134674,
1.281342625617981,
0.5435996651649475,
-0.517882227897644,
-0.9580906629562378,
-0.9033837914466858,
0.9016565084457397,
1.8342615365982056,
-0.01422475278377533,
0.043143607676029205,
0.7461147308349609,
0.6941539645195007,
-1.2676416635513306,
0.03686608374118805,
-0.711954653263092,
-0.7893187403678894,
1.6045786142349243,
2.0409858226776123,
-0.01996287703514099,
-0.10511352121829987,
-0.642522931098938,
-1.343247413635254,
0.782289981842041,
0.01740580052137375,
0.20994220674037933,
0.6682530045509338,
-0.674092173576355,
1.164737343788147,
0.8701245784759521,
0.9717049598693848,
0.15353409945964813,
0.3587687611579895,
0.3573688268661499,
-0.31356242299079895,
-1.0126135349273682,
-0.19721442461013794,
-1.0828917026519775,
-2.5573956966400146,
0.4855271875858307,
-0.26004698872566223,
-1.431870460510254,
0.04649042338132858,
-0.9339268207550049,
0.8837743401527405,
-0.6327342391014099,
-1.1648212671279907,
-1.555032730102539,
0.2673560678958893,
-0.04392356052994728,
0.959735095500946,
-1.6168100833892822,
-0.12351888418197632,
1.181130290031433,
0.9035333395004272,
-0.5341521501541138,
0.9023814797401428,
0.2685004770755768,
1.00540030002594,
0.7838448882102966,
-0.3586392104625702,
0.420478492975235,
0.12544316053390503,
-1.3955076932907104,
0.42907702922821045,
1.1892592906951904,
0.22822381556034088,
1.2800440788269043,
-0.531082808971405,
0.05035607889294624,
0.47450315952301025,
-0.4343346953392029,
-0.40977948904037476,
-0.5473759174346924,
0.6806508302688599,
-0.06124858185648918,
-0.9096532464027405,
-0.002375911921262741,
-0.14549477398395538,
-0.29046717286109924,
0.23405757546424866,
-1.4732413291931152,
-0.24896307289600372,
-0.46750733256340027,
-0.5279293060302734,
-1.3551357984542847,
-0.04746759682893753,
1.3905829191207886,
-0.7727275490760803,
-0.1544436514377594,
0.5591886043548584,
0.4730358421802521,
0.5050800442695618,
0.6671048998832703,
-0.6629215478897095,
-0.3471907079219818,
-0.23500967025756836,
-0.39153245091438293,
0.2126043438911438,
1.2841325998306274,
-0.21559074521064758,
-0.9945191144943237,
0.66572505235672,
-0.3836175799369812,
0.03802704066038132,
1.9667484760284424,
0.11999975144863129,
-0.7845359444618225,
0.33672404289245605,
-0.7058882117271423,
1.8354328870773315,
1.7113406658172607,
1.3291804790496826,
-0.09924430400133133,
-0.9244636297225952,
0.6216748952865601,
-0.2684114873409271,
-0.2977813184261322,
0.9109644889831543,
0.4132365882396698,
-0.203119695186615,
-1.5385794639587402,
0.5002768039703369,
1.2629386186599731,
-0.8892754912376404,
-0.7099844217300415,
0.02654382959008217,
-0.8082910180091858,
1.1194311380386353,
0.6822881102561951,
0.4631991386413574,
0.24396507441997528,
1.677839756011963,
0.7692869305610657,
-0.5579203367233276,
0.41894716024398804,
0.5662910342216492,
-0.15461434423923492,
-2.1819536685943604,
-1.12028169631958,
0.2082238793373108,
-0.3588024377822876,
-1.514548897743225,
1.3456084728240967,
-1.1595512628555298,
-0.9762827754020691,
0.444379597902298,
0.11567863076925278,
1.3531700372695923,
0.38339120149612427,
1.6341502666473389,
2.057049036026001,
0.8898987770080566,
0.2969267964363098,
1.3429032564163208,
-0.10204171389341354,
-0.36761274933815,
1.813547134399414,
-0.4699792265892029,
0.5475688576698303,
1.1289546489715576,
-0.402856707572937,
-1.1119277477264404,
-0.8173995614051819,
-1.1462481021881104,
-0.6454746127128601,
1.1626324653625488,
0.10667640715837479,
-1.0989817380905151,
0.2554306089878082,
1.6020187139511108,
0.09544918686151505,
-0.2257254719734192,
0.5155820846557617,
0.5306567549705505,
-0.6945835947990417,
-0.07640741020441055,
-0.8663261532783508,
0.5439364910125732,
-0.17432016134262085,
-0.37555214762687683,
0.38349649310112,
0.46593591570854187,
1.2722188234329224,
-0.0362209789454937,
0.10159625858068466,
1.2041926383972168,
-1.4628194570541382,
1.4532089233398438,
-0.6827507019042969,
0.23861730098724365,
-2.378357172012329,
1.4361745119094849,
-0.726338803768158,
1.9836500883102417,
-2.6549503803253174,
0.35609376430511475,
-0.5875137448310852,
-0.4232875108718872,
0.3288094401359558,
-0.4101223647594452,
0.1388459950685501,
-0.10808423161506653,
-1.0527458190917969,
-0.08967412263154984,
-0.706309974193573,
0.5604813694953918,
1.108994722366333,
1.399269938468933,
-1.0396898984909058,
-0.29989364743232727,
-1.6835659742355347,
-0.19008806347846985,
-0.6937602162361145,
0.22936221957206726,
-1.9515801668167114,
-0.11410842835903168,
-2.0286037921905518,
-2.285938262939453,
-1.4482475519180298,
-0.8719767928123474,
1.0722516775131226,
0.07330839335918427,
-0.9331011176109314,
1.188536286354065,
-0.447158545255661,
-1.7701139450073242,
1.0936391353607178,
-2.1369574069976807
] |
https://github.com/huggingface/datasets/issues/4792 | Add DocVQA | Thanks for proposing, @NielsRogge.
Please, note this dataset requires registering in their website and their Terms and Conditions state we cannot distribute their URL:
```
1. You will NOT distribute the download URLs
...
``` | ## Adding a Dataset
- **Name:** DocVQA
- **Description:** Document Visual Question Answering (DocVQA) seeks to inspire a “purpose-driven” point of view in Document Analysis and Recognition research, where the document content is extracted and used to respond to high-level tasks defined by the human consumers of this information.
- **Paper:** https://arxiv.org/abs/2007.00398
- **Data:** https://www.docvqa.org/datasets/docvqa
- **Motivation:** Models like LayoutLM and Donut in the Transformers library are fine-tuned on DocVQA. Would be very handy to directly load this dataset from the hub.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
| 590 | 35 | Add DocVQA
## Adding a Dataset
- **Name:** DocVQA
- **Description:** Document Visual Question Answering (DocVQA) seeks to inspire a “purpose-driven” point of view in Document Analysis and Recognition research, where the document content is extracted and used to respond to high-level tasks defined by the human consumers of this information.
- **Paper:** https://arxiv.org/abs/2007.00398
- **Data:** https://www.docvqa.org/datasets/docvqa
- **Motivation:** Models like LayoutLM and Donut in the Transformers library are fine-tuned on DocVQA. Would be very handy to directly load this dataset from the hub.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
Thanks for proposing, @NielsRogge.
Please, note this dataset requires registering in their website and their Terms and Conditions state we cannot distribute their URL:
```
1. You will NOT distribute the download URLs
...
``` | [
-1.2096012830734253,
-0.94407057762146,
-0.6693502068519592,
1.3725204467773438,
-0.23772647976875305,
-1.400007963180542,
0.11429595947265625,
-1.0154216289520264,
1.684879183769226,
-0.7426199913024902,
0.2303493320941925,
-1.7352139949798584,
-0.007883349433541298,
-0.6011317372322083,
-0.8147147297859192,
-0.8226093649864197,
-0.4415584206581116,
-0.8466983437538147,
0.902653157711029,
2.528205156326294,
1.234598994255066,
-1.3462945222854614,
2.656824827194214,
0.680748701095581,
-0.24921846389770508,
-0.9991373419761658,
0.508086085319519,
0.05917823314666748,
-1.2544498443603516,
-0.48309382796287537,
-0.8826026320457458,
-0.13325591385364532,
-0.37196922302246094,
-0.5671165585517883,
0.1388348937034607,
0.392022043466568,
-0.10777974873781204,
-0.3232171833515167,
-0.5049163699150085,
-0.7178481817245483,
0.5198876857757568,
-0.40664222836494446,
0.8836983442306519,
-0.4406430423259735,
1.7856459617614746,
-0.7418316006660461,
0.3437936305999756,
0.7100365161895752,
1.3479868173599243,
0.16027319431304932,
-0.07812880724668503,
0.240105539560318,
0.4510739743709564,
0.04723448306322098,
0.439300537109375,
1.13332200050354,
0.6428393125534058,
0.4687240421772003,
0.6901806592941284,
-2.130016803741455,
1.386290192604065,
-1.008363127708435,
0.34724199771881104,
1.5151530504226685,
-1.0863051414489746,
0.3930705189704895,
-1.7881733179092407,
-0.15159393846988678,
0.5263548493385315,
-2.33579158782959,
0.2019556313753128,
-1.300574779510498,
-0.6476168036460876,
0.9199406504631042,
0.2486748993396759,
-1.2086626291275024,
0.21696063876152039,
-0.48391321301460266,
0.9466047286987305,
0.4610126316547394,
1.059393048286438,
-1.7092829942703247,
-0.16936495900154114,
-0.24195674061775208,
-0.021720468997955322,
-1.2943388223648071,
-1.5509765148162842,
0.6482639908790588,
0.6565587520599365,
0.6099663972854614,
-0.14973033964633942,
0.8690614700317383,
-0.9274691939353943,
0.9714933633804321,
-1.0369093418121338,
-1.7002627849578857,
-1.3747501373291016,
-2.2477753162384033,
-2.213890552520752,
0.945368230342865,
-0.406822144985199,
-0.5266058444976807,
1.9749356508255005,
-0.998727560043335,
-1.7481111288070679,
1.1578805446624756,
0.25187432765960693,
0.05586832016706467,
2.3488657474517822,
0.15185679495334625,
-0.6404543519020081,
0.3579823076725006,
-0.7290081977844238,
0.8039158582687378,
-0.4307023882865906,
1.368980884552002,
0.5037577152252197,
-0.9876673221588135,
1.5848889350891113,
-0.5201302766799927,
0.46160486340522766,
-0.6686345934867859,
-0.5588273406028748,
-0.7696757316589355,
0.4651322662830353,
1.915676474571228,
-0.31452566385269165,
1.5691580772399902,
-0.30889737606048584,
-1.5991791486740112,
-1.442975401878357,
0.8277996778488159,
0.5592825412750244,
-0.7975924015045166,
-0.004626675974577665,
-0.31310367584228516,
0.09097150713205338,
-0.025740133598446846,
1.0546631813049316,
1.167525053024292,
0.7145217061042786,
-0.35349342226982117,
-0.8149067163467407,
0.23655743896961212,
0.0027310410514473915,
-0.7252047061920166,
-1.8164983987808228,
-0.32357317209243774,
0.3108060359954834,
0.5875758528709412,
-1.2470710277557373,
1.707666039466858,
0.8522801399230957,
2.0284039974212646,
0.9153334498405457,
-0.3340800404548645,
1.4375470876693726,
-0.038515958935022354,
1.8761520385742188,
-0.5521775484085083,
0.7926030158996582,
-0.3408944308757782,
-1.0211737155914307,
0.7790458798408508,
-0.42145588994026184,
-2.043457269668579,
-0.6284157633781433,
-0.9659019708633423,
-0.19802738726139069,
-0.7461042404174805,
1.081372857093811,
-0.24221587181091309,
-1.2708035707473755,
0.1765233427286148,
-0.6725809574127197,
0.14672808349132538,
-1.2610888481140137,
0.2469753623008728,
0.8503192663192749,
-0.5776005387306213,
-0.057351984083652496,
-0.2294122725725174,
-1.3305792808532715,
-0.5288295149803162,
0.2511705160140991,
1.9125665426254272,
-0.764136016368866,
0.9409928321838379,
0.8831589818000793,
-0.7165954113006592,
0.0566183477640152,
0.4020348787307739,
-0.36051538586616516,
0.8017432689666748,
-1.0617892742156982,
-0.2686593234539032,
1.0536584854125977,
-0.1134561076760292,
-0.49921098351478577,
1.512359619140625,
0.8139063715934753,
-0.9222243428230286,
-0.26654931902885437,
-0.23958554863929749,
-0.7983881235122681,
0.004443705081939697,
-1.5790376663208008,
-0.20124149322509766,
0.21765977144241333,
-1.4610546827316284,
-0.45134714245796204,
-0.2788342535495758,
1.3495869636535645,
-0.16334998607635498,
1.325263261795044,
-0.2593405544757843,
-0.32049405574798584,
-0.46019941568374634,
-0.41806119680404663,
0.20799724757671356,
-0.26316162943840027,
-0.6738036870956421,
0.23444843292236328,
-0.7899116277694702,
0.2444259226322174,
1.466505765914917,
0.37362340092658997,
0.012120911851525307,
0.5873324275016785,
1.0340601205825806,
0.26901811361312866,
-0.14067581295967102,
-0.9372460246086121,
-1.603847861289978,
2.029489755630493,
-1.492672085762024,
1.9067877531051636,
0.8003412485122681,
0.04052865505218506,
-1.7585810422897339,
-1.840579628944397,
1.312125325202942,
1.223278522491455,
2.3748326301574707,
0.5845220685005188,
0.42081692814826965,
-0.8304386138916016,
-0.6089385151863098,
0.2673507630825043,
-1.1011823415756226,
-0.7234979271888733,
0.022170407697558403,
2.393030881881714,
1.792754054069519,
-0.6935535669326782,
-0.2152453362941742,
-1.0444996356964111,
1.294541835784912,
-0.08417867869138718,
0.13482871651649475,
2.048583984375,
-0.2750450372695923,
-1.0771204233169556,
1.2295812368392944,
-2.2895150184631348,
0.07520215213298798,
2.0355849266052246,
0.3335299789905548,
0.08153236657381058,
-1.4105608463287354,
-0.6095514297485352,
-0.30587899684906006,
-0.48024725914001465,
-1.2786630392074585,
0.5763416290283203,
-0.218269482254982,
-0.8747389912605286,
-1.555091381072998,
0.09721413999795914,
-1.0798166990280151,
-1.6990876197814941,
0.4279427230358124,
1.8358023166656494,
1.935843586921692,
-0.736467719078064,
1.4264024496078491,
-0.22359031438827515,
0.1951868087053299,
1.2945232391357422,
1.2148524522781372,
3.0879926681518555,
2.0182361602783203,
-1.1579933166503906,
0.7077628374099731,
-0.20235835015773773,
-0.5092371702194214,
1.11674165725708,
-0.9983999133110046,
1.201213002204895,
-0.199521005153656,
-1.2557953596115112,
-1.1602771282196045,
1.0086560249328613,
0.4910752475261688,
0.11814416199922562,
-0.5418410301208496,
1.271525263786316,
0.037903882563114166,
1.4052965641021729,
0.6017143130302429,
-0.34630143642425537,
0.6185351610183716,
-0.4187051057815552,
-0.49145764112472534,
1.6709481477737427,
0.3092533349990845,
-1.4206024408340454,
-2.372312068939209,
-0.20201699435710907,
-0.8864434957504272,
-0.10367505252361298,
-0.5953372120857239,
-0.9794068932533264,
1.6489332914352417,
0.5675011277198792,
-1.2948168516159058,
-0.24047614634037018,
-0.3242033123970032,
-0.7379289269447327,
2.67749285697937,
-1.5283374786376953,
-0.14512448012828827,
-1.0375924110412598,
-0.44471144676208496,
1.712471604347229,
-1.294615387916565,
-0.21418499946594238,
-1.009787917137146,
-0.6534287929534912,
-1.2522491216659546,
-0.478464275598526,
-0.11659983545541763,
-0.8950929641723633,
0.7984936833381653,
-0.06027432531118393,
-1.0675408840179443,
-0.3156816363334656,
-0.9000804424285889,
0.7520702481269836,
-0.06216584891080856,
0.2036837786436081,
1.8872501850128174,
0.39937272667884827,
-0.40256503224372864,
0.6058686375617981,
1.1699779033660889,
0.5870760083198547,
-0.7369590997695923,
0.14798785746097565,
-0.7374260425567627,
0.254989355802536,
-1.4213942289352417,
0.34519490599632263,
-2.91656756401062,
0.6767681837081909,
-0.10039211064577103,
-0.14197641611099243,
-0.05961714684963226,
-1.3763905763626099,
1.2564879655838013,
2.6051206588745117,
-1.1915521621704102,
0.4271548092365265,
0.28160426020622253,
1.2083208560943604,
-1.5314157009124756,
0.40939727425575256,
-0.3156806528568268,
2.090412139892578,
0.15024727582931519,
1.1804356575012207,
-0.5277417898178101,
-2.150912046432495,
0.7352226376533508,
-1.166279673576355,
-1.0891823768615723,
0.5683469176292419,
-0.7770332098007202,
0.088661789894104,
-1.5059460401535034,
-0.11195835471153259,
-0.8720999360084534,
-1.274318814277649,
0.7503145933151245,
0.11095138639211655,
0.4101243019104004,
-0.6298524737358093,
0.2590484023094177,
-2.201439380645752,
-1.425126314163208,
-0.2582438886165619,
-0.83941650390625,
0.45766159892082214,
-0.2408839911222458,
0.673363208770752,
-0.04882635176181793,
0.1354789435863495,
0.30959364771842957,
1.364689588546753,
3.321474075317383,
0.18960747122764587,
0.41892209649086,
-0.10679993033409119,
-0.9514341950416565,
1.4265508651733398,
0.9486809372901917,
0.03484330326318741,
-0.5810624361038208,
-0.9563990235328674,
1.3314433097839355,
2.0296108722686768,
1.0206166505813599,
0.09564267843961716,
-0.8614953756332397,
-0.7342722415924072,
0.0673205628991127,
0.32070425152778625,
0.4754035472869873,
1.0037065744400024,
0.06767597049474716,
0.10811410844326019,
1.4718819856643677,
1.3024711608886719,
-0.4320780336856842,
0.3886072635650635,
-0.8148590326309204,
-0.3970821797847748,
0.4980606734752655,
0.3611409664154053,
-0.022519126534461975,
0.38447389006614685,
-1.0297462940216064,
-0.3481108546257019,
-0.1411656141281128,
-0.9191478490829468,
-0.7462063431739807,
-0.4981973171234131,
-0.5187841653823853,
1.7363722324371338,
0.09077131748199463,
-0.5174847841262817,
-0.01059707347303629,
-0.7480676770210266,
-0.06934547424316406,
-1.1579383611679077,
0.3534495234489441,
0.016343051567673683,
-0.04638657718896866,
-0.1917411834001541,
1.8526288270950317,
-0.9081992506980896,
-2.1798980236053467,
0.3236127495765686,
0.2909280061721802,
-0.6440250277519226,
0.09152290225028992,
1.6213666200637817,
0.5737442970275879,
1.451027274131775,
1.3662110567092896,
1.1222929954528809,
-0.5639160871505737,
-1.372759222984314,
0.6435419917106628,
0.9401288628578186,
-1.4409538507461548,
0.7733502388000488,
0.017222940921783447,
-0.5063191652297974,
0.6638550758361816,
1.3770262002944946,
0.35290855169296265,
-1.9788157939910889,
0.8026784062385559,
-0.8661392331123352,
0.789980947971344,
0.6769154071807861,
0.7917826771736145,
0.23027829825878143,
0.9064949154853821,
-1.4327402114868164,
-1.1175156831741333,
-0.8133847713470459,
-0.5162287950515747,
2.004088878631592,
-0.20332980155944824,
0.5475649833679199,
-0.25185492634773254,
-1.2473193407058716,
-0.03769281506538391,
0.7700073719024658,
0.41251325607299805,
-0.3833743631839752,
0.8604717254638672,
-0.6184269189834595,
-1.1132373809814453,
-1.2462148666381836,
-0.523278534412384,
-0.8387790322303772,
-0.8657141327857971,
0.948384165763855,
0.9822890758514404,
0.49621185660362244,
1.9484940767288208,
0.5899243354797363,
0.2379073053598404,
-2.5693302154541016,
0.8170744776725769,
0.19388142228126526,
-0.00589176919311285,
0.9136850833892822,
0.2556185722351074,
1.0819814205169678,
-0.03658711910247803,
0.4353770315647125,
-2.3976023197174072,
2.235499143600464,
-0.21963170170783997,
0.6684613823890686,
0.07758935540914536,
-0.10668989270925522,
1.2117316722869873,
0.4940425455570221,
0.5147018432617188,
-1.1164958477020264,
0.6777428984642029,
-0.637252151966095,
1.2014268636703491,
0.9069119095802307,
-0.7905682325363159,
-0.01235469151288271,
1.3332973718643188,
0.6133258938789368,
-0.4850427508354187,
-0.9140440821647644,
-0.9916049242019653,
0.900990903377533,
1.735573410987854,
-0.12545064091682434,
0.06525404006242752,
0.8561198115348816,
0.6323546767234802,
-1.1936124563217163,
0.042016953229904175,
-0.7419782876968384,
-0.6594077944755554,
1.5830845832824707,
2.036381959915161,
0.01475038006901741,
-0.13071377575397491,
-0.6747299432754517,
-1.1584149599075317,
0.7258886694908142,
0.0686609223484993,
0.11724803596735,
0.7191290855407715,
-0.5754972100257874,
1.151968002319336,
0.8775956630706787,
0.9940130710601807,
0.07032301276922226,
0.47601234912872314,
0.33603203296661377,
-0.33750012516975403,
-1.1331021785736084,
-0.372294157743454,
-1.2269395589828491,
-2.529076337814331,
0.48196735978126526,
-0.326741486787796,
-1.4096938371658325,
0.07556777447462082,
-1.1642677783966064,
0.8698787689208984,
-0.7141163349151611,
-1.0731513500213623,
-1.546830177307129,
0.25934678316116333,
-0.11763840913772583,
0.923276424407959,
-1.5805363655090332,
-0.08233022689819336,
1.1710176467895508,
0.7270282506942749,
-0.5491538643836975,
1.000244379043579,
0.2724956274032593,
1.0401203632354736,
0.8402197957038879,
-0.30489203333854675,
0.3793119192123413,
0.18764004111289978,
-1.4372637271881104,
0.5817441344261169,
1.1898293495178223,
0.21902701258659363,
1.2932196855545044,
-0.5360993146896362,
0.15947657823562622,
0.5451924204826355,
-0.5657770037651062,
-0.467773973941803,
-0.5897994637489319,
0.7521438598632812,
0.17246751487255096,
-1.0385273694992065,
-0.026549814268946648,
-0.16950547695159912,
-0.22750043869018555,
0.23970752954483032,
-1.5220303535461426,
-0.288326621055603,
-0.36220744252204895,
-0.48542913794517517,
-1.2273327112197876,
-0.12168999016284943,
1.3378981351852417,
-0.7636672258377075,
-0.10179444402456284,
0.5190503001213074,
0.43280643224716187,
0.5935840606689453,
0.6529952883720398,
-0.6675953269004822,
-0.3450551927089691,
-0.28926628828048706,
-0.27945032715797424,
0.20591136813163757,
1.2448002099990845,
-0.13403955101966858,
-1.0245659351348877,
0.7034894824028015,
-0.44029316306114197,
0.08914852887392044,
2.054485559463501,
0.006936302408576012,
-0.8535670042037964,
0.330072283744812,
-0.685631513595581,
1.8903361558914185,
1.6281962394714355,
1.2940700054168701,
-0.051763929426670074,
-0.8617726564407349,
0.4270041882991791,
-0.1897115409374237,
-0.3839314877986908,
0.8450637459754944,
0.5395028591156006,
-0.22487427294254303,
-1.344326376914978,
0.49158409237861633,
1.3029578924179077,
-1.0066337585449219,
-0.8086268901824951,
0.15538476407527924,
-0.8591005206108093,
1.1604632139205933,
0.6247875094413757,
0.46322378516197205,
0.27300310134887695,
1.640094518661499,
0.5964347124099731,
-0.4662816822528839,
0.43598678708076477,
0.5746066570281982,
-0.14669086039066315,
-2.0764026641845703,
-1.0379176139831543,
0.2915840148925781,
-0.4267096519470215,
-1.54766047000885,
1.3371225595474243,
-1.2288480997085571,
-0.8655902743339539,
0.4739576578140259,
0.23058739304542542,
1.507171869277954,
0.3838368356227875,
1.6021852493286133,
2.005573034286499,
0.8501951098442078,
0.2519855201244354,
1.4396495819091797,
-0.06001181900501251,
-0.4552256762981415,
1.7982337474822998,
-0.43862384557724,
0.5398384928703308,
0.9964327812194824,
-0.39606773853302,
-1.1295453310012817,
-0.8222185373306274,
-1.1253089904785156,
-0.5885429978370667,
1.1918588876724243,
0.1686929613351822,
-1.15372633934021,
0.2088783085346222,
1.5666371583938599,
0.091270811855793,
-0.3485153615474701,
0.4859887361526489,
0.32588711380958557,
-0.6915876269340515,
-0.08001476526260376,
-1.0045833587646484,
0.45521387457847595,
-0.06456741690635681,
-0.3169970214366913,
0.31173184514045715,
0.6244966387748718,
1.120669960975647,
-0.0775991827249527,
0.15744392573833466,
1.2249964475631714,
-1.4201689958572388,
1.5480215549468994,
-0.5998521447181702,
0.2456715703010559,
-2.4376771450042725,
1.4605717658996582,
-0.7988842129707336,
1.898025393486023,
-2.7108120918273926,
0.2829535901546478,
-0.535722553730011,
-0.5009964108467102,
0.27024587988853455,
-0.40470147132873535,
0.15133075416088104,
-0.09594865143299103,
-1.1697204113006592,
-0.02418341673910618,
-0.8159612417221069,
0.48502153158187866,
1.2293167114257812,
1.4771414995193481,
-1.1429210901260376,
-0.2828112244606018,
-1.7832938432693481,
-0.15391847491264343,
-0.7319949865341187,
0.3418377637863159,
-2.064948558807373,
-0.035889070481061935,
-1.820302128791809,
-2.2169930934906006,
-1.4280048608779907,
-0.8963205814361572,
1.024591088294983,
0.0797102302312851,
-0.9721930623054504,
0.9572094082832336,
-0.38488200306892395,
-1.7099498510360718,
1.0791776180267334,
-2.2166004180908203
] |
https://github.com/huggingface/datasets/issues/4791 | Dataset Viewer issue for Team-PIXEL/rendered-wikipedia-english | Thanks for reporting. It's a known issue that should be fixed soon. Meanwhile, I had to manually trigger the dataset viewer. It's OK now.
Note that the extreme aspect ratio of the images generates another issue, that we're inspecting. | ### Link
https://huggingface.co/datasets/Team-PIXEL/rendered-wikipedia-english/viewer/rendered-wikipedia-en/train
### Description
The dataset can be loaded fine but the viewer shows this error:
```
Server Error
Status code: 400
Exception: Status400Error
Message: The dataset does not exist.
```
I'm guessing this is because I recently renamed the dataset. Based on related issues (e.g. https://github.com/huggingface/datasets/issues/4759) , is there something server-side that needs to be refreshed?
### Owner
Yes | 591 | 39 | Dataset Viewer issue for Team-PIXEL/rendered-wikipedia-english
### Link
https://huggingface.co/datasets/Team-PIXEL/rendered-wikipedia-english/viewer/rendered-wikipedia-en/train
### Description
The dataset can be loaded fine but the viewer shows this error:
```
Server Error
Status code: 400
Exception: Status400Error
Message: The dataset does not exist.
```
I'm guessing this is because I recently renamed the dataset. Based on related issues (e.g. https://github.com/huggingface/datasets/issues/4759) , is there something server-side that needs to be refreshed?
### Owner
Yes
Thanks for reporting. It's a known issue that should be fixed soon. Meanwhile, I had to manually trigger the dataset viewer. It's OK now.
Note that the extreme aspect ratio of the images generates another issue, that we're inspecting. | [
-1.167859435081482,
-0.9314475655555725,
-0.8890523910522461,
1.453583002090454,
-0.1751112937927246,
-1.299918293952942,
0.11518390476703644,
-0.9338446259498596,
1.6179957389831543,
-0.7370334267616272,
0.3327390253543854,
-1.7788029909133911,
-0.01744607463479042,
-0.577872633934021,
-0.7487819194793701,
-0.8482766151428223,
-0.3134838044643402,
-0.806769073009491,
1.0405683517456055,
2.537116765975952,
1.1228713989257812,
-1.3479479551315308,
2.6582934856414795,
0.5890374779701233,
-0.1892596036195755,
-1.118658185005188,
0.5910052061080933,
0.008972919546067715,
-1.360894799232483,
-0.4164735674858093,
-1.0266822576522827,
0.025157850235700607,
-0.49678605794906616,
-0.5650124549865723,
0.15768758952617645,
0.4287278950214386,
-0.15500470995903015,
-0.3602198362350464,
-0.5077551603317261,
-0.8027468919754028,
0.42470845580101013,
-0.33145666122436523,
0.891545832157135,
-0.4019252359867096,
1.8665410280227661,
-0.5354365706443787,
0.3830045759677887,
0.616179883480072,
1.3564590215682983,
0.1922249048948288,
0.008319833315908909,
0.22602930665016174,
0.4181223511695862,
0.04446713998913765,
0.4167252779006958,
1.0433506965637207,
0.536349892616272,
0.4745776653289795,
0.6992762088775635,
-2.2566277980804443,
1.3317477703094482,
-0.8917677998542786,
0.25255391001701355,
1.4471116065979004,
-1.1244462728500366,
0.3282608389854431,
-1.8269565105438232,
-0.013179078698158264,
0.5008121728897095,
-2.2563703060150146,
0.21067222952842712,
-1.2542484998703003,
-0.561737060546875,
0.9963272213935852,
0.31226056814193726,
-1.3314565420150757,
0.07304680347442627,
-0.42720821499824524,
1.0517948865890503,
0.5052766799926758,
1.1126773357391357,
-1.6191753149032593,
0.017836764454841614,
-0.29951977729797363,
0.02301686257123947,
-1.364857792854309,
-1.5862616300582886,
0.5771297812461853,
0.7295854687690735,
0.693199634552002,
-0.1414104700088501,
0.8881937265396118,
-0.9758320450782776,
0.8119485378265381,
-0.8634970188140869,
-1.805773138999939,
-1.4369617700576782,
-2.3081157207489014,
-2.3088266849517822,
0.8756963014602661,
-0.41891610622406006,
-0.46656477451324463,
1.9910762310028076,
-0.9842268824577332,
-1.8533802032470703,
1.1666966676712036,
0.2329634726047516,
-0.0689111053943634,
2.310826301574707,
0.33619919419288635,
-0.7102199196815491,
0.41734829545021057,
-0.8196268081665039,
0.8585762977600098,
-0.401528924703598,
1.4259315729141235,
0.5686895847320557,
-0.972610592842102,
1.6510175466537476,
-0.38036587834358215,
0.47201868891716003,
-0.7289661169052124,
-0.47689980268478394,
-0.8557846546173096,
0.2692703306674957,
1.9243247509002686,
-0.3421432077884674,
1.5714325904846191,
-0.21881099045276642,
-1.5368279218673706,
-1.5559860467910767,
0.7805001139640808,
0.47366032004356384,
-0.851845383644104,
0.15506914258003235,
-0.381777822971344,
0.12452933937311172,
-0.0784512311220169,
1.148049235343933,
1.2084918022155762,
0.6758638024330139,
-0.22788304090499878,
-0.9441713094711304,
0.2750977873802185,
-0.04505354166030884,
-0.6846555471420288,
-1.80020272731781,
-0.45572564005851746,
0.17276538908481598,
0.627797544002533,
-1.1809866428375244,
1.7131959199905396,
0.8002145886421204,
1.9572503566741943,
1.0733692646026611,
-0.3440846800804138,
1.4997221231460571,
0.04409812390804291,
1.9281235933303833,
-0.5136979222297668,
0.6704948544502258,
-0.35258105397224426,
-1.1219277381896973,
0.7925044894218445,
-0.3652901351451874,
-1.9003294706344604,
-0.7161725759506226,
-0.9480958580970764,
-0.2351677417755127,
-0.7013932466506958,
0.9784412980079651,
-0.360189825296402,
-1.3943995237350464,
0.23487228155136108,
-0.6612576246261597,
0.13306237757205963,
-1.2755674123764038,
0.21954910457134247,
0.7790920734405518,
-0.6516628265380859,
0.08092654496431351,
-0.2946524918079376,
-1.368496060371399,
-0.4846014082431793,
0.31089624762535095,
1.9059922695159912,
-0.7492472529411316,
1.025705337524414,
0.8727102279663086,
-0.6901092529296875,
0.027471523731946945,
0.3987649083137512,
-0.285263329744339,
0.8592262268066406,
-1.0681880712509155,
-0.3824020028114319,
1.1335893869400024,
-0.26212653517723083,
-0.708175539970398,
1.416041374206543,
0.8486928939819336,
-0.9379231333732605,
-0.1684785932302475,
-0.15640997886657715,
-0.777197539806366,
-0.003569949883967638,
-1.6706786155700684,
-0.14840243756771088,
0.24365000426769257,
-1.448114037513733,
-0.5653027296066284,
-0.17428074777126312,
1.3251161575317383,
-0.100643590092659,
1.348781704902649,
-0.2753753066062927,
-0.3062196373939514,
-0.41879716515541077,
-0.4882000982761383,
0.22611680626869202,
-0.24796190857887268,
-0.6075602173805237,
0.2914728820323944,
-0.7894390225410461,
0.27320432662963867,
1.4609850645065308,
0.39676499366760254,
0.08799855411052704,
0.6866093277931213,
1.1487362384796143,
0.38912275433540344,
-0.022531872615218163,
-0.9040053486824036,
-1.5809216499328613,
2.1086575984954834,
-1.483119010925293,
1.9421683549880981,
0.6843549609184265,
-0.08610547333955765,
-1.8076671361923218,
-1.908561110496521,
1.4030532836914062,
1.215585708618164,
2.390603542327881,
0.6544945240020752,
0.42232760787010193,
-0.8278971910476685,
-0.6380261182785034,
0.30077216029167175,
-0.9640322327613831,
-0.796604573726654,
0.12075591832399368,
2.323896646499634,
1.8266428709030151,
-0.5691396594047546,
-0.18390816450119019,
-1.0694377422332764,
1.2434667348861694,
-0.16611430048942566,
0.19625593721866608,
1.9496115446090698,
-0.3404901921749115,
-1.035707712173462,
1.1984494924545288,
-2.353264331817627,
0.18128353357315063,
2.032036066055298,
0.2159559577703476,
0.035754792392253876,
-1.4694815874099731,
-0.7215217351913452,
-0.11033815145492554,
-0.37617042660713196,
-1.226762294769287,
0.6617406606674194,
-0.25697097182273865,
-0.8642275929450989,
-1.4526102542877197,
0.050829749554395676,
-1.1169936656951904,
-1.7199163436889648,
0.3304917514324188,
1.8051376342773438,
2.0168139934539795,
-0.7066657543182373,
1.4919493198394775,
-0.16323569416999817,
0.2226150929927826,
1.3855524063110352,
1.196277141571045,
3.1663901805877686,
1.9893313646316528,
-1.2161468267440796,
0.7860050201416016,
-0.09200343489646912,
-0.5000446438789368,
1.2411588430404663,
-0.9915412664413452,
1.1442112922668457,
-0.21800367534160614,
-1.3084684610366821,
-1.2697758674621582,
0.9679271578788757,
0.4984973073005676,
-0.045215681195259094,
-0.5366494059562683,
1.294079303741455,
0.0787699818611145,
1.2579888105392456,
0.5450037121772766,
-0.36789077520370483,
0.5698719620704651,
-0.4085601270198822,
-0.44209152460098267,
1.576021432876587,
0.2299988567829132,
-1.4738047122955322,
-2.301039934158325,
-0.2056848108768463,
-0.9085810780525208,
-0.1544715166091919,
-0.6229956746101379,
-1.0367964506149292,
1.6119818687438965,
0.5372145771980286,
-1.195753812789917,
-0.27212145924568176,
-0.34139809012413025,
-0.7197871208190918,
2.6803195476531982,
-1.3640810251235962,
-0.2803661823272705,
-0.9846096634864807,
-0.4890791177749634,
1.66878080368042,
-1.2078219652175903,
-0.1381385624408722,
-1.1230326890945435,
-0.6446625590324402,
-1.3511179685592651,
-0.5132212042808533,
-0.11342626810073853,
-0.9019056558609009,
0.7289623618125916,
-0.0020980359986424446,
-1.116144061088562,
-0.202995166182518,
-0.9074586033821106,
0.8004791140556335,
-0.13432253897190094,
0.253532737493515,
1.9818916320800781,
0.48988568782806396,
-0.4763871133327484,
0.6545166969299316,
1.1580874919891357,
0.6482707262039185,
-0.656173586845398,
0.28005316853523254,
-0.629639208316803,
0.34113001823425293,
-1.3662184476852417,
0.19944490492343903,
-2.892136573791504,
0.7357810139656067,
-0.07023677974939346,
-0.09203286468982697,
-0.0423954539000988,
-1.2515658140182495,
1.0958300828933716,
2.504129648208618,
-1.2226958274841309,
0.46878117322921753,
0.3346460163593292,
1.2131754159927368,
-1.5583864450454712,
0.29193904995918274,
-0.4723145067691803,
2.158734083175659,
0.09750255942344666,
1.1443253755569458,
-0.47234874963760376,
-2.1317386627197266,
0.5983970165252686,
-1.2468135356903076,
-0.9855346083641052,
0.785234272480011,
-0.7720094919204712,
0.04102647304534912,
-1.3947970867156982,
-0.0977497398853302,
-0.7912091016769409,
-1.3131725788116455,
0.8617074489593506,
0.04225246608257294,
0.48890939354896545,
-0.6534531116485596,
0.3449706733226776,
-2.096303701400757,
-1.4061861038208008,
-0.20140893757343292,
-0.9197698831558228,
0.44161856174468994,
-0.30268484354019165,
0.7085611820220947,
-0.19646677374839783,
0.08136000484228134,
0.2718874216079712,
1.4548207521438599,
3.401440143585205,
0.16089734435081482,
0.47077327966690063,
-0.11087305098772049,
-0.9150569438934326,
1.5012263059616089,
1.0130192041397095,
-0.19876445829868317,
-0.5561856627464294,
-0.984122097492218,
1.2771449089050293,
1.961869478225708,
1.1026145219802856,
0.18127930164337158,
-0.8155050277709961,
-0.7467402219772339,
-0.04161565378308296,
0.10577783733606339,
0.5437434911727905,
0.8334992527961731,
0.048430562019348145,
0.2144022285938263,
1.413710355758667,
1.167004942893982,
-0.3522613048553467,
0.46156272292137146,
-0.8791573643684387,
-0.4143860340118408,
0.5374417901039124,
0.404723584651947,
0.014697023667395115,
0.4387335181236267,
-1.0896718502044678,
-0.27618861198425293,
-0.24851162731647491,
-1.0275282859802246,
-0.7001427412033081,
-0.4179910719394684,
-0.3629879951477051,
1.5768394470214844,
0.027452368289232254,
-0.4908275306224823,
-0.06727851182222366,
-0.8610846996307373,
-0.09594493359327316,
-1.0024443864822388,
0.25500553846359253,
-0.14872531592845917,
-0.0882829874753952,
-0.02822641283273697,
1.7021520137786865,
-1.0250718593597412,
-2.251708984375,
0.23998814821243286,
0.3247978985309601,
-0.4616923928260803,
0.091642826795578,
1.6271265745162964,
0.5913025736808777,
1.35680091381073,
1.4078238010406494,
1.0453362464904785,
-0.650890588760376,
-1.3198765516281128,
0.6365048885345459,
0.8657602667808533,
-1.442084550857544,
0.9440335035324097,
-0.09668227285146713,
-0.47573280334472656,
0.6830595135688782,
1.2765048742294312,
0.36060887575149536,
-1.898407220840454,
0.742098867893219,
-0.8139237761497498,
0.7717882394790649,
0.7853915095329285,
0.866120457649231,
0.1982419490814209,
0.842012345790863,
-1.3305003643035889,
-1.1452785730361938,
-0.7408968806266785,
-0.6187778115272522,
1.8711293935775757,
-0.14898788928985596,
0.4860391616821289,
-0.16861069202423096,
-1.3697021007537842,
-0.07194525748491287,
0.6901832818984985,
0.27195480465888977,
-0.34430041909217834,
0.821479082107544,
-0.6818150281906128,
-1.0450313091278076,
-1.389468789100647,
-0.4919900894165039,
-0.9353155493736267,
-0.9868330955505371,
1.056041955947876,
0.8452919721603394,
0.4163280129432678,
1.9174585342407227,
0.5569208264350891,
0.18058745563030243,
-2.666517496109009,
0.8746894598007202,
0.2907485067844391,
0.01871141791343689,
0.9218387007713318,
0.22120524942874908,
1.2554731369018555,
-0.1550043225288391,
0.5375995635986328,
-2.2095656394958496,
2.241044521331787,
-0.29137131571769714,
0.5863814949989319,
0.03532596305012703,
-0.06273355334997177,
1.1129271984100342,
0.5770046710968018,
0.6409341096878052,
-1.1006596088409424,
0.8163194060325623,
-0.6629638075828552,
1.1709730625152588,
1.0399129390716553,
-0.8425365090370178,
0.09662745147943497,
1.3587113618850708,
0.5136687755584717,
-0.4327821135520935,
-0.9918152093887329,
-0.8113954067230225,
0.9373748302459717,
1.713658332824707,
0.05053932964801788,
-0.010968605056405067,
0.9367117881774902,
0.5389596223831177,
-1.3742358684539795,
0.08527486026287079,
-0.7366095781326294,
-0.6106042265892029,
1.6845207214355469,
2.070657253265381,
-0.08959668129682541,
-0.14087364077568054,
-0.8183149695396423,
-1.2273353338241577,
0.6625760793685913,
0.06166189908981323,
-0.00555743183940649,
0.820530116558075,
-0.6505197286605835,
1.1077309846878052,
0.7496961951255798,
0.949944794178009,
0.08500873297452927,
0.32825323939323425,
0.18152859807014465,
-0.24926555156707764,
-1.3120453357696533,
-0.30901917815208435,
-1.1284325122833252,
-2.5297679901123047,
0.4519747495651245,
-0.2883569598197937,
-1.3928533792495728,
0.05006251111626625,
-1.1080150604248047,
0.9403010606765747,
-0.637674868106842,
-1.066235899925232,
-1.4851149320602417,
0.19436097145080566,
-0.22090676426887512,
0.7789062857627869,
-1.6438404321670532,
-0.013618966564536095,
1.2731329202651978,
0.9373071193695068,
-0.6335165500640869,
1.0311040878295898,
0.26153209805488586,
1.0522031784057617,
0.8963481783866882,
-0.372467577457428,
0.4996759295463562,
0.1221441999077797,
-1.412145972251892,
0.44937846064567566,
1.095316767692566,
0.18062062561511993,
1.398263931274414,
-0.5598739981651306,
0.058365434408187866,
0.5383555293083191,
-0.41422247886657715,
-0.502744197845459,
-0.5941230654716492,
0.7390427589416504,
0.13143928349018097,
-0.9160144329071045,
0.048888057470321655,
-0.0009904420003294945,
-0.16002130508422852,
0.2777567505836487,
-1.5468599796295166,
-0.18482884764671326,
-0.2934653162956238,
-0.5908141732215881,
-1.3397324085235596,
-0.02956598624587059,
1.287226676940918,
-0.8045759797096252,
-0.20773956179618835,
0.5268205404281616,
0.2679588198661804,
0.5158212184906006,
0.5882852673530579,
-0.6582487225532532,
-0.322122186422348,
-0.25265681743621826,
-0.3661021888256073,
0.3327021300792694,
1.2600973844528198,
-0.23918487131595612,
-1.0340352058410645,
0.7328585386276245,
-0.28014323115348816,
0.12797445058822632,
1.9793815612792969,
0.020617056638002396,
-0.8782843947410583,
0.2721928358078003,
-0.6452799439430237,
1.9105525016784668,
1.5487099885940552,
1.345907211303711,
-0.09761600196361542,
-0.9012429118156433,
0.5448691844940186,
-0.14588886499404907,
-0.3660174608230591,
0.8533179759979248,
0.42848601937294006,
-0.10548601299524307,
-1.3812298774719238,
0.5982569456100464,
1.2483267784118652,
-0.9322980046272278,
-0.7900248765945435,
0.10937651246786118,
-0.8850520253181458,
1.0885252952575684,
0.715059220790863,
0.4664936065673828,
0.188190296292305,
1.56067955493927,
0.6224096417427063,
-0.4995773732662201,
0.45845016837120056,
0.447685182094574,
-0.08720997720956802,
-1.9842034578323364,
-0.9965173006057739,
0.30914250016212463,
-0.4412938952445984,
-1.686259150505066,
1.289901852607727,
-1.2511590719223022,
-0.8498875498771667,
0.5020506381988525,
0.2272886484861374,
1.5019210577011108,
0.2849964201450348,
1.6924209594726562,
1.9929859638214111,
0.840512752532959,
0.255414754152298,
1.2711431980133057,
-0.13973353803157806,
-0.4114990234375,
1.7500258684158325,
-0.4399074912071228,
0.618170440196991,
1.0031490325927734,
-0.3939032554626465,
-1.0927950143814087,
-0.7493348717689514,
-1.1975789070129395,
-0.5066007375717163,
1.0487964153289795,
0.149423286318779,
-1.2334191799163818,
0.22048573195934296,
1.4166759252548218,
0.028107039630413055,
-0.14984330534934998,
0.706850528717041,
0.44000667333602905,
-0.7470601797103882,
0.04857223108410835,
-0.8440389633178711,
0.51017165184021,
-0.10596676915884018,
-0.32141196727752686,
0.33287179470062256,
0.47408589720726013,
1.2885905504226685,
0.013459923677146435,
0.13625755906105042,
1.329040765762329,
-1.3227589130401611,
1.4443120956420898,
-0.6134682893753052,
0.16043294966220856,
-2.401420831680298,
1.4901355504989624,
-0.9054450988769531,
1.814326524734497,
-2.5681469440460205,
0.3660307824611664,
-0.5731592774391174,
-0.47564199566841125,
0.30091580748558044,
-0.41172125935554504,
0.09132448583841324,
-0.11881380528211594,
-1.0266121625900269,
0.030531276017427444,
-0.8287424445152283,
0.49590569734573364,
1.2537440061569214,
1.3571113348007202,
-1.0759369134902954,
-0.25659143924713135,
-1.879533290863037,
-0.12612508237361908,
-0.6557796001434326,
0.3751012682914734,
-2.006133556365967,
-0.14416560530662537,
-1.9029977321624756,
-2.403965473175049,
-1.4813657999038696,
-0.945020854473114,
1.0632953643798828,
0.15649166703224182,
-0.8670451641082764,
1.0536115169525146,
-0.3012103736400604,
-1.7248735427856445,
0.9692481160163879,
-2.1193857192993164
] |
https://github.com/huggingface/datasets/issues/4784 | Add Multiface dataset | Hey @nandwalritik! Thanks for offering to help!
This dataset might be somewhat complex and I'm concerned about it being 65 TB, which would be quite expensive to host. @lhoestq @mariosasko I would love your input if you think it's worth adding this dataset. | ## Adding a Dataset
- **Name:** Multiface dataset
- **Description:** f high quality recordings of the faces of 13 identities, each captured in a multi-view capture stage performing various facial expressions. An average of 12,200 (v1 scripts) to 23,000 (v2 scripts) frames per subject with capture rate at 30 fps
- **Data:** https://github.com/facebookresearch/multiface
The whole dataset is 65TB though, so I'm not sure
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
| 592 | 43 | Add Multiface dataset
## Adding a Dataset
- **Name:** Multiface dataset
- **Description:** f high quality recordings of the faces of 13 identities, each captured in a multi-view capture stage performing various facial expressions. An average of 12,200 (v1 scripts) to 23,000 (v2 scripts) frames per subject with capture rate at 30 fps
- **Data:** https://github.com/facebookresearch/multiface
The whole dataset is 65TB though, so I'm not sure
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
Hey @nandwalritik! Thanks for offering to help!
This dataset might be somewhat complex and I'm concerned about it being 65 TB, which would be quite expensive to host. @lhoestq @mariosasko I would love your input if you think it's worth adding this dataset. | [
-1.2638628482818604,
-1.0039085149765015,
-0.7134347558021545,
1.400105595588684,
-0.1775091588497162,
-1.184673547744751,
0.07875687628984451,
-0.9719716310501099,
1.6441519260406494,
-0.7151898741722107,
0.28851622343063354,
-1.7167694568634033,
0.04489390179514885,
-0.49183955788612366,
-0.7311695218086243,
-0.8465380072593689,
-0.3997828960418701,
-0.8369077444076538,
1.0321444272994995,
2.538686990737915,
1.1458418369293213,
-1.4587256908416748,
2.750481605529785,
0.6220774054527283,
-0.1811109185218811,
-1.0549089908599854,
0.5069277286529541,
0.11848875135183334,
-1.176873803138733,
-0.42433977127075195,
-0.9293000102043152,
-0.08319678157567978,
-0.48507052659988403,
-0.527328610420227,
0.07410106062889099,
0.400337278842926,
-0.08218301087617874,
-0.37436914443969727,
-0.5066760182380676,
-0.7094408273696899,
0.529141366481781,
-0.34766727685928345,
0.925717830657959,
-0.34176790714263916,
1.7918466329574585,
-0.6061310768127441,
0.35599449276924133,
0.6349319219589233,
1.2955050468444824,
0.19844463467597961,
-0.01789725571870804,
0.3220330476760864,
0.33974209427833557,
-0.0016227657906711102,
0.34717297554016113,
1.1449981927871704,
0.630317747592926,
0.5006052851676941,
0.7026255130767822,
-2.1819541454315186,
1.3578170537948608,
-0.9967295527458191,
0.3795919418334961,
1.4286434650421143,
-0.9959166646003723,
0.4053609073162079,
-1.732180118560791,
-0.10752426087856293,
0.5106189250946045,
-2.2500832080841064,
0.1907532811164856,
-1.2557921409606934,
-0.6324882507324219,
0.8907979130744934,
0.2174498736858368,
-1.3050764799118042,
0.21999511122703552,
-0.487563818693161,
1.0388861894607544,
0.49040889739990234,
1.1693997383117676,
-1.7703763246536255,
-0.037239640951156616,
-0.24585653841495514,
0.09813137352466583,
-1.317522644996643,
-1.563024878501892,
0.613963782787323,
0.5000144839286804,
0.6862614154815674,
-0.1664547622203827,
0.90594881772995,
-0.9780678749084473,
0.9392417669296265,
-1.0297411680221558,
-1.572282314300537,
-1.3287861347198486,
-2.366283655166626,
-2.3544504642486572,
0.8236247897148132,
-0.4354807436466217,
-0.48997756838798523,
1.9118542671203613,
-0.9739526510238647,
-1.7332801818847656,
1.1525285243988037,
0.31699472665786743,
0.027799230068922043,
2.3783106803894043,
0.17731136083602905,
-0.7047004699707031,
0.37263965606689453,
-0.8254316449165344,
0.9112406969070435,
-0.35654309391975403,
1.4943346977233887,
0.6321256160736084,
-0.9133389592170715,
1.6183291673660278,
-0.5061504244804382,
0.5066676735877991,
-0.5919801592826843,
-0.6135076284408569,
-0.9105402827262878,
0.363497793674469,
1.8517704010009766,
-0.2995789051055908,
1.5553638935089111,
-0.38549157977104187,
-1.6957676410675049,
-1.458927035331726,
0.8955857157707214,
0.4728836119174957,
-0.8240978717803955,
0.11825119704008102,
-0.4319036304950714,
0.12516888976097107,
-0.05534911900758743,
1.088985562324524,
1.1678801774978638,
0.63020920753479,
-0.38077351450920105,
-0.9943965673446655,
0.2492212951183319,
-0.1429070234298706,
-0.7004857063293457,
-1.8996682167053223,
-0.3311522603034973,
0.14305393397808075,
0.7207361459732056,
-1.2182321548461914,
1.669489860534668,
0.8987574577331543,
2.022075653076172,
0.880558967590332,
-0.37192991375923157,
1.4189395904541016,
-0.023463472723960876,
1.8370113372802734,
-0.6119894981384277,
0.7465404272079468,
-0.30402690172195435,
-1.0627611875534058,
0.8252200484275818,
-0.4109227955341339,
-1.999582052230835,
-0.7976269721984863,
-0.9190582633018494,
-0.28463509678840637,
-0.9226181507110596,
0.9875845313072205,
-0.3445318639278412,
-1.4604700803756714,
0.27066877484321594,
-0.6227908134460449,
0.2641088664531708,
-1.223596215248108,
0.2971837520599365,
0.8136934041976929,
-0.6404894590377808,
-0.06476323306560516,
-0.20755422115325928,
-1.3152012825012207,
-0.5704379081726074,
0.2541752755641937,
1.8845691680908203,
-0.6391043663024902,
0.9910734295845032,
0.9511849880218506,
-0.6782898306846619,
0.10335511714220047,
0.2972244918346405,
-0.2251112014055252,
0.8212383389472961,
-1.0710054636001587,
-0.3419356048107147,
1.092613935470581,
-0.2009030282497406,
-0.4829693138599396,
1.5295919179916382,
0.8746889233589172,
-0.9100279808044434,
-0.1982746571302414,
-0.26739150285720825,
-0.8134093284606934,
-0.01192641444504261,
-1.612504005432129,
-0.24651764333248138,
0.25290223956108093,
-1.4389389753341675,
-0.5511097311973572,
-0.2939904034137726,
1.2716782093048096,
-0.2050633579492569,
1.3248059749603271,
-0.3401336371898651,
-0.34175652265548706,
-0.4404809772968292,
-0.3449082672595978,
0.2754703760147095,
-0.2685101330280304,
-0.7096405029296875,
0.2253168523311615,
-0.8098075985908508,
0.33542388677597046,
1.5493481159210205,
0.49769482016563416,
0.07448606938123703,
0.48377832770347595,
1.165810227394104,
0.28052419424057007,
-0.022542912513017654,
-0.8774286508560181,
-1.5691200494766235,
1.9834365844726562,
-1.5507292747497559,
1.906510591506958,
0.7865282893180847,
-0.052379243075847626,
-1.7503910064697266,
-1.770003080368042,
1.321515440940857,
1.2470002174377441,
2.4281418323516846,
0.599074125289917,
0.3153403699398041,
-0.7421505451202393,
-0.6544672250747681,
0.28169333934783936,
-1.0629276037216187,
-0.7489689588546753,
0.11446601897478104,
2.377673387527466,
1.8236478567123413,
-0.6286314725875854,
-0.12811923027038574,
-1.0034995079040527,
1.3147311210632324,
-0.15381945669651031,
0.23910288512706757,
2.0336718559265137,
-0.40012237429618835,
-1.08103609085083,
1.3127702474594116,
-2.344653606414795,
0.129896342754364,
2.0555551052093506,
0.44437161087989807,
0.12094587832689285,
-1.4238057136535645,
-0.6629541516304016,
-0.4102850556373596,
-0.44092127680778503,
-1.2747870683670044,
0.5289037823677063,
-0.31085285544395447,
-0.8191158771514893,
-1.5199021100997925,
0.130645290017128,
-1.091064453125,
-1.6733094453811646,
0.46242794394493103,
1.8228362798690796,
2.0194194316864014,
-0.7302426695823669,
1.3300139904022217,
-0.26750805974006653,
0.21018639206886292,
1.308964490890503,
1.17242431640625,
3.097111225128174,
1.9065779447555542,
-1.1167458295822144,
0.7198424339294434,
-0.2136325240135193,
-0.574505090713501,
1.1335195302963257,
-1.0098241567611694,
1.2150758504867554,
-0.20098842680454254,
-1.216599941253662,
-1.2267764806747437,
0.9765299558639526,
0.5102372169494629,
0.03327697515487671,
-0.518287718296051,
1.1693201065063477,
0.03073226660490036,
1.2916080951690674,
0.6229827404022217,
-0.34842491149902344,
0.5851377248764038,
-0.48366495966911316,
-0.49764883518218994,
1.6327177286148071,
0.17295479774475098,
-1.6306982040405273,
-2.3022429943084717,
-0.271609365940094,
-0.850247323513031,
-0.08607742190361023,
-0.5989277958869934,
-1.0951101779937744,
1.6237781047821045,
0.43416038155555725,
-1.249646782875061,
-0.21519404649734497,
-0.3287709057331085,
-0.6121938228607178,
2.6154568195343018,
-1.4354146718978882,
-0.22030551731586456,
-0.9245470762252808,
-0.5343986749649048,
1.6017483472824097,
-1.2580088376998901,
-0.20651735365390778,
-1.0300289392471313,
-0.6819610595703125,
-1.3471198081970215,
-0.49015992879867554,
0.023473341017961502,
-0.9401217699050903,
0.7453790307044983,
0.05164568871259689,
-1.032594919204712,
-0.26651349663734436,
-0.9332653284072876,
0.8242993950843811,
-0.12359479069709778,
0.31342417001724243,
1.8715360164642334,
0.44781583547592163,
-0.4129381477832794,
0.6528279781341553,
1.1658273935317993,
0.6313990950584412,
-0.8082120418548584,
0.0838513970375061,
-0.7041587829589844,
0.2767319679260254,
-1.3042279481887817,
0.3395756781101227,
-2.9144530296325684,
0.6994988322257996,
-0.06514488905668259,
-0.1580817699432373,
0.003990394063293934,
-1.398313045501709,
1.2201356887817383,
2.5649845600128174,
-1.2620609998703003,
0.4620250463485718,
0.3119845390319824,
1.217872142791748,
-1.5792464017868042,
0.3455641567707062,
-0.3879949748516083,
2.1645569801330566,
0.23120184242725372,
1.1579512357711792,
-0.5774333477020264,
-2.145444631576538,
0.6044937968254089,
-1.1349254846572876,
-1.1204277276992798,
0.6442608833312988,
-0.9011664390563965,
0.1553141474723816,
-1.4813499450683594,
-0.12323340028524399,
-0.9356820583343506,
-1.2416269779205322,
0.7625205516815186,
0.14110417664051056,
0.38973498344421387,
-0.6262604594230652,
0.36032843589782715,
-2.216928005218506,
-1.4323029518127441,
-0.2063853144645691,
-0.8638255000114441,
0.5560910105705261,
-0.36903107166290283,
0.6346380114555359,
-0.03677600994706154,
0.07042679935693741,
0.31164148449897766,
1.4177719354629517,
3.401895523071289,
0.27634352445602417,
0.4582689702510834,
0.013559910468757153,
-1.0138975381851196,
1.4619510173797607,
1.0151127576828003,
0.10206697881221771,
-0.5636463761329651,
-0.9957951307296753,
1.3384560346603394,
1.9228347539901733,
1.0153568983078003,
0.026758193969726562,
-0.7216175198554993,
-0.5957034230232239,
0.05680757761001587,
0.23989535868167877,
0.49759653210639954,
0.9602245688438416,
-0.032913364470005035,
0.14430364966392517,
1.4540106058120728,
1.2332907915115356,
-0.520474910736084,
0.4317656457424164,
-0.891904890537262,
-0.45257407426834106,
0.44018253684043884,
0.21512728929519653,
-0.03287642076611519,
0.4612090289592743,
-1.0454111099243164,
-0.3335645794868469,
-0.2421921193599701,
-1.0576772689819336,
-0.6877222061157227,
-0.5336532592773438,
-0.4269670844078064,
1.611669898033142,
0.07191004604101181,
-0.4856933653354645,
-0.006371179595589638,
-0.8262847661972046,
-0.10704159736633301,
-1.113357663154602,
0.24225884675979614,
-0.10347199440002441,
-0.0982482060790062,
-0.19819650053977966,
1.772147536277771,
-0.9079563021659851,
-2.2088780403137207,
0.2683846056461334,
0.36817875504493713,
-0.5261023640632629,
0.11547572165727615,
1.5898735523223877,
0.4906634986400604,
1.4717389345169067,
1.2397992610931396,
1.042302131652832,
-0.5811155438423157,
-1.3186436891555786,
0.732856810092926,
0.8879655003547668,
-1.3345377445220947,
0.8434821367263794,
-0.050169315189123154,
-0.5075391530990601,
0.7512518167495728,
1.2963463068008423,
0.38844048976898193,
-1.8790322542190552,
0.8378114104270935,
-0.8524907827377319,
0.8380597829818726,
0.6755056381225586,
0.7995800971984863,
0.19531424343585968,
0.9670193791389465,
-1.428700566291809,
-1.0851134061813354,
-0.853321373462677,
-0.5780229568481445,
1.9860203266143799,
-0.1457323580980301,
0.4982546269893646,
-0.2297169268131256,
-1.1356556415557861,
-0.06105130538344383,
0.7138715982437134,
0.38207197189331055,
-0.3879815340042114,
0.8591499328613281,
-0.6437606811523438,
-1.1012972593307495,
-1.3402166366577148,
-0.4600982964038849,
-0.8712652921676636,
-0.9300495982170105,
0.9609931707382202,
0.8655132055282593,
0.42492544651031494,
1.942824125289917,
0.5638913512229919,
0.19102981686592102,
-2.605221748352051,
0.8640298247337341,
0.3016037344932556,
0.044342756271362305,
0.9114932417869568,
0.254961758852005,
1.1269532442092896,
0.04209420457482338,
0.481251060962677,
-2.33780837059021,
2.1875040531158447,
-0.2852279543876648,
0.7431904077529907,
-0.05091358348727226,
-0.16760118305683136,
1.1293059587478638,
0.5917653441429138,
0.4969724714756012,
-1.1446551084518433,
0.7106345891952515,
-0.6166700124740601,
1.1767981052398682,
0.9233761429786682,
-0.7377452850341797,
0.029903430491685867,
1.290182113647461,
0.5213912725448608,
-0.4276611804962158,
-0.9329819083213806,
-0.7968388795852661,
0.9481220841407776,
1.7157419919967651,
-0.052400484681129456,
0.02795323356986046,
0.8694727420806885,
0.7429162859916687,
-1.2812771797180176,
0.04526035487651825,
-0.691329300403595,
-0.705392599105835,
1.6438080072402954,
2.0016791820526123,
0.00804752018302679,
-0.21952201426029205,
-0.6438485383987427,
-1.1845893859863281,
0.7795589566230774,
0.07216690480709076,
0.16903510689735413,
0.7769498229026794,
-0.7281165719032288,
1.0659639835357666,
0.7743873596191406,
0.9359582662582397,
0.0890662670135498,
0.34830278158187866,
0.37481752038002014,
-0.26145505905151367,
-1.111842155456543,
-0.34505677223205566,
-1.2562211751937866,
-2.5722198486328125,
0.4020705819129944,
-0.3391449451446533,
-1.4506456851959229,
0.08030316233634949,
-0.989173948764801,
0.8843579292297363,
-0.6411781311035156,
-1.088390588760376,
-1.5837332010269165,
0.22706444561481476,
-0.06400135159492493,
0.9277053475379944,
-1.608013391494751,
-0.1451512575149536,
1.2282862663269043,
0.7726054787635803,
-0.5206484794616699,
1.0489288568496704,
0.2408958375453949,
0.9775023460388184,
0.8130682706832886,
-0.4191596508026123,
0.4075716435909271,
0.15196339786052704,
-1.4192205667495728,
0.499776691198349,
1.166027307510376,
0.22368082404136658,
1.3790597915649414,
-0.4758039116859436,
0.11175939440727234,
0.48990049958229065,
-0.6086812615394592,
-0.5668052434921265,
-0.494008332490921,
0.7582570910453796,
0.12408556789159775,
-1.0132949352264404,
0.0546766072511673,
-0.12714555859565735,
-0.19373267889022827,
0.31454625725746155,
-1.4676986932754517,
-0.38670438528060913,
-0.5019006133079529,
-0.5171138048171997,
-1.319095492362976,
-0.07594403624534607,
1.4024385213851929,
-0.8393213748931885,
-0.14951379597187042,
0.5216306447982788,
0.4416561424732208,
0.5368947982788086,
0.6942833662033081,
-0.6250227093696594,
-0.32088395953178406,
-0.33147546648979187,
-0.2595899999141693,
0.2032894641160965,
1.161781907081604,
-0.19590452313423157,
-0.996687650680542,
0.7512717247009277,
-0.3275677263736725,
0.12293105572462082,
1.9347097873687744,
-0.02611764520406723,
-0.7657300233840942,
0.32000914216041565,
-0.7202942371368408,
1.9081158638000488,
1.6141927242279053,
1.385494589805603,
-0.16329023241996765,
-0.8821492195129395,
0.5205244421958923,
-0.2215614914894104,
-0.38996368646621704,
0.8368024826049805,
0.511558473110199,
-0.1978822648525238,
-1.3238142728805542,
0.5965872406959534,
1.3834946155548096,
-0.9238189458847046,
-0.7885270714759827,
0.17787271738052368,
-0.8636732697486877,
1.2100474834442139,
0.6117481589317322,
0.4890977144241333,
0.3275409936904907,
1.6270461082458496,
0.6128988862037659,
-0.48953062295913696,
0.4216783046722412,
0.5911632776260376,
-0.0921572670340538,
-2.134521961212158,
-1.122410535812378,
0.20107558369636536,
-0.45585259795188904,
-1.463256597518921,
1.3281036615371704,
-1.1394373178482056,
-0.8987789154052734,
0.5753039717674255,
0.17369115352630615,
1.398789882659912,
0.3818923234939575,
1.6643397808074951,
2.103803873062134,
0.828190267086029,
0.33210471272468567,
1.3267306089401245,
-0.03680310398340225,
-0.43862244486808777,
1.8513723611831665,
-0.3676460087299347,
0.593475341796875,
1.0620129108428955,
-0.4416014552116394,
-1.136403203010559,
-0.8350751399993896,
-1.2018109560012817,
-0.5438129305839539,
1.1213148832321167,
0.180130273103714,
-1.211893916130066,
0.12762553989887238,
1.5732442140579224,
0.06866493076086044,
-0.3432950973510742,
0.5224400758743286,
0.4417286813259125,
-0.6510635018348694,
-0.026944801211357117,
-1.0975241661071777,
0.5353750586509705,
-0.19656789302825928,
-0.3241724967956543,
0.31743210554122925,
0.6512844562530518,
1.1610406637191772,
-0.006150929257273674,
0.1090409979224205,
1.2488733530044556,
-1.4180012941360474,
1.4616416692733765,
-0.6339403390884399,
0.21986107528209686,
-2.3787591457366943,
1.4143750667572021,
-0.7630482912063599,
1.9498156309127808,
-2.6741857528686523,
0.3654722273349762,
-0.5745514631271362,
-0.4618869721889496,
0.3014671802520752,
-0.4140266180038452,
0.17476113140583038,
-0.1596703678369522,
-0.9670230746269226,
-0.0390210896730423,
-0.84172123670578,
0.4729488492012024,
1.2546688318252563,
1.3886001110076904,
-1.122861385345459,
-0.3177042007446289,
-1.7021890878677368,
-0.14015330374240875,
-0.7116546630859375,
0.3868424594402313,
-2.096229314804077,
-0.0842856764793396,
-1.831470251083374,
-2.3133668899536133,
-1.3170026540756226,
-0.8944374918937683,
1.0497041940689087,
0.24803495407104492,
-0.9632607102394104,
1.0794737339019775,
-0.3675784468650818,
-1.6715999841690063,
1.0495262145996094,
-2.1357309818267822
] |
https://github.com/huggingface/datasets/issues/4784 | Add Multiface dataset | Thanks for proposing this interesting dataset, @osanseviero.
Please note that the data files are already hosted in a third-party server: e.g. the index of data files for entity "6795937" is at https://fb-baas-f32eacb9-8abb-11eb-b2b8-4857dd089e15.s3.amazonaws.com/MugsyDataRelease/v0.0/identities/6795937/index.html
- audio.tar: https://fb-baas-f32eacb9-8abb-11eb-b2b8-4857dd089e15.s3.amazonaws.com/MugsyDataRelease/v0.0/identities/6795937/audio.tar
- ...
Therefore, in principle, we don't need to host them on our Hub: it would be enough to just implement a loading script in the corresponding Hub dataset repo, e.g. "facebook/multiface"... | ## Adding a Dataset
- **Name:** Multiface dataset
- **Description:** f high quality recordings of the faces of 13 identities, each captured in a multi-view capture stage performing various facial expressions. An average of 12,200 (v1 scripts) to 23,000 (v2 scripts) frames per subject with capture rate at 30 fps
- **Data:** https://github.com/facebookresearch/multiface
The whole dataset is 65TB though, so I'm not sure
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
| 592 | 67 | Add Multiface dataset
## Adding a Dataset
- **Name:** Multiface dataset
- **Description:** f high quality recordings of the faces of 13 identities, each captured in a multi-view capture stage performing various facial expressions. An average of 12,200 (v1 scripts) to 23,000 (v2 scripts) frames per subject with capture rate at 30 fps
- **Data:** https://github.com/facebookresearch/multiface
The whole dataset is 65TB though, so I'm not sure
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
Thanks for proposing this interesting dataset, @osanseviero.
Please note that the data files are already hosted in a third-party server: e.g. the index of data files for entity "6795937" is at https://fb-baas-f32eacb9-8abb-11eb-b2b8-4857dd089e15.s3.amazonaws.com/MugsyDataRelease/v0.0/identities/6795937/index.html
- audio.tar: https://fb-baas-f32eacb9-8abb-11eb-b2b8-4857dd089e15.s3.amazonaws.com/MugsyDataRelease/v0.0/identities/6795937/audio.tar
- ...
Therefore, in principle, we don't need to host them on our Hub: it would be enough to just implement a loading script in the corresponding Hub dataset repo, e.g. "facebook/multiface"... | [
-1.146246314048767,
-0.9427545070648193,
-0.7231682538986206,
1.3727773427963257,
-0.16101546585559845,
-1.2671042680740356,
0.11106376349925995,
-0.9319159984588623,
1.6171129941940308,
-0.6751274466514587,
0.216957688331604,
-1.6449321508407593,
-0.020051952451467514,
-0.508156955242157,
-0.7826862335205078,
-0.7921873927116394,
-0.43256333470344543,
-0.884159505367279,
1.047824501991272,
2.5926034450531006,
1.2003390789031982,
-1.3743468523025513,
2.700531482696533,
0.6349939703941345,
-0.1993430256843567,
-1.0365363359451294,
0.507405698299408,
0.08227237313985825,
-1.2678117752075195,
-0.34269750118255615,
-0.9376733899116516,
-0.04594340920448303,
-0.5384079217910767,
-0.5722779035568237,
0.09062880277633667,
0.4089803695678711,
-0.1632886379957199,
-0.3722629249095917,
-0.4942620098590851,
-0.6631506681442261,
0.5201422572135925,
-0.3526808023452759,
0.9284820556640625,
-0.3129626214504242,
1.8074865341186523,
-0.6089496612548828,
0.42543309926986694,
0.6400598883628845,
1.3607066869735718,
0.26913341879844666,
0.06506738066673279,
0.31093257665634155,
0.33627644181251526,
-0.0011655045673251152,
0.45025375485420227,
1.2374764680862427,
0.6600816249847412,
0.4709436297416687,
0.6832465529441833,
-2.190735340118408,
1.3824034929275513,
-0.936752200126648,
0.30192920565605164,
1.3938621282577515,
-0.9794577360153198,
0.40495333075523376,
-1.816697597503662,
-0.07206225395202637,
0.5320054888725281,
-2.283906936645508,
0.20803552865982056,
-1.265136957168579,
-0.6401585340499878,
0.990524172782898,
0.24795052409172058,
-1.2483936548233032,
0.17537610232830048,
-0.5021490454673767,
1.0408090353012085,
0.4586475193500519,
1.2261112928390503,
-1.7387573719024658,
-0.032046444714069366,
-0.20743292570114136,
0.14998763799667358,
-1.2225639820098877,
-1.5751140117645264,
0.5701501965522766,
0.6070630550384521,
0.6063445210456848,
-0.1564585417509079,
0.9144590497016907,
-1.0546225309371948,
0.8902613520622253,
-0.9777618050575256,
-1.7034770250320435,
-1.3942272663116455,
-2.3872904777526855,
-2.388474464416504,
0.8553969860076904,
-0.4380608797073364,
-0.4185205101966858,
1.949354648590088,
-0.9736210107803345,
-1.7370744943618774,
1.1411235332489014,
0.4100646674633026,
0.029016487300395966,
2.3801722526550293,
0.21431903541088104,
-0.7817397117614746,
0.3955894112586975,
-0.8576722145080566,
0.8315156698226929,
-0.366281658411026,
1.4159307479858398,
0.6513925790786743,
-0.9138614535331726,
1.6041533946990967,
-0.439320832490921,
0.5008472800254822,
-0.6528772115707397,
-0.4788016378879547,
-0.7719712257385254,
0.35574445128440857,
1.8818789720535278,
-0.31713685393333435,
1.628467082977295,
-0.30387893319129944,
-1.6338924169540405,
-1.412668228149414,
0.8220106959342957,
0.5295620560646057,
-0.8082235455513,
0.11122676730155945,
-0.43538519740104675,
0.11033989489078522,
-0.009770913980901241,
1.0621999502182007,
1.240427017211914,
0.7138561606407166,
-0.4117552936077118,
-1.0279505252838135,
0.2250732183456421,
-0.14147906005382538,
-0.7095449566841125,
-1.8510019779205322,
-0.3237663805484772,
0.15448758006095886,
0.6486468315124512,
-1.2878345251083374,
1.6814990043640137,
0.8578059077262878,
2.048771619796753,
0.9363963603973389,
-0.45668312907218933,
1.5033979415893555,
-0.00614005234092474,
1.8369075059890747,
-0.5152492523193359,
0.7382823824882507,
-0.3604855239391327,
-1.168225646018982,
0.7967202067375183,
-0.3938690423965454,
-1.9745385646820068,
-0.7340677380561829,
-0.8630159497261047,
-0.21082893013954163,
-0.8506779670715332,
0.9427991509437561,
-0.20551654696464539,
-1.463507056236267,
0.2824035882949829,
-0.6892757415771484,
0.11492219567298889,
-1.3086265325546265,
0.2777007818222046,
0.7976667881011963,
-0.6436587572097778,
0.004445362836122513,
-0.24926558136940002,
-1.3557038307189941,
-0.5245826840400696,
0.274225652217865,
1.84687077999115,
-0.6963134407997131,
0.9495393633842468,
0.9993684887886047,
-0.6680097579956055,
0.13405382633209229,
0.3516583740711212,
-0.317505806684494,
0.8342207074165344,
-1.056437373161316,
-0.37621554732322693,
1.0467677116394043,
-0.18213629722595215,
-0.535846471786499,
1.3799935579299927,
0.7654126882553101,
-0.927278459072113,
-0.24998217821121216,
-0.19346070289611816,
-0.7655341625213623,
-0.01528874970972538,
-1.6191978454589844,
-0.19261668622493744,
0.2366969734430313,
-1.4603403806686401,
-0.5396382808685303,
-0.24715496599674225,
1.3314430713653564,
-0.19821298122406006,
1.4280266761779785,
-0.2602192461490631,
-0.16735611855983734,
-0.4782494604587555,
-0.37448373436927795,
0.2644791305065155,
-0.2588304877281189,
-0.6658258438110352,
0.30721819400787354,
-0.8241637349128723,
0.35586610436439514,
1.4769835472106934,
0.4497986137866974,
0.06335801631212234,
0.45887598395347595,
1.1189769506454468,
0.36363881826400757,
-0.07400822639465332,
-0.8265942335128784,
-1.5787441730499268,
2.06547474861145,
-1.501606822013855,
1.908050298690796,
0.8546547293663025,
-0.03226736932992935,
-1.7405438423156738,
-1.876565933227539,
1.3534420728683472,
1.1553481817245483,
2.4837982654571533,
0.5426478981971741,
0.368427574634552,
-0.7201381921768188,
-0.6883400082588196,
0.3506591320037842,
-1.031740427017212,
-0.7506640553474426,
0.1295962929725647,
2.40716814994812,
1.7491302490234375,
-0.540021538734436,
-0.21782270073890686,
-1.0132821798324585,
1.2669376134872437,
-0.11411967128515244,
0.19221363961696625,
2.0765786170959473,
-0.31892865896224976,
-1.0416107177734375,
1.3337749242782593,
-2.3452117443084717,
0.21755145490169525,
1.990311622619629,
0.3632615804672241,
0.08590040355920792,
-1.4065450429916382,
-0.66623854637146,
-0.30200016498565674,
-0.48607346415519714,
-1.181168556213379,
0.5271446704864502,
-0.26111456751823425,
-0.9015241861343384,
-1.5434211492538452,
0.06178400665521622,
-1.1629291772842407,
-1.7304513454437256,
0.4016006290912628,
1.8455960750579834,
1.998469591140747,
-0.8243075609207153,
1.3082081079483032,
-0.22713007032871246,
0.09857162088155746,
1.2549511194229126,
1.1771466732025146,
3.102527618408203,
1.8488651514053345,
-1.1940696239471436,
0.6416895389556885,
-0.2018827497959137,
-0.5278783440589905,
1.1239067316055298,
-1.054379940032959,
1.1415151357650757,
-0.22852924466133118,
-1.2127330303192139,
-1.1880857944488525,
1.0101318359375,
0.5129072666168213,
0.015565906651318073,
-0.47288766503334045,
1.1116150617599487,
0.1479823738336563,
1.3448153734207153,
0.6159998774528503,
-0.33582356572151184,
0.6562778353691101,
-0.4501422941684723,
-0.5134960412979126,
1.6106176376342773,
0.14403411746025085,
-1.5544700622558594,
-2.2786571979522705,
-0.268641859292984,
-0.9034491181373596,
-0.07529808580875397,
-0.643774151802063,
-1.0473309755325317,
1.6080231666564941,
0.4753057062625885,
-1.2066172361373901,
-0.23697517812252045,
-0.3430902361869812,
-0.6321617960929871,
2.6227385997772217,
-1.4422999620437622,
-0.11574922502040863,
-0.9092345237731934,
-0.5406367778778076,
1.5647592544555664,
-1.1737853288650513,
-0.18556660413742065,
-1.032097578048706,
-0.6645640134811401,
-1.3022609949111938,
-0.5735965371131897,
-0.0035793129354715347,
-0.8253311514854431,
0.723009467124939,
0.06771792471408844,
-1.10671865940094,
-0.24453382194042206,
-0.9406585097312927,
0.8445613384246826,
-0.07823153585195541,
0.24351167678833008,
1.843288540840149,
0.4265289008617401,
-0.36219868063926697,
0.6706394553184509,
1.1572456359863281,
0.5983200669288635,
-0.7076637744903564,
0.14137613773345947,
-0.7054459452629089,
0.28360894322395325,
-1.2986589670181274,
0.2911701202392578,
-2.8560497760772705,
0.6863471269607544,
-0.09114215523004532,
-0.08875548094511032,
-0.025782965123653412,
-1.325654149055481,
1.222687005996704,
2.5885322093963623,
-1.1959112882614136,
0.5199586153030396,
0.3526347577571869,
1.1698827743530273,
-1.5479915142059326,
0.25739577412605286,
-0.45071205496788025,
2.1783716678619385,
0.1809549629688263,
1.1788594722747803,
-0.5843734741210938,
-2.1699018478393555,
0.6435494422912598,
-1.2027485370635986,
-1.076095700263977,
0.7499052882194519,
-0.8914242386817932,
0.1160920262336731,
-1.4270710945129395,
-0.163277730345726,
-0.8502795100212097,
-1.252240777015686,
0.6766225099563599,
0.027294442057609558,
0.49228158593177795,
-0.6107411980628967,
0.3834461271762848,
-2.177727699279785,
-1.3463386297225952,
-0.2471187561750412,
-0.9843857288360596,
0.4640161395072937,
-0.2997320592403412,
0.6777715682983398,
-0.05169439688324928,
0.02185242995619774,
0.31871652603149414,
1.3373273611068726,
3.3485567569732666,
0.21504750847816467,
0.346671462059021,
-0.028075143694877625,
-1.05601167678833,
1.4177895784378052,
0.9963609576225281,
-0.03191668912768364,
-0.6000571250915527,
-1.04052734375,
1.2957302331924438,
1.991117238998413,
1.0951564311981201,
0.05218559131026268,
-0.777816116809845,
-0.6934249401092529,
0.07986783236265182,
0.1755765974521637,
0.4650176167488098,
0.9880417585372925,
0.002142326906323433,
0.1370268166065216,
1.4413470029830933,
1.2577722072601318,
-0.4754030406475067,
0.4558497965335846,
-0.9172311425209045,
-0.46298450231552124,
0.4481477439403534,
0.25496530532836914,
0.001851026900112629,
0.44664931297302246,
-1.1607704162597656,
-0.3027511239051819,
-0.3037039339542389,
-0.9533238410949707,
-0.7153066992759705,
-0.4706198573112488,
-0.38524338603019714,
1.6879329681396484,
0.08739212900400162,
-0.45697712898254395,
0.007659613154828548,
-0.7974810600280762,
-0.04092811048030853,
-1.0509247779846191,
0.29661691188812256,
-0.09446975588798523,
-0.04353202506899834,
-0.16988219320774078,
1.8015621900558472,
-0.9021695256233215,
-2.197544813156128,
0.26493847370147705,
0.2762746214866638,
-0.5242974162101746,
0.11551357805728912,
1.732026219367981,
0.5207236409187317,
1.4275749921798706,
1.3139324188232422,
1.1070595979690552,
-0.6266957521438599,
-1.2761049270629883,
0.7085838317871094,
0.9407215118408203,
-1.3788015842437744,
0.8071541786193848,
-0.03642765432596207,
-0.4759513735771179,
0.6876097917556763,
1.3147404193878174,
0.3726837933063507,
-1.9761828184127808,
0.8935405611991882,
-0.9057930707931519,
0.7462394833564758,
0.6331770420074463,
0.7830904722213745,
0.14453460276126862,
0.851780891418457,
-1.3382306098937988,
-1.0486329793930054,
-0.759144127368927,
-0.6185062527656555,
1.9192512035369873,
-0.17868192493915558,
0.46429580450057983,
-0.17772936820983887,
-1.2264842987060547,
-0.07332805544137955,
0.71739262342453,
0.32419779896736145,
-0.4161602258682251,
0.8716304898262024,
-0.6240200996398926,
-1.1260921955108643,
-1.3614146709442139,
-0.4692215323448181,
-0.8848596811294556,
-0.8131357431411743,
0.976487934589386,
0.8004281520843506,
0.4943403899669647,
1.9311482906341553,
0.5287166833877563,
0.21781885623931885,
-2.7176458835601807,
0.8633648753166199,
0.3334335386753082,
0.0054129669442772865,
0.8984562754631042,
0.2333047240972519,
1.1418033838272095,
-0.03448468819260597,
0.52223140001297,
-2.357511520385742,
2.183727979660034,
-0.20633472502231598,
0.789278507232666,
0.1253529191017151,
-0.16272896528244019,
1.0678181648254395,
0.5537532567977905,
0.6044005751609802,
-1.1956384181976318,
0.7860435247421265,
-0.5858429074287415,
1.1666030883789062,
0.9542935490608215,
-0.8016917109489441,
0.011963558383286,
1.2158615589141846,
0.4648335576057434,
-0.3782993257045746,
-0.9335270524024963,
-0.9015398025512695,
0.9501170516014099,
1.7706350088119507,
-0.10337580740451813,
0.11920493841171265,
0.9320225715637207,
0.6984102129936218,
-1.3345959186553955,
-0.010626490227878094,
-0.7751938700675964,
-0.7324084639549255,
1.6890761852264404,
2.0671181678771973,
0.0012363288551568985,
-0.2695905864238739,
-0.6901243329048157,
-1.264271855354309,
0.7432852387428284,
0.014460680074989796,
0.13492736220359802,
0.7559869289398193,
-0.692679762840271,
1.1112275123596191,
0.7448912858963013,
0.9195460677146912,
0.06535567343235016,
0.26884862780570984,
0.2737729549407959,
-0.2789989709854126,
-1.1263153553009033,
-0.3100806772708893,
-1.134956955909729,
-2.5823700428009033,
0.4652782678604126,
-0.3057249188423157,
-1.4775055646896362,
0.06228988617658615,
-0.9986776113510132,
0.8573200106620789,
-0.5969408750534058,
-1.0996273756027222,
-1.516096591949463,
0.25664812326431274,
-0.08141163736581802,
0.8971748352050781,
-1.6439193487167358,
-0.1764812022447586,
1.191831350326538,
0.8234360814094543,
-0.58125239610672,
1.013962984085083,
0.2668968737125397,
0.9657695293426514,
0.8660911321640015,
-0.3667478859424591,
0.3716919720172882,
0.2392309010028839,
-1.377577781677246,
0.39346301555633545,
1.2424315214157104,
0.21454370021820068,
1.4044195413589478,
-0.49864906072616577,
0.16015103459358215,
0.5101464986801147,
-0.5183380842208862,
-0.5212900042533875,
-0.49957993626594543,
0.7337310910224915,
0.022469982504844666,
-1.025334358215332,
-0.027464546263217926,
-0.09812720119953156,
-0.14701147377490997,
0.2786772847175598,
-1.483696460723877,
-0.3237263262271881,
-0.35721781849861145,
-0.508296012878418,
-1.2818659543991089,
-0.0595756471157074,
1.3632711172103882,
-0.8885617852210999,
-0.1795315146446228,
0.5012073516845703,
0.3790934085845947,
0.6072977781295776,
0.6252880692481995,
-0.61517733335495,
-0.37378284335136414,
-0.29835590720176697,
-0.2861183285713196,
0.23524589836597443,
1.2200394868850708,
-0.1435336470603943,
-0.9991505146026611,
0.7062796950340271,
-0.34661048650741577,
0.1323748677968979,
1.9934823513031006,
0.0316050723195076,
-0.804580569267273,
0.33527806401252747,
-0.6682664155960083,
1.820823311805725,
1.6252925395965576,
1.3513267040252686,
-0.15200291574001312,
-0.9491880536079407,
0.5822449326515198,
-0.25301873683929443,
-0.3454950451850891,
0.8666015863418579,
0.44309237599372864,
-0.2072443664073944,
-1.3473185300827026,
0.5082063674926758,
1.384075403213501,
-0.9569470882415771,
-0.7963217496871948,
0.1336616724729538,
-0.9299813508987427,
1.232548713684082,
0.6822670698165894,
0.41214823722839355,
0.23695401847362518,
1.653016448020935,
0.6924978494644165,
-0.5072651505470276,
0.5312313437461853,
0.5048260688781738,
-0.2111886888742447,
-2.077781915664673,
-1.0613659620285034,
0.21433064341545105,
-0.41612374782562256,
-1.486416220664978,
1.3556572198867798,
-1.1975269317626953,
-0.9757317900657654,
0.5029435753822327,
0.10801228880882263,
1.3546638488769531,
0.3594062626361847,
1.7226617336273193,
2.097627878189087,
0.9323740005493164,
0.3099370300769806,
1.29940664768219,
-0.06136774644255638,
-0.4635084271430969,
1.7819901704788208,
-0.4177389144897461,
0.5513669848442078,
1.0647708177566528,
-0.41506603360176086,
-1.1377735137939453,
-0.8487960696220398,
-1.1650949716567993,
-0.6490294337272644,
1.1775093078613281,
0.15657351911067963,
-1.1567021608352661,
0.21134217083454132,
1.6413393020629883,
0.03897858411073685,
-0.26098236441612244,
0.5652488470077515,
0.5144906044006348,
-0.6608437299728394,
-0.03389988839626312,
-0.9980671405792236,
0.44841617345809937,
-0.1827200949192047,
-0.36195093393325806,
0.25034886598587036,
0.5691520571708679,
1.2024288177490234,
-0.006163684651255608,
0.14049163460731506,
1.2314069271087646,
-1.4063293933868408,
1.5253372192382812,
-0.6553455591201782,
0.2512110471725464,
-2.392559766769409,
1.4241551160812378,
-0.8575724959373474,
1.946582555770874,
-2.5787742137908936,
0.4034864902496338,
-0.5878980159759521,
-0.42180076241493225,
0.25857648253440857,
-0.4273010492324829,
0.16462408006191254,
-0.10588061064481735,
-1.0022501945495605,
-0.16124995052814484,
-0.8501582145690918,
0.548653781414032,
1.172577142715454,
1.3783560991287231,
-1.0570608377456665,
-0.3568011224269867,
-1.6707003116607666,
-0.22948907315731049,
-0.657407820224762,
0.3281177878379822,
-1.9888553619384766,
-0.15685278177261353,
-1.9497389793395996,
-2.2838287353515625,
-1.3431566953659058,
-0.9752740859985352,
1.0541999340057373,
0.173355370759964,
-0.9417690634727478,
0.9871368408203125,
-0.4011789858341217,
-1.7904125452041626,
1.1339688301086426,
-2.1539313793182373
] |
https://github.com/huggingface/datasets/issues/4782 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648 | Thanks for reporting @conceptofmind.
Could you please give details about your environment?
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
``` | ## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
``` | 593 | 42 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
```
Thanks for reporting @conceptofmind.
Could you please give details about your environment?
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
``` | [
-1.2429171800613403,
-0.7994665503501892,
-0.6542518734931946,
1.4238572120666504,
-0.1680997610092163,
-1.2234876155853271,
0.14002709090709686,
-1.1553523540496826,
1.6809539794921875,
-0.7395088076591492,
0.2952503263950348,
-1.6527067422866821,
0.0540236160159111,
-0.46065574884414673,
-0.6978096961975098,
-0.8660045862197876,
-0.3596571683883667,
-0.8193724155426025,
1.0495755672454834,
2.477543354034424,
1.230705738067627,
-1.316498875617981,
2.714869499206543,
0.7045678496360779,
-0.26026296615600586,
-1.013270378112793,
0.5746007561683655,
0.02573510631918907,
-1.3328615427017212,
-0.4840397238731384,
-0.959673285484314,
-0.022368095815181732,
-0.4924509823322296,
-0.5200032591819763,
0.030995965003967285,
0.4063742458820343,
-0.3462229371070862,
-0.40838921070098877,
-0.6231482625007629,
-0.7271019220352173,
0.4833255708217621,
-0.4084169268608093,
0.9400233626365662,
-0.35242727398872375,
1.77372407913208,
-0.605156421661377,
0.45738041400909424,
0.7248180508613586,
1.3220314979553223,
0.1756286770105362,
-0.024357717484235764,
0.3222787082195282,
0.32218068838119507,
0.03495807200670242,
0.552078127861023,
1.1450812816619873,
0.6940925717353821,
0.4482313096523285,
0.6621115803718567,
-2.1630067825317383,
1.2983907461166382,
-0.909593403339386,
0.1519223004579544,
1.3266799449920654,
-0.9443206191062927,
0.333747535943985,
-1.7161865234375,
-0.11631059646606445,
0.5306954979896545,
-2.3151400089263916,
0.3289948105812073,
-1.3750909566879272,
-0.5215765833854675,
0.979830801486969,
0.32712259888648987,
-1.2232692241668701,
0.0777122974395752,
-0.4675707221031189,
1.0274585485458374,
0.4372861981391907,
1.0910154581069946,
-1.6044811010360718,
-0.11068640649318695,
-0.29569879174232483,
0.113288015127182,
-1.2996293306350708,
-1.516476035118103,
0.5453078150749207,
0.6179686188697815,
0.5657077431678772,
-0.07973826676607132,
0.998957633972168,
-1.1060988903045654,
0.775421142578125,
-0.9294090867042542,
-1.7359213829040527,
-1.3147757053375244,
-2.2521355152130127,
-2.223353385925293,
0.8453578352928162,
-0.501183271408081,
-0.5622550249099731,
2.09612774848938,
-1.0618619918823242,
-1.7382230758666992,
1.0509415864944458,
0.20367078483104706,
-0.005171297583729029,
2.422485828399658,
0.2316734492778778,
-0.8030135035514832,
0.4868150055408478,
-0.7622167468070984,
0.7745298147201538,
-0.4048738479614258,
1.3628438711166382,
0.4337562024593353,
-1.0122519731521606,
1.5726735591888428,
-0.3651694357395172,
0.5648574233055115,
-0.5989171862602234,
-0.49141404032707214,
-0.7732986211776733,
0.29393497109413147,
1.935483694076538,
-0.38219985365867615,
1.497150182723999,
-0.283782958984375,
-1.5257495641708374,
-1.5823372602462769,
0.8523001074790955,
0.5305924415588379,
-0.7432950735092163,
0.08033531159162521,
-0.39071351289749146,
0.15650993585586548,
-0.03454601392149925,
1.1038964986801147,
1.3658132553100586,
0.8218306303024292,
-0.36813440918922424,
-0.8585637807846069,
0.1226002424955368,
-0.12415827065706253,
-0.6426019072532654,
-1.8133249282836914,
-0.33073100447654724,
0.11979547142982483,
0.6233515739440918,
-1.2312661409378052,
1.7006878852844238,
0.92646723985672,
1.8922265768051147,
0.9834470152854919,
-0.35739392042160034,
1.5103057622909546,
0.0863470509648323,
1.8832916021347046,
-0.4514515995979309,
0.5897514224052429,
-0.37504687905311584,
-1.2146379947662354,
0.8487715721130371,
-0.2509966492652893,
-1.9681841135025024,
-0.7702382206916809,
-0.6946940422058105,
-0.1299627423286438,
-0.8328922390937805,
0.931420087814331,
-0.28405430912971497,
-1.4331302642822266,
0.2779881954193115,
-0.7416080236434937,
0.1035381332039833,
-1.288769245147705,
0.31295645236968994,
0.6192731261253357,
-0.6286448240280151,
0.015462227165699005,
-0.2573997378349304,
-1.2276225090026855,
-0.45110559463500977,
0.15871278941631317,
1.886940598487854,
-0.6887845396995544,
0.9790446758270264,
1.1017837524414062,
-0.7340013384819031,
-0.024586759507656097,
0.31072044372558594,
-0.3542809784412384,
0.7832835912704468,
-1.1670039892196655,
-0.35174915194511414,
1.1593002080917358,
-0.14358825981616974,
-0.6493924856185913,
1.446582317352295,
0.8146423697471619,
-1.001733422279358,
-0.24178460240364075,
-0.12968239188194275,
-0.8329957127571106,
0.061846986413002014,
-1.5744751691818237,
-0.15101072192192078,
0.4440464377403259,
-1.5188182592391968,
-0.3371417820453644,
-0.17323771119117737,
1.2684234380722046,
-0.13147100806236267,
1.4376327991485596,
-0.31595754623413086,
-0.10289786756038666,
-0.2800140380859375,
-0.36750635504722595,
0.10114555060863495,
-0.1088075339794159,
-0.6008562445640564,
0.24361532926559448,
-0.7796364426612854,
0.30136027932167053,
1.4489235877990723,
0.373642235994339,
0.04046664386987686,
0.5006229281425476,
1.0557763576507568,
0.374660849571228,
-0.11529625952243805,
-0.8956893682479858,
-1.566469669342041,
2.0072553157806396,
-1.4518080949783325,
2.0146892070770264,
0.8212590217590332,
-0.05679883435368538,
-1.8467217683792114,
-1.873012661933899,
1.287061095237732,
1.111948013305664,
2.389754056930542,
0.5662178993225098,
0.4385676980018616,
-0.7487620115280151,
-0.7038373947143555,
0.3272964656352997,
-1.1016536951065063,
-0.6977148056030273,
0.28242287039756775,
2.412734031677246,
1.638500690460205,
-0.42312943935394287,
-0.18409480154514313,
-0.9565964341163635,
1.3023016452789307,
-0.1499996781349182,
0.1987929344177246,
1.9939699172973633,
-0.19480016827583313,
-1.0045099258422852,
1.2385461330413818,
-2.3452868461608887,
0.17327822744846344,
2.071836471557617,
0.24372568726539612,
0.09607473760843277,
-1.3615797758102417,
-0.6695774793624878,
-0.3619193136692047,
-0.44428521394729614,
-1.2605762481689453,
0.541458785533905,
-0.3106142282485962,
-0.811933696269989,
-1.5133050680160522,
0.13796693086624146,
-1.2239669561386108,
-1.7667971849441528,
0.20235607028007507,
1.9641352891921997,
2.0534796714782715,
-0.7282716035842896,
1.5480765104293823,
-0.34950849413871765,
0.1035400778055191,
1.2747066020965576,
1.2663511037826538,
3.042120933532715,
1.813544511795044,
-1.3126647472381592,
0.7563827633857727,
-0.20639118552207947,
-0.43790000677108765,
1.0891773700714111,
-1.1738605499267578,
1.204592227935791,
-0.1295088827610016,
-1.2323815822601318,
-1.2111940383911133,
0.9869509935379028,
0.49657773971557617,
0.020502325147390366,
-0.38621780276298523,
1.283627986907959,
0.15861281752586365,
1.4465227127075195,
0.5484573841094971,
-0.23871396481990814,
0.6974939703941345,
-0.3252685070037842,
-0.47286397218704224,
1.6310651302337646,
0.20651520788669586,
-1.3798725605010986,
-2.3192148208618164,
-0.30411139130592346,
-0.8637853860855103,
-0.021221261471509933,
-0.5072229504585266,
-1.041171669960022,
1.6144578456878662,
0.40506377816200256,
-1.2309987545013428,
-0.24909678101539612,
-0.24511384963989258,
-0.5290799736976624,
2.668132781982422,
-1.2829022407531738,
-0.14888684451580048,
-0.9127541780471802,
-0.619752824306488,
1.6170786619186401,
-1.1805349588394165,
-0.27347323298454285,
-0.9948214292526245,
-0.5221922397613525,
-1.2639131546020508,
-0.6211985945701599,
0.0011063693091273308,
-0.986815333366394,
0.6596148014068604,
0.2787158787250519,
-1.1303471326828003,
-0.3566710352897644,
-0.8556036353111267,
0.9410364627838135,
-0.08070101588964462,
0.1732124537229538,
1.8803718090057373,
0.3996875286102295,
-0.4310862123966217,
0.7402875423431396,
1.0669575929641724,
0.5178205370903015,
-0.628458559513092,
0.14115145802497864,
-0.7307897210121155,
0.32318148016929626,
-1.3045076131820679,
0.23257127404212952,
-2.9053523540496826,
0.6687397956848145,
-0.12904679775238037,
-0.06227099895477295,
-0.0355159193277359,
-1.310649037361145,
1.1274240016937256,
2.6659348011016846,
-1.0995346307754517,
0.5435024499893188,
0.3241916298866272,
1.1587375402450562,
-1.5687421560287476,
0.3917508125305176,
-0.38233134150505066,
2.067530393600464,
0.2565214931964874,
1.2582035064697266,
-0.4919067323207855,
-2.3600220680236816,
0.6992344856262207,
-1.2348517179489136,
-1.2532836198806763,
0.8063744306564331,
-0.9078209400177002,
0.09796538949012756,
-1.3972405195236206,
-0.18813864886760712,
-0.8391830921173096,
-1.2155368328094482,
0.6730082631111145,
0.08234496414661407,
0.41366448998451233,
-0.6357855200767517,
0.34244683384895325,
-2.1763150691986084,
-1.2977269887924194,
-0.19291429221630096,
-0.9485746622085571,
0.5372627973556519,
-0.3611321449279785,
0.6803381443023682,
-0.139790877699852,
0.02006947621703148,
0.4314690828323364,
1.4628095626831055,
3.406783103942871,
0.16830295324325562,
0.272415429353714,
-0.19242925941944122,
-0.9899845123291016,
1.4481197595596313,
0.8988608121871948,
-0.22986683249473572,
-0.6461147665977478,
-1.034460425376892,
1.2316678762435913,
1.975956916809082,
0.9398335218429565,
0.08760140836238861,
-0.812351644039154,
-0.7589659094810486,
0.03798322752118111,
0.12033717334270477,
0.4439079463481903,
0.9546230435371399,
0.08221235871315002,
0.03840246424078941,
1.4638601541519165,
1.1773391962051392,
-0.47951433062553406,
0.36225274205207825,
-0.8862760663032532,
-0.41725802421569824,
0.5031197667121887,
0.22013622522354126,
-0.03547738492488861,
0.3537813127040863,
-1.0215065479278564,
-0.23514141142368317,
-0.3155764043331146,
-0.8926969766616821,
-0.8231663107872009,
-0.3916005492210388,
-0.37348976731300354,
1.7265567779541016,
0.09640633314847946,
-0.39513346552848816,
0.027020171284675598,
-0.7819891571998596,
-0.08650746196508408,
-1.1484652757644653,
0.23064954578876495,
-0.17344143986701965,
-0.09800159186124802,
-0.022680655121803284,
1.8716545104980469,
-0.9146749973297119,
-2.041987657546997,
0.26883023977279663,
0.2435256540775299,
-0.21907420456409454,
0.23503181338310242,
1.7709473371505737,
0.6350909471511841,
1.4470521211624146,
1.3222249746322632,
0.9732136130332947,
-0.6193336248397827,
-1.315177083015442,
0.7308007478713989,
0.9393430948257446,
-1.327060580253601,
0.7874547243118286,
-0.07462148368358612,
-0.46310752630233765,
0.6030564904212952,
1.3441438674926758,
0.48636844754219055,
-2.0378313064575195,
0.886337161064148,
-0.9306462407112122,
0.6434749960899353,
0.7313419580459595,
0.7231338024139404,
0.16441993415355682,
0.8352166414260864,
-1.2201370000839233,
-1.1760038137435913,
-0.746153712272644,
-0.6662452816963196,
1.9411150217056274,
-0.29064229130744934,
0.5690321922302246,
-0.1622016876935959,
-1.2858999967575073,
-0.06280963867902756,
0.6548423767089844,
0.29877573251724243,
-0.40870144963264465,
0.8180590271949768,
-0.7257493734359741,
-1.1299020051956177,
-1.4541438817977905,
-0.4789237678050995,
-1.0361238718032837,
-0.9368646740913391,
0.919496476650238,
0.7079203724861145,
0.2900954782962799,
1.8748500347137451,
0.6413088440895081,
0.23817256093025208,
-2.6617696285247803,
0.9279101490974426,
0.28064748644828796,
-0.10096169263124466,
0.9671122431755066,
0.28886619210243225,
0.94102942943573,
0.0077958013862371445,
0.4887808859348297,
-2.4328086376190186,
2.2759416103363037,
-0.26907575130462646,
0.6172287464141846,
0.05775466561317444,
-0.24503310024738312,
1.0807666778564453,
0.5796254277229309,
0.6156079769134521,
-1.1181472539901733,
0.6656228303909302,
-0.6108658313751221,
1.250829815864563,
0.9308119416236877,
-0.8460794687271118,
0.00830378569662571,
1.3445204496383667,
0.43775835633277893,
-0.4872177839279175,
-0.90006023645401,
-0.9817095994949341,
0.8679961562156677,
1.8350459337234497,
-0.0901281088590622,
0.010202094912528992,
0.748604953289032,
0.5788393020629883,
-1.332800269126892,
0.020548716187477112,
-0.7372871041297913,
-0.7999486923217773,
1.687347650527954,
2.0912303924560547,
-0.168301060795784,
-0.26044273376464844,
-0.7225070595741272,
-1.3084725141525269,
0.8667593598365784,
-0.06864307820796967,
0.19442099332809448,
0.6158049702644348,
-0.6281147003173828,
1.0608245134353638,
0.8314900994300842,
1.0811864137649536,
0.1893458217382431,
0.29610908031463623,
0.33378681540489197,
-0.3593618869781494,
-1.066982626914978,
-0.22828543186187744,
-1.1042033433914185,
-2.6213817596435547,
0.47123172879219055,
-0.22422459721565247,
-1.4952753782272339,
0.029801610857248306,
-1.0358963012695312,
0.9079188108444214,
-0.5195703506469727,
-1.0835599899291992,
-1.4400538206100464,
0.21330979466438293,
-0.1557231992483139,
1.0062295198440552,
-1.6639078855514526,
-0.16009677946567535,
1.3337786197662354,
0.9505744576454163,
-0.6942023038864136,
1.0653011798858643,
0.2545347213745117,
1.0811303853988647,
0.8340544104576111,
-0.3805425465106964,
0.5742590427398682,
-0.008895044215023518,
-1.3309972286224365,
0.4472179412841797,
1.2294503450393677,
0.12945973873138428,
1.4714601039886475,
-0.5345406532287598,
0.0329761728644371,
0.36560237407684326,
-0.6454415321350098,
-0.44657713174819946,
-0.4610956907272339,
0.695564866065979,
0.06137969344854355,
-0.9831951856613159,
-0.023037763312458992,
-0.05424777418375015,
-0.22505950927734375,
0.1368597447872162,
-1.3847613334655762,
-0.28371691703796387,
-0.3415021002292633,
-0.6450835466384888,
-1.278355360031128,
-0.03664856404066086,
1.312571406364441,
-0.7837038636207581,
-0.17676149308681488,
0.3260055482387543,
0.36143121123313904,
0.5651348233222961,
0.6736329793930054,
-0.8381344079971313,
-0.45743846893310547,
-0.28080153465270996,
-0.398817241191864,
0.2905389070510864,
1.351431965827942,
0.02170601673424244,
-0.9687001705169678,
0.6384195685386658,
-0.3513346314430237,
0.08242283761501312,
1.9446237087249756,
0.027492444962263107,
-0.8125067353248596,
0.21216359734535217,
-0.6564043760299683,
1.8760076761245728,
1.6708121299743652,
1.3036965131759644,
-0.1000947654247284,
-0.9081289768218994,
0.6482657194137573,
-0.33855459094047546,
-0.40260249376296997,
0.8927905559539795,
0.48030099272727966,
-0.20899589359760284,
-1.439271330833435,
0.6676626801490784,
1.299021601676941,
-0.8284667730331421,
-0.7657297253608704,
0.05380389094352722,
-0.7260816097259521,
1.2290903329849243,
0.6809601783752441,
0.35277673602104187,
0.2584820091724396,
1.602964162826538,
0.7980023622512817,
-0.568670392036438,
0.5502918362617493,
0.4826844334602356,
-0.1495436280965805,
-2.1824100017547607,
-0.9935336709022522,
0.30871060490608215,
-0.4090478718280792,
-1.5467808246612549,
1.5209561586380005,
-1.0852506160736084,
-0.9072151184082031,
0.5171818137168884,
0.07270101457834244,
1.4024426937103271,
0.4002416729927063,
1.5859153270721436,
2.0759541988372803,
0.9159590601921082,
0.2627180516719818,
1.2182248830795288,
-0.1599980741739273,
-0.4828406870365143,
1.7583876848220825,
-0.45787152647972107,
0.48862767219543457,
1.0385186672210693,
-0.3198404312133789,
-1.0011013746261597,
-0.8360934853553772,
-1.1593842506408691,
-0.6091530919075012,
1.125266432762146,
0.1360088288784027,
-1.1205202341079712,
0.2622029483318329,
1.609498381614685,
0.06922224909067154,
-0.31313765048980713,
0.6737074255943298,
0.3956926167011261,
-0.7927767038345337,
-0.13716574013233185,
-0.8828731179237366,
0.47329622507095337,
-0.16481368243694305,
-0.34738844633102417,
0.3290964365005493,
0.48385170102119446,
1.338903784751892,
-0.06604662537574768,
0.07742144912481308,
1.1518934965133667,
-1.4113212823867798,
1.4954454898834229,
-0.6323274374008179,
0.3476877808570862,
-2.3035829067230225,
1.3791139125823975,
-0.8018496036529541,
1.9499155282974243,
-2.6213672161102295,
0.42972126603126526,
-0.5248517394065857,
-0.41872668266296387,
0.17905700206756592,
-0.4557064175605774,
0.1561168134212494,
-0.14039941132068634,
-1.117113471031189,
-0.08578623831272125,
-0.7761936783790588,
0.6271706819534302,
1.0478203296661377,
1.3435242176055908,
-1.1107248067855835,
-0.1910485476255417,
-1.7102030515670776,
-0.14534084498882294,
-0.7359708547592163,
0.2788417339324951,
-1.9743587970733643,
-0.24166910350322723,
-2.023616313934326,
-2.361732006072998,
-1.323235034942627,
-0.8118135929107666,
1.1297065019607544,
0.18530035018920898,
-0.8531976938247681,
1.155266523361206,
-0.32180801033973694,
-1.9131649732589722,
1.1528856754302979,
-2.1593992710113525
] |
https://github.com/huggingface/datasets/issues/4782 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648 | Hi @albertvillanova ,
Here is the environment information:
```
- `datasets` version: 2.3.2
- Platform: Linux-5.4.0-122-generic-x86_64-with-glibc2.27
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
```
Thanks,
Enrico | ## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
``` | 593 | 31 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
```
Hi @albertvillanova ,
Here is the environment information:
```
- `datasets` version: 2.3.2
- Platform: Linux-5.4.0-122-generic-x86_64-with-glibc2.27
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
```
Thanks,
Enrico | [
-1.240576148033142,
-0.7853387594223022,
-0.6472442150115967,
1.4155229330062866,
-0.1734137088060379,
-1.2218800783157349,
0.15105994045734406,
-1.1363731622695923,
1.6808083057403564,
-0.723692774772644,
0.29064908623695374,
-1.6480249166488647,
0.0472574345767498,
-0.46815961599349976,
-0.6878812313079834,
-0.8637036085128784,
-0.36385154724121094,
-0.8114895224571228,
1.0525026321411133,
2.4872841835021973,
1.2377573251724243,
-1.31223464012146,
2.7119059562683105,
0.7065075039863586,
-0.23102709650993347,
-1.0172994136810303,
0.5703567266464233,
0.03180282562971115,
-1.34212327003479,
-0.47555622458457947,
-0.9468110799789429,
-0.035915471613407135,
-0.5074231624603271,
-0.5275622606277466,
0.016737740486860275,
0.39090803265571594,
-0.34485530853271484,
-0.40399378538131714,
-0.6179069876670837,
-0.7319206595420837,
0.4860074520111084,
-0.4053530991077423,
0.9473918080329895,
-0.36059266328811646,
1.7496031522750854,
-0.5928018093109131,
0.48319047689437866,
0.7400279641151428,
1.3176370859146118,
0.1800251603126526,
-0.029626715928316116,
0.32814821600914,
0.3215428292751312,
0.06036408618092537,
0.5508810877799988,
1.1347190141677856,
0.7093506455421448,
0.44127923250198364,
0.6500619649887085,
-2.1680285930633545,
1.3030190467834473,
-0.9175378680229187,
0.1486339569091797,
1.343739628791809,
-0.936542809009552,
0.33261778950691223,
-1.7206226587295532,
-0.12516894936561584,
0.526504397392273,
-2.314908981323242,
0.33303582668304443,
-1.37580144405365,
-0.5126974582672119,
0.9947079420089722,
0.33954527974128723,
-1.2225475311279297,
0.061208534985780716,
-0.45039257407188416,
1.0109615325927734,
0.4425869584083557,
1.0975524187088013,
-1.6105457544326782,
-0.10007302463054657,
-0.2985183894634247,
0.10452858358621597,
-1.2724518775939941,
-1.5064927339553833,
0.5407521724700928,
0.6202104091644287,
0.5618146061897278,
-0.0753159299492836,
0.9884936809539795,
-1.0945937633514404,
0.7753947973251343,
-0.9343739748001099,
-1.7408417463302612,
-1.3281480073928833,
-2.2706968784332275,
-2.231767416000366,
0.8385986089706421,
-0.5007128715515137,
-0.5468118190765381,
2.088996171951294,
-1.058629035949707,
-1.7218164205551147,
1.0503036975860596,
0.21807503700256348,
0.0011366168037056923,
2.4286699295043945,
0.22474358975887299,
-0.8079112768173218,
0.49812719225883484,
-0.7849988341331482,
0.7442813515663147,
-0.39052635431289673,
1.3671293258666992,
0.4432603418827057,
-1.0149427652359009,
1.5782660245895386,
-0.3601553440093994,
0.5815899968147278,
-0.5907124876976013,
-0.48085615038871765,
-0.7500859498977661,
0.28559574484825134,
1.9238399267196655,
-0.37386441230773926,
1.4803136587142944,
-0.27657830715179443,
-1.5123515129089355,
-1.566669225692749,
0.8621853590011597,
0.5338931679725647,
-0.7328112721443176,
0.07052068412303925,
-0.38274693489074707,
0.14701849222183228,
-0.035526663064956665,
1.0977436304092407,
1.3476263284683228,
0.8329072594642639,
-0.38236433267593384,
-0.8834376335144043,
0.11219051480293274,
-0.11634326726198196,
-0.6659255623817444,
-1.8212335109710693,
-0.30748531222343445,
0.11308258771896362,
0.6333227157592773,
-1.2506835460662842,
1.7076247930526733,
0.9264112710952759,
1.8979002237319946,
0.9781155586242676,
-0.3695546090602875,
1.517061471939087,
0.08396775275468826,
1.8979305028915405,
-0.46050402522087097,
0.5913907289505005,
-0.3689911961555481,
-1.1992443799972534,
0.8605828881263733,
-0.23379936814308167,
-1.9830447435379028,
-0.7599532008171082,
-0.6880354285240173,
-0.13257507979869843,
-0.8382257223129272,
0.9450979232788086,
-0.2671792805194855,
-1.426748275756836,
0.2693246304988861,
-0.7525263428688049,
0.08765947818756104,
-1.297735333442688,
0.30919787287712097,
0.622861921787262,
-0.6225793361663818,
0.01875291019678116,
-0.2634528875350952,
-1.2278629541397095,
-0.4640950560569763,
0.1632370501756668,
1.8682382106781006,
-0.6875186562538147,
0.9812789559364319,
1.1093016862869263,
-0.7245868444442749,
-0.024462133646011353,
0.31696048378944397,
-0.35764917731285095,
0.8009439706802368,
-1.150061011314392,
-0.37358129024505615,
1.1625546216964722,
-0.14438889920711517,
-0.6457837820053101,
1.4584373235702515,
0.8064464926719666,
-1.0003812313079834,
-0.2475285679101944,
-0.11693864315748215,
-0.8123844265937805,
0.08761590719223022,
-1.5957067012786865,
-0.14277030527591705,
0.4423137903213501,
-1.529876947402954,
-0.32681629061698914,
-0.17138175666332245,
1.294472336769104,
-0.1186482384800911,
1.4350576400756836,
-0.2943742275238037,
-0.10711020231246948,
-0.30912551283836365,
-0.3494248390197754,
0.07911330461502075,
-0.09992649406194687,
-0.5848550796508789,
0.25588420033454895,
-0.7970544695854187,
0.30895256996154785,
1.431685209274292,
0.3661872446537018,
0.03655717521905899,
0.4946593940258026,
1.0413016080856323,
0.38057607412338257,
-0.12763777375221252,
-0.9022477865219116,
-1.5639405250549316,
2.0190460681915283,
-1.453606367111206,
2.010087728500366,
0.8178774118423462,
-0.053931448608636856,
-1.8291239738464355,
-1.8806953430175781,
1.3049262762069702,
1.0936574935913086,
2.3843185901641846,
0.5538831949234009,
0.42934688925743103,
-0.7474180459976196,
-0.7047317624092102,
0.3225861191749573,
-1.0745066404342651,
-0.6932898163795471,
0.28311866521835327,
2.4173080921173096,
1.646941065788269,
-0.41789141297340393,
-0.18583521246910095,
-0.9767175912857056,
1.3112540245056152,
-0.14816124737262726,
0.19581882655620575,
1.9974091053009033,
-0.19154216349124908,
-1.013093113899231,
1.2489662170410156,
-2.358309507369995,
0.1813647598028183,
2.0626721382141113,
0.2579081058502197,
0.09945914149284363,
-1.3765660524368286,
-0.6968216896057129,
-0.3491237759590149,
-0.46784090995788574,
-1.2470190525054932,
0.5505081415176392,
-0.30408650636672974,
-0.8342299461364746,
-1.5117249488830566,
0.14788609743118286,
-1.2242437601089478,
-1.7982548475265503,
0.2067003697156906,
1.9412051439285278,
2.0572829246520996,
-0.7386425733566284,
1.5386532545089722,
-0.35620325803756714,
0.10248589515686035,
1.261598825454712,
1.2516025304794312,
3.0352423191070557,
1.8264179229736328,
-1.3247884511947632,
0.7546471953392029,
-0.20101425051689148,
-0.44570767879486084,
1.0727475881576538,
-1.1898609399795532,
1.203294038772583,
-0.12832535803318024,
-1.2371524572372437,
-1.202805757522583,
0.9894026517868042,
0.4846804440021515,
0.023100178688764572,
-0.39025869965553284,
1.2484925985336304,
0.1611856371164322,
1.4337728023529053,
0.5472548604011536,
-0.22531628608703613,
0.6993866562843323,
-0.34702223539352417,
-0.4674065411090851,
1.6279046535491943,
0.20806626975536346,
-1.3862404823303223,
-2.3358500003814697,
-0.31138885021209717,
-0.8764281868934631,
-0.024073401466012,
-0.514624297618866,
-1.040262222290039,
1.6013429164886475,
0.40545448660850525,
-1.2204965353012085,
-0.242135152220726,
-0.26246899366378784,
-0.5179101228713989,
2.6650583744049072,
-1.2824994325637817,
-0.1476345658302307,
-0.9160507321357727,
-0.624803900718689,
1.611352801322937,
-1.1679246425628662,
-0.25794869661331177,
-0.9945294260978699,
-0.5189486742019653,
-1.2802224159240723,
-0.6156983971595764,
-0.01392277330160141,
-0.9861950278282166,
0.6660167574882507,
0.27370724081993103,
-1.1329598426818848,
-0.36215925216674805,
-0.8591759204864502,
0.9297559857368469,
-0.06619705259799957,
0.1704348623752594,
1.8521071672439575,
0.40963831543922424,
-0.42433956265449524,
0.7234851717948914,
1.0585719347000122,
0.5366013050079346,
-0.6305986642837524,
0.16361428797245026,
-0.7272694110870361,
0.3286327123641968,
-1.2897824048995972,
0.2326020449399948,
-2.9012038707733154,
0.6664078235626221,
-0.12014792859554291,
-0.0462399423122406,
-0.048651695251464844,
-1.3008060455322266,
1.1400336027145386,
2.6651201248168945,
-1.1073501110076904,
0.5506380796432495,
0.32967710494995117,
1.1447913646697998,
-1.5597223043441772,
0.39546507596969604,
-0.3936794102191925,
2.0948314666748047,
0.24709318578243256,
1.250382423400879,
-0.4831206202507019,
-2.374607801437378,
0.7010442018508911,
-1.247431993484497,
-1.2536542415618896,
0.8113542795181274,
-0.9137624502182007,
0.10515987128019333,
-1.3867887258529663,
-0.1733674854040146,
-0.8257280588150024,
-1.2292457818984985,
0.6671175956726074,
0.0863640084862709,
0.41692104935646057,
-0.633669912815094,
0.3482530415058136,
-2.1843454837799072,
-1.2889089584350586,
-0.19019754230976105,
-0.9537375569343567,
0.5486610531806946,
-0.35388606786727905,
0.6955961585044861,
-0.1381269097328186,
0.0073175979778170586,
0.43935999274253845,
1.454107403755188,
3.415116310119629,
0.14581239223480225,
0.26671406626701355,
-0.20090995728969574,
-1.0015413761138916,
1.4507718086242676,
0.9061599969863892,
-0.21783532202243805,
-0.6460421085357666,
-1.031262993812561,
1.2231621742248535,
2.00065279006958,
0.9350041151046753,
0.08750445395708084,
-0.8406818509101868,
-0.7588522434234619,
0.0696120485663414,
0.13742613792419434,
0.44250941276550293,
0.9626594185829163,
0.07189327478408813,
0.020437292754650116,
1.4705820083618164,
1.1747533082962036,
-0.4482904076576233,
0.34366628527641296,
-0.8897703886032104,
-0.41821804642677307,
0.5270224809646606,
0.2246679663658142,
-0.023948516696691513,
0.36386430263519287,
-1.0373272895812988,
-0.22977493703365326,
-0.30795755982398987,
-0.891815721988678,
-0.8201612830162048,
-0.3776085376739502,
-0.385336697101593,
1.7288111448287964,
0.09002044796943665,
-0.3966990113258362,
0.03633083030581474,
-0.777519941329956,
-0.08193067461252213,
-1.1338965892791748,
0.24536626040935516,
-0.17883746325969696,
-0.0699240192770958,
-0.04672554135322571,
1.8712987899780273,
-0.9147946238517761,
-2.0544650554656982,
0.26189863681793213,
0.244521364569664,
-0.22374080121517181,
0.26410767436027527,
1.7634482383728027,
0.6530816555023193,
1.4569529294967651,
1.3101528882980347,
0.976245641708374,
-0.6061137318611145,
-1.3303000926971436,
0.72895747423172,
0.9520848989486694,
-1.3262155055999756,
0.7862956523895264,
-0.06753647327423096,
-0.44321197271347046,
0.5858075618743896,
1.3361531496047974,
0.47707486152648926,
-2.044478178024292,
0.8704275488853455,
-0.9208810329437256,
0.6538968682289124,
0.7107114195823669,
0.7239080667495728,
0.14382383227348328,
0.8258840441703796,
-1.230699896812439,
-1.1424338817596436,
-0.7426522970199585,
-0.6578381657600403,
1.9538925886154175,
-0.3063841164112091,
0.5753920674324036,
-0.17873121798038483,
-1.293411135673523,
-0.058032773435115814,
0.6484708786010742,
0.2989497482776642,
-0.43062546849250793,
0.825333833694458,
-0.7092572450637817,
-1.151665449142456,
-1.4537321329116821,
-0.4702780246734619,
-1.0259755849838257,
-0.9323152303695679,
0.9244648814201355,
0.6917677521705627,
0.3060639202594757,
1.867331624031067,
0.627433717250824,
0.22717268764972687,
-2.6659226417541504,
0.9245889186859131,
0.284247487783432,
-0.10808467864990234,
0.9651075005531311,
0.29237645864486694,
0.9431201219558716,
-0.008244039490818977,
0.5288212895393372,
-2.4206600189208984,
2.284078359603882,
-0.23992691934108734,
0.6178539395332336,
0.08182831853628159,
-0.2458757609128952,
1.052182912826538,
0.6038774847984314,
0.618558943271637,
-1.118998646736145,
0.6626872420310974,
-0.6140192747116089,
1.2692614793777466,
0.9143236875534058,
-0.8243433833122253,
-0.0016631586477160454,
1.332579255104065,
0.4568463861942291,
-0.45301100611686707,
-0.8901748061180115,
-0.985353410243988,
0.8674094080924988,
1.8244481086730957,
-0.1106010153889656,
0.018099740147590637,
0.7403711080551147,
0.5972855091094971,
-1.3311604261398315,
-0.0004592845216393471,
-0.7422202825546265,
-0.7771872282028198,
1.6986488103866577,
2.106865644454956,
-0.1633530706167221,
-0.27092787623405457,
-0.7394852638244629,
-1.3093366622924805,
0.8619753122329712,
-0.07246411591768265,
0.19641540944576263,
0.6084706783294678,
-0.6109803318977356,
1.0685774087905884,
0.8191388249397278,
1.0820493698120117,
0.19004741311073303,
0.3042539954185486,
0.30695873498916626,
-0.37325698137283325,
-1.0789039134979248,
-0.2337292581796646,
-1.104905366897583,
-2.628979444503784,
0.4706864655017853,
-0.23434066772460938,
-1.4958053827285767,
0.012689209543168545,
-1.0417284965515137,
0.8950432538986206,
-0.5103577971458435,
-1.075351357460022,
-1.4314935207366943,
0.2095697522163391,
-0.1513698399066925,
1.0196692943572998,
-1.67378830909729,
-0.1610649973154068,
1.352615475654602,
0.9467862844467163,
-0.6916359066963196,
1.0666216611862183,
0.2569887340068817,
1.0886472463607788,
0.8227223753929138,
-0.37308382987976074,
0.5775647163391113,
0.008498805575072765,
-1.3366032838821411,
0.442365825176239,
1.2323169708251953,
0.141879141330719,
1.4836838245391846,
-0.5518922209739685,
0.04519911855459213,
0.3778163194656372,
-0.6339893341064453,
-0.4622202217578888,
-0.4771915674209595,
0.7047340273857117,
0.05121665447950363,
-0.9895846843719482,
-0.02548776939511299,
-0.05994259938597679,
-0.2022022157907486,
0.1238740012049675,
-1.3676974773406982,
-0.2879428267478943,
-0.3559979200363159,
-0.630585789680481,
-1.2848985195159912,
-0.05425988510251045,
1.3024181127548218,
-0.7909106612205505,
-0.1574087142944336,
0.32527345418930054,
0.3701190948486328,
0.5651327967643738,
0.6817606091499329,
-0.8254122734069824,
-0.4732776880264282,
-0.2918230891227722,
-0.3887104392051697,
0.28366678953170776,
1.3422671556472778,
0.02795165404677391,
-0.9774292707443237,
0.657148003578186,
-0.360291063785553,
0.08384841680526733,
1.9503049850463867,
0.009109008125960827,
-0.8161441087722778,
0.23902572691440582,
-0.6351922154426575,
1.862545371055603,
1.6563875675201416,
1.2934963703155518,
-0.11603070050477982,
-0.9086310267448425,
0.6336500644683838,
-0.3482024669647217,
-0.40636640787124634,
0.8901305794715881,
0.4846583902835846,
-0.20308806002140045,
-1.44084894657135,
0.6527886986732483,
1.3029835224151611,
-0.8209258913993835,
-0.7749108672142029,
0.07819682359695435,
-0.7358606457710266,
1.2240867614746094,
0.6785252690315247,
0.3580015301704407,
0.2620672583580017,
1.5968798398971558,
0.7930326461791992,
-0.5794517397880554,
0.5482929348945618,
0.45887118577957153,
-0.16460518538951874,
-2.180877447128296,
-1.005239725112915,
0.30056121945381165,
-0.43951839208602905,
-1.5361824035644531,
1.4942433834075928,
-1.0875625610351562,
-0.9073793888092041,
0.5197356343269348,
0.07025378197431564,
1.3893879652023315,
0.39907562732696533,
1.589349627494812,
2.073768377304077,
0.9224898219108582,
0.2660457193851471,
1.2249342203140259,
-0.15802860260009766,
-0.47215181589126587,
1.7619684934616089,
-0.4485596716403961,
0.5157012939453125,
1.0592830181121826,
-0.3196638822555542,
-1.0168893337249756,
-0.8584246635437012,
-1.145175576210022,
-0.6144894957542419,
1.1351865530014038,
0.13951735198497772,
-1.1152067184448242,
0.26235777139663696,
1.59490168094635,
0.07883121073246002,
-0.3184884786605835,
0.6770447492599487,
0.36369267106056213,
-0.792485773563385,
-0.1464078575372696,
-0.9025322198867798,
0.4746018350124359,
-0.188725084066391,
-0.3444075286388397,
0.3250289261341095,
0.4929456412792206,
1.337088704109192,
-0.08563130348920822,
0.09257299453020096,
1.1431390047073364,
-1.4056310653686523,
1.50464928150177,
-0.6426786780357361,
0.34689006209373474,
-2.280165672302246,
1.3567599058151245,
-0.8094832897186279,
1.9381084442138672,
-2.6219730377197266,
0.4288916289806366,
-0.494548499584198,
-0.41399046778678894,
0.16327203810214996,
-0.4479326605796814,
0.16205355525016785,
-0.1410069316625595,
-1.1197623014450073,
-0.09162791073322296,
-0.7767767310142517,
0.6148539781570435,
1.0581854581832886,
1.3533189296722412,
-1.0971779823303223,
-0.19989106059074402,
-1.7092220783233643,
-0.15972237288951874,
-0.740769624710083,
0.28363680839538574,
-1.9685276746749878,
-0.2467534989118576,
-2.0179145336151123,
-2.3646068572998047,
-1.313782811164856,
-0.8400447964668274,
1.1568161249160767,
0.18435195088386536,
-0.8522764444351196,
1.1396845579147339,
-0.3351171612739563,
-1.9123663902282715,
1.1437691450119019,
-2.1606392860412598
] |
https://github.com/huggingface/datasets/issues/4782 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648 | I think this issue is solved here https://discuss.huggingface.co/t/minhash-deduplication/19992/12?u=loubnabnl, this only happens for very large datasets we will update it in CodeParrot code | ## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
``` | 593 | 22 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
```
I think this issue is solved here https://discuss.huggingface.co/t/minhash-deduplication/19992/12?u=loubnabnl, this only happens for very large datasets we will update it in CodeParrot code | [
-1.2465146780014038,
-0.8065899014472961,
-0.6697272658348083,
1.4135576486587524,
-0.17723408341407776,
-1.2216166257858276,
0.1272106170654297,
-1.1400375366210938,
1.6448118686676025,
-0.7287020087242126,
0.29318153858184814,
-1.6581943035125732,
0.031718913465738297,
-0.46643808484077454,
-0.6742152571678162,
-0.8850156664848328,
-0.3545045554637909,
-0.8451001644134521,
1.0383548736572266,
2.4860939979553223,
1.2496381998062134,
-1.3249553442001343,
2.723844289779663,
0.6988518238067627,
-0.2457210123538971,
-1.0455963611602783,
0.5838928818702698,
0.02852056920528412,
-1.3113467693328857,
-0.5097724199295044,
-0.9543717503547668,
-0.000850987620651722,
-0.48785585165023804,
-0.4947780668735504,
0.023695435374975204,
0.4042467176914215,
-0.3363495171070099,
-0.38742852210998535,
-0.6402535438537598,
-0.7231000065803528,
0.49988317489624023,
-0.39666715264320374,
0.9416621327400208,
-0.3504504859447479,
1.772524356842041,
-0.5906546115875244,
0.45855778455734253,
0.7253761887550354,
1.3076756000518799,
0.17315934598445892,
-0.014363059774041176,
0.29240790009498596,
0.32104671001434326,
0.03888390213251114,
0.5499448776245117,
1.158011555671692,
0.696220874786377,
0.4461652636528015,
0.6288655996322632,
-2.159257411956787,
1.3127906322479248,
-0.9191009402275085,
0.160429447889328,
1.3319522142410278,
-0.942015528678894,
0.3344733417034149,
-1.7320038080215454,
-0.11618247628211975,
0.544879674911499,
-2.3296751976013184,
0.31953954696655273,
-1.3717573881149292,
-0.5173881649971008,
0.9713482856750488,
0.31430014967918396,
-1.2368587255477905,
0.10125639289617538,
-0.48606884479522705,
1.0464249849319458,
0.4613408148288727,
1.0950106382369995,
-1.5994856357574463,
-0.1000218614935875,
-0.28577548265457153,
0.10097435861825943,
-1.3055646419525146,
-1.5156785249710083,
0.5335337519645691,
0.6363437175750732,
0.5715829133987427,
-0.05774346739053726,
0.9978978633880615,
-1.0938960313796997,
0.7719796299934387,
-0.9160207509994507,
-1.7177926301956177,
-1.3370137214660645,
-2.2853357791900635,
-2.230766534805298,
0.8565626740455627,
-0.49855583906173706,
-0.577499270439148,
2.0435242652893066,
-1.0592299699783325,
-1.7323745489120483,
1.059382677078247,
0.21399183571338654,
0.015131180174648762,
2.4364335536956787,
0.22613658010959625,
-0.8048549294471741,
0.4642254412174225,
-0.7742996215820312,
0.782030463218689,
-0.38204291462898254,
1.3761451244354248,
0.4663921594619751,
-0.9967566132545471,
1.5902761220932007,
-0.3714177906513214,
0.557731568813324,
-0.5875892043113708,
-0.5066929459571838,
-0.7757468819618225,
0.28071048855781555,
1.926761507987976,
-0.4018656611442566,
1.5047357082366943,
-0.2976159155368805,
-1.5226843357086182,
-1.575269341468811,
0.8569825291633606,
0.5227053165435791,
-0.755752682685852,
0.07004907727241516,
-0.4119430184364319,
0.16324783861637115,
-0.03868202865123749,
1.0769915580749512,
1.3409276008605957,
0.8015874028205872,
-0.3802781105041504,
-0.8750263452529907,
0.12405305355787277,
-0.12758466601371765,
-0.644410252571106,
-1.8350732326507568,
-0.3210482895374298,
0.1398751437664032,
0.6298017501831055,
-1.2515888214111328,
1.6699174642562866,
0.9189121723175049,
1.8954194784164429,
0.9920153617858887,
-0.3574519157409668,
1.5148893594741821,
0.06948436051607132,
1.8711271286010742,
-0.4903210997581482,
0.5901511907577515,
-0.33772414922714233,
-1.1925123929977417,
0.8528119921684265,
-0.2516348361968994,
-1.9558720588684082,
-0.7930216193199158,
-0.6786274313926697,
-0.13354429602622986,
-0.848074197769165,
0.9292430877685547,
-0.29383111000061035,
-1.4351774454116821,
0.2762121856212616,
-0.7492102980613708,
0.08964221924543381,
-1.2912123203277588,
0.2809406518936157,
0.6370096802711487,
-0.6233872771263123,
0.020541898906230927,
-0.2475854903459549,
-1.2209744453430176,
-0.43573421239852905,
0.13178275525569916,
1.8823165893554688,
-0.6819798946380615,
0.9682357907295227,
1.0991159677505493,
-0.7303835153579712,
0.001401103101670742,
0.31050607562065125,
-0.3331325352191925,
0.7930448055267334,
-1.142949104309082,
-0.3668317198753357,
1.1551192998886108,
-0.14385701715946198,
-0.6551806330680847,
1.4612637758255005,
0.8359873294830322,
-1.0013741254806519,
-0.25397732853889465,
-0.11444756388664246,
-0.8343337178230286,
0.06333965063095093,
-1.5612245798110962,
-0.16406872868537903,
0.4390309453010559,
-1.5191951990127563,
-0.32892826199531555,
-0.17629067599773407,
1.3055795431137085,
-0.1381799280643463,
1.4491832256317139,
-0.3235587179660797,
-0.10354641079902649,
-0.2633766829967499,
-0.36701902747154236,
0.09125826507806778,
-0.11006428301334381,
-0.588219165802002,
0.24361290037631989,
-0.8041566610336304,
0.2962161600589752,
1.4511077404022217,
0.40075257420539856,
0.03979029506444931,
0.49030402302742004,
1.042728066444397,
0.38222312927246094,
-0.12033917009830475,
-0.896679162979126,
-1.5448007583618164,
2.021198272705078,
-1.453870177268982,
2.012319564819336,
0.8364851474761963,
-0.06645648181438446,
-1.828826904296875,
-1.852125644683838,
1.273404836654663,
1.1129307746887207,
2.3851046562194824,
0.5443309545516968,
0.4239145517349243,
-0.7579859495162964,
-0.7090116143226624,
0.3182103931903839,
-1.1108324527740479,
-0.6849268078804016,
0.2717498540878296,
2.408698320388794,
1.6709600687026978,
-0.44894877076148987,
-0.21290993690490723,
-0.9614570140838623,
1.2934565544128418,
-0.1535172015428543,
0.19029828906059265,
2.002279758453369,
-0.19509847462177277,
-0.9931941628456116,
1.2437264919281006,
-2.3577754497528076,
0.16715587675571442,
2.0682201385498047,
0.2602207362651825,
0.09195631742477417,
-1.4081653356552124,
-0.6709853410720825,
-0.3708043694496155,
-0.4693857431411743,
-1.2677942514419556,
0.559893012046814,
-0.3202737867832184,
-0.8485103845596313,
-1.5183433294296265,
0.12503249943256378,
-1.2222979068756104,
-1.7851967811584473,
0.23263268172740936,
1.956629753112793,
2.0604782104492188,
-0.7466925978660583,
1.5366636514663696,
-0.3412836194038391,
0.09142842143774033,
1.2809062004089355,
1.2723337411880493,
3.0379161834716797,
1.8005198240280151,
-1.3282588720321655,
0.7544878721237183,
-0.2193400114774704,
-0.44184449315071106,
1.0696017742156982,
-1.1952061653137207,
1.1856882572174072,
-0.11218810826539993,
-1.243349552154541,
-1.2022814750671387,
1.0202726125717163,
0.48882025480270386,
0.020472556352615356,
-0.3969714641571045,
1.276405930519104,
0.1575922966003418,
1.4349372386932373,
0.5534672737121582,
-0.23734113574028015,
0.677611768245697,
-0.3408600986003876,
-0.49458175897598267,
1.628794550895691,
0.21258512139320374,
-1.4112457036972046,
-2.289835214614868,
-0.3015238046646118,
-0.8487448692321777,
-0.044996228069067,
-0.49861493706703186,
-1.0537402629852295,
1.6094801425933838,
0.40785476565361023,
-1.2433178424835205,
-0.25566405057907104,
-0.26317593455314636,
-0.5263170003890991,
2.6534125804901123,
-1.2699984312057495,
-0.1357741504907608,
-0.9184876084327698,
-0.6076510548591614,
1.6174575090408325,
-1.180840253829956,
-0.2532186210155487,
-0.9808595776557922,
-0.5438563823699951,
-1.2869690656661987,
-0.6223896741867065,
-0.01973169669508934,
-0.9762142896652222,
0.6277571320533752,
0.2719762921333313,
-1.0920897722244263,
-0.353919118642807,
-0.8410030007362366,
0.9537277221679688,
-0.07802854478359222,
0.19526872038841248,
1.8691633939743042,
0.3811253607273102,
-0.4392980635166168,
0.720133364200592,
1.0702489614486694,
0.5071433186531067,
-0.6272456049919128,
0.12064176052808762,
-0.7224460244178772,
0.3132951855659485,
-1.3111422061920166,
0.21834896504878998,
-2.9157907962799072,
0.6808255910873413,
-0.12791703641414642,
-0.0414593443274498,
-0.03243179991841316,
-1.2790720462799072,
1.1720681190490723,
2.6617770195007324,
-1.0940401554107666,
0.5332158803939819,
0.3587355613708496,
1.1406986713409424,
-1.5622577667236328,
0.4236085116863251,
-0.3664325475692749,
2.0987579822540283,
0.26489099860191345,
1.2816604375839233,
-0.49047061800956726,
-2.3467659950256348,
0.6945338249206543,
-1.2197022438049316,
-1.2331295013427734,
0.8027356863021851,
-0.9137791991233826,
0.10359503328800201,
-1.4107035398483276,
-0.183958038687706,
-0.8623680472373962,
-1.2276740074157715,
0.7009584903717041,
0.07552281022071838,
0.4003768861293793,
-0.6292167901992798,
0.3477138876914978,
-2.1641886234283447,
-1.2958042621612549,
-0.18749791383743286,
-0.9601656794548035,
0.5448274612426758,
-0.3543829023838043,
0.6625404357910156,
-0.1329687535762787,
0.024104055017232895,
0.42470189929008484,
1.4528589248657227,
3.4160966873168945,
0.17986057698726654,
0.27681636810302734,
-0.15611569583415985,
-1.001936912536621,
1.4673161506652832,
0.9026742577552795,
-0.2051331102848053,
-0.6353639960289001,
-1.0145801305770874,
1.2340874671936035,
1.9984102249145508,
0.9540161490440369,
0.09933016449213028,
-0.8358365893363953,
-0.7664430141448975,
0.04568728432059288,
0.13415499031543732,
0.4445391297340393,
0.9625682830810547,
0.03992025554180145,
0.03567957505583763,
1.4719767570495605,
1.186241626739502,
-0.4657389521598816,
0.3471553921699524,
-0.9117159843444824,
-0.39125844836235046,
0.5124167799949646,
0.19499455392360687,
-0.027609732002019882,
0.385369211435318,
-1.0340865850448608,
-0.2396416813135147,
-0.2925473153591156,
-0.9009385108947754,
-0.8053898811340332,
-0.38646796345710754,
-0.35951775312423706,
1.7071551084518433,
0.12377824634313583,
-0.3899018168449402,
0.05198261886835098,
-0.7843881249427795,
-0.13229356706142426,
-1.1549898386001587,
0.21094299852848053,
-0.1555047333240509,
-0.0850725919008255,
-0.05185787007212639,
1.8871593475341797,
-0.9123941659927368,
-2.0742368698120117,
0.2610759437084198,
0.2622203528881073,
-0.2183021903038025,
0.26133036613464355,
1.7657487392425537,
0.619911253452301,
1.4416602849960327,
1.2865341901779175,
0.9741532206535339,
-0.6067179441452026,
-1.3037117719650269,
0.7286361455917358,
0.9395179748535156,
-1.3167846202850342,
0.8115788102149963,
-0.07975217700004578,
-0.4345551133155823,
0.6134925484657288,
1.3476380109786987,
0.4829597473144531,
-2.028355360031128,
0.8784857392311096,
-0.901671826839447,
0.6159270405769348,
0.6949872374534607,
0.7364492416381836,
0.17768941819667816,
0.8376507759094238,
-1.235758662223816,
-1.1784371137619019,
-0.7574194073677063,
-0.6426228880882263,
1.9457299709320068,
-0.2758897542953491,
0.5924723148345947,
-0.16139815747737885,
-1.2766287326812744,
-0.06519272923469543,
0.6842745542526245,
0.2945333421230316,
-0.4185096323490143,
0.8456166982650757,
-0.7225545644760132,
-1.1454733610153198,
-1.4492944478988647,
-0.4536946713924408,
-1.0223208665847778,
-0.9354068040847778,
0.9320144057273865,
0.6967167258262634,
0.2916848957538605,
1.8849002122879028,
0.6168441772460938,
0.24289391934871674,
-2.683055877685547,
0.9350617527961731,
0.2743757367134094,
-0.08249041438102722,
0.9899062514305115,
0.2784756124019623,
0.960168719291687,
0.02462189272046089,
0.5022733807563782,
-2.4337172508239746,
2.2616546154022217,
-0.24631619453430176,
0.6131900548934937,
0.05868175998330116,
-0.2688494622707367,
1.0939531326293945,
0.6055421233177185,
0.6224168539047241,
-1.1245478391647339,
0.6650763750076294,
-0.5955829620361328,
1.2340624332427979,
0.9367775321006775,
-0.825957179069519,
0.017347507178783417,
1.3391802310943604,
0.4490964114665985,
-0.4431799650192261,
-0.8992864489555359,
-0.9515560865402222,
0.858705461025238,
1.8234658241271973,
-0.08916396647691727,
-0.004472045693546534,
0.7581326365470886,
0.5717571973800659,
-1.3330377340316772,
0.01384973619133234,
-0.7451518177986145,
-0.7818806171417236,
1.6920803785324097,
2.1141936779022217,
-0.1624576300382614,
-0.26114949584007263,
-0.7241352200508118,
-1.298768162727356,
0.8422564268112183,
-0.08313477039337158,
0.20991893112659454,
0.6191592812538147,
-0.6376398205757141,
1.0728527307510376,
0.7983835339546204,
1.087015151977539,
0.18299810588359833,
0.32725194096565247,
0.335562139749527,
-0.36313319206237793,
-1.077146291732788,
-0.25520971417427063,
-1.1331573724746704,
-2.615736246109009,
0.4639118015766144,
-0.2547764480113983,
-1.493748664855957,
0.025885887444019318,
-1.0436750650405884,
0.9028792977333069,
-0.5414687991142273,
-1.0626029968261719,
-1.4305634498596191,
0.21933351457118988,
-0.15250615775585175,
1.0074536800384521,
-1.6713283061981201,
-0.16199280321598053,
1.3427010774612427,
0.9468120336532593,
-0.6508482694625854,
1.0858508348464966,
0.2633662223815918,
1.079175353050232,
0.817575216293335,
-0.38595399260520935,
0.5869170427322388,
0.00195434782654047,
-1.3476107120513916,
0.445515900850296,
1.229547142982483,
0.13971766829490662,
1.4681705236434937,
-0.5187788605690002,
0.047723762691020966,
0.38407570123672485,
-0.6704402565956116,
-0.4550110697746277,
-0.4343491494655609,
0.7083219885826111,
0.07197099924087524,
-1.0010547637939453,
-0.03040715679526329,
-0.07206626236438751,
-0.23025617003440857,
0.13755278289318085,
-1.3700687885284424,
-0.31609001755714417,
-0.35837143659591675,
-0.6173476576805115,
-1.3068561553955078,
-0.027738120406866074,
1.3092318773269653,
-0.8158454298973083,
-0.17949225008487701,
0.3104124963283539,
0.382389098405838,
0.5718979835510254,
0.6716988682746887,
-0.8149555921554565,
-0.45800039172172546,
-0.3021579384803772,
-0.37898170948028564,
0.28632253408432007,
1.3147473335266113,
0.02942027524113655,
-0.9812657237052917,
0.6553263068199158,
-0.36639732122421265,
0.07130970060825348,
1.9659309387207031,
0.01120759081095457,
-0.7856900095939636,
0.23853644728660583,
-0.6286190152168274,
1.856302261352539,
1.6579654216766357,
1.2958887815475464,
-0.11603397876024246,
-0.8699644207954407,
0.6259124279022217,
-0.31373336911201477,
-0.39968112111091614,
0.8783337473869324,
0.477855920791626,
-0.19390437006950378,
-1.459986925125122,
0.6368427872657776,
1.302577018737793,
-0.8472692966461182,
-0.7486582398414612,
0.06338877230882645,
-0.7615788578987122,
1.229533314704895,
0.6644688844680786,
0.35873642563819885,
0.24812741577625275,
1.5925178527832031,
0.7780568599700928,
-0.5666036009788513,
0.5303842425346375,
0.4729311764240265,
-0.1643323004245758,
-2.204388380050659,
-0.9629738926887512,
0.2824658155441284,
-0.41012826561927795,
-1.5197018384933472,
1.497793436050415,
-1.0921381711959839,
-0.9185453653335571,
0.5044727921485901,
0.0777067020535469,
1.3754878044128418,
0.3941398561000824,
1.601678490638733,
2.0992212295532227,
0.9060182571411133,
0.2428959757089615,
1.2198331356048584,
-0.1547115445137024,
-0.4775681793689728,
1.7730385065078735,
-0.44774729013442993,
0.5245468616485596,
1.047124981880188,
-0.3224566578865051,
-1.0024588108062744,
-0.8402669429779053,
-1.1454533338546753,
-0.5944133996963501,
1.1324009895324707,
0.14277848601341248,
-1.1116667985916138,
0.23317845165729523,
1.5816015005111694,
0.08142875134944916,
-0.3232925236225128,
0.6519390940666199,
0.4107711613178253,
-0.7637737989425659,
-0.12402012944221497,
-0.8863071799278259,
0.46772414445877075,
-0.17926330864429474,
-0.336844801902771,
0.3101310729980469,
0.49006107449531555,
1.3233674764633179,
-0.10773082077503204,
0.10133159905672073,
1.143968939781189,
-1.4041303396224976,
1.5128813982009888,
-0.6054877638816833,
0.3338756263256073,
-2.3127589225769043,
1.3653216361999512,
-0.8016332983970642,
1.9581916332244873,
-2.5961873531341553,
0.4335601031780243,
-0.5058301687240601,
-0.41666537523269653,
0.18332929909229279,
-0.4730357527732849,
0.13624398410320282,
-0.14829012751579285,
-1.080201506614685,
-0.06907695531845093,
-0.7631145715713501,
0.6115158796310425,
1.0534074306488037,
1.3583436012268066,
-1.101848840713501,
-0.18290039896965027,
-1.7282298803329468,
-0.1509362906217575,
-0.7687590718269348,
0.2689307928085327,
-1.9926296472549438,
-0.23745813965797424,
-2.0117592811584473,
-2.350724220275879,
-1.34236741065979,
-0.8247653245925903,
1.1182969808578491,
0.21157531440258026,
-0.8620321154594421,
1.146999716758728,
-0.32456812262535095,
-1.9104830026626587,
1.1388823986053467,
-2.14523983001709
] |
https://github.com/huggingface/datasets/issues/4782 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648 | Hi @loubnabnl,
Yes, the issue is solved in the discussion thread.
I will close this issue.
Thank you again for all of your help.
Enrico | ## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
``` | 593 | 25 | pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
## Describe the bug
Following the example in CodeParrot, I receive an array size limitation error when deduplicating larger datasets.
## Steps to reproduce the bug
```python
dataset_name = "the_pile"
ds = load_dataset(dataset_name, split="train")
ds = ds.map(preprocess, num_proc=num_workers)
uniques = set(ds.unique("hash"))
```
Gists for minimum reproducible example:
https://gist.github.com/conceptofmind/c5804428ea1bd89767815f9cd5f02d9a
https://gist.github.com/conceptofmind/feafb07e236f28d79c2d4b28ffbdb6e2
## Expected results
Chunking and writing out a deduplicated dataset.
## Actual results
```
return dataset._data.column(column).unique().to_pylist()
File "pyarrow/table.pxi", line 394, in pyarrow.lib.ChunkedArray.unique
File "pyarrow/_compute.pyx", line 531, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 330, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 124, in pyarrow.lib.check_status
pyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483648
```
Hi @loubnabnl,
Yes, the issue is solved in the discussion thread.
I will close this issue.
Thank you again for all of your help.
Enrico | [
-1.2464864253997803,
-0.7870163321495056,
-0.6644590497016907,
1.4163819551467896,
-0.1842040717601776,
-1.2026859521865845,
0.14404410123825073,
-1.1643364429473877,
1.6625350713729858,
-0.727166473865509,
0.2832656800746918,
-1.6485040187835693,
0.055055540055036545,
-0.4570150077342987,
-0.6879390478134155,
-0.884852945804596,
-0.3583085238933563,
-0.8358684778213501,
1.0421823263168335,
2.4928793907165527,
1.231687068939209,
-1.3109500408172607,
2.7295596599578857,
0.7072927951812744,
-0.2298576980829239,
-1.0306429862976074,
0.599236786365509,
0.023862749338150024,
-1.310196876525879,
-0.5145782232284546,
-0.94994056224823,
-0.024935562163591385,
-0.4857712388038635,
-0.5044592618942261,
0.01627974398434162,
0.3787347376346588,
-0.33827582001686096,
-0.38444051146507263,
-0.6299411058425903,
-0.7470026016235352,
0.482216477394104,
-0.40793853998184204,
0.9577603936195374,
-0.3496154546737671,
1.7728850841522217,
-0.5835200548171997,
0.46039247512817383,
0.730254054069519,
1.3134163618087769,
0.17583173513412476,
-0.022263512015342712,
0.31183481216430664,
0.3350919783115387,
0.04803251475095749,
0.530403196811676,
1.1242930889129639,
0.7026044726371765,
0.4349273443222046,
0.6329788565635681,
-2.1410317420959473,
1.3185665607452393,
-0.9384323954582214,
0.14145928621292114,
1.3314361572265625,
-0.9415789246559143,
0.33433839678764343,
-1.706493854522705,
-0.14171820878982544,
0.544382631778717,
-2.3180553913116455,
0.3244738280773163,
-1.3845751285552979,
-0.5239570140838623,
0.9912072420120239,
0.3249399662017822,
-1.2385238409042358,
0.07813359797000885,
-0.47865208983421326,
1.036700963973999,
0.45579978823661804,
1.0834779739379883,
-1.6080492734909058,
-0.11805139482021332,
-0.3135507106781006,
0.09154176712036133,
-1.3057129383087158,
-1.49957275390625,
0.5419295430183411,
0.6028363108634949,
0.5499080419540405,
-0.06248917058110237,
1.0044562816619873,
-1.103109359741211,
0.7735890746116638,
-0.923712968826294,
-1.721002221107483,
-1.33048415184021,
-2.2891244888305664,
-2.2221126556396484,
0.8701568245887756,
-0.5038970112800598,
-0.5704256296157837,
2.074829339981079,
-1.0576962232589722,
-1.715725302696228,
1.0596768856048584,
0.19055894017219543,
0.005728892050683498,
2.449373245239258,
0.22485467791557312,
-0.7919177412986755,
0.4472482204437256,
-0.7782065868377686,
0.770348310470581,
-0.38807085156440735,
1.391433835029602,
0.4650828242301941,
-1.0125253200531006,
1.5970063209533691,
-0.34746310114860535,
0.5405890345573425,
-0.5873634219169617,
-0.5013604760169983,
-0.7841311097145081,
0.2969267666339874,
1.9095803499221802,
-0.3872523605823517,
1.4980251789093018,
-0.29013580083847046,
-1.5242615938186646,
-1.5813885927200317,
0.8648132085800171,
0.5170098543167114,
-0.7521576881408691,
0.05319775268435478,
-0.3755875527858734,
0.1451478749513626,
-0.023491334170103073,
1.0851168632507324,
1.3630328178405762,
0.8133722543716431,
-0.3897092342376709,
-0.8838047981262207,
0.11504234373569489,
-0.12779471278190613,
-0.6633694767951965,
-1.823215365409851,
-0.3337956666946411,
0.10705453157424927,
0.6430662870407104,
-1.2469886541366577,
1.667603611946106,
0.9293438792228699,
1.8737056255340576,
1.0103659629821777,
-0.3777500092983246,
1.5090492963790894,
0.08656348288059235,
1.8599662780761719,
-0.49460479617118835,
0.5847846865653992,
-0.3588847815990448,
-1.1809285879135132,
0.8588138818740845,
-0.21167072653770447,
-1.9559454917907715,
-0.7982179522514343,
-0.6606209874153137,
-0.13895483314990997,
-0.833501398563385,
0.9474747776985168,
-0.3081871271133423,
-1.41981840133667,
0.3003722131252289,
-0.7643782496452332,
0.08519873023033142,
-1.2907214164733887,
0.2988661825656891,
0.602882444858551,
-0.6178936958312988,
0.037671394646167755,
-0.24639973044395447,
-1.2071516513824463,
-0.4323846101760864,
0.12507550418376923,
1.8784983158111572,
-0.6787034273147583,
0.9556159377098083,
1.0967544317245483,
-0.7367444634437561,
-0.03692132979631424,
0.3141476809978485,
-0.3483569622039795,
0.7892061471939087,
-1.1643027067184448,
-0.3773097097873688,
1.1578813791275024,
-0.1471468210220337,
-0.6398621201515198,
1.4493378400802612,
0.827696681022644,
-0.9975161552429199,
-0.2415044605731964,
-0.11098957061767578,
-0.8443074226379395,
0.08877462148666382,
-1.5809320211410522,
-0.1697685569524765,
0.4444689154624939,
-1.5359814167022705,
-0.30781471729278564,
-0.17004375159740448,
1.2926185131072998,
-0.13637596368789673,
1.447243094444275,
-0.3278205692768097,
-0.11454562842845917,
-0.2710895240306854,
-0.3465917408466339,
0.08857773244380951,
-0.09686559438705444,
-0.5832640528678894,
0.251005083322525,
-0.8100080490112305,
0.3064296841621399,
1.4361321926116943,
0.3966856598854065,
0.019878864288330078,
0.48966318368911743,
1.0254340171813965,
0.3778199851512909,
-0.10965731739997864,
-0.8902605772018433,
-1.5535732507705688,
2.03415584564209,
-1.4488699436187744,
2.0125014781951904,
0.8281211256980896,
-0.07010070979595184,
-1.8412299156188965,
-1.8545334339141846,
1.2773361206054688,
1.1079802513122559,
2.3636815547943115,
0.5563503503799438,
0.4252742826938629,
-0.7488439679145813,
-0.7207204699516296,
0.32416093349456787,
-1.1241790056228638,
-0.6753928661346436,
0.28424015641212463,
2.4169955253601074,
1.654922366142273,
-0.4280363619327545,
-0.19178950786590576,
-0.9682685136795044,
1.2929775714874268,
-0.14206759631633759,
0.187087282538414,
1.987394094467163,
-0.182826966047287,
-1.0292125940322876,
1.2156819105148315,
-2.34987211227417,
0.1676037311553955,
2.0602214336395264,
0.26224833726882935,
0.10038845241069794,
-1.4118798971176147,
-0.6756188273429871,
-0.383492648601532,
-0.4563291370868683,
-1.263043761253357,
0.5642076134681702,
-0.31730854511260986,
-0.834189236164093,
-1.5302410125732422,
0.14075274765491486,
-1.2435017824172974,
-1.791459560394287,
0.22131122648715973,
1.937663197517395,
2.064851999282837,
-0.7215549349784851,
1.5609991550445557,
-0.32946038246154785,
0.09900267422199249,
1.2648848295211792,
1.2538764476776123,
3.0235519409179688,
1.8069345951080322,
-1.3253507614135742,
0.7354637980461121,
-0.19653311371803284,
-0.44316112995147705,
1.0568335056304932,
-1.1964006423950195,
1.2105743885040283,
-0.09925316274166107,
-1.2362821102142334,
-1.197529911994934,
0.9982699155807495,
0.4773481488227844,
0.02306128293275833,
-0.3835742175579071,
1.2730010747909546,
0.15283645689487457,
1.4288827180862427,
0.5449761152267456,
-0.22315993905067444,
0.6894160509109497,
-0.3443617820739746,
-0.4796854257583618,
1.625932216644287,
0.22681722044944763,
-1.4124202728271484,
-2.3135311603546143,
-0.3219881057739258,
-0.8417314291000366,
-0.042509764432907104,
-0.49117863178253174,
-1.043836236000061,
1.6086139678955078,
0.3978079855442047,
-1.23344087600708,
-0.2739396393299103,
-0.26777341961860657,
-0.5320215821266174,
2.6787359714508057,
-1.2609552145004272,
-0.15519003570079803,
-0.9038419127464294,
-0.6214090585708618,
1.6116214990615845,
-1.178653597831726,
-0.2369852513074875,
-0.9925974011421204,
-0.5208694338798523,
-1.2725645303726196,
-0.6215212345123291,
-0.02301882952451706,
-0.9830313324928284,
0.6333596706390381,
0.2943216860294342,
-1.0755815505981445,
-0.3579563796520233,
-0.83619225025177,
0.9274545311927795,
-0.05813981592655182,
0.19223439693450928,
1.8798599243164062,
0.3888954818248749,
-0.4266217350959778,
0.7130426168441772,
1.0456981658935547,
0.5194907188415527,
-0.6196303963661194,
0.13086043298244476,
-0.7374234795570374,
0.30203482508659363,
-1.2852457761764526,
0.2386227548122406,
-2.9097564220428467,
0.6639097332954407,
-0.1440763920545578,
-0.0695999264717102,
-0.0392255075275898,
-1.2768909931182861,
1.16774320602417,
2.6727542877197266,
-1.1055176258087158,
0.5475229024887085,
0.33803197741508484,
1.1296004056930542,
-1.5727604627609253,
0.4486110806465149,
-0.37095579504966736,
2.1074774265289307,
0.28892263770103455,
1.2624074220657349,
-0.49290773272514343,
-2.3537912368774414,
0.7075933218002319,
-1.2277113199234009,
-1.258798360824585,
0.7753484845161438,
-0.9218733906745911,
0.09207494556903839,
-1.4038147926330566,
-0.1781165599822998,
-0.8246623277664185,
-1.239234209060669,
0.6861592531204224,
0.09228381514549255,
0.4063236713409424,
-0.6170533299446106,
0.34270453453063965,
-2.1682076454162598,
-1.2829958200454712,
-0.1888989955186844,
-0.9563789963722229,
0.541281521320343,
-0.37029266357421875,
0.659458577632904,
-0.13665835559368134,
0.0031821848824620247,
0.4483477771282196,
1.459859013557434,
3.4443960189819336,
0.16845355927944183,
0.28337281942367554,
-0.17773999273777008,
-0.9851710200309753,
1.4487950801849365,
0.901942253112793,
-0.1972852647304535,
-0.6420590281486511,
-1.0256969928741455,
1.227559208869934,
2.0058069229125977,
0.9295640587806702,
0.11151115596294403,
-0.8095780611038208,
-0.7561812996864319,
0.04255370795726776,
0.1460822969675064,
0.43093520402908325,
0.9556827545166016,
0.06000079587101936,
0.014380116015672684,
1.4938838481903076,
1.2087912559509277,
-0.48386284708976746,
0.3286699056625366,
-0.888424813747406,
-0.3941754996776581,
0.5252087712287903,
0.1961790919303894,
-0.05246846377849579,
0.38315388560295105,
-1.0182104110717773,
-0.2340298295021057,
-0.3122401833534241,
-0.9091519713401794,
-0.8060580492019653,
-0.3728767931461334,
-0.3739243447780609,
1.7249455451965332,
0.1226145476102829,
-0.39789628982543945,
0.05567116662859917,
-0.782918393611908,
-0.11508569121360779,
-1.1569215059280396,
0.20715320110321045,
-0.15832801163196564,
-0.07589969038963318,
-0.026753311976790428,
1.8991422653198242,
-0.9192401766777039,
-2.069258213043213,
0.2548314929008484,
0.2578662931919098,
-0.20448945462703705,
0.28081613779067993,
1.7485796213150024,
0.6276142001152039,
1.4632682800292969,
1.2857506275177002,
0.9682682752609253,
-0.6141248345375061,
-1.3226814270019531,
0.7273902893066406,
0.9371752142906189,
-1.3457304239273071,
0.8007198572158813,
-0.07847869396209717,
-0.43635472655296326,
0.6083067655563354,
1.3296399116516113,
0.47392573952674866,
-2.0542421340942383,
0.8930457234382629,
-0.8887359499931335,
0.642811119556427,
0.6934438347816467,
0.7159677743911743,
0.1673905849456787,
0.8396856188774109,
-1.228790044784546,
-1.1596386432647705,
-0.7656378149986267,
-0.644550621509552,
1.9563177824020386,
-0.28302738070487976,
0.61152184009552,
-0.16312338411808014,
-1.2931472063064575,
-0.059713564813137054,
0.6596652865409851,
0.2977135181427002,
-0.4369991421699524,
0.8399680256843567,
-0.7324712872505188,
-1.1573652029037476,
-1.4864931106567383,
-0.45225539803504944,
-1.037919044494629,
-0.943004846572876,
0.9356763958930969,
0.6849273443222046,
0.27415111660957336,
1.8839529752731323,
0.6161030530929565,
0.23213797807693481,
-2.6664414405822754,
0.9299861788749695,
0.2607381045818329,
-0.08858296275138855,
0.9897252917289734,
0.2807302474975586,
0.9422158002853394,
0.0144068393856287,
0.49694982171058655,
-2.4314827919006348,
2.2836358547210693,
-0.25552740693092346,
0.6209699511528015,
0.06281138956546783,
-0.27344414591789246,
1.086962342262268,
0.6157293319702148,
0.6399263739585876,
-1.1127618551254272,
0.6521902680397034,
-0.5911365747451782,
1.2642463445663452,
0.9462541341781616,
-0.8184275031089783,
0.00880327820777893,
1.337912678718567,
0.4678606688976288,
-0.4600244462490082,
-0.8871151208877563,
-0.9645705223083496,
0.8355231881141663,
1.8139042854309082,
-0.09894052147865295,
-0.013040256686508656,
0.7449831962585449,
0.5608329772949219,
-1.3223636150360107,
0.027318626642227173,
-0.7545000314712524,
-0.789860725402832,
1.682220458984375,
2.1238348484039307,
-0.1751268357038498,
-0.27392128109931946,
-0.7231233716011047,
-1.2871001958847046,
0.85897296667099,
-0.08646625280380249,
0.21242325007915497,
0.5920873880386353,
-0.6186487078666687,
1.048589825630188,
0.825018584728241,
1.096998691558838,
0.20687969028949738,
0.32917770743370056,
0.33279910683631897,
-0.36393260955810547,
-1.0616523027420044,
-0.22849343717098236,
-1.121508002281189,
-2.630239248275757,
0.4657270312309265,
-0.2538526952266693,
-1.502038598060608,
0.028543047606945038,
-1.0406737327575684,
0.9130621552467346,
-0.5152808427810669,
-1.0610793828964233,
-1.4371428489685059,
0.20865733921527863,
-0.1564846932888031,
1.0514699220657349,
-1.6874077320098877,
-0.1573837548494339,
1.362460732460022,
0.9313399791717529,
-0.6726634502410889,
1.0862756967544556,
0.2625897228717804,
1.1045069694519043,
0.8092708587646484,
-0.39390841126441956,
0.5732317566871643,
-0.007933118380606174,
-1.3405436277389526,
0.46525269746780396,
1.2180360555648804,
0.1429756134748459,
1.4619996547698975,
-0.5324582457542419,
0.068772092461586,
0.380685418844223,
-0.6692430973052979,
-0.4549882709980011,
-0.41733160614967346,
0.712654173374176,
0.06325680017471313,
-0.9881648421287537,
-0.018370207399129868,
-0.07231606543064117,
-0.22769054770469666,
0.10504086315631866,
-1.3567121028900146,
-0.30618515610694885,
-0.3593917191028595,
-0.6164787411689758,
-1.2935082912445068,
-0.053241949528455734,
1.2920087575912476,
-0.7817608714103699,
-0.16423363983631134,
0.3159142732620239,
0.41048353910446167,
0.5776433348655701,
0.6761037707328796,
-0.8235864043235779,
-0.47371941804885864,
-0.2886812090873718,
-0.37970229983329773,
0.2936733067035675,
1.3211913108825684,
0.023948218673467636,
-0.9703399538993835,
0.6598972082138062,
-0.34631624817848206,
0.07312412559986115,
1.945827841758728,
0.017931237816810608,
-0.798143744468689,
0.22053541243076324,
-0.6136395931243896,
1.8782297372817993,
1.6659777164459229,
1.298203468322754,
-0.11533385515213013,
-0.9023451805114746,
0.6302400827407837,
-0.33632487058639526,
-0.40521344542503357,
0.8648539781570435,
0.49362441897392273,
-0.18219265341758728,
-1.449599027633667,
0.6442195177078247,
1.2960690259933472,
-0.8270208239555359,
-0.7695153951644897,
0.06781432032585144,
-0.7292330861091614,
1.2187877893447876,
0.660868763923645,
0.37124404311180115,
0.26201680302619934,
1.6046974658966064,
0.7747693061828613,
-0.583412766456604,
0.5533832907676697,
0.46783512830734253,
-0.16156531870365143,
-2.203401803970337,
-1.008498191833496,
0.2901141345500946,
-0.4313121736049652,
-1.5361526012420654,
1.50385320186615,
-1.0832322835922241,
-0.9085217714309692,
0.5142505764961243,
0.08106572926044464,
1.391458511352539,
0.4031776487827301,
1.5724778175354004,
2.0793497562408447,
0.9003964066505432,
0.25370630621910095,
1.2304564714431763,
-0.14826425909996033,
-0.49120259284973145,
1.7652417421340942,
-0.4469255208969116,
0.5143119096755981,
1.0513991117477417,
-0.3123556077480316,
-1.0069668292999268,
-0.8417076468467712,
-1.1252115964889526,
-0.5812591314315796,
1.1254066228866577,
0.12724532186985016,
-1.1066887378692627,
0.2470840960741043,
1.601922631263733,
0.08227717876434326,
-0.35312730073928833,
0.6406121253967285,
0.39771509170532227,
-0.7626212239265442,
-0.14070981740951538,
-0.9074227809906006,
0.47693997621536255,
-0.18107765913009644,
-0.3511057496070862,
0.3449152708053589,
0.4792249798774719,
1.3329124450683594,
-0.10726717114448547,
0.11594484746456146,
1.1405112743377686,
-1.4082653522491455,
1.5191624164581299,
-0.61387038230896,
0.32535025477409363,
-2.283797264099121,
1.3714985847473145,
-0.7809394598007202,
1.9369523525238037,
-2.5994513034820557,
0.42630115151405334,
-0.5097047686576843,
-0.41159358620643616,
0.18268705904483795,
-0.47564953565597534,
0.16828523576259613,
-0.15527871251106262,
-1.0906305313110352,
-0.08143016695976257,
-0.7707882523536682,
0.600947380065918,
1.053178071975708,
1.3489879369735718,
-1.0893731117248535,
-0.18039783835411072,
-1.723232388496399,
-0.1353733241558075,
-0.7577639222145081,
0.2680630683898926,
-1.9949373006820679,
-0.2549844980239868,
-2.0130748748779297,
-2.357213258743286,
-1.3295557498931885,
-0.8059430122375488,
1.1376274824142456,
0.20215725898742676,
-0.8604305982589722,
1.1618201732635498,
-0.32251599431037903,
-1.9276299476623535,
1.1307929754257202,
-2.1388955116271973
] |
https://github.com/huggingface/datasets/issues/4776 | RuntimeError when using torchaudio 0.12.0 to load MP3 audio file | Requiring torchaudio<0.12.0 isn't really a viable solution because that implies torch<0.12.0 which means no sm_86 CUDA support which means no RTX 3090 support in PyTorch.
But in my case, the error only occurs if `_fallback_load` resolves to `_fail_load` inside torchaudio 0.12.0 which is only the case if FFMPEG initialization failed: https://github.com/pytorch/audio/blob/b1f510fa5681e92ee82bdc6b2d1ed896799fc32c/torchaudio/backend/sox_io_backend.py#L36-L47
That means the proper solution for torchaudio>=0.12.0 is to check `torchaudio._extension._FFMPEG_INITIALIZED` and if it is False, then we need to remind the user to install a dynamically linked ffmpeg 4.1.8 and then maybe call `torchaudio._extension._init_ffmpeg()` to force a user-visible exception showing the missing ffmpeg dynamic library name.
On my system, installing
- libavcodec.so.58
- libavdevice.so.58
- libavfilter.so.7
- libavformat.so.58
- libavutil.so.56
- libswresample.so.3
- libswscale.so.5
from ffmpeg 4.1.8 made HF datasets 2.3.2 work just fine with torchaudio 0.12.1+cu116:
```python3
import sox, torchaudio, datasets
print('torchaudio', torchaudio.__version__)
print('datasets', datasets.__version__)
torchaudio._extension._init_ffmpeg()
print(torchaudio._extension._FFMPEG_INITIALIZED)
waveform, sample_rate = torchaudio.load('/workspace/.cache/huggingface/datasets/downloads/extracted/8e5aa88585efa2a4c74c6664b576550d32b7ff9c3d1d17cc04f44f11338c3dc6/cv-corpus-8.0-2022-01-19/en/clips/common_voice_en_100038.mp3', format='mp3')
print(waveform.shape)
```
```
torchaudio 0.12.1+cu116
datasets 2.3.2
True
torch.Size([1, 369792])
``` | Current version of `torchaudio` (0.12.0) raises a RuntimeError when trying to use `sox_io` backend but non-Python dependency `sox` is not installed:
https://github.com/pytorch/audio/blob/2e1388401c434011e9f044b40bc8374f2ddfc414/torchaudio/backend/sox_io_backend.py#L21-L29
```python
def _fail_load(
filepath: str,
frame_offset: int = 0,
num_frames: int = -1,
normalize: bool = True,
channels_first: bool = True,
format: Optional[str] = None,
) -> Tuple[torch.Tensor, int]:
raise RuntimeError("Failed to load audio from {}".format(filepath))
```
Maybe we should raise a more actionable error message so that the user knows how to fix it.
UPDATE:
- this is an incompatibility of latest torchaudio (0.12.0) and the sox backend
TODO:
- [x] as a temporary solution, we should recommend installing torchaudio<0.12.0
- #4777
- #4785
- [ ] however, a stable solution must be found for torchaudio>=0.12.0
Related to:
- https://github.com/huggingface/transformers/issues/18379 | 594 | 156 | RuntimeError when using torchaudio 0.12.0 to load MP3 audio file
Current version of `torchaudio` (0.12.0) raises a RuntimeError when trying to use `sox_io` backend but non-Python dependency `sox` is not installed:
https://github.com/pytorch/audio/blob/2e1388401c434011e9f044b40bc8374f2ddfc414/torchaudio/backend/sox_io_backend.py#L21-L29
```python
def _fail_load(
filepath: str,
frame_offset: int = 0,
num_frames: int = -1,
normalize: bool = True,
channels_first: bool = True,
format: Optional[str] = None,
) -> Tuple[torch.Tensor, int]:
raise RuntimeError("Failed to load audio from {}".format(filepath))
```
Maybe we should raise a more actionable error message so that the user knows how to fix it.
UPDATE:
- this is an incompatibility of latest torchaudio (0.12.0) and the sox backend
TODO:
- [x] as a temporary solution, we should recommend installing torchaudio<0.12.0
- #4777
- #4785
- [ ] however, a stable solution must be found for torchaudio>=0.12.0
Related to:
- https://github.com/huggingface/transformers/issues/18379
Requiring torchaudio<0.12.0 isn't really a viable solution because that implies torch<0.12.0 which means no sm_86 CUDA support which means no RTX 3090 support in PyTorch.
But in my case, the error only occurs if `_fallback_load` resolves to `_fail_load` inside torchaudio 0.12.0 which is only the case if FFMPEG initialization failed: https://github.com/pytorch/audio/blob/b1f510fa5681e92ee82bdc6b2d1ed896799fc32c/torchaudio/backend/sox_io_backend.py#L36-L47
That means the proper solution for torchaudio>=0.12.0 is to check `torchaudio._extension._FFMPEG_INITIALIZED` and if it is False, then we need to remind the user to install a dynamically linked ffmpeg 4.1.8 and then maybe call `torchaudio._extension._init_ffmpeg()` to force a user-visible exception showing the missing ffmpeg dynamic library name.
On my system, installing
- libavcodec.so.58
- libavdevice.so.58
- libavfilter.so.7
- libavformat.so.58
- libavutil.so.56
- libswresample.so.3
- libswscale.so.5
from ffmpeg 4.1.8 made HF datasets 2.3.2 work just fine with torchaudio 0.12.1+cu116:
```python3
import sox, torchaudio, datasets
print('torchaudio', torchaudio.__version__)
print('datasets', datasets.__version__)
torchaudio._extension._init_ffmpeg()
print(torchaudio._extension._FFMPEG_INITIALIZED)
waveform, sample_rate = torchaudio.load('/workspace/.cache/huggingface/datasets/downloads/extracted/8e5aa88585efa2a4c74c6664b576550d32b7ff9c3d1d17cc04f44f11338c3dc6/cv-corpus-8.0-2022-01-19/en/clips/common_voice_en_100038.mp3', format='mp3')
print(waveform.shape)
```
```
torchaudio 0.12.1+cu116
datasets 2.3.2
True
torch.Size([1, 369792])
``` | [
-1.2432869672775269,
-0.8229113817214966,
-0.7205824255943298,
1.5227446556091309,
-0.1642196774482727,
-1.1369973421096802,
0.1273902952671051,
-1.0194225311279297,
1.578498125076294,
-0.8072033524513245,
0.33606478571891785,
-1.5881932973861694,
0.04025345295667648,
-0.5996756553649902,
-0.7728900909423828,
-0.7923003435134888,
-0.3499218225479126,
-0.7856786847114563,
1.0614886283874512,
2.5494439601898193,
1.3480247259140015,
-1.4295892715454102,
2.7304837703704834,
0.8125787377357483,
-0.35479721426963806,
-1.0908883810043335,
0.4538283050060272,
0.0553424172103405,
-1.3355988264083862,
-0.46051013469696045,
-0.9038305282592773,
-0.011894043534994125,
-0.5598189234733582,
-0.5324034094810486,
-0.03500710055232048,
0.356514573097229,
-0.28502359986305237,
-0.39648500084877014,
-0.5018610954284668,
-0.769900918006897,
0.4308527112007141,
-0.4015173316001892,
0.8937020301818848,
-0.17463558912277222,
1.7150464057922363,
-0.6097613573074341,
0.45029017329216003,
0.6888090372085571,
1.2998156547546387,
0.21410463750362396,
-0.022341247648000717,
0.3357203006744385,
0.40282419323921204,
-0.07109037786722183,
0.5151011347770691,
1.1744050979614258,
0.7522847652435303,
0.4188172221183777,
0.6948596239089966,
-2.2081212997436523,
1.357765793800354,
-0.941632866859436,
0.1859307438135147,
1.3337790966033936,
-1.0038247108459473,
0.31245332956314087,
-1.837831735610962,
-0.08202401548624039,
0.5310538411140442,
-2.294236421585083,
0.37907442450523376,
-1.2955784797668457,
-0.6280449628829956,
0.9696180820465088,
0.29436296224594116,
-1.2874140739440918,
0.17892982065677643,
-0.465734601020813,
0.9867979288101196,
0.4313225746154785,
1.0652772188186646,
-1.7180637121200562,
-0.13496637344360352,
-0.2830730974674225,
0.12827681005001068,
-1.2089942693710327,
-1.5223875045776367,
0.5343778729438782,
0.5615751147270203,
0.6544925570487976,
-0.07847364991903305,
1.0468307733535767,
-1.0327860116958618,
0.9133922457695007,
-1.1301740407943726,
-1.7265735864639282,
-1.4339977502822876,
-2.270313262939453,
-2.2278401851654053,
0.7683272361755371,
-0.4703036844730377,
-0.5280529856681824,
2.0814573764801025,
-1.128532886505127,
-1.7498565912246704,
1.109268307685852,
0.33576512336730957,
-0.0713534951210022,
2.4335720539093018,
0.1581372767686844,
-0.7547036409378052,
0.4886232614517212,
-0.8238627910614014,
0.7678594589233398,
-0.4280012547969818,
1.3456265926361084,
0.4565703868865967,
-1.0390489101409912,
1.5601696968078613,
-0.3447194993495941,
0.5855532884597778,
-0.7759316563606262,
-0.473849356174469,
-0.7586851119995117,
0.3109222948551178,
1.8935455083847046,
-0.32726630568504333,
1.4955086708068848,
-0.34306755661964417,
-1.5279556512832642,
-1.4874539375305176,
0.898034393787384,
0.527239203453064,
-0.8663737773895264,
0.1686650514602661,
-0.4411771595478058,
0.09917288273572922,
-0.03849382326006889,
1.0244137048721313,
1.2848381996154785,
0.7289022207260132,
-0.26567673683166504,
-0.9553307294845581,
0.14119821786880493,
-0.09981171786785126,
-0.6799448728561401,
-1.7855943441390991,
-0.2954007387161255,
0.15668967366218567,
0.6877208352088928,
-1.239375352859497,
1.7282856702804565,
0.9309752583503723,
1.9331295490264893,
1.0070621967315674,
-0.4497740566730499,
1.4999580383300781,
0.014406572096049786,
1.8195295333862305,
-0.5074544548988342,
0.7213175296783447,
-0.40408411622047424,
-1.1532351970672607,
0.9391087293624878,
-0.31114813685417175,
-2.0047929286956787,
-0.6991859674453735,
-0.6796349883079529,
-0.23420526087284088,
-0.8463438153266907,
0.9955193996429443,
-0.22227586805820465,
-1.3222962617874146,
0.2211400717496872,
-0.6899109482765198,
0.15167304873466492,
-1.2783536911010742,
0.30042123794555664,
0.7557008862495422,
-0.595568835735321,
0.06979472935199738,
-0.23696286976337433,
-1.2749748229980469,
-0.503648579120636,
0.29727381467819214,
1.7999141216278076,
-0.6601578593254089,
0.9368466138839722,
1.0072287321090698,
-0.663911759853363,
0.04630625620484352,
0.34842607378959656,
-0.3213394284248352,
0.8526405692100525,
-1.004378080368042,
-0.35721972584724426,
1.1875067949295044,
-0.15340757369995117,
-0.5866515040397644,
1.439251184463501,
0.7910999655723572,
-1.0107427835464478,
-0.22317622601985931,
-0.13573074340820312,
-0.7757315635681152,
0.06123295798897743,
-1.5963369607925415,
-0.17381815612316132,
0.4162336587905884,
-1.51462721824646,
-0.4162573218345642,
-0.2548595368862152,
1.3411436080932617,
-0.24679157137870789,
1.4929958581924438,
-0.31043723225593567,
-0.12282770872116089,
-0.31443050503730774,
-0.28292882442474365,
0.0818721279501915,
-0.15813881158828735,
-0.6133472323417664,
0.2787446081638336,
-0.7783417105674744,
0.3797124922275543,
1.4914861917495728,
0.2994571924209595,
0.1122928038239479,
0.3719918429851532,
1.0736719369888306,
0.37061119079589844,
-0.07021598517894745,
-0.9371119141578674,
-1.5380903482437134,
2.1225476264953613,
-1.4812523126602173,
2.075573205947876,
0.8980637788772583,
0.0010200822725892067,
-1.702405571937561,
-1.8443580865859985,
1.3182847499847412,
1.1144264936447144,
2.3830180168151855,
0.5846501588821411,
0.4252540171146393,
-0.7435002326965332,
-0.6286945939064026,
0.31461527943611145,
-1.056658148765564,
-0.742108941078186,
0.15299992263317108,
2.503277540206909,
1.7138242721557617,
-0.40601038932800293,
-0.20691008865833282,
-0.9830237627029419,
1.3491688966751099,
-0.1681288629770279,
0.20908057689666748,
1.9652029275894165,
-0.20300009846687317,
-1.0327448844909668,
1.2251085042953491,
-2.354609251022339,
0.24712900817394257,
2.0243659019470215,
0.26065948605537415,
0.07782909274101257,
-1.3357776403427124,
-0.6171503067016602,
-0.266294926404953,
-0.5096482038497925,
-1.2393252849578857,
0.5726382732391357,
-0.2997097373008728,
-0.8426799178123474,
-1.5257470607757568,
0.1405005156993866,
-1.117351770401001,
-1.6596481800079346,
0.3208431005477905,
1.8843672275543213,
2.052982807159424,
-0.8249363303184509,
1.532361388206482,
-0.2980124354362488,
0.06382068246603012,
1.1777560710906982,
1.207663655281067,
3.105855703353882,
1.8667370080947876,
-1.2718501091003418,
0.6297567486763,
-0.2691757082939148,
-0.46541789174079895,
1.0827440023422241,
-1.2075241804122925,
1.2351503372192383,
-0.22219061851501465,
-1.255679726600647,
-1.2548059225082397,
0.9863862991333008,
0.443082720041275,
0.10535716265439987,
-0.5718135833740234,
1.1259053945541382,
0.17675015330314636,
1.3095173835754395,
0.5686346292495728,
-0.13602763414382935,
0.6192898750305176,
-0.422849178314209,
-0.46038317680358887,
1.6331769227981567,
0.18239423632621765,
-1.4267774820327759,
-2.3786394596099854,
-0.21602840721607208,
-0.8385640978813171,
0.042798809707164764,
-0.5782375335693359,
-1.043545126914978,
1.681268572807312,
0.3355060815811157,
-1.2225581407546997,
-0.265127569437027,
-0.3135046362876892,
-0.479758620262146,
2.679641008377075,
-1.4024631977081299,
-0.16011665761470795,
-1.0182721614837646,
-0.5943459868431091,
1.6898726224899292,
-1.1640675067901611,
-0.21167057752609253,
-1.0154917240142822,
-0.5590660572052002,
-1.2436007261276245,
-0.5023068189620972,
-0.01928824745118618,
-0.9000524878501892,
0.7154309749603271,
0.25041666626930237,
-1.1908680200576782,
-0.3740384578704834,
-0.8587754368782043,
0.8587769269943237,
-0.12060251832008362,
0.23632298409938812,
1.8791509866714478,
0.4165385365486145,
-0.3782235085964203,
0.8463980555534363,
1.1324472427368164,
0.5744993090629578,
-0.6089938879013062,
0.17864911258220673,
-0.6699948310852051,
0.25070953369140625,
-1.2865792512893677,
0.2850290536880493,
-2.7691428661346436,
0.6192640662193298,
-0.0022584646940231323,
-0.04419761151075363,
-0.022530246526002884,
-1.2739876508712769,
1.2526997327804565,
2.5626347064971924,
-1.0957305431365967,
0.6198094487190247,
0.30569806694984436,
1.1219433546066284,
-1.531217098236084,
0.245187446475029,
-0.39172402024269104,
2.203545331954956,
0.24598674476146698,
1.273271918296814,
-0.48811236023902893,
-2.4200541973114014,
0.6052191257476807,
-1.2069196701049805,
-1.1334307193756104,
0.7679861187934875,
-0.8471039533615112,
0.04904176667332649,
-1.3883317708969116,
-0.2211720198392868,
-0.9580230116844177,
-1.1663373708724976,
0.7564977407455444,
0.08796173334121704,
0.48698025941848755,
-0.69498610496521,
0.36337611079216003,
-2.20208740234375,
-1.429138422012329,
-0.21139323711395264,
-0.9329718947410583,
0.46856245398521423,
-0.37044256925582886,
0.6543036699295044,
-0.16313059628009796,
-0.06609492003917694,
0.3512183427810669,
1.4513822793960571,
3.3843092918395996,
0.23550526797771454,
0.4039502739906311,
-0.21016669273376465,
-0.9638592004776001,
1.3836456537246704,
0.8757264018058777,
-0.0719657763838768,
-0.6423069834709167,
-0.9847989082336426,
1.2229268550872803,
1.9827567338943481,
0.953991174697876,
-0.03466842323541641,
-0.8766017556190491,
-0.7719728946685791,
-0.04245378077030182,
0.2103860080242157,
0.44121697545051575,
0.9473035931587219,
-0.02602345123887062,
-0.00352718448266387,
1.3995511531829834,
1.2016481161117554,
-0.5026606321334839,
0.3563185930252075,
-0.9022067785263062,
-0.36637601256370544,
0.3895230293273926,
0.31905826926231384,
0.0011107316240668297,
0.45883840322494507,
-1.0351860523223877,
-0.27298006415367126,
-0.405891090631485,
-0.9097434282302856,
-0.8006449341773987,
-0.38074079155921936,
-0.34549158811569214,
1.721566081047058,
0.04810597002506256,
-0.4015514552593231,
0.032332029193639755,
-0.7807673215866089,
-0.09876133501529694,
-1.0445533990859985,
0.269700288772583,
-0.11673960834741592,
-0.08268482238054276,
-0.1017407700419426,
1.7875142097473145,
-0.9882047176361084,
-1.9749131202697754,
0.29323065280914307,
0.16065436601638794,
-0.3738418221473694,
0.2616865634918213,
1.8086910247802734,
0.5697466135025024,
1.467936396598816,
1.326176404953003,
0.9420850276947021,
-0.6231414675712585,
-1.2796411514282227,
0.6898264288902283,
1.0375115871429443,
-1.3836272954940796,
0.8649504780769348,
0.007393865846097469,
-0.5229012370109558,
0.639746904373169,
1.307008981704712,
0.4629870355129242,
-2.1010289192199707,
0.7764855027198792,
-0.9050314426422119,
0.8632551431655884,
0.6694103479385376,
0.6822974681854248,
0.16796207427978516,
0.812808096408844,
-1.242247223854065,
-1.1388527154922485,
-0.7156929969787598,
-0.6532604098320007,
2.0146923065185547,
-0.32230961322784424,
0.5506529211997986,
-0.15210160613059998,
-1.2803955078125,
-0.09207456558942795,
0.6826269626617432,
0.32452622056007385,
-0.46372056007385254,
0.7895162105560303,
-0.5991995930671692,
-1.1376358270645142,
-1.349718689918518,
-0.5419115424156189,
-0.974389910697937,
-0.9771066308021545,
1.0636048316955566,
0.7953599691390991,
0.3477504253387451,
1.9623454809188843,
0.6131949424743652,
0.19379054009914398,
-2.656503677368164,
0.9252399206161499,
0.287704199552536,
-0.09509545564651489,
0.9396625757217407,
0.27511051297187805,
0.9850388765335083,
0.029514875262975693,
0.5429028868675232,
-2.465571165084839,
2.199228048324585,
-0.2534656822681427,
0.687190055847168,
0.02922748401761055,
-0.1576400101184845,
1.0648632049560547,
0.5466328859329224,
0.5100530982017517,
-1.188657522201538,
0.6963340640068054,
-0.5569683313369751,
1.2630634307861328,
0.8119082450866699,
-0.852066159248352,
-0.025367673486471176,
1.286087155342102,
0.33099275827407837,
-0.48146265745162964,
-0.8685510754585266,
-0.9656813144683838,
0.9429613947868347,
1.721545696258545,
-0.08030110597610474,
0.055643852800130844,
0.8523964285850525,
0.7084892988204956,
-1.2874196767807007,
0.06426122784614563,
-0.6745901703834534,
-0.7933772206306458,
1.636466383934021,
2.13433837890625,
-0.15420278906822205,
-0.26650673151016235,
-0.7243326902389526,
-1.2583204507827759,
0.8421509861946106,
-0.027563776820898056,
0.1505023092031479,
0.6523697972297668,
-0.6058963537216187,
1.1358665227890015,
0.7632660865783691,
0.9668129682540894,
0.1464201807975769,
0.24886612594127655,
0.40175244212150574,
-0.37205958366394043,
-1.1182992458343506,
-0.2709026634693146,
-1.1225740909576416,
-2.597322463989258,
0.42956238985061646,
-0.13904114067554474,
-1.3806335926055908,
0.03286782279610634,
-1.0518078804016113,
0.7990490198135376,
-0.6162942051887512,
-1.0485930442810059,
-1.4379314184188843,
0.20394180715084076,
-0.14253786206245422,
0.9020057320594788,
-1.588007926940918,
-0.04215896129608154,
1.2347363233566284,
0.9053135514259338,
-0.5592116713523865,
1.0455507040023804,
0.20736953616142273,
1.0195471048355103,
0.8754129409790039,
-0.36830684542655945,
0.5330917239189148,
0.14140106737613678,
-1.400712251663208,
0.3767470717430115,
1.2553143501281738,
0.22402392327785492,
1.5057231187820435,
-0.5296310782432556,
-0.05383975803852081,
0.43269166350364685,
-0.5282276272773743,
-0.5065823793411255,
-0.5138283371925354,
0.7420768141746521,
0.1603153795003891,
-1.0159977674484253,
0.011567183770239353,
-0.15716597437858582,
-0.1731269210577011,
0.17101061344146729,
-1.4603041410446167,
-0.13876193761825562,
-0.3986150026321411,
-0.5345085859298706,
-1.2964345216751099,
-0.029040232300758362,
1.3148289918899536,
-0.76434326171875,
-0.11963261663913727,
0.43288013339042664,
0.3267669677734375,
0.45772331953048706,
0.627133846282959,
-0.6855461597442627,
-0.4623238742351532,
-0.27110305428504944,
-0.3839605152606964,
0.4270605742931366,
1.237795352935791,
-0.06059953197836876,
-0.9214924573898315,
0.6604828834533691,
-0.4323204755783081,
0.10219681262969971,
1.9355875253677368,
-0.033729393035173416,
-0.7964130640029907,
0.3603987693786621,
-0.6593717336654663,
1.9114803075790405,
1.6171150207519531,
1.2896422147750854,
-0.17035867273807526,
-0.9850065112113953,
0.7387962341308594,
-0.37846270203590393,
-0.3469651937484741,
0.8450217247009277,
0.36442941427230835,
-0.22128085792064667,
-1.3876389265060425,
0.5380578637123108,
1.3445889949798584,
-0.8941745162010193,
-0.8169254064559937,
0.05203021690249443,
-0.7788217067718506,
1.086466670036316,
0.6816979050636292,
0.3009909689426422,
0.23666252195835114,
1.5851802825927734,
0.7670580744743347,
-0.4943491816520691,
0.5865867137908936,
0.4000086188316345,
-0.15441754460334778,
-2.1157655715942383,
-1.0467891693115234,
0.2804078757762909,
-0.34562385082244873,
-1.5712122917175293,
1.3899736404418945,
-1.2227848768234253,
-0.9686608910560608,
0.5266950130462646,
0.10261987894773483,
1.4108339548110962,
0.31578776240348816,
1.587539553642273,
2.1195685863494873,
0.8845874667167664,
0.30871954560279846,
1.254009485244751,
-0.22564072906970978,
-0.5175034999847412,
1.8534519672393799,
-0.4671506881713867,
0.5470444560050964,
1.0578887462615967,
-0.31920650601387024,
-1.0830854177474976,
-0.8830733895301819,
-1.270871877670288,
-0.7492731213569641,
1.275618076324463,
0.08389270305633545,
-1.113972544670105,
0.30237627029418945,
1.5962692499160767,
0.05484844371676445,
-0.2974511682987213,
0.6382818222045898,
0.45288148522377014,
-0.7753904461860657,
-0.08189396560192108,
-0.8510544896125793,
0.5722187757492065,
-0.07630044221878052,
-0.3612530827522278,
0.3286290168762207,
0.4661429226398468,
1.2671263217926025,
-0.025018051266670227,
0.006958837620913982,
1.0823066234588623,
-1.4943944215774536,
1.5359505414962769,
-0.6816439628601074,
0.2768036723136902,
-2.314911127090454,
1.3686163425445557,
-0.8225992918014526,
1.9496630430221558,
-2.6485495567321777,
0.3955244719982147,
-0.5337998867034912,
-0.5046942830085754,
0.33457544445991516,
-0.324992299079895,
0.20328332483768463,
-0.23704534769058228,
-1.0678753852844238,
-0.17768743634223938,
-0.8239699006080627,
0.4752810597419739,
1.077585220336914,
1.3439675569534302,
-1.0523711442947388,
-0.24809150397777557,
-1.7422055006027222,
-0.17023032903671265,
-0.7158381342887878,
0.2910638153553009,
-1.9688925743103027,
-0.12269909679889679,
-2.0546345710754395,
-2.3408796787261963,
-1.322910189628601,
-0.8415624499320984,
0.9811920523643494,
0.1860351711511612,
-0.7958230972290039,
1.1199219226837158,
-0.32858648896217346,
-1.7782851457595825,
1.1253747940063477,
-2.01352596282959
] |
https://github.com/huggingface/datasets/issues/4775 | Streaming not supported in Theivaprakasham/wildreceipt | Thanks for reporting @NitishkKarra.
The root source of the issue is that streaming mode is not supported out-of-the-box for that dataset, because it contains a TAR file.
We have opened a discussion in the corresponding Hub dataset page, pointing out this issue: https://huggingface.co/datasets/Theivaprakasham/wildreceipt/discussions/1
I'm closing this issue here, so this discussion is transferred there instead. | ### Link
_No response_
### Description
_No response_
### Owner
_No response_ | 595 | 55 | Streaming not supported in Theivaprakasham/wildreceipt
### Link
_No response_
### Description
_No response_
### Owner
_No response_
Thanks for reporting @NitishkKarra.
The root source of the issue is that streaming mode is not supported out-of-the-box for that dataset, because it contains a TAR file.
We have opened a discussion in the corresponding Hub dataset page, pointing out this issue: https://huggingface.co/datasets/Theivaprakasham/wildreceipt/discussions/1
I'm closing this issue here, so this discussion is transferred there instead. | [
-1.2028048038482666,
-0.9668920040130615,
-0.866335391998291,
1.508013129234314,
-0.17647476494312286,
-1.3378132581710815,
0.1401924192905426,
-0.9179407954216003,
1.6158894300460815,
-0.8578843474388123,
0.23606525361537933,
-1.7755855321884155,
-0.08314110338687897,
-0.5428909659385681,
-0.5738002061843872,
-0.8778083920478821,
-0.42344462871551514,
-0.812872588634491,
1.0247384309768677,
2.5354409217834473,
1.3472481966018677,
-1.2475073337554932,
2.82875394821167,
0.7101406455039978,
-0.3421298563480377,
-1.0434924364089966,
0.4900680184364319,
-0.012786022387444973,
-1.2107936143875122,
-0.5125479698181152,
-0.941092848777771,
-0.04408375918865204,
-0.4196520149707794,
-0.40784966945648193,
-0.11741922050714493,
0.47784164547920227,
-0.21019917726516724,
-0.33604690432548523,
-0.517484188079834,
-0.7704007029533386,
0.4362284541130066,
-0.36259332299232483,
0.8948559165000916,
-0.429797500371933,
1.8608436584472656,
-0.6346423625946045,
0.31059378385543823,
0.7139704823493958,
1.3637853860855103,
0.17627055943012238,
-0.10136383026838303,
0.14274084568023682,
0.3888453543186188,
-0.09925538301467896,
0.3906839191913605,
1.0790045261383057,
0.4316209554672241,
0.6404136419296265,
0.5792983174324036,
-2.182433605194092,
1.3336381912231445,
-0.956352710723877,
0.2398388385772705,
1.4910180568695068,
-1.1333332061767578,
0.4522815942764282,
-1.651272177696228,
-0.07953834533691406,
0.5425513386726379,
-2.288128137588501,
0.20939195156097412,
-1.14016592502594,
-0.5538658499717712,
0.8518766760826111,
0.3856940269470215,
-1.3913377523422241,
-0.03094366006553173,
-0.44515925645828247,
1.0793492794036865,
0.5876757502555847,
1.1158888339996338,
-1.555867075920105,
0.08325745910406113,
-0.295141339302063,
-0.11666633933782578,
-1.4532995223999023,
-1.4678062200546265,
0.5573044419288635,
0.6194505095481873,
0.7194451689720154,
-0.040138229727745056,
0.9178226590156555,
-1.0419362783432007,
0.7974826693534851,
-0.9022923111915588,
-1.701933741569519,
-1.4569647312164307,
-2.549710512161255,
-2.2871294021606445,
0.7536344528198242,
-0.491409033536911,
-0.587598979473114,
1.8935503959655762,
-1.0276713371276855,
-1.808754563331604,
1.1875550746917725,
0.23257507383823395,
0.08564569056034088,
2.4557719230651855,
0.28067031502723694,
-0.7360024452209473,
0.29269689321517944,
-0.7773623466491699,
0.7486199736595154,
-0.6091314554214478,
1.3144022226333618,
0.5985000133514404,
-1.0668152570724487,
1.6432790756225586,
-0.4541417956352234,
0.5066546201705933,
-0.7223708033561707,
-0.4831610918045044,
-0.8691792488098145,
0.3351297378540039,
1.7674651145935059,
-0.329412579536438,
1.6685699224472046,
-0.2907155156135559,
-1.4478611946105957,
-1.5372651815414429,
0.8394653797149658,
0.35016950964927673,
-0.8902668952941895,
0.26109471917152405,
-0.407381147146225,
0.05914855748414993,
-0.1030341163277626,
1.1668198108673096,
1.2061330080032349,
0.5668541193008423,
-0.3158954679965973,
-0.8444008827209473,
0.258318692445755,
-0.07539507001638412,
-0.6304714679718018,
-1.7630137205123901,
-0.25361567735671997,
0.10486232489347458,
0.5898984670639038,
-1.0323621034622192,
1.7425905466079712,
0.8257538080215454,
2.020803928375244,
1.0496760606765747,
-0.20019873976707458,
1.3232860565185547,
-0.10967333614826202,
1.8186967372894287,
-0.5316881537437439,
0.7030606865882874,
-0.2607194483280182,
-1.2306417226791382,
0.8606398105621338,
-0.40142789483070374,
-1.9213488101959229,
-0.9349133968353271,
-0.8571212887763977,
-0.18032510578632355,
-0.7223682999610901,
1.0272045135498047,
-0.2589494287967682,
-1.3183913230895996,
0.2079029381275177,
-0.6233157515525818,
0.1467827558517456,
-1.2980989217758179,
0.3070797920227051,
0.7963902354240417,
-0.5339881181716919,
0.002396087162196636,
-0.20420876145362854,
-1.2986208200454712,
-0.43311938643455505,
0.360140323638916,
1.9167277812957764,
-0.7625173926353455,
0.9930295944213867,
0.910664975643158,
-0.7034149765968323,
0.14513880014419556,
0.22049681842327118,
-0.23557551205158234,
0.8165250420570374,
-1.0027605295181274,
-0.4222840368747711,
1.211451530456543,
-0.42276763916015625,
-0.7601059079170227,
1.4834082126617432,
0.7769612669944763,
-0.9610756635665894,
-0.12756508588790894,
-0.2635706067085266,
-0.9393899440765381,
-0.05823851376771927,
-1.5422117710113525,
-0.04578791558742523,
0.22718684375286102,
-1.3956871032714844,
-0.4264971613883972,
-0.08370774984359741,
1.4304418563842773,
-0.026048369705677032,
1.371720790863037,
-0.35101673007011414,
-0.23182199895381927,
-0.5508577227592468,
-0.43250858783721924,
0.24912907183170319,
-0.26746585965156555,
-0.4819047451019287,
0.24773062765598297,
-0.7617903351783752,
0.2928440570831299,
1.412826418876648,
0.28553205728530884,
0.17494454979896545,
0.5756057500839233,
1.0604897737503052,
0.27163901925086975,
-0.17106863856315613,
-0.7152417302131653,
-1.5454885959625244,
1.9807389974594116,
-1.3288494348526,
1.8238669633865356,
0.8057848215103149,
-0.19176235795021057,
-1.8795448541641235,
-1.9144465923309326,
1.2958729267120361,
1.292401909828186,
2.2817792892456055,
0.570916473865509,
0.34784913063049316,
-0.8199014663696289,
-0.7862758636474609,
0.2245640754699707,
-1.1777935028076172,
-0.6932575702667236,
0.10921856760978699,
2.238377332687378,
1.8251959085464478,
-0.5526511073112488,
-0.0968693196773529,
-1.0624921321868896,
1.098836064338684,
-0.07415426522493362,
0.164237841963768,
1.9513999223709106,
-0.4230813980102539,
-0.9917123317718506,
1.178330659866333,
-2.430819511413574,
0.21869410574436188,
2.147406816482544,
0.35421663522720337,
0.06684255599975586,
-1.397586464881897,
-0.6794650554656982,
-0.2227579802274704,
-0.24833251535892487,
-1.2725498676300049,
0.7955451011657715,
-0.28343117237091064,
-0.8889545202255249,
-1.501028299331665,
0.16094207763671875,
-0.9360162019729614,
-1.6876429319381714,
0.44006314873695374,
1.7425636053085327,
1.9825350046157837,
-0.7939897179603577,
1.4630634784698486,
-0.09464844316244125,
0.04916364699602127,
1.435127854347229,
1.1696594953536987,
3.0643246173858643,
2.0065600872039795,
-1.1840276718139648,
0.7827903032302856,
-0.07564914971590042,
-0.45969358086586,
1.1922976970672607,
-1.1739227771759033,
1.2532962560653687,
-0.21515348553657532,
-1.3044620752334595,
-1.4128317832946777,
0.9913626909255981,
0.48247918486595154,
-0.0448562428355217,
-0.47825440764427185,
1.3199983835220337,
0.14776964485645294,
1.2798372507095337,
0.5197274088859558,
-0.37693196535110474,
0.5652557015419006,
-0.46604833006858826,
-0.3892090320587158,
1.5478408336639404,
0.3399682343006134,
-1.4784424304962158,
-2.209930181503296,
-0.17731906473636627,
-0.8897512555122375,
-0.12215372920036316,
-0.7334197759628296,
-0.8806849718093872,
1.6178089380264282,
0.5690786242485046,
-1.2086302042007446,
-0.2957504987716675,
-0.3982253670692444,
-0.6348272562026978,
2.795518398284912,
-1.4715327024459839,
-0.2410237044095993,
-1.0309417247772217,
-0.47062867879867554,
1.7495312690734863,
-1.351149320602417,
-0.13056965172290802,
-1.0891025066375732,
-0.6212850213050842,
-1.2462944984436035,
-0.4251793622970581,
-0.08200546354055405,
-0.9328669905662537,
0.8240045309066772,
0.08003957569599152,
-1.1399763822555542,
-0.27016255259513855,
-0.762187123298645,
0.9052772521972656,
-0.057194240391254425,
0.32050877809524536,
1.8814512491226196,
0.2622428238391876,
-0.5143666863441467,
0.8022839426994324,
1.107192873954773,
0.5664656162261963,
-0.5540366172790527,
0.15870323777198792,
-0.5337412357330322,
0.3848114609718323,
-1.3262890577316284,
0.2544809877872467,
-3.004295587539673,
0.613702654838562,
-0.22494466602802277,
-0.13972438871860504,
-0.07238665223121643,
-1.4333653450012207,
1.1249946355819702,
2.494530439376831,
-1.154894232749939,
0.4491821527481079,
0.3440432846546173,
1.3165295124053955,
-1.496667504310608,
0.43650126457214355,
-0.6694530248641968,
2.091824531555176,
0.08769229054450989,
1.1404366493225098,
-0.5049132704734802,
-2.131690263748169,
0.6679120063781738,
-1.1789368391036987,
-1.0428056716918945,
0.8938078284263611,
-0.8865841031074524,
0.022510895505547523,
-1.400352954864502,
-0.12783099710941315,
-0.79665607213974,
-1.3742386102676392,
0.7838283181190491,
0.04855307936668396,
0.4356245994567871,
-0.6763559579849243,
0.23520530760288239,
-2.115774393081665,
-1.1977083683013916,
-0.2784477770328522,
-0.8886124491691589,
0.277413934469223,
-0.4113692045211792,
0.6558800339698792,
-0.28814536333084106,
0.14721137285232544,
0.20448538661003113,
1.3363707065582275,
3.407505512237549,
0.11904826760292053,
0.40704676508903503,
-0.13819269835948944,
-0.8800087571144104,
1.4967234134674072,
1.044439673423767,
-0.025124691426753998,
-0.7114375829696655,
-0.8430818319320679,
1.2345530986785889,
1.901731014251709,
1.0014824867248535,
0.21088390052318573,
-0.8833732008934021,
-0.6173239946365356,
-0.12186160683631897,
0.21357043087482452,
0.5195519924163818,
0.9508916139602661,
-0.14106963574886322,
0.12893971800804138,
1.4453346729278564,
1.1331820487976074,
-0.4183209538459778,
0.35162797570228577,
-0.8930505514144897,
-0.3742009401321411,
0.5373454093933105,
0.3643202781677246,
-0.0033463393338024616,
0.4168093204498291,
-1.0135670900344849,
-0.24447137117385864,
-0.17975792288780212,
-0.8934695720672607,
-0.7926284670829773,
-0.40343308448791504,
-0.4131874740123749,
1.6790180206298828,
0.11410440504550934,
-0.553830623626709,
-0.031444258987903595,
-0.7865326404571533,
-0.18579035997390747,
-1.0904587507247925,
0.2363145649433136,
-0.11103277653455734,
0.002254309132695198,
0.005766523070633411,
1.798573613166809,
-1.0627870559692383,
-2.352820873260498,
0.3111121356487274,
0.32634031772613525,
-0.2616012692451477,
0.01081591472029686,
1.6519355773925781,
0.42771732807159424,
1.4710438251495361,
1.3430997133255005,
1.0379875898361206,
-0.7195881009101868,
-1.4175430536270142,
0.7172672748565674,
0.9572789669036865,
-1.4674397706985474,
0.9247018694877625,
-0.09049950540065765,
-0.4490472376346588,
0.683656632900238,
1.2099566459655762,
0.42462798953056335,
-1.9287145137786865,
0.895868182182312,
-1.0676155090332031,
0.7967965006828308,
0.7582961916923523,
0.8249261975288391,
0.27970626950263977,
0.8251183032989502,
-1.1757843494415283,
-1.2831637859344482,
-0.7608314156532288,
-0.7205986976623535,
1.8306031227111816,
-0.2539142668247223,
0.7224960327148438,
-0.037089597433805466,
-1.3556960821151733,
-0.0440184623003006,
0.7052993178367615,
0.18989014625549316,
-0.2811177670955658,
0.9557785391807556,
-0.7305911779403687,
-0.9984458684921265,
-1.384079098701477,
-0.43862858414649963,
-0.9819425940513611,
-0.9847273230552673,
1.1304227113723755,
0.8113826513290405,
0.2206275314092636,
1.9263274669647217,
0.5185501575469971,
0.4285557270050049,
-2.7164146900177,
0.9343938231468201,
0.2873409390449524,
0.16042321920394897,
0.8682798743247986,
0.3082634210586548,
1.1280837059020996,
0.058620989322662354,
0.377322256565094,
-2.451547384262085,
2.278041362762451,
-0.26698318123817444,
0.5966143608093262,
-0.041684553027153015,
-0.1223967894911766,
1.102513074874878,
0.6249696016311646,
0.5585083961486816,
-1.0299673080444336,
0.8954494595527649,
-0.5365017056465149,
1.2223411798477173,
0.9462798237800598,
-0.7673661708831787,
0.05485603213310242,
1.3180935382843018,
0.6295930743217468,
-0.4047236442565918,
-0.8367629051208496,
-0.8171772360801697,
0.8991472721099854,
1.7149347066879272,
0.14029526710510254,
0.06932560354471207,
0.8764470815658569,
0.4994100332260132,
-1.1674449443817139,
0.05532410740852356,
-0.7073264718055725,
-0.6363524198532104,
1.7118580341339111,
1.9970076084136963,
0.0030014729127287865,
0.020273007452487946,
-0.7437867522239685,
-1.2265697717666626,
0.5977125763893127,
-0.0318349227309227,
-0.033571191132068634,
0.7148947715759277,
-0.7131683826446533,
0.9869738221168518,
0.5740276575088501,
0.8950631022453308,
0.05574473738670349,
0.3369932472705841,
0.45594075322151184,
-0.1960909068584442,
-1.2322677373886108,
-0.3247005045413971,
-1.177017331123352,
-2.486503839492798,
0.37037160992622375,
-0.3216386139392853,
-1.5453529357910156,
0.14158153533935547,
-1.1761947870254517,
0.8756245970726013,
-0.5141886472702026,
-1.1847708225250244,
-1.4895532131195068,
0.173322856426239,
-0.16907989978790283,
0.8514013886451721,
-1.5225096940994263,
-0.022556116804480553,
1.2860161066055298,
0.8157500624656677,
-0.7235462665557861,
1.0655996799468994,
0.29911044239997864,
1.1756478548049927,
0.7524005174636841,
-0.4278455674648285,
0.47047728300094604,
0.019012652337551117,
-1.3632237911224365,
0.613846480846405,
1.1597014665603638,
0.11797739565372467,
1.424818515777588,
-0.5526344776153564,
0.04878950119018555,
0.5666545629501343,
-0.5953480005264282,
-0.533173680305481,
-0.5105517506599426,
0.8303278088569641,
0.13421986997127533,
-0.9015839695930481,
-0.04485497623682022,
-0.20402278006076813,
-0.325228750705719,
0.20755210518836975,
-1.5576924085617065,
-0.2035909742116928,
-0.475368857383728,
-0.4981406033039093,
-1.4142247438430786,
0.1444457471370697,
1.3469438552856445,
-0.6552619338035583,
-0.20521511137485504,
0.5467520356178284,
0.339133083820343,
0.5556391477584839,
0.608870804309845,
-0.6524737477302551,
-0.24559423327445984,
-0.3000124990940094,
-0.27277809381484985,
0.38927406072616577,
1.2476650476455688,
-0.11841601878404617,
-1.0192627906799316,
0.8094092607498169,
-0.3221725523471832,
0.10154103487730026,
2.076329231262207,
0.13904324173927307,
-0.869490385055542,
0.27444931864738464,
-0.7155112028121948,
1.884106159210205,
1.5190719366073608,
1.293562650680542,
-0.05873408168554306,
-0.9082463979721069,
0.6524351835250854,
-0.07276559621095657,
-0.3002154231071472,
0.801810085773468,
0.5331308841705322,
-0.23476968705654144,
-1.514140248298645,
0.6289121508598328,
1.1682676076889038,
-0.8769330382347107,
-0.7914199233055115,
0.0640418529510498,
-0.8898765444755554,
1.1142864227294922,
0.7497881054878235,
0.36190319061279297,
0.32007285952568054,
1.6622188091278076,
0.6605616211891174,
-0.45452529191970825,
0.3980293273925781,
0.4652998745441437,
0.003162163309752941,
-2.049229860305786,
-0.8875659704208374,
0.49463438987731934,
-0.47911912202835083,
-1.4537032842636108,
1.344190001487732,
-1.1769737005233765,
-0.9810158610343933,
0.348337322473526,
0.20420679450035095,
1.3948954343795776,
0.3099243640899658,
1.691459059715271,
2.040008783340454,
0.9850531816482544,
0.283780574798584,
1.3636658191680908,
-0.18279477953910828,
-0.48870572447776794,
1.801040768623352,
-0.3881458044052124,
0.4143607020378113,
1.1364716291427612,
-0.5830247402191162,
-1.0937092304229736,
-0.665859580039978,
-1.0184862613677979,
-0.5357343554496765,
1.0936589241027832,
0.29769906401634216,
-1.016092300415039,
0.2891680598258972,
1.3049970865249634,
0.11348804831504822,
-0.24900496006011963,
0.5427801012992859,
0.48605361580848694,
-0.7340189218521118,
0.02100706845521927,
-0.7978740930557251,
0.5281161665916443,
-0.20193366706371307,
-0.386384516954422,
0.3476077914237976,
0.5389994978904724,
1.204496145248413,
-0.12006226927042007,
0.1931023746728897,
1.283587098121643,
-1.4425278902053833,
1.4371740818023682,
-0.5573676824569702,
0.1422801911830902,
-2.3745908737182617,
1.4149107933044434,
-0.7964715957641602,
1.9587233066558838,
-2.631115436553955,
0.4176310896873474,
-0.5934361815452576,
-0.4009803831577301,
0.43522709608078003,
-0.4168704152107239,
0.019936904311180115,
-0.18240690231323242,
-1.1272790431976318,
0.034286923706531525,
-0.7483577728271484,
0.5337811708450317,
1.1769604682922363,
1.268834114074707,
-1.0858583450317383,
-0.24071025848388672,
-1.696895718574524,
-0.20528706908226013,
-0.7512668967247009,
0.2931205928325653,
-2.086245536804199,
-0.2579931318759918,
-2.0046348571777344,
-2.2344300746917725,
-1.379785418510437,
-0.8285145163536072,
1.059135913848877,
0.26611068844795227,
-0.9432329535484314,
1.1384016275405884,
-0.3714536726474762,
-1.818029761314392,
1.0449880361557007,
-2.1568593978881836
] |
https://github.com/huggingface/datasets/issues/4772 | AssertionError when using label_cols in to_tf_dataset | Hi @lehrig, this is caused by the data collator renaming "label" to "labels". If you set `label_cols=["labels"]` in the call it will work correctly. However, I agree that the cause of the bug is not obvious, so I'll see if I can make a PR to clarify things when the collator renames columns. | ## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
| 596 | 53 | AssertionError when using label_cols in to_tf_dataset
## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
Hi @lehrig, this is caused by the data collator renaming "label" to "labels". If you set `label_cols=["labels"]` in the call it will work correctly. However, I agree that the cause of the bug is not obvious, so I'll see if I can make a PR to clarify things when the collator renames columns. | [
-1.1469082832336426,
-0.8813052177429199,
-0.6730756759643555,
1.5106010437011719,
-0.13470250368118286,
-1.2483538389205933,
0.1694384068250656,
-1.0477585792541504,
1.6729421615600586,
-0.806239128112793,
0.25276419520378113,
-1.689505934715271,
-0.019274141639471054,
-0.557207465171814,
-0.6822853088378906,
-0.8796535730361938,
-0.3419455885887146,
-0.6645842790603638,
1.0698505640029907,
2.438290596008301,
1.279641032218933,
-1.2925145626068115,
2.7200679779052734,
0.6848176717758179,
-0.23536306619644165,
-0.9873830080032349,
0.5056852102279663,
0.021803077310323715,
-1.3173496723175049,
-0.40985533595085144,
-0.9336628913879395,
-0.07769839465618134,
-0.5356838703155518,
-0.5673729181289673,
-0.017717020586133003,
0.42917484045028687,
-0.39991697669029236,
-0.4145701229572296,
-0.5723141431808472,
-0.854820966720581,
0.4504318833351135,
-0.3604852557182312,
0.9106756448745728,
-0.392790824174881,
1.8033411502838135,
-0.5657083988189697,
0.4932909905910492,
0.6957037448883057,
1.2776023149490356,
0.1859487146139145,
0.061080433428287506,
0.3234831392765045,
0.34555402398109436,
0.06015761196613312,
0.5953757762908936,
1.220969319343567,
0.6195273399353027,
0.46316206455230713,
0.7017282247543335,
-2.2506771087646484,
1.3304657936096191,
-0.9303880929946899,
0.25338214635849,
1.323352336883545,
-0.936632513999939,
0.27199694514274597,
-1.699546456336975,
-0.07907237857580185,
0.5657333135604858,
-2.265223979949951,
0.28418704867362976,
-1.3926472663879395,
-0.5141432285308838,
1.0053812265396118,
0.38801005482673645,
-1.1407339572906494,
0.1010352075099945,
-0.44567567110061646,
1.0084099769592285,
0.47472718358039856,
1.0675305128097534,
-1.6621345281600952,
-0.07705488801002502,
-0.2052723914384842,
0.15469270944595337,
-1.2198814153671265,
-1.6125997304916382,
0.5579631328582764,
0.6938811540603638,
0.6217899322509766,
-0.1271062195301056,
1.067934513092041,
-1.0263869762420654,
0.6757736206054688,
-0.9717867374420166,
-1.7609446048736572,
-1.394620656967163,
-2.2885522842407227,
-2.2891440391540527,
0.724158525466919,
-0.44233736395835876,
-0.5079767107963562,
2.088981866836548,
-1.0409055948257446,
-1.7801398038864136,
1.0568894147872925,
0.27431127429008484,
0.021489884704351425,
2.3675549030303955,
0.19646605849266052,
-0.7446755170822144,
0.5135741233825684,
-0.7781308889389038,
0.6478418111801147,
-0.31285133957862854,
1.3192956447601318,
0.40309661626815796,
-1.0823450088500977,
1.5836619138717651,
-0.43168219923973083,
0.6039446592330933,
-0.6715555191040039,
-0.4566017985343933,
-0.703016996383667,
0.19567319750785828,
1.9056181907653809,
-0.3367994427680969,
1.4916589260101318,
-0.227042555809021,
-1.5377333164215088,
-1.5391944646835327,
0.8115248680114746,
0.44316762685775757,
-0.7570580244064331,
0.09485331922769547,
-0.3967953324317932,
0.10244250297546387,
-0.011026604101061821,
1.170845866203308,
1.2673263549804688,
0.7495949268341064,
-0.37814250588417053,
-0.8274757862091064,
0.21440473198890686,
-0.04198453947901726,
-0.688970685005188,
-1.7726020812988281,
-0.3036826252937317,
0.16611501574516296,
0.6381911039352417,
-1.2113512754440308,
1.8046818971633911,
0.9036668539047241,
1.9162567853927612,
1.0185645818710327,
-0.37041935324668884,
1.5221308469772339,
0.11717681586742401,
1.8976352214813232,
-0.3937673568725586,
0.6446768045425415,
-0.3721727430820465,
-1.1818605661392212,
0.8363213539123535,
-0.285378098487854,
-2.008631467819214,
-0.7458904981613159,
-0.8380764722824097,
-0.091140978038311,
-0.7912400960922241,
0.9511255025863647,
-0.26970142126083374,
-1.4425032138824463,
0.15056757628917694,
-0.7647507190704346,
0.11504456400871277,
-1.2716896533966064,
0.26410412788391113,
0.736905574798584,
-0.643600344657898,
0.0184941403567791,
-0.27522000670433044,
-1.2974199056625366,
-0.4355209171772003,
0.3853297531604767,
1.886913537979126,
-0.6889932155609131,
0.9195306301116943,
1.075551152229309,
-0.7219069004058838,
0.09857288002967834,
0.30248430371284485,
-0.32074716687202454,
0.8362802267074585,
-1.0364216566085815,
-0.44486290216445923,
1.201950192451477,
-0.17440441250801086,
-0.6952633857727051,
1.441374659538269,
0.7440924644470215,
-1.0155614614486694,
-0.22547096014022827,
-0.16383831202983856,
-0.7954146862030029,
0.07892467826604843,
-1.5722004175186157,
-0.062028009444475174,
0.3898112177848816,
-1.5339523553848267,
-0.4785992205142975,
-0.165004163980484,
1.3652340173721313,
-0.13744862377643585,
1.4360707998275757,
-0.31407856941223145,
-0.2109682708978653,
-0.3847256898880005,
-0.43889790773391724,
0.14805981516838074,
-0.24177566170692444,
-0.6180540323257446,
0.24239662289619446,
-0.7902612686157227,
0.2792624235153198,
1.4705744981765747,
0.3105611503124237,
0.040663041174411774,
0.5563446283340454,
1.1270873546600342,
0.37717360258102417,
-0.13621248304843903,
-0.8632619380950928,
-1.576890230178833,
1.9551589488983154,
-1.3908636569976807,
2.0152316093444824,
0.7019526958465576,
-0.06843015551567078,
-1.7873616218566895,
-1.973813772201538,
1.316848874092102,
1.121108889579773,
2.3863027095794678,
0.5392801761627197,
0.4397820234298706,
-0.8248170614242554,
-0.7058216333389282,
0.3471880853176117,
-0.9783753156661987,
-0.6787217855453491,
0.1805712729692459,
2.3440887928009033,
1.761871576309204,
-0.42055925726890564,
-0.15160566568374634,
-1.0142284631729126,
1.4307793378829956,
-0.2873285710811615,
0.28770625591278076,
1.9690717458724976,
-0.28835615515708923,
-1.031522274017334,
1.3589330911636353,
-2.3242111206054688,
0.22122956812381744,
2.0167276859283447,
0.22118061780929565,
0.09931681305170059,
-1.3386913537979126,
-0.6852720975875854,
-0.30928847193717957,
-0.42276161909103394,
-1.2698599100112915,
0.4665335416793823,
-0.22317446768283844,
-0.7890176773071289,
-1.415341854095459,
0.19241154193878174,
-1.0788713693618774,
-1.7210378646850586,
0.260024756193161,
1.9014374017715454,
2.0221052169799805,
-0.7364075183868408,
1.5192378759384155,
-0.2986670732498169,
0.15549811720848083,
1.261598825454712,
1.3141777515411377,
3.1183695793151855,
1.9366750717163086,
-1.3169842958450317,
0.7710320949554443,
-0.08014515787363052,
-0.4505789279937744,
1.2317299842834473,
-1.2510228157043457,
1.2617912292480469,
-0.25102806091308594,
-1.256169080734253,
-1.2445765733718872,
0.958877682685852,
0.5015071630477905,
0.007453620433807373,
-0.5135126113891602,
1.1615936756134033,
0.046957630664110184,
1.387169599533081,
0.5861481428146362,
-0.37409576773643494,
0.6576430797576904,
-0.39698120951652527,
-0.5147342681884766,
1.5485798120498657,
0.1901370882987976,
-1.4471701383590698,
-2.287431478500366,
-0.22210952639579773,
-0.863429069519043,
0.011834612116217613,
-0.6247504949569702,
-0.9764832258224487,
1.685567855834961,
0.4324941039085388,
-1.1080995798110962,
-0.2888385057449341,
-0.3105299770832062,
-0.5409691333770752,
2.6882145404815674,
-1.315920114517212,
-0.15594354271888733,
-1.0131069421768188,
-0.6400591135025024,
1.6301862001419067,
-1.173580527305603,
-0.24029207229614258,
-1.0279200077056885,
-0.5545400381088257,
-1.2766605615615845,
-0.5396795272827148,
0.018133284524083138,
-0.9420254230499268,
0.8320728540420532,
0.14562584459781647,
-1.214967966079712,
-0.35136473178863525,
-0.9616596698760986,
0.9929847717285156,
-0.1632162481546402,
0.11237309873104095,
1.8626068830490112,
0.33015796542167664,
-0.4270251393318176,
0.733513593673706,
1.1694034337997437,
0.6248153448104858,
-0.6584590673446655,
0.22626478970050812,
-0.735425591468811,
0.3258409798145294,
-1.355819821357727,
0.2286595106124878,
-2.9007954597473145,
0.6527794599533081,
-0.07115964591503143,
-0.03767814487218857,
-0.05473543703556061,
-1.3451200723648071,
1.0753693580627441,
2.5624895095825195,
-1.2110460996627808,
0.5289924144744873,
0.30132007598876953,
1.1565139293670654,
-1.5916520357131958,
0.24470838904380798,
-0.467844158411026,
2.029355525970459,
0.13687220215797424,
1.265910267829895,
-0.39609643816947937,
-2.2326056957244873,
0.6690846681594849,
-1.2565609216690063,
-1.0900012254714966,
0.8750491142272949,
-0.8593815565109253,
0.1788587123155594,
-1.2873938083648682,
-0.18857187032699585,
-0.8496830463409424,
-1.1920557022094727,
0.6239796876907349,
0.11999453604221344,
0.4648078382015228,
-0.5322328805923462,
0.3805197775363922,
-2.1832094192504883,
-1.3271397352218628,
-0.265458345413208,
-0.999746561050415,
0.5036057233810425,
-0.34988242387771606,
0.632206916809082,
-0.17267188429832458,
-0.0011701174080371857,
0.39545848965644836,
1.4485079050064087,
3.3429887294769287,
0.11752203106880188,
0.22388407588005066,
-0.15789927542209625,
-1.0351649522781372,
1.4284979104995728,
0.9105439186096191,
-0.16570493578910828,
-0.4865667521953583,
-1.0287704467773438,
1.2294152975082397,
1.9335532188415527,
1.0578371286392212,
0.024973399937152863,
-0.8967703580856323,
-0.8004838228225708,
-0.012579020112752914,
0.12189625203609467,
0.5084971189498901,
0.9065369367599487,
0.10421371459960938,
0.046733904629945755,
1.4410737752914429,
1.1601893901824951,
-0.3370721936225891,
0.36226511001586914,
-0.9163994789123535,
-0.4132581949234009,
0.48072972893714905,
0.286382794380188,
-0.008700817823410034,
0.3722004294395447,
-1.0910744667053223,
-0.21935585141181946,
-0.3888445794582367,
-0.8311874866485596,
-0.7137360572814941,
-0.4303632974624634,
-0.37996920943260193,
1.6309233903884888,
0.05669158697128296,
-0.5699669122695923,
-0.014163038693368435,
-0.7207703590393066,
-0.0659637302160263,
-1.034900188446045,
0.2905289828777313,
-0.09991852939128876,
-0.07096194475889206,
-0.16730616986751556,
1.6432734727859497,
-0.9435205459594727,
-2.0903961658477783,
0.19796837866306305,
0.19529268145561218,
-0.30961525440216064,
0.20853200554847717,
1.682791829109192,
0.6054254770278931,
1.4629817008972168,
1.3778724670410156,
1.0209529399871826,
-0.6676603555679321,
-1.3340227603912354,
0.643240213394165,
0.9915156364440918,
-1.3467668294906616,
0.8164768218994141,
-0.0437081977725029,
-0.5364638566970825,
0.580296516418457,
1.297025442123413,
0.4866877794265747,
-1.9731547832489014,
0.7846583127975464,
-0.9420500993728638,
0.7803001403808594,
0.74006187915802,
0.7526892423629761,
0.16470831632614136,
0.7996418476104736,
-1.220995545387268,
-1.126316785812378,
-0.6501858234405518,
-0.6432391405105591,
1.9154541492462158,
-0.35017597675323486,
0.5377165079116821,
-0.24688710272312164,
-1.3102014064788818,
-0.05624057725071907,
0.7091948986053467,
0.39517834782600403,
-0.5097428560256958,
0.7959572076797485,
-0.6303367614746094,
-1.0357120037078857,
-1.2784696817398071,
-0.4563872516155243,
-1.117072343826294,
-0.9272923469543457,
1.004199504852295,
0.7619383335113525,
0.40812402963638306,
1.8897249698638916,
0.6663275957107544,
0.2498590052127838,
-2.5998263359069824,
0.9048748016357422,
0.33652347326278687,
-0.05463002249598503,
0.7577228546142578,
0.3094329535961151,
1.076175570487976,
-0.06282991170883179,
0.5582098960876465,
-2.354400634765625,
2.3013181686401367,
-0.17534196376800537,
0.6616268157958984,
0.07781205326318741,
-0.16018779575824738,
1.0241827964782715,
0.5580089092254639,
0.5873714685440063,
-1.0720254182815552,
0.7683281898498535,
-0.5959745645523071,
1.2084765434265137,
0.8473173379898071,
-0.8522990942001343,
-0.015928693115711212,
1.387320637702942,
0.5048199892044067,
-0.5227047204971313,
-0.9739972352981567,
-1.0182380676269531,
0.9623451232910156,
1.6942403316497803,
-0.04143963009119034,
-0.022503038868308067,
0.8764551877975464,
0.7116063833236694,
-1.2899932861328125,
0.058402180671691895,
-0.7068219184875488,
-0.642869234085083,
1.6885716915130615,
2.0479719638824463,
-0.17315858602523804,
-0.21392805874347687,
-0.750328540802002,
-1.230191707611084,
0.791682243347168,
-0.024967951700091362,
0.04215813800692558,
0.7549452781677246,
-0.6491119861602783,
1.1379457712173462,
0.7494351863861084,
0.9133005142211914,
0.21888047456741333,
0.2737984359264374,
0.38300347328186035,
-0.39922037720680237,
-1.2235170602798462,
-0.26821714639663696,
-1.0033719539642334,
-2.6122539043426514,
0.4638010561466217,
-0.2104073315858841,
-1.4136542081832886,
0.05054154619574547,
-1.0371615886688232,
0.9109251499176025,
-0.5642669200897217,
-1.119374394416809,
-1.4438440799713135,
0.21993941068649292,
-0.0792369693517685,
0.8999432325363159,
-1.6047544479370117,
-0.11656831949949265,
1.2992621660232544,
0.9770321846008301,
-0.718226432800293,
0.9863073825836182,
0.20806345343589783,
1.0840439796447754,
0.8441731929779053,
-0.3740611672401428,
0.531365156173706,
0.006893899291753769,
-1.3025856018066406,
0.435744971036911,
1.2161579132080078,
0.15655310451984406,
1.4947612285614014,
-0.5507727861404419,
0.036553382873535156,
0.426000714302063,
-0.5208650827407837,
-0.5612802505493164,
-0.5332825183868408,
0.6851729154586792,
-0.024428555741906166,
-0.9416965246200562,
-0.023586127907037735,
-0.07154405117034912,
-0.1951848268508911,
0.18770867586135864,
-1.4729526042938232,
-0.13303470611572266,
-0.32936277985572815,
-0.6455820798873901,
-1.268886685371399,
-0.05889936909079552,
1.3283145427703857,
-0.786612868309021,
-0.18496710062026978,
0.4739656150341034,
0.2689083516597748,
0.5978232622146606,
0.6037499904632568,
-0.7941160202026367,
-0.2378336489200592,
-0.3013761043548584,
-0.30669960379600525,
0.37910595536231995,
1.3719021081924438,
-0.08946403115987778,
-0.9765546321868896,
0.6527920961380005,
-0.38505542278289795,
0.08881355822086334,
2.018808603286743,
0.04750221595168114,
-0.7642720937728882,
0.30315420031547546,
-0.761493444442749,
1.8936296701431274,
1.7590652704238892,
1.312583327293396,
-0.11393476277589798,
-0.9782817363739014,
0.596580982208252,
-0.39744603633880615,
-0.40490007400512695,
0.8879393339157104,
0.3495442569255829,
-0.2296278178691864,
-1.3342417478561401,
0.6813029050827026,
1.2375974655151367,
-0.8414183855056763,
-0.7613378763198853,
0.13596954941749573,
-0.8114132881164551,
1.154472827911377,
0.6308541297912598,
0.2838028073310852,
0.32264864444732666,
1.5498350858688354,
0.7904882431030273,
-0.45022642612457275,
0.5092328786849976,
0.4637579023838043,
-0.21675817668437958,
-2.0145938396453857,
-1.1416131258010864,
0.3562014400959015,
-0.5906414985656738,
-1.6532773971557617,
1.4053020477294922,
-1.202133297920227,
-1.0234063863754272,
0.5476275682449341,
0.13976456224918365,
1.351722240447998,
0.3405950963497162,
1.5986480712890625,
2.0938124656677246,
0.9050335884094238,
0.4017777144908905,
1.2419795989990234,
-0.18887270987033844,
-0.43496185541152954,
1.764224886894226,
-0.45786476135253906,
0.49061712622642517,
1.0672649145126343,
-0.33754685521125793,
-1.1338298320770264,
-0.8377276659011841,
-1.2477266788482666,
-0.718069314956665,
1.1371033191680908,
0.09481649100780487,
-1.097524881362915,
0.23282182216644287,
1.5736360549926758,
0.1289965808391571,
-0.29339683055877686,
0.7382904291152954,
0.36196044087409973,
-0.7599738836288452,
-0.04517912492156029,
-0.9571506977081299,
0.5421956777572632,
-0.230117529630661,
-0.3614739179611206,
0.29842519760131836,
0.46898311376571655,
1.3146477937698364,
0.02245788276195526,
0.1725037395954132,
1.2000224590301514,
-1.3428343534469604,
1.5147814750671387,
-0.7898590564727783,
0.29843705892562866,
-2.3753457069396973,
1.3465420007705688,
-0.8089042901992798,
1.9354819059371948,
-2.6613340377807617,
0.4798925518989563,
-0.4793378412723541,
-0.422855019569397,
0.25083792209625244,
-0.35442182421684265,
0.1238975077867508,
-0.08585980534553528,
-1.1735682487487793,
-0.07877030968666077,
-0.7187232971191406,
0.605445384979248,
1.1295249462127686,
1.4154497385025024,
-1.158437728881836,
-0.29880979657173157,
-1.7761592864990234,
-0.1559823453426361,
-0.7736494541168213,
0.33714529871940613,
-1.896706223487854,
-0.2341955602169037,
-1.9311890602111816,
-2.4926538467407227,
-1.2545857429504395,
-0.8233085870742798,
1.1101418733596802,
0.17243772745132446,
-0.9121103286743164,
1.223931908607483,
-0.3563830554485321,
-1.8918230533599854,
1.1460144519805908,
-2.2733778953552246
] |
https://github.com/huggingface/datasets/issues/4772 | AssertionError when using label_cols in to_tf_dataset | Thanks - and wow, that appears like a strange side-effect of the data collator. Is that really needed?
Why not make it more explicit? For example, extend `DefaultDataCollator` with an optional property `label_col_name` to be used as label column; only when it is not provided default to `labels` (and document that this happens) for backwards-compatibility? | ## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
| 596 | 55 | AssertionError when using label_cols in to_tf_dataset
## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
Thanks - and wow, that appears like a strange side-effect of the data collator. Is that really needed?
Why not make it more explicit? For example, extend `DefaultDataCollator` with an optional property `label_col_name` to be used as label column; only when it is not provided default to `labels` (and document that this happens) for backwards-compatibility? | [
-1.152675747871399,
-0.8788775205612183,
-0.6784687042236328,
1.5134087800979614,
-0.1294543594121933,
-1.2707937955856323,
0.1717461496591568,
-1.0458024740219116,
1.6902276277542114,
-0.8195304870605469,
0.24242712557315826,
-1.6996862888336182,
-0.010448587127029896,
-0.5614280104637146,
-0.6795069575309753,
-0.8647542595863342,
-0.3583744466304779,
-0.6975647807121277,
1.0804188251495361,
2.4419469833374023,
1.265973687171936,
-1.2925264835357666,
2.7118921279907227,
0.70298171043396,
-0.26797378063201904,
-0.9772464632987976,
0.49095532298088074,
0.014835330657660961,
-1.3162468671798706,
-0.39914754033088684,
-0.9309909343719482,
-0.09438274800777435,
-0.5501634478569031,
-0.5735033750534058,
-0.022135499864816666,
0.43816518783569336,
-0.38381776213645935,
-0.4127054810523987,
-0.5580982565879822,
-0.8421289920806885,
0.46231919527053833,
-0.3543665409088135,
0.9023876190185547,
-0.3811163604259491,
1.79947030544281,
-0.5572088956832886,
0.49577072262763977,
0.6957381963729858,
1.2918444871902466,
0.1794598251581192,
0.039149004966020584,
0.30394095182418823,
0.3372567594051361,
0.05647736042737961,
0.5856450200080872,
1.2073971033096313,
0.6240953803062439,
0.4721013307571411,
0.696814239025116,
-2.2548844814300537,
1.3397793769836426,
-0.9374580383300781,
0.2670881748199463,
1.3286751508712769,
-0.9422125220298767,
0.2877648174762726,
-1.7089627981185913,
-0.07141240686178207,
0.5689446926116943,
-2.2610933780670166,
0.2770678699016571,
-1.3743879795074463,
-0.5123254656791687,
0.9900267720222473,
0.4010934829711914,
-1.139998197555542,
0.10492987185716629,
-0.45973241329193115,
1.0269441604614258,
0.48407185077667236,
1.084794044494629,
-1.6960240602493286,
-0.06220230832695961,
-0.21503177285194397,
0.14098796248435974,
-1.249948263168335,
-1.589452862739563,
0.5585476756095886,
0.7190107703208923,
0.6284561157226562,
-0.14320166409015656,
1.0528615713119507,
-1.0191280841827393,
0.6648871302604675,
-0.9639840722084045,
-1.7684136629104614,
-1.387577772140503,
-2.2869207859039307,
-2.308298349380493,
0.7198834419250488,
-0.4272582232952118,
-0.509196400642395,
2.090266227722168,
-1.0291391611099243,
-1.8024760484695435,
1.053310751914978,
0.26854535937309265,
0.00248049758374691,
2.359161853790283,
0.20500825345516205,
-0.7411931753158569,
0.5068243145942688,
-0.7752796411514282,
0.6583107113838196,
-0.33494147658348083,
1.319791555404663,
0.40830889344215393,
-1.0848625898361206,
1.5746760368347168,
-0.4405929744243622,
0.5902716517448425,
-0.6791020631790161,
-0.4355076253414154,
-0.710170567035675,
0.1995561569929123,
1.918215274810791,
-0.3294084966182709,
1.4807088375091553,
-0.2395048588514328,
-1.5304969549179077,
-1.5235854387283325,
0.8067213296890259,
0.4407046139240265,
-0.7554618716239929,
0.11965125054121017,
-0.4148593842983246,
0.0998353511095047,
-0.018888279795646667,
1.1568282842636108,
1.275412678718567,
0.7551679611206055,
-0.3664247691631317,
-0.8164530992507935,
0.23991023004055023,
-0.06472301483154297,
-0.6878015995025635,
-1.7873142957687378,
-0.2967875897884369,
0.13521207869052887,
0.6330366730690002,
-1.2036556005477905,
1.8144561052322388,
0.891996443271637,
1.9295886754989624,
1.021907925605774,
-0.3776852786540985,
1.51479971408844,
0.09293925762176514,
1.9070957899093628,
-0.3868894875049591,
0.6881111264228821,
-0.3862345814704895,
-1.1812762022018433,
0.8234690427780151,
-0.28573474287986755,
-2.0210041999816895,
-0.7268988490104675,
-0.8309711813926697,
-0.10192178934812546,
-0.8024684190750122,
0.9389001131057739,
-0.25319722294807434,
-1.4478033781051636,
0.1464388370513916,
-0.7490027546882629,
0.14051468670368195,
-1.2773971557617188,
0.27012017369270325,
0.7446039915084839,
-0.6356969475746155,
0.022103536874055862,
-0.2828272879123688,
-1.3076095581054688,
-0.44741615653038025,
0.3828226923942566,
1.8768088817596436,
-0.6834227442741394,
0.9263255000114441,
1.0665706396102905,
-0.7163928747177124,
0.10246314108371735,
0.3076722025871277,
-0.3058333396911621,
0.828266441822052,
-1.0138981342315674,
-0.4306511878967285,
1.2162131071090698,
-0.194970041513443,
-0.6768336892127991,
1.4309768676757812,
0.7414632439613342,
-0.9974539875984192,
-0.2010609209537506,
-0.1909891664981842,
-0.8074813485145569,
0.07606220245361328,
-1.585939645767212,
-0.07038795202970505,
0.39744582772254944,
-1.5097124576568604,
-0.4811966121196747,
-0.1692420393228531,
1.3572784662246704,
-0.11781817674636841,
1.4228427410125732,
-0.30750128626823425,
-0.18034996092319489,
-0.37500715255737305,
-0.42757946252822876,
0.1546545922756195,
-0.23474913835525513,
-0.5844271779060364,
0.24530132114887238,
-0.7783596515655518,
0.2830442786216736,
1.4661089181900024,
0.29682019352912903,
0.060258932411670685,
0.5505613088607788,
1.113535761833191,
0.3836856782436371,
-0.14898744225502014,
-0.8325443863868713,
-1.5751951932907104,
1.960637092590332,
-1.3810343742370605,
2.0102157592773438,
0.7138357758522034,
-0.05603734031319618,
-1.785749912261963,
-1.9641233682632446,
1.2950743436813354,
1.1133277416229248,
2.3869431018829346,
0.5587632060050964,
0.4346647560596466,
-0.8310163021087646,
-0.7016937732696533,
0.34563833475112915,
-0.983688235282898,
-0.6989752650260925,
0.17661692202091217,
2.3662290573120117,
1.7623519897460938,
-0.4220179617404938,
-0.15769273042678833,
-1.031423568725586,
1.4203890562057495,
-0.28153952956199646,
0.27275729179382324,
1.9790228605270386,
-0.30971503257751465,
-1.0316076278686523,
1.3727271556854248,
-2.3397679328918457,
0.22773012518882751,
2.012406587600708,
0.21877124905586243,
0.1140558049082756,
-1.3371551036834717,
-0.7022057771682739,
-0.27857768535614014,
-0.40465664863586426,
-1.2524195909500122,
0.4674721956253052,
-0.21612417697906494,
-0.7985078692436218,
-1.4193687438964844,
0.18231090903282166,
-1.0802903175354004,
-1.7124650478363037,
0.26677030324935913,
1.8920495510101318,
2.0248425006866455,
-0.7388632893562317,
1.507411241531372,
-0.3120344281196594,
0.1486954540014267,
1.272139549255371,
1.3032926321029663,
3.1207807064056396,
1.9312106370925903,
-1.3292030096054077,
0.7785680294036865,
-0.09221340715885162,
-0.4430362284183502,
1.2091009616851807,
-1.2309397459030151,
1.2527772188186646,
-0.25039562582969666,
-1.2586681842803955,
-1.2684980630874634,
0.9684768319129944,
0.5023805499076843,
0.010714824311435223,
-0.5115159153938293,
1.1732711791992188,
0.03651009872555733,
1.3751028776168823,
0.5950256586074829,
-0.36924225091934204,
0.6355281472206116,
-0.39943864941596985,
-0.51119065284729,
1.553831696510315,
0.21486763656139374,
-1.4452011585235596,
-2.29122257232666,
-0.23907507956027985,
-0.8534795641899109,
0.01965021714568138,
-0.6395293474197388,
-0.9597678780555725,
1.6741914749145508,
0.4476947784423828,
-1.1068612337112427,
-0.2760154604911804,
-0.3053528368473053,
-0.5431304574012756,
2.6757659912109375,
-1.348897099494934,
-0.16844826936721802,
-1.009285807609558,
-0.6311321258544922,
1.6266909837722778,
-1.1916974782943726,
-0.2560570240020752,
-1.0299720764160156,
-0.5714644193649292,
-1.2713347673416138,
-0.5356593132019043,
0.016736198216676712,
-0.9236518740653992,
0.8206025958061218,
0.1485762745141983,
-1.2167295217514038,
-0.3651371896266937,
-0.9650712609291077,
0.9977687001228333,
-0.16618455946445465,
0.1254006326198578,
1.8370248079299927,
0.3410700857639313,
-0.4216861128807068,
0.732368528842926,
1.1832507848739624,
0.620002269744873,
-0.6572254300117493,
0.2245909422636032,
-0.7328290343284607,
0.3529765009880066,
-1.342685341835022,
0.2489578276872635,
-2.9046473503112793,
0.6457967758178711,
-0.0756317526102066,
-0.047826334834098816,
-0.07402277737855911,
-1.3644030094146729,
1.0751503705978394,
2.5520682334899902,
-1.206300139427185,
0.5116651058197021,
0.29939088225364685,
1.1810728311538696,
-1.576217532157898,
0.23659996688365936,
-0.47979360818862915,
2.0361745357513428,
0.14737148582935333,
1.2650789022445679,
-0.41100171208381653,
-2.246687650680542,
0.6596192717552185,
-1.2581920623779297,
-1.0651922225952148,
0.8624162077903748,
-0.8451491594314575,
0.15269441902637482,
-1.2841932773590088,
-0.18734678626060486,
-0.835723876953125,
-1.183066487312317,
0.6421576142311096,
0.12374932318925858,
0.48457929491996765,
-0.5497032403945923,
0.37191322445869446,
-2.1696269512176514,
-1.320165753364563,
-0.25786006450653076,
-1.008756160736084,
0.488219290971756,
-0.34893473982810974,
0.6205887794494629,
-0.17755913734436035,
-0.005863480735570192,
0.39661964774131775,
1.446492075920105,
3.3335964679718018,
0.1048053577542305,
0.24151168763637543,
-0.15734195709228516,
-1.032735824584961,
1.4092165231704712,
0.9082548022270203,
-0.16155149042606354,
-0.4954715967178345,
-1.0214064121246338,
1.2161144018173218,
1.9447286128997803,
1.0786255598068237,
0.01521309930831194,
-0.8857725858688354,
-0.8022541403770447,
-0.006791973486542702,
0.14252138137817383,
0.5194308161735535,
0.9072846174240112,
0.10369516164064407,
0.052770718932151794,
1.445481538772583,
1.1626133918762207,
-0.3584118187427521,
0.39351046085357666,
-0.9031363129615784,
-0.4246704876422882,
0.4682655930519104,
0.30037105083465576,
-0.009468899108469486,
0.36946287751197815,
-1.0930736064910889,
-0.21021106839179993,
-0.3795594274997711,
-0.8424813151359558,
-0.7330560684204102,
-0.4413575828075409,
-0.4116247594356537,
1.6422984600067139,
0.05964207649230957,
-0.5687717795372009,
-0.020800350233912468,
-0.7263956069946289,
-0.06390544772148132,
-1.0247880220413208,
0.2901045083999634,
-0.11745071411132812,
-0.058833230286836624,
-0.15798482298851013,
1.6533923149108887,
-0.9236741662025452,
-2.0948383808135986,
0.21819721162319183,
0.19349965453147888,
-0.32180890440940857,
0.20463137328624725,
1.693644404411316,
0.6014712452888489,
1.4628994464874268,
1.3976454734802246,
1.0346215963363647,
-0.6640539765357971,
-1.3324145078659058,
0.6714513301849365,
0.9686477184295654,
-1.355662226676941,
0.8129444718360901,
-0.020095210522413254,
-0.5411805510520935,
0.598540186882019,
1.318778157234192,
0.4878780245780945,
-1.9792312383651733,
0.7957679033279419,
-0.9897447824478149,
0.7743983268737793,
0.7492985725402832,
0.7559335827827454,
0.16442811489105225,
0.7871811389923096,
-1.2452396154403687,
-1.1316982507705688,
-0.668801486492157,
-0.6623432636260986,
1.9030402898788452,
-0.35267847776412964,
0.530082106590271,
-0.23312237858772278,
-1.3180352449417114,
-0.059419188648462296,
0.7266829609870911,
0.37261998653411865,
-0.5144408941268921,
0.7909643650054932,
-0.6222155094146729,
-1.0394009351730347,
-1.281043529510498,
-0.4658951461315155,
-1.116506814956665,
-0.9171947240829468,
0.9952294230461121,
0.7694075107574463,
0.406423956155777,
1.8708797693252563,
0.6500151753425598,
0.2516605257987976,
-2.6164560317993164,
0.89374840259552,
0.32667404413223267,
-0.042453914880752563,
0.759331226348877,
0.3057786226272583,
1.065696358680725,
-0.049699172377586365,
0.5592591762542725,
-2.3541975021362305,
2.2831192016601562,
-0.1775866597890854,
0.6366665959358215,
0.0617925226688385,
-0.12787695229053497,
1.029557228088379,
0.5765888690948486,
0.5717042088508606,
-1.0841695070266724,
0.7704587578773499,
-0.6176927089691162,
1.2041950225830078,
0.843418538570404,
-0.8602688908576965,
-0.03574345260858536,
1.379703164100647,
0.49154290556907654,
-0.5155642628669739,
-0.9619280695915222,
-1.03607177734375,
0.9545102119445801,
1.6990594863891602,
-0.06356104463338852,
-0.017597533762454987,
0.8771467208862305,
0.7146161198616028,
-1.3105709552764893,
0.04760954901576042,
-0.7120202779769897,
-0.6303818821907043,
1.694169521331787,
2.0451178550720215,
-0.17008450627326965,
-0.1981050670146942,
-0.7402263879776001,
-1.240802526473999,
0.7955399751663208,
-0.024078086018562317,
0.032478585839271545,
0.743475079536438,
-0.6502613425254822,
1.1454851627349854,
0.7509909868240356,
0.9073127508163452,
0.22596290707588196,
0.26034772396087646,
0.3713691532611847,
-0.40858855843544006,
-1.2265714406967163,
-0.265973836183548,
-1.019729495048523,
-2.5939595699310303,
0.4632032513618469,
-0.21612705290317535,
-1.4409912824630737,
0.05301210284233093,
-1.0404601097106934,
0.8952810168266296,
-0.5705288052558899,
-1.1189979314804077,
-1.4239895343780518,
0.23490667343139648,
-0.08477861434221268,
0.8936793804168701,
-1.6044870615005493,
-0.07992097735404968,
1.2859421968460083,
0.9512742757797241,
-0.7121593356132507,
0.9987969994544983,
0.22574657201766968,
1.082108736038208,
0.8537460565567017,
-0.3743906319141388,
0.5253486633300781,
0.024351302534341812,
-1.2922847270965576,
0.4317828416824341,
1.199527621269226,
0.14338187873363495,
1.488305687904358,
-0.5620673894882202,
0.012363259680569172,
0.41423019766807556,
-0.5115533471107483,
-0.5370221138000488,
-0.5421854257583618,
0.6805444359779358,
-0.019019898027181625,
-0.9308986663818359,
-0.004804645199328661,
-0.05879073962569237,
-0.19687387347221375,
0.20564043521881104,
-1.4786204099655151,
-0.13122133910655975,
-0.3355518877506256,
-0.6171249747276306,
-1.2851831912994385,
-0.051140256226062775,
1.3514224290847778,
-0.7789723873138428,
-0.17399336397647858,
0.48534533381462097,
0.2878189980983734,
0.5984268188476562,
0.6274455785751343,
-0.760443925857544,
-0.22576645016670227,
-0.296559602022171,
-0.31089094281196594,
0.3761292099952698,
1.3688453435897827,
-0.08299987018108368,
-0.9803966283798218,
0.6819611191749573,
-0.39228686690330505,
0.10353028029203415,
2.0052971839904785,
0.04926805570721626,
-0.7958974838256836,
0.28450995683670044,
-0.7826551198959351,
1.8952480554580688,
1.7640328407287598,
1.3070507049560547,
-0.09645535796880722,
-0.9808568954467773,
0.5967462658882141,
-0.3746257722377777,
-0.3936820924282074,
0.8964117765426636,
0.37045323848724365,
-0.24975593388080597,
-1.3429080247879028,
0.6702764630317688,
1.2342759370803833,
-0.8220679759979248,
-0.7832503318786621,
0.11938370019197464,
-0.8069020509719849,
1.1730111837387085,
0.6488977670669556,
0.27942901849746704,
0.31375592947006226,
1.5565084218978882,
0.7727106213569641,
-0.4358663260936737,
0.5264168381690979,
0.45531007647514343,
-0.21150167286396027,
-2.027507781982422,
-1.1327506303787231,
0.3351677358150482,
-0.578752875328064,
-1.6369147300720215,
1.3859108686447144,
-1.204365849494934,
-1.0148866176605225,
0.5449018478393555,
0.13411904871463776,
1.3811615705490112,
0.3559871315956116,
1.59869384765625,
2.1095430850982666,
0.9246662855148315,
0.40201887488365173,
1.2615021467208862,
-0.19871798157691956,
-0.42706623673439026,
1.7456319332122803,
-0.4501364529132843,
0.5059601068496704,
1.0844700336456299,
-0.32827991247177124,
-1.1111221313476562,
-0.8392874002456665,
-1.231916069984436,
-0.7270163297653198,
1.1403170824050903,
0.10371607542037964,
-1.0926079750061035,
0.24001990258693695,
1.5804871320724487,
0.1297890841960907,
-0.2773154675960541,
0.7236610054969788,
0.3580280840396881,
-0.7735170722007751,
-0.04279201105237007,
-0.9670314192771912,
0.5342506170272827,
-0.24652422964572906,
-0.36717236042022705,
0.3179406523704529,
0.47378116846084595,
1.2889955043792725,
0.027720339596271515,
0.15227603912353516,
1.1868846416473389,
-1.34808349609375,
1.4981626272201538,
-0.7767319679260254,
0.3025546073913574,
-2.3709208965301514,
1.3604375123977661,
-0.7923988699913025,
1.9502907991409302,
-2.660176992416382,
0.4747755229473114,
-0.4769272804260254,
-0.4386989176273346,
0.26885783672332764,
-0.3641695976257324,
0.12864544987678528,
-0.09371897578239441,
-1.1647450923919678,
-0.09207859635353088,
-0.7350291609764099,
0.5791043639183044,
1.137938141822815,
1.422286868095398,
-1.1455520391464233,
-0.30950549244880676,
-1.7701987028121948,
-0.17473912239074707,
-0.759482204914093,
0.3494136929512024,
-1.880565881729126,
-0.23248255252838135,
-1.927660346031189,
-2.483755588531494,
-1.263822078704834,
-0.8287277221679688,
1.1134874820709229,
0.15285006165504456,
-0.8962860107421875,
1.19956374168396,
-0.37025704979896545,
-1.9001452922821045,
1.1440459489822388,
-2.264796257019043
] |
https://github.com/huggingface/datasets/issues/4772 | AssertionError when using label_cols in to_tf_dataset | Haha, I honestly have no idea why our data collators rename `"label"` (the standard label column name in our datasets) to `"labels"` (the standard label column name input to our models). It's been a pain point when I design TF data pipelines, though, because I don't want to hardcode things like that - especially in `datasets`, because the renaming is something that happens purely at the `transformers` end. I don't think I could make the change in the data collators themselves at this point, because it would break backward compatibility for everything in PyTorch as well as TF.
In the most recent version of `transformers` we added a [prepare_tf_dataset](https://huggingface.co/docs/transformers/main_classes/model#transformers.TFPreTrainedModel.prepare_tf_dataset) method to our models which takes care of these details for you, and even chooses appropriate columns and labels for the model you're using. In future we might make that the officially recommended way to convert HF datasets to `tf.data.Dataset`. | ## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
| 596 | 149 | AssertionError when using label_cols in to_tf_dataset
## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
Haha, I honestly have no idea why our data collators rename `"label"` (the standard label column name in our datasets) to `"labels"` (the standard label column name input to our models). It's been a pain point when I design TF data pipelines, though, because I don't want to hardcode things like that - especially in `datasets`, because the renaming is something that happens purely at the `transformers` end. I don't think I could make the change in the data collators themselves at this point, because it would break backward compatibility for everything in PyTorch as well as TF.
In the most recent version of `transformers` we added a [prepare_tf_dataset](https://huggingface.co/docs/transformers/main_classes/model#transformers.TFPreTrainedModel.prepare_tf_dataset) method to our models which takes care of these details for you, and even chooses appropriate columns and labels for the model you're using. In future we might make that the officially recommended way to convert HF datasets to `tf.data.Dataset`. | [
-1.1541593074798584,
-0.8660516738891602,
-0.6728720664978027,
1.4936919212341309,
-0.12377537041902542,
-1.2575757503509521,
0.18368355929851532,
-1.0404438972473145,
1.6896532773971558,
-0.8074159622192383,
0.2613469064235687,
-1.6852790117263794,
-0.019455701112747192,
-0.5560348033905029,
-0.6853878498077393,
-0.8759987354278564,
-0.3631308674812317,
-0.688154935836792,
1.0684407949447632,
2.4465625286102295,
1.26202392578125,
-1.2896788120269775,
2.7336695194244385,
0.684391975402832,
-0.23561161756515503,
-1.0005865097045898,
0.5001951456069946,
0.008025381714105606,
-1.3205933570861816,
-0.4147654175758362,
-0.9317396879196167,
-0.09440917521715164,
-0.5421103239059448,
-0.5911372900009155,
-0.006388859823346138,
0.42913028597831726,
-0.40559008717536926,
-0.4209810793399811,
-0.5637174844741821,
-0.845312237739563,
0.4738486409187317,
-0.35586437582969666,
0.9034816026687622,
-0.39928942918777466,
1.8037315607070923,
-0.551303505897522,
0.5077718496322632,
0.693628191947937,
1.3032112121582031,
0.1792575716972351,
0.04524017125368118,
0.3422771990299225,
0.33708831667900085,
0.05354940891265869,
0.590067982673645,
1.2238476276397705,
0.6191587448120117,
0.47213393449783325,
0.6866632699966431,
-2.237297773361206,
1.3291800022125244,
-0.9319788217544556,
0.2540648877620697,
1.315011978149414,
-0.9309393167495728,
0.2786201536655426,
-1.7038871049880981,
-0.0808982253074646,
0.5519497394561768,
-2.2554543018341064,
0.2868768572807312,
-1.3885585069656372,
-0.5142792463302612,
1.0072684288024902,
0.3794631361961365,
-1.1494783163070679,
0.11623671650886536,
-0.4361698031425476,
1.0305583477020264,
0.4666120707988739,
1.0941730737686157,
-1.6712161302566528,
-0.06241060793399811,
-0.21409949660301208,
0.13199785351753235,
-1.1942009925842285,
-1.6112077236175537,
0.5488044023513794,
0.6759500503540039,
0.6235432624816895,
-0.12802746891975403,
1.0491091012954712,
-1.0249698162078857,
0.6602944135665894,
-0.9634329080581665,
-1.7588077783584595,
-1.389005184173584,
-2.2681024074554443,
-2.299384355545044,
0.7254207134246826,
-0.4309940040111542,
-0.504541277885437,
2.0722973346710205,
-1.0334514379501343,
-1.7931357622146606,
1.0545811653137207,
0.28416886925697327,
-0.0029090591706335545,
2.338850736618042,
0.21377231180667877,
-0.7375882863998413,
0.5025343894958496,
-0.7683922052383423,
0.663922905921936,
-0.3242681324481964,
1.3212121725082397,
0.4055432379245758,
-1.0879848003387451,
1.5749329328536987,
-0.4412553310394287,
0.6163841485977173,
-0.6865068674087524,
-0.43393877148628235,
-0.7252572774887085,
0.2035427987575531,
1.9258620738983154,
-0.33570799231529236,
1.4888496398925781,
-0.22712315618991852,
-1.5465943813323975,
-1.5016124248504639,
0.8107302188873291,
0.4471287727355957,
-0.7670755386352539,
0.10998939722776413,
-0.4083816707134247,
0.10229980200529099,
0.0033261366188526154,
1.1627157926559448,
1.2624343633651733,
0.7652609348297119,
-0.36364200711250305,
-0.8152164220809937,
0.2381337732076645,
-0.028736663982272148,
-0.6990964412689209,
-1.7844058275222778,
-0.31528380513191223,
0.16487012803554535,
0.6244157552719116,
-1.2113749980926514,
1.786975383758545,
0.8946375846862793,
1.9036744832992554,
1.0294170379638672,
-0.3753453195095062,
1.5176053047180176,
0.11218580603599548,
1.9054721593856812,
-0.36998221278190613,
0.6680389642715454,
-0.35494184494018555,
-1.1933863162994385,
0.8392481803894043,
-0.29783567786216736,
-2.0488479137420654,
-0.7419909238815308,
-0.8346819877624512,
-0.09386834502220154,
-0.8005523681640625,
0.954667329788208,
-0.27229076623916626,
-1.4514390230178833,
0.151937335729599,
-0.7619242668151855,
0.13368980586528778,
-1.2686039209365845,
0.2603875994682312,
0.73488450050354,
-0.6382241249084473,
0.013149883598089218,
-0.2924194931983948,
-1.2917083501815796,
-0.41352108120918274,
0.38096725940704346,
1.8783475160598755,
-0.7098817825317383,
0.9205728769302368,
1.0620027780532837,
-0.726144552230835,
0.09064335376024246,
0.29579952359199524,
-0.3110036253929138,
0.8446487188339233,
-1.0454237461090088,
-0.43505048751831055,
1.2105464935302734,
-0.16604779660701752,
-0.6827363967895508,
1.4237123727798462,
0.7413604259490967,
-1.0141260623931885,
-0.20636482536792755,
-0.17444950342178345,
-0.8332010507583618,
0.07810214906930923,
-1.577955961227417,
-0.05465827137231827,
0.3921780288219452,
-1.5356924533843994,
-0.48509925603866577,
-0.16281919181346893,
1.3660900592803955,
-0.1248246282339096,
1.4298434257507324,
-0.3321867287158966,
-0.21698494255542755,
-0.3941080570220947,
-0.43315210938453674,
0.14948895573616028,
-0.23669390380382538,
-0.6102340221405029,
0.2249879091978073,
-0.7665828466415405,
0.2732505202293396,
1.465528130531311,
0.31143003702163696,
0.04007720574736595,
0.5675886869430542,
1.125654697418213,
0.37490758299827576,
-0.14331871271133423,
-0.84124755859375,
-1.6075785160064697,
1.9737740755081177,
-1.3780773878097534,
2.011383295059204,
0.7039810419082642,
-0.06256981194019318,
-1.789522647857666,
-1.9747651815414429,
1.296114206314087,
1.1091153621673584,
2.393156051635742,
0.5491176843643188,
0.4593771696090698,
-0.8123126029968262,
-0.7135835886001587,
0.34556499123573303,
-0.9895600080490112,
-0.6841191053390503,
0.16957467794418335,
2.341909885406494,
1.7660433053970337,
-0.4325870871543884,
-0.17162080109119415,
-1.008910059928894,
1.4323018789291382,
-0.30001819133758545,
0.2630566954612732,
1.9880515336990356,
-0.2945095896720886,
-1.0319145917892456,
1.3837131261825562,
-2.3236193656921387,
0.2100706547498703,
2.0087673664093018,
0.22593772411346436,
0.08551640063524246,
-1.3343316316604614,
-0.6883716583251953,
-0.2847452461719513,
-0.4079926311969757,
-1.278327226638794,
0.4578080475330353,
-0.20737481117248535,
-0.774465799331665,
-1.4243718385696411,
0.18039391934871674,
-1.075441837310791,
-1.7075886726379395,
0.26137128472328186,
1.9022904634475708,
2.0176901817321777,
-0.7322368621826172,
1.5263131856918335,
-0.3076680898666382,
0.17311051487922668,
1.2838482856750488,
1.2993896007537842,
3.123586654663086,
1.9087836742401123,
-1.3395631313323975,
0.7822732925415039,
-0.08631499856710434,
-0.4629088342189789,
1.2228535413742065,
-1.236214280128479,
1.2485870122909546,
-0.25156545639038086,
-1.2572929859161377,
-1.240740180015564,
0.9549927711486816,
0.5119569301605225,
0.020296858623623848,
-0.49656587839126587,
1.177526831626892,
0.0193732101470232,
1.3873845338821411,
0.5628348588943481,
-0.38866084814071655,
0.6510394811630249,
-0.3829999566078186,
-0.5142390727996826,
1.5457466840744019,
0.21491380035877228,
-1.4388585090637207,
-2.3064420223236084,
-0.23226182162761688,
-0.8505901098251343,
0.02499345690011978,
-0.6337200403213501,
-0.9512854814529419,
1.6667606830596924,
0.4386729300022125,
-1.1221966743469238,
-0.2989596128463745,
-0.29492732882499695,
-0.5414814949035645,
2.695949077606201,
-1.3385792970657349,
-0.15724270045757294,
-1.013529896736145,
-0.6315174102783203,
1.6200661659240723,
-1.1690067052841187,
-0.2555176019668579,
-1.0140749216079712,
-0.5495636463165283,
-1.2689059972763062,
-0.5397926568984985,
0.02964366227388382,
-0.9377846717834473,
0.8244098424911499,
0.1392892599105835,
-1.218883991241455,
-0.3445030152797699,
-0.9678072929382324,
0.9854451417922974,
-0.1696745753288269,
0.12854830920696259,
1.8468636274337769,
0.3433862626552582,
-0.41085436940193176,
0.7258080244064331,
1.176720142364502,
0.6181946992874146,
-0.6506903171539307,
0.20983856916427612,
-0.7444297075271606,
0.31132689118385315,
-1.36908757686615,
0.22556331753730774,
-2.890998601913452,
0.6661138534545898,
-0.08207013458013535,
-0.04027564823627472,
-0.07090207934379578,
-1.3598328828811646,
1.063138723373413,
2.5683300495147705,
-1.202415943145752,
0.5262982845306396,
0.3060292899608612,
1.1558655500411987,
-1.582494854927063,
0.24613693356513977,
-0.47017571330070496,
2.0242416858673096,
0.13802693784236908,
1.254984974861145,
-0.39634498953819275,
-2.236607789993286,
0.6598802804946899,
-1.2683429718017578,
-1.0927318334579468,
0.8785845041275024,
-0.8307492733001709,
0.15183870494365692,
-1.2950034141540527,
-0.19090859591960907,
-0.8602409362792969,
-1.1701990365982056,
0.6156059503555298,
0.12100748717784882,
0.46639707684516907,
-0.5316684246063232,
0.37704768776893616,
-2.18416428565979,
-1.313468098640442,
-0.25460085272789,
-0.9931501150131226,
0.48948121070861816,
-0.3421424329280853,
0.6172372102737427,
-0.16169239580631256,
0.007886946201324463,
0.39629730582237244,
1.4504481554031372,
3.347126007080078,
0.11116441339254379,
0.21769650280475616,
-0.15377794206142426,
-1.0332266092300415,
1.425745964050293,
0.8997529745101929,
-0.16079650819301605,
-0.5012741088867188,
-1.0129563808441162,
1.222102403640747,
1.933666467666626,
1.0818208456039429,
0.02180907502770424,
-0.8999167680740356,
-0.7899205684661865,
-0.0072925398126244545,
0.1117260754108429,
0.5081762075424194,
0.8938727378845215,
0.11354567110538483,
0.04200558364391327,
1.4290111064910889,
1.1454805135726929,
-0.3328130543231964,
0.38050761818885803,
-0.89998459815979,
-0.4053962528705597,
0.4777403473854065,
0.2930358946323395,
0.003923063166439533,
0.3518957197666168,
-1.0783038139343262,
-0.2144405096769333,
-0.3995051383972168,
-0.8332427740097046,
-0.7453382015228271,
-0.4385032653808594,
-0.3897671699523926,
1.6300288438796997,
0.04941318929195404,
-0.5729429721832275,
-0.034942351281642914,
-0.7214444875717163,
-0.06605426967144012,
-1.022936224937439,
0.2984864115715027,
-0.100357785820961,
-0.07026512920856476,
-0.1488085836172104,
1.620516061782837,
-0.940676212310791,
-2.1076791286468506,
0.19916938245296478,
0.19029824435710907,
-0.3251734972000122,
0.19445602595806122,
1.6921535730361938,
0.6197808980941772,
1.4481136798858643,
1.3877460956573486,
1.014363408088684,
-0.6635311841964722,
-1.339094638824463,
0.6410963535308838,
0.9875867366790771,
-1.3506639003753662,
0.8076324462890625,
-0.020372670143842697,
-0.541122555732727,
0.6061276197433472,
1.3036363124847412,
0.4901842176914215,
-1.9747405052185059,
0.7834957838058472,
-0.9347916841506958,
0.7686471939086914,
0.7289119958877563,
0.7502069473266602,
0.17998966574668884,
0.7991739511489868,
-1.2353180646896362,
-1.1311334371566772,
-0.6666194200515747,
-0.6549626588821411,
1.9124687910079956,
-0.3423762917518616,
0.5353094339370728,
-0.2530501186847687,
-1.3085767030715942,
-0.0570303313434124,
0.7338265180587769,
0.3934314250946045,
-0.5112926959991455,
0.7810045480728149,
-0.6282720565795898,
-1.0415619611740112,
-1.2875922918319702,
-0.44907549023628235,
-1.108727216720581,
-0.9294614791870117,
0.9918795824050903,
0.7701653242111206,
0.41626712679862976,
1.871065378189087,
0.6782935857772827,
0.23825938999652863,
-2.621180534362793,
0.8845734596252441,
0.3326058089733124,
-0.05035291612148285,
0.7753669023513794,
0.2996649742126465,
1.0769957304000854,
-0.05040378496050835,
0.5641940832138062,
-2.3395402431488037,
2.2901346683502197,
-0.1702374517917633,
0.6449413299560547,
0.05719723552465439,
-0.15089017152786255,
1.0378131866455078,
0.5473606586456299,
0.5825891494750977,
-1.0839630365371704,
0.7872360944747925,
-0.5958820581436157,
1.1961617469787598,
0.8507022857666016,
-0.8652886152267456,
-0.02669115550816059,
1.3949042558670044,
0.5012942552566528,
-0.526637077331543,
-0.9773592948913574,
-1.0254467725753784,
0.9616804122924805,
1.7097294330596924,
-0.057519685477018356,
-0.02649940736591816,
0.8730669021606445,
0.7081407308578491,
-1.317026138305664,
0.06059996038675308,
-0.6976009607315063,
-0.6438512802124023,
1.695123553276062,
2.0397982597351074,
-0.15265098214149475,
-0.21324265003204346,
-0.7574505805969238,
-1.2484716176986694,
0.7956117391586304,
-0.014997582882642746,
0.049295395612716675,
0.7511281967163086,
-0.6600728034973145,
1.1531962156295776,
0.7645679712295532,
0.9186389446258545,
0.20754235982894897,
0.2754521369934082,
0.38020652532577515,
-0.40042275190353394,
-1.2221567630767822,
-0.28586244583129883,
-1.0151828527450562,
-2.5990002155303955,
0.47463640570640564,
-0.21443383395671844,
-1.433928370475769,
0.03893425688147545,
-1.0306575298309326,
0.903601884841919,
-0.562045693397522,
-1.108414649963379,
-1.457600474357605,
0.24045678973197937,
-0.05427079275250435,
0.8949556350708008,
-1.5945576429367065,
-0.09795112907886505,
1.2943693399429321,
0.9718259572982788,
-0.7138817310333252,
0.9806371927261353,
0.21947620809078217,
1.0641438961029053,
0.8392614126205444,
-0.3815753757953644,
0.5329772233963013,
0.005638597533106804,
-1.2984243631362915,
0.4577054977416992,
1.220592975616455,
0.15743578970432281,
1.4806337356567383,
-0.5658326148986816,
0.042766325175762177,
0.4126819372177124,
-0.5207611322402954,
-0.5695908069610596,
-0.5395916700363159,
0.6815863847732544,
-0.019065380096435547,
-0.9520148038864136,
-0.025047477334737778,
-0.07289288938045502,
-0.1850072741508484,
0.20793649554252625,
-1.4669362306594849,
-0.14241044223308563,
-0.3240601420402527,
-0.6395725011825562,
-1.266118049621582,
-0.07095978409051895,
1.3342525959014893,
-0.7808499336242676,
-0.18598546087741852,
0.49442258477211,
0.2739037573337555,
0.6000251770019531,
0.5962406396865845,
-0.792444109916687,
-0.22755615413188934,
-0.3048829436302185,
-0.3086949288845062,
0.35170096158981323,
1.3770207166671753,
-0.08241970092058182,
-0.967147707939148,
0.6618939638137817,
-0.3839865028858185,
0.09525679796934128,
2.0201640129089355,
0.05508320778608322,
-0.7742658853530884,
0.29486721754074097,
-0.7761263847351074,
1.893583059310913,
1.7768195867538452,
1.320681095123291,
-0.09873337298631668,
-0.9812003374099731,
0.5858441591262817,
-0.40106236934661865,
-0.3837604522705078,
0.908388614654541,
0.3611062467098236,
-0.23949019610881805,
-1.3495149612426758,
0.6811155080795288,
1.2405784130096436,
-0.8345648050308228,
-0.773638129234314,
0.1322721540927887,
-0.8281681537628174,
1.1660476922988892,
0.6456459760665894,
0.2961012125015259,
0.3080357313156128,
1.5448800325393677,
0.7904684543609619,
-0.4218085706233978,
0.509857177734375,
0.4669027626514435,
-0.2167670577764511,
-2.0187394618988037,
-1.136720895767212,
0.363786518573761,
-0.5827699899673462,
-1.647058367729187,
1.415903091430664,
-1.201481819152832,
-1.0289649963378906,
0.5524458885192871,
0.14617705345153809,
1.3726907968521118,
0.3557545840740204,
1.5884761810302734,
2.0878329277038574,
0.9189938306808472,
0.3708111047744751,
1.2480212450027466,
-0.17962299287319183,
-0.4241880774497986,
1.7635858058929443,
-0.4489784836769104,
0.4896017014980316,
1.0675873756408691,
-0.3533214330673218,
-1.1357779502868652,
-0.8398945331573486,
-1.2392274141311646,
-0.7204426527023315,
1.1408528089523315,
0.11184706538915634,
-1.1151610612869263,
0.22019875049591064,
1.5818700790405273,
0.13216204941272736,
-0.2753090262413025,
0.7390314340591431,
0.3725798428058624,
-0.7702635526657104,
-0.041936375200748444,
-0.9636934995651245,
0.5233361721038818,
-0.22120115160942078,
-0.35897672176361084,
0.306801974773407,
0.48458242416381836,
1.3169001340866089,
0.025332245975732803,
0.15413236618041992,
1.2017767429351807,
-1.3476598262786865,
1.510568618774414,
-0.7752794027328491,
0.29154565930366516,
-2.370237112045288,
1.3518329858779907,
-0.7929160594940186,
1.9421387910842896,
-2.6503047943115234,
0.47957947850227356,
-0.4739028811454773,
-0.41794127225875854,
0.24610906839370728,
-0.36730796098709106,
0.12899084389209747,
-0.08319228887557983,
-1.1638526916503906,
-0.09448041766881943,
-0.7289372682571411,
0.6053446531295776,
1.150657296180725,
1.4353221654891968,
-1.1652508974075317,
-0.306808739900589,
-1.7653443813323975,
-0.15622946619987488,
-0.75800621509552,
0.330258846282959,
-1.8786745071411133,
-0.22600603103637695,
-1.9206024408340454,
-2.4853954315185547,
-1.2612853050231934,
-0.8160015344619751,
1.1163995265960693,
0.1765749454498291,
-0.9076906442642212,
1.2186954021453857,
-0.37116730213165283,
-1.8919881582260132,
1.1680716276168823,
-2.271601915359497
] |
https://github.com/huggingface/datasets/issues/4772 | AssertionError when using label_cols in to_tf_dataset | Interesting, that'd be great especially for clarity. https://huggingface.co/docs/datasets/use_with_tensorflow#data-loading already improved clarity, yet, all those options will still confuse people. Looking forward to those advances in the hope there'll be only 1 way in the future ;)
Anyways, I am happy for the time being with the work-around you provided. Thank you! | ## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
| 596 | 51 | AssertionError when using label_cols in to_tf_dataset
## Describe the bug
An incorrect `AssertionError` is raised when using `label_cols` in `to_tf_dataset` and the label's key name is `label`.
The assertion is in this line:
https://github.com/huggingface/datasets/blob/2.4.0/src/datasets/arrow_dataset.py#L475
## Steps to reproduce the bug
```python
from datasets import load_dataset
from transformers import DefaultDataCollator
dataset = load_dataset('glue', 'mrpc', split='train')
tf_dataset = dataset.to_tf_dataset(
columns=["sentence1", "sentence2", "idx"],
label_cols=["label"],
batch_size=16,
collate_fn=DefaultDataCollator(return_tensors="tf"),
)
```
## Expected results
No assertion error.
## Actual results
```
AssertionError: in user code:
File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 475, in split_features_and_labels *
assert set(features.keys()).union(labels.keys()) == set(input_batch.keys())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.45.1.el8_4.ppc64le-ppc64le-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.3
Interesting, that'd be great especially for clarity. https://huggingface.co/docs/datasets/use_with_tensorflow#data-loading already improved clarity, yet, all those options will still confuse people. Looking forward to those advances in the hope there'll be only 1 way in the future ;)
Anyways, I am happy for the time being with the work-around you provided. Thank you! | [
-1.152428388595581,
-0.881292462348938,
-0.6650311350822449,
1.5024480819702148,
-0.12131147086620331,
-1.266408085823059,
0.16144436597824097,
-1.0218582153320312,
1.6801342964172363,
-0.7962450981140137,
0.2373896986246109,
-1.6886202096939087,
-0.021938413381576538,
-0.5475211143493652,
-0.6840544939041138,
-0.8786572813987732,
-0.3386690616607666,
-0.6941706538200378,
1.0927320718765259,
2.447458505630493,
1.263048768043518,
-1.3003884553909302,
2.7363598346710205,
0.6817497611045837,
-0.2462436556816101,
-1.0013995170593262,
0.516171395778656,
0.02357214316725731,
-1.3306790590286255,
-0.3991163372993469,
-0.940068244934082,
-0.08584798872470856,
-0.538349449634552,
-0.5539232492446899,
0.0017329743131995201,
0.4352499842643738,
-0.3669893741607666,
-0.41600096225738525,
-0.5709056258201599,
-0.8249804973602295,
0.44655293226242065,
-0.34498047828674316,
0.8982580304145813,
-0.37897181510925293,
1.800572395324707,
-0.5447165369987488,
0.49094367027282715,
0.6828228831291199,
1.2925918102264404,
0.16972336173057556,
0.039497412741184235,
0.3088213801383972,
0.33815616369247437,
0.06985007226467133,
0.5860393047332764,
1.229055404663086,
0.6250060796737671,
0.47039997577667236,
0.6770908832550049,
-2.2559971809387207,
1.3356542587280273,
-0.9255461692810059,
0.26686257123947144,
1.3361855745315552,
-0.9440723657608032,
0.2906615138053894,
-1.7199187278747559,
-0.06558938324451447,
0.5596160888671875,
-2.2588388919830322,
0.2739408016204834,
-1.3738911151885986,
-0.5307741761207581,
0.9952404499053955,
0.3982737064361572,
-1.164488673210144,
0.11460645496845245,
-0.4657858610153198,
1.0322610139846802,
0.486907958984375,
1.0793471336364746,
-1.6785067319869995,
-0.04721039533615112,
-0.20116038620471954,
0.12437176704406738,
-1.236242413520813,
-1.6040840148925781,
0.5556610822677612,
0.7047209739685059,
0.6525799036026001,
-0.12313299626111984,
1.044187307357788,
-1.0247108936309814,
0.6807721257209778,
-0.971260666847229,
-1.7781397104263306,
-1.3849629163742065,
-2.306199312210083,
-2.32379150390625,
0.7289308905601501,
-0.4254925847053528,
-0.49711692333221436,
2.0808310508728027,
-1.019382119178772,
-1.7904067039489746,
1.0572863817214966,
0.2815336585044861,
-0.004468558356165886,
2.3687686920166016,
0.2170828878879547,
-0.7514886260032654,
0.4994356632232666,
-0.7939345240592957,
0.6756228804588318,
-0.32270491123199463,
1.322596549987793,
0.42355942726135254,
-1.070454478263855,
1.5868161916732788,
-0.4348561763763428,
0.5903525352478027,
-0.670847475528717,
-0.46021270751953125,
-0.7129824757575989,
0.190336212515831,
1.9370588064193726,
-0.33726996183395386,
1.487481951713562,
-0.24178655445575714,
-1.5410559177398682,
-1.510038137435913,
0.8106165528297424,
0.4239102005958557,
-0.7685036063194275,
0.11066807806491852,
-0.40744227170944214,
0.09837397187948227,
-0.009839184582233429,
1.1508758068084717,
1.2524222135543823,
0.7363192439079285,
-0.3815351128578186,
-0.8246329426765442,
0.21502500772476196,
-0.05156470462679863,
-0.6655246019363403,
-1.7902448177337646,
-0.29286789894104004,
0.15376144647598267,
0.6377704739570618,
-1.211594820022583,
1.7977955341339111,
0.8767473697662354,
1.9421911239624023,
1.009852647781372,
-0.37830013036727905,
1.5055795907974243,
0.09845258295536041,
1.9158588647842407,
-0.40104424953460693,
0.6567625999450684,
-0.3741975426673889,
-1.1844333410263062,
0.8402142524719238,
-0.2989104390144348,
-2.0156571865081787,
-0.7240413427352905,
-0.8399831056594849,
-0.11215171962976456,
-0.7860875129699707,
0.9432742595672607,
-0.25727999210357666,
-1.4644359350204468,
0.1493048071861267,
-0.754503607749939,
0.15272711217403412,
-1.271270513534546,
0.2485649138689041,
0.7540232539176941,
-0.6245864033699036,
0.0029568206518888474,
-0.2837144136428833,
-1.3027851581573486,
-0.43612509965896606,
0.4009610414505005,
1.8695319890975952,
-0.666591227054596,
0.9254164695739746,
1.0718680620193481,
-0.7207320332527161,
0.09027343988418579,
0.2858808636665344,
-0.3078269958496094,
0.8258641958236694,
-1.0432521104812622,
-0.4433133602142334,
1.2075916528701782,
-0.19235120713710785,
-0.6858298182487488,
1.4459073543548584,
0.7481167316436768,
-1.03034245967865,
-0.22001060843467712,
-0.17888668179512024,
-0.8023571372032166,
0.07606890797615051,
-1.5922759771347046,
-0.07376077771186829,
0.4108692407608032,
-1.5242503881454468,
-0.47219306230545044,
-0.14992110431194305,
1.351282000541687,
-0.1152569130063057,
1.4197946786880493,
-0.29345160722732544,
-0.19654515385627747,
-0.39459824562072754,
-0.453102707862854,
0.16060985624790192,
-0.24668586254119873,
-0.5900688767433167,
0.24089209735393524,
-0.7933298945426941,
0.29075103998184204,
1.483245611190796,
0.288135290145874,
0.05569295585155487,
0.5550612211227417,
1.1173875331878662,
0.3826463222503662,
-0.1343291699886322,
-0.8508603572845459,
-1.5855810642242432,
1.9689241647720337,
-1.3869693279266357,
1.9990578889846802,
0.7004266977310181,
-0.0623287707567215,
-1.8129335641860962,
-1.9597529172897339,
1.3129253387451172,
1.1095314025878906,
2.3785150051116943,
0.5320114493370056,
0.4357367157936096,
-0.8246244192123413,
-0.7230136394500732,
0.3303920030593872,
-0.955005407333374,
-0.6813012361526489,
0.17599283158779144,
2.3641045093536377,
1.7785134315490723,
-0.4280916452407837,
-0.1599106341600418,
-1.0093897581100464,
1.4219738245010376,
-0.28954094648361206,
0.274635910987854,
1.993170142173767,
-0.30024123191833496,
-1.0082625150680542,
1.3551175594329834,
-2.355803966522217,
0.25135040283203125,
2.0331947803497314,
0.21941374242305756,
0.11994326114654541,
-1.3612663745880127,
-0.6907809376716614,
-0.3000509738922119,
-0.4127007722854614,
-1.255378246307373,
0.4669087529182434,
-0.21662531793117523,
-0.8037433624267578,
-1.4256998300552368,
0.167503222823143,
-1.0861778259277344,
-1.7316750288009644,
0.2732030153274536,
1.9085898399353027,
2.031156539916992,
-0.7439913749694824,
1.5005581378936768,
-0.306704580783844,
0.15242964029312134,
1.293328046798706,
1.3010365962982178,
3.1063969135284424,
1.9228854179382324,
-1.3114136457443237,
0.7982701659202576,
-0.10597066581249237,
-0.4411886930465698,
1.2191346883773804,
-1.2094923257827759,
1.2486956119537354,
-0.2652586102485657,
-1.2711691856384277,
-1.2488547563552856,
0.9851492047309875,
0.5092858672142029,
0.00617370568215847,
-0.5198351144790649,
1.1884092092514038,
0.05664624273777008,
1.3711189031600952,
0.5964835286140442,
-0.3964662551879883,
0.6195662617683411,
-0.3806154727935791,
-0.5167459845542908,
1.551324486732483,
0.19958089292049408,
-1.4600530862808228,
-2.284562349319458,
-0.24806267023086548,
-0.8665984869003296,
0.004132065922021866,
-0.6417875289916992,
-0.9726667404174805,
1.6567226648330688,
0.4497455954551697,
-1.094685435295105,
-0.26444512605667114,
-0.2938774824142456,
-0.530867338180542,
2.6903555393218994,
-1.3322912454605103,
-0.144110769033432,
-1.0122222900390625,
-0.6187872290611267,
1.6330997943878174,
-1.1874547004699707,
-0.24200956523418427,
-1.0141034126281738,
-0.5883931517601013,
-1.2705471515655518,
-0.5157561302185059,
0.015540575608611107,
-0.9322035908699036,
0.80930095911026,
0.1115654706954956,
-1.2162033319473267,
-0.3326398730278015,
-0.9553363919258118,
1.0239018201828003,
-0.17095181345939636,
0.11027872562408447,
1.8434107303619385,
0.3233028054237366,
-0.43796688318252563,
0.7541466355323792,
1.1733709573745728,
0.6279312372207642,
-0.6840039491653442,
0.21471717953681946,
-0.7303259968757629,
0.34640365839004517,
-1.358315348625183,
0.21623235940933228,
-2.9084205627441406,
0.6545113325119019,
-0.07528577744960785,
-0.04174797981977463,
-0.06237582489848137,
-1.3501176834106445,
1.0749584436416626,
2.5390002727508545,
-1.223434329032898,
0.5286772847175598,
0.31813257932662964,
1.1580018997192383,
-1.551841378211975,
0.25183433294296265,
-0.4723365902900696,
2.0317795276641846,
0.14808404445648193,
1.2632763385772705,
-0.4256579279899597,
-2.228832244873047,
0.6522133350372314,
-1.2722320556640625,
-1.0486180782318115,
0.8577434420585632,
-0.8497167229652405,
0.1896331012248993,
-1.3119224309921265,
-0.17554055154323578,
-0.8567652106285095,
-1.2081818580627441,
0.6284998655319214,
0.11899162828922272,
0.4473777413368225,
-0.531978189945221,
0.38674813508987427,
-2.169448137283325,
-1.3347055912017822,
-0.25548991560935974,
-1.00619637966156,
0.4998319149017334,
-0.3396502137184143,
0.6168466806411743,
-0.14516617357730865,
0.0058944858610630035,
0.3856703042984009,
1.4478470087051392,
3.3448634147644043,
0.09170590341091156,
0.21976500749588013,
-0.15087422728538513,
-1.041307806968689,
1.4209753274917603,
0.9185594320297241,
-0.15287411212921143,
-0.5101245641708374,
-1.007717251777649,
1.2510188817977905,
1.9524954557418823,
1.0979355573654175,
0.026498254388570786,
-0.9002864360809326,
-0.8020597696304321,
0.01154666393995285,
0.13179664313793182,
0.5244690775871277,
0.9005595445632935,
0.08226731419563293,
0.05966445058584213,
1.4305014610290527,
1.1505694389343262,
-0.331437885761261,
0.37396782636642456,
-0.9275098443031311,
-0.40928250551223755,
0.4657583236694336,
0.28624415397644043,
0.0035557514056563377,
0.3892472982406616,
-1.1053770780563354,
-0.2188987135887146,
-0.38194721937179565,
-0.8398228883743286,
-0.7279796600341797,
-0.4211755394935608,
-0.4087165594100952,
1.63192617893219,
0.06131371855735779,
-0.5631381273269653,
-0.004069302696734667,
-0.7125365138053894,
-0.07857831567525864,
-1.0326259136199951,
0.2918207049369812,
-0.10778335481882095,
-0.043593183159828186,
-0.1638443022966385,
1.6540857553482056,
-0.9445860385894775,
-2.1060726642608643,
0.20808769762516022,
0.21016713976860046,
-0.311331570148468,
0.1942978799343109,
1.6967930793762207,
0.5973185300827026,
1.4420084953308105,
1.3857078552246094,
1.0223169326782227,
-0.6727803349494934,
-1.3473091125488281,
0.6624032855033875,
0.992638111114502,
-1.354629397392273,
0.8306947946548462,
-0.0492255799472332,
-0.5461515784263611,
0.6183556318283081,
1.3192522525787354,
0.4810038208961487,
-1.9768121242523193,
0.7963566780090332,
-0.966763973236084,
0.7764478921890259,
0.7391518354415894,
0.7725545763969421,
0.17417913675308228,
0.7936367392539978,
-1.2484363317489624,
-1.1271190643310547,
-0.6727238297462463,
-0.6504777073860168,
1.9126474857330322,
-0.3427433371543884,
0.5235230922698975,
-0.2210972160100937,
-1.3084228038787842,
-0.05756058543920517,
0.7303608655929565,
0.37324678897857666,
-0.5047687292098999,
0.8130844235420227,
-0.6195113658905029,
-1.0144857168197632,
-1.2735562324523926,
-0.4591965079307556,
-1.1026623249053955,
-0.9071117043495178,
0.9841485619544983,
0.7612190842628479,
0.43769145011901855,
1.8696229457855225,
0.6390737295150757,
0.2718967795372009,
-2.6165823936462402,
0.9082800149917603,
0.31511032581329346,
-0.046755533665418625,
0.7627027630805969,
0.29255831241607666,
1.094580888748169,
-0.05099115148186684,
0.5674743056297302,
-2.332096815109253,
2.271778106689453,
-0.1646367609500885,
0.6502789258956909,
0.06825476139783859,
-0.13300107419490814,
1.0373939275741577,
0.5651103258132935,
0.5784688591957092,
-1.0834096670150757,
0.780365526676178,
-0.588124692440033,
1.1956090927124023,
0.8358379602432251,
-0.8568434715270996,
-0.028249461203813553,
1.388566493988037,
0.48950719833374023,
-0.497519850730896,
-0.9774366617202759,
-0.9957610964775085,
0.973200261592865,
1.6795440912246704,
-0.05591101199388504,
-0.035802051424980164,
0.8748721480369568,
0.6903959512710571,
-1.2969127893447876,
0.03721587732434273,
-0.686152458190918,
-0.6276351809501648,
1.6973868608474731,
2.043532371520996,
-0.1769626885652542,
-0.1821955442428589,
-0.7531058192253113,
-1.2406370639801025,
0.7626499533653259,
-0.028707042336463928,
0.021133292466402054,
0.7507980465888977,
-0.6491588354110718,
1.1222500801086426,
0.7191762328147888,
0.9179043769836426,
0.1693926602602005,
0.27246206998825073,
0.3616427183151245,
-0.39556723833084106,
-1.2357330322265625,
-0.2924298644065857,
-1.0141372680664062,
-2.6124300956726074,
0.44062143564224243,
-0.23588332533836365,
-1.4352139234542847,
0.0657161995768547,
-1.0504803657531738,
0.9077211022377014,
-0.5816429257392883,
-1.1168153285980225,
-1.4268900156021118,
0.25199687480926514,
-0.09469571709632874,
0.8875516653060913,
-1.6246955394744873,
-0.10691285133361816,
1.295059084892273,
0.9552516937255859,
-0.6874819993972778,
1.004424810409546,
0.23397226631641388,
1.0484578609466553,
0.8271318674087524,
-0.3618481159210205,
0.5430911183357239,
0.034653190523386,
-1.3019452095031738,
0.4391328692436218,
1.2035040855407715,
0.15652966499328613,
1.4552204608917236,
-0.5603315830230713,
0.02803850546479225,
0.43596142530441284,
-0.5225828289985657,
-0.5461871027946472,
-0.5064103007316589,
0.6886350512504578,
-0.015801915898919106,
-0.95740807056427,
-0.033717699348926544,
-0.07313600182533264,
-0.18826498091220856,
0.22050651907920837,
-1.4798470735549927,
-0.1669619381427765,
-0.3365176320075989,
-0.605480968952179,
-1.2974616289138794,
-0.05915363132953644,
1.3265877962112427,
-0.7849947810173035,
-0.19170182943344116,
0.4859772324562073,
0.29708290100097656,
0.59278404712677,
0.6133366823196411,
-0.7603579759597778,
-0.22033846378326416,
-0.3123576045036316,
-0.2937079071998596,
0.3522171974182129,
1.3522727489471436,
-0.08272816985845566,
-0.9813711643218994,
0.670096755027771,
-0.4016680121421814,
0.1207432746887207,
2.022559404373169,
0.05090590938925743,
-0.8020555377006531,
0.3012409806251526,
-0.7695498466491699,
1.8822673559188843,
1.7439684867858887,
1.3192098140716553,
-0.10330338031053543,
-0.9482862949371338,
0.584039032459259,
-0.34986215829849243,
-0.39186424016952515,
0.8904781937599182,
0.3782079815864563,
-0.25077807903289795,
-1.3428306579589844,
0.6822453141212463,
1.239258050918579,
-0.8368540406227112,
-0.7766928672790527,
0.1583625227212906,
-0.8052717447280884,
1.1728862524032593,
0.6482887864112854,
0.2840437889099121,
0.3005518913269043,
1.5337787866592407,
0.7647562026977539,
-0.4534432291984558,
0.5076804161071777,
0.45341169834136963,
-0.22213245928287506,
-2.0179123878479004,
-1.1034026145935059,
0.35837388038635254,
-0.5812472105026245,
-1.6422778367996216,
1.3894003629684448,
-1.1966246366500854,
-1.0060399770736694,
0.5344116687774658,
0.14414158463478088,
1.3496392965316772,
0.36496949195861816,
1.6119719743728638,
2.092625379562378,
0.9075713753700256,
0.3920876383781433,
1.2598333358764648,
-0.18505553901195526,
-0.42764973640441895,
1.7566888332366943,
-0.4535437822341919,
0.5124650597572327,
1.0751268863677979,
-0.35457056760787964,
-1.1111183166503906,
-0.843076229095459,
-1.2300657033920288,
-0.7079803347587585,
1.1277023553848267,
0.11263543367385864,
-1.111748218536377,
0.23456740379333496,
1.5583254098892212,
0.13211451470851898,
-0.263122022151947,
0.742866575717926,
0.36382681131362915,
-0.7604368329048157,
-0.0460069365799427,
-0.9611005783081055,
0.5107443332672119,
-0.23096199333667755,
-0.35221731662750244,
0.30651891231536865,
0.4864761233329773,
1.2857980728149414,
0.031162403523921967,
0.16513608396053314,
1.1893525123596191,
-1.348106026649475,
1.4963011741638184,
-0.7757781744003296,
0.29946279525756836,
-2.3787567615509033,
1.3466938734054565,
-0.7955458760261536,
1.930844783782959,
-2.660555124282837,
0.47305572032928467,
-0.495979905128479,
-0.42809540033340454,
0.24876578152179718,
-0.3517552614212036,
0.11858846247196198,
-0.09231870621442795,
-1.1586633920669556,
-0.08638527244329453,
-0.7466378211975098,
0.5937299728393555,
1.1293163299560547,
1.4288164377212524,
-1.1634132862091064,
-0.2901514768600464,
-1.784598469734192,
-0.15729555487632751,
-0.7743092179298401,
0.33722740411758423,
-1.8857979774475098,
-0.20657405257225037,
-1.9189438819885254,
-2.490351676940918,
-1.2759617567062378,
-0.8349401950836182,
1.1075555086135864,
0.1592099666595459,
-0.9075650572776794,
1.2202873229980469,
-0.3461725115776062,
-1.8746168613433838,
1.120031476020813,
-2.265329122543335
] |
https://github.com/huggingface/datasets/issues/4766 | Dataset Viewer issue for openclimatefix/goes-mrms | Thanks for reporting, @cheaterHy.
The cause of this issue is a misalignment between the names of the repo (`goes-mrms`, with hyphen) and its Python loading scrip file (`goes_mrms.py`, with underscore).
I've opened an Issue discussion in their repo: https://huggingface.co/datasets/openclimatefix/goes-mrms/discussions/1 | ### Link
_No response_
### Description
_No response_
### Owner
_No response_ | 597 | 39 | Dataset Viewer issue for openclimatefix/goes-mrms
### Link
_No response_
### Description
_No response_
### Owner
_No response_
Thanks for reporting, @cheaterHy.
The cause of this issue is a misalignment between the names of the repo (`goes-mrms`, with hyphen) and its Python loading scrip file (`goes_mrms.py`, with underscore).
I've opened an Issue discussion in their repo: https://huggingface.co/datasets/openclimatefix/goes-mrms/discussions/1 | [
-1.114699363708496,
-0.8639312982559204,
-0.8419914841651917,
1.6264429092407227,
-0.0878094807267189,
-1.395973563194275,
0.14150790870189667,
-0.8782655596733093,
1.663445234298706,
-0.7897867560386658,
0.2665920555591583,
-1.716956615447998,
-0.052285052835941315,
-0.5358974933624268,
-0.7195011377334595,
-0.8667355179786682,
-0.47436246275901794,
-0.7658072710037231,
1.174007534980774,
2.447016716003418,
1.372862458229065,
-1.246650218963623,
2.8288278579711914,
0.7553228139877319,
-0.3196903467178345,
-0.9190818667411804,
0.6043350696563721,
-0.03195326402783394,
-1.1674875020980835,
-0.4346022605895996,
-0.9293677806854248,
-0.06414013355970383,
-0.4931727945804596,
-0.44685855507850647,
-0.0774022564291954,
0.6024523973464966,
-0.25922682881355286,
-0.40328100323677063,
-0.4154370129108429,
-0.8190365433692932,
0.35988086462020874,
-0.3354324400424957,
0.852022647857666,
-0.40199148654937744,
1.8063085079193115,
-0.6574596762657166,
0.4014447331428528,
0.6724191904067993,
1.4283643960952759,
0.10389728099107742,
-0.09227174520492554,
0.30122891068458557,
0.4449251890182495,
-0.058559540659189224,
0.4215771555900574,
1.2631090879440308,
0.5467481017112732,
0.6462186574935913,
0.6650042533874512,
-2.160987138748169,
1.3158684968948364,
-0.9383478164672852,
0.2458459585905075,
1.4002400636672974,
-1.1415208578109741,
0.4291173815727234,
-1.7021605968475342,
-0.022023627534508705,
0.5310032367706299,
-2.17177152633667,
0.2705751061439514,
-1.263013243675232,
-0.5401397943496704,
0.8680903315544128,
0.4612392485141754,
-1.400781512260437,
-0.07852333784103394,
-0.4483368396759033,
1.1049470901489258,
0.518804132938385,
1.0956069231033325,
-1.6187535524368286,
0.0003897910937666893,
-0.2969028651714325,
-0.10932370275259018,
-1.392349362373352,
-1.4470751285552979,
0.5403426885604858,
0.59623122215271,
0.8046215176582336,
0.03870319947600365,
0.9640328884124756,
-0.948457658290863,
0.699734628200531,
-0.9353874921798706,
-1.6952940225601196,
-1.4298415184020996,
-2.348745346069336,
-2.195152759552002,
0.8367446064949036,
-0.47210437059402466,
-0.6408538818359375,
2.032179832458496,
-0.9976475834846497,
-1.814286708831787,
1.201081395149231,
0.27637118101119995,
-0.01224065013229847,
2.4389846324920654,
0.3386511504650116,
-0.7442181706428528,
0.39700669050216675,
-0.8424290418624878,
0.7037664651870728,
-0.6025049686431885,
1.4328186511993408,
0.5292619466781616,
-1.1292805671691895,
1.6091409921646118,
-0.47857967019081116,
0.6089590787887573,
-0.6852854490280151,
-0.4380396604537964,
-0.8136158585548401,
0.3560919761657715,
1.862872838973999,
-0.27442771196365356,
1.6021664142608643,
-0.38094088435173035,
-1.5380243062973022,
-1.5231660604476929,
0.9156764149665833,
0.35104045271873474,
-0.8831567764282227,
0.2735847234725952,
-0.4060584306716919,
0.058503154665231705,
-0.046155188232660294,
1.0362087488174438,
1.26569664478302,
0.582192599773407,
-0.419327050447464,
-0.8728089332580566,
0.24958162009716034,
-0.04539168253540993,
-0.6447098851203918,
-1.7661329507827759,
-0.3275166153907776,
0.07745613157749176,
0.6290919184684753,
-1.0684458017349243,
1.7763975858688354,
0.8479993343353271,
2.017803192138672,
0.9638338685035706,
-0.26267990469932556,
1.342086672782898,
-0.09437708556652069,
1.8616396188735962,
-0.48631101846694946,
0.7208382487297058,
-0.32191306352615356,
-1.115267038345337,
0.9411935210227966,
-0.4329494833946228,
-1.9809966087341309,
-0.8474936485290527,
-0.8532874584197998,
-0.1801270991563797,
-0.8256711363792419,
1.0714092254638672,
-0.31442973017692566,
-1.4432711601257324,
0.22567661106586456,
-0.7339235544204712,
0.24991334974765778,
-1.3792228698730469,
0.23216530680656433,
0.763687789440155,
-0.4613601565361023,
0.0749785378575325,
-0.23199723660945892,
-1.2546061277389526,
-0.4788040816783905,
0.4779445230960846,
1.9077390432357788,
-0.6745959520339966,
0.9966374039649963,
0.9465456604957581,
-0.7151062488555908,
0.02122645452618599,
0.25749650597572327,
-0.22564999759197235,
0.8600733876228333,
-1.1303261518478394,
-0.3714173138141632,
1.243436336517334,
-0.2932368814945221,
-0.7911912798881531,
1.424788475036621,
0.7989081740379333,
-0.957802951335907,
-0.18103498220443726,
-0.23636355996131897,
-0.8919201493263245,
0.018051952123641968,
-1.7175477743148804,
-0.0626426711678505,
0.27854689955711365,
-1.526812195777893,
-0.4598415195941925,
-0.08341916650533676,
1.4564414024353027,
-0.20703411102294922,
1.386055588722229,
-0.23997388780117035,
-0.23656262457370758,
-0.4689309895038605,
-0.38116490840911865,
0.060117196291685104,
-0.24670983850955963,
-0.4443267583847046,
0.23993247747421265,
-0.7159819006919861,
0.3311147689819336,
1.3864372968673706,
0.30092307925224304,
0.15594825148582458,
0.5837758779525757,
1.1129788160324097,
0.293926477432251,
-0.1933699995279312,
-0.8088624477386475,
-1.5729597806930542,
1.9659998416900635,
-1.4245156049728394,
1.9181582927703857,
0.7146960496902466,
-0.024677881971001625,
-1.8129057884216309,
-1.9259663820266724,
1.3057528734207153,
1.2428557872772217,
2.2316575050354004,
0.6521313786506653,
0.3619227409362793,
-0.8022541403770447,
-0.7219831943511963,
0.22908230125904083,
-1.2634990215301514,
-0.6632363200187683,
0.23713676631450653,
2.2906298637390137,
1.755331039428711,
-0.4670945107936859,
-0.18732061982154846,
-1.087318778038025,
1.159764289855957,
-0.17259620130062103,
0.19899331033229828,
1.9127777814865112,
-0.44233521819114685,
-0.9142751097679138,
1.0600738525390625,
-2.370262384414673,
0.19398435950279236,
2.0606021881103516,
0.2867724299430847,
0.1914616823196411,
-1.4773280620574951,
-0.6684226393699646,
-0.18702101707458496,
-0.34000617265701294,
-1.1944524049758911,
0.6831492781639099,
-0.2294381707906723,
-0.8356918096542358,
-1.3244177103042603,
0.16112394630908966,
-1.0187525749206543,
-1.7270513772964478,
0.32687628269195557,
1.9243426322937012,
1.9890729188919067,
-0.8061249256134033,
1.5630637407302856,
-0.16747823357582092,
0.0618283785879612,
1.424767017364502,
1.1944899559020996,
3.0871572494506836,
1.9165462255477905,
-1.2213027477264404,
0.7292781472206116,
-0.04001188278198242,
-0.5009251832962036,
1.1884777545928955,
-1.244266152381897,
1.2752448320388794,
-0.22579722106456757,
-1.236426591873169,
-1.3610526323318481,
0.8746474981307983,
0.4034774899482727,
0.0026757167652249336,
-0.43981248140335083,
1.2610702514648438,
0.11802265793085098,
1.2240766286849976,
0.5484089851379395,
-0.46336185932159424,
0.5748277902603149,
-0.38407590985298157,
-0.3732564449310303,
1.4770621061325073,
0.3516925871372223,
-1.4641579389572144,
-2.222646474838257,
-0.1789303421974182,
-0.8809301257133484,
-0.07233669608831406,
-0.7655054330825806,
-1.0194214582443237,
1.6328736543655396,
0.6094035506248474,
-1.1253818273544312,
-0.2840212285518646,
-0.2777377665042877,
-0.6091302037239075,
2.8121049404144287,
-1.4572017192840576,
-0.2580014765262604,
-0.9804978370666504,
-0.6131718158721924,
1.7531160116195679,
-1.2446750402450562,
-0.08165927231311798,
-1.0054997205734253,
-0.659292459487915,
-1.2067711353302002,
-0.45544853806495667,
0.023275524377822876,
-0.8970809578895569,
0.7538513541221619,
0.12660911679267883,
-1.2641327381134033,
-0.22803544998168945,
-0.8273272514343262,
0.9093213677406311,
-0.1489676684141159,
0.3281199634075165,
1.9907211065292358,
0.2531924545764923,
-0.47733134031295776,
0.8040001392364502,
1.1528651714324951,
0.5873843431472778,
-0.6167747974395752,
0.14777685701847076,
-0.5906859040260315,
0.42831993103027344,
-1.312416672706604,
0.3201999068260193,
-2.8739588260650635,
0.5559566617012024,
-0.24246101081371307,
-0.19424372911453247,
-0.1316481977701187,
-1.4597513675689697,
1.2400529384613037,
2.5528228282928467,
-1.1775339841842651,
0.5224031805992126,
0.31552430987358093,
1.2818888425827026,
-1.6254914999008179,
0.3861555755138397,
-0.5893830060958862,
2.1215038299560547,
0.09452975541353226,
1.200992226600647,
-0.42706814408302307,
-2.19062876701355,
0.6265727877616882,
-1.2345726490020752,
-0.9755566716194153,
0.813191831111908,
-0.8115926384925842,
0.12689165771007538,
-1.4336460828781128,
-0.23215191066265106,
-0.8677604794502258,
-1.2480252981185913,
0.6713336706161499,
0.10230148583650589,
0.4294721484184265,
-0.5855400562286377,
0.22537563741207123,
-2.09342622756958,
-1.2443941831588745,
-0.19610252976417542,
-0.8897840976715088,
0.2640102207660675,
-0.3743933141231537,
0.524198591709137,
-0.16653403639793396,
-0.012560941278934479,
0.29246339201927185,
1.425464391708374,
3.4078476428985596,
0.12505005300045013,
0.334789514541626,
-0.17620456218719482,
-0.8817964196205139,
1.4341182708740234,
0.9855825304985046,
-0.06007491424679756,
-0.6724692583084106,
-0.8616084456443787,
1.3778386116027832,
1.9165258407592773,
0.9747727513313293,
0.08855734765529633,
-0.7958837151527405,
-0.6861670017242432,
-0.17599289119243622,
0.09078022837638855,
0.48852238059043884,
0.9205871820449829,
0.05019085854291916,
0.030273810029029846,
1.3514471054077148,
1.1376953125,
-0.46341001987457275,
0.4845919907093048,
-1.0009503364562988,
-0.2826208472251892,
0.38092750310897827,
0.3615984320640564,
-0.02995801344513893,
0.3371487259864807,
-0.9830743074417114,
-0.320835143327713,
-0.2395479530096054,
-0.8682971596717834,
-0.8889012932777405,
-0.3027926981449127,
-0.4345039427280426,
1.7190701961517334,
0.12599441409111023,
-0.6079152822494507,
-0.023401957005262375,
-0.7959402203559875,
-0.15742278099060059,
-1.0068514347076416,
0.18194274604320526,
-0.12784050405025482,
-0.00490544131025672,
-0.03215057775378227,
1.7180042266845703,
-1.066770076751709,
-2.3334381580352783,
0.2056349515914917,
0.3600528836250305,
-0.2774902880191803,
0.07762528955936432,
1.6552765369415283,
0.5431955456733704,
1.4728156328201294,
1.36403489112854,
1.0332908630371094,
-0.8518655896186829,
-1.3632160425186157,
0.7426698207855225,
1.021216869354248,
-1.4364334344863892,
0.9666277766227722,
-0.0003582797944545746,
-0.4748874008655548,
0.5914682149887085,
1.2276407480239868,
0.5519806146621704,
-1.9082818031311035,
0.8442372679710388,
-0.9366235733032227,
0.9364659786224365,
0.777370810508728,
0.7798656821250916,
0.37471115589141846,
0.8786748647689819,
-1.2378911972045898,
-1.1968804597854614,
-0.7959215044975281,
-0.7471300363540649,
1.8334563970565796,
-0.2657334506511688,
0.6473482847213745,
-0.1003909483551979,
-1.244385004043579,
-0.02944670245051384,
0.7382914423942566,
0.2955261170864105,
-0.40925461053848267,
0.8016838431358337,
-0.5661033391952515,
-1.0157092809677124,
-1.3425968885421753,
-0.5392178893089294,
-0.9513627290725708,
-0.9638283848762512,
1.0587915182113647,
0.7264918088912964,
0.36780208349227905,
1.8662147521972656,
0.6542034149169922,
0.31919556856155396,
-2.619870185852051,
0.9812524914741516,
0.3422030508518219,
0.1403113156557083,
0.7047869563102722,
0.3663046658039093,
1.0409266948699951,
-0.029102060943841934,
0.4805715084075928,
-2.341686725616455,
2.270735740661621,
-0.34861838817596436,
0.5288258790969849,
0.04145057126879692,
-0.03425324708223343,
1.1075750589370728,
0.5583397150039673,
0.5366252660751343,
-1.06475031375885,
0.8442361950874329,
-0.5592602491378784,
1.231838583946228,
0.8502175807952881,
-0.8267766833305359,
0.0705878883600235,
1.3757742643356323,
0.4487045705318451,
-0.5096275806427002,
-0.8661744594573975,
-0.8062918782234192,
0.9548380970954895,
1.5814911127090454,
0.09554259479045868,
-0.007102938834577799,
0.8961738348007202,
0.48485299944877625,
-1.2374839782714844,
0.059549082070589066,
-0.6440396308898926,
-0.6390240788459778,
1.7307528257369995,
1.9212380647659302,
-0.13850583136081696,
-0.09295982122421265,
-0.7988308072090149,
-1.3116170167922974,
0.8374260663986206,
-0.03837359696626663,
-0.10299402475357056,
0.6891894936561584,
-0.647566556930542,
1.095625877380371,
0.6652098298072815,
0.9273455142974854,
0.07017772644758224,
0.3855206072330475,
0.4323595464229584,
-0.34123972058296204,
-1.2241969108581543,
-0.2364846020936966,
-1.1436434984207153,
-2.510735034942627,
0.34970924258232117,
-0.32362276315689087,
-1.4176794290542603,
-0.004067580681294203,
-1.1429523229599,
0.9648391604423523,
-0.6212599873542786,
-1.016434669494629,
-1.5094465017318726,
0.15892955660820007,
-0.21810859441757202,
0.8712723851203918,
-1.5947519540786743,
-0.10323755443096161,
1.2345353364944458,
0.8014182448387146,
-0.7148908972740173,
1.1172454357147217,
0.1534767597913742,
1.0718183517456055,
0.7859885692596436,
-0.34340107440948486,
0.5416505932807922,
-0.07704324275255203,
-1.3432124853134155,
0.6261253356933594,
1.2902685403823853,
0.05383868142962456,
1.4986810684204102,
-0.5382910370826721,
-0.038462940603494644,
0.48294922709465027,
-0.5969038009643555,
-0.6311608552932739,
-0.5080260038375854,
0.8774148225784302,
0.10557165741920471,
-0.8664078116416931,
0.022193673998117447,
-0.1536775678396225,
-0.218147411942482,
0.2051054835319519,
-1.6079332828521729,
-0.216974675655365,
-0.28746524453163147,
-0.5589967966079712,
-1.3538627624511719,
-0.015143286436796188,
1.3023734092712402,
-0.6674491167068481,
-0.32461580634117126,
0.6026281714439392,
0.3184586763381958,
0.3675883710384369,
0.5511022806167603,
-0.7110834121704102,
-0.10630106180906296,
-0.36924898624420166,
-0.2745860815048218,
0.41730210185050964,
1.2200872898101807,
-0.1127113550901413,
-0.9487655758857727,
0.6897584199905396,
-0.31416162848472595,
0.045345503836870193,
2.049787759780884,
0.09505888819694519,
-0.8843740224838257,
0.22759589552879333,
-0.7400081753730774,
1.9288276433944702,
1.563347339630127,
1.249847650527954,
-0.057952865958213806,
-0.9494120478630066,
0.6642230749130249,
-0.1667979508638382,
-0.34749093651771545,
0.7163515090942383,
0.3667868971824646,
-0.24139496684074402,
-1.3794046640396118,
0.5643260478973389,
1.2444783449172974,
-0.8501415252685547,
-0.8610015511512756,
0.06131022050976753,
-0.9013265371322632,
1.1407991647720337,
0.7226911783218384,
0.38089001178741455,
0.28809893131256104,
1.541791558265686,
0.7111356258392334,
-0.44317904114723206,
0.3357090950012207,
0.4980860650539398,
-0.014443371444940567,
-1.972172737121582,
-1.0517053604125977,
0.30537956953048706,
-0.4883641004562378,
-1.475818157196045,
1.3308542966842651,
-1.1677709817886353,
-0.953737735748291,
0.5086479783058167,
0.2881416380405426,
1.508864164352417,
0.22122476994991302,
1.658042550086975,
1.9756830930709839,
0.8860114812850952,
0.31750214099884033,
1.2527110576629639,
-0.2330111563205719,
-0.44959360361099243,
1.8001238107681274,
-0.4524086117744446,
0.44326138496398926,
1.0467778444290161,
-0.503545880317688,
-1.1443979740142822,
-0.737385094165802,
-1.1927223205566406,
-0.6532745957374573,
1.151531457901001,
0.17962054908275604,
-1.0735938549041748,
0.2789549231529236,
1.484140396118164,
0.08231084048748016,
-0.18808351457118988,
0.5238469839096069,
0.5247893929481506,
-0.8370388150215149,
0.026284705847501755,
-0.8919737935066223,
0.552153468132019,
0.06840885430574417,
-0.40704748034477234,
0.4045269787311554,
0.4482356607913971,
1.3670244216918945,
-0.05425722897052765,
0.25027188658714294,
1.1549230813980103,
-1.4638473987579346,
1.5441579818725586,
-0.6552141308784485,
0.08660878241062164,
-2.4176666736602783,
1.3814451694488525,
-0.7063895463943481,
1.915329098701477,
-2.74165940284729,
0.36091047525405884,
-0.6785503625869751,
-0.45623183250427246,
0.4147852063179016,
-0.48189547657966614,
0.08997315168380737,
-0.19570620357990265,
-1.072432041168213,
0.02780558168888092,
-0.69473797082901,
0.5426592230796814,
1.2121562957763672,
1.2435842752456665,
-1.1185588836669922,
-0.19319528341293335,
-1.8054335117340088,
-0.15841537714004517,
-0.721458375453949,
0.31606367230415344,
-2.068270444869995,
-0.08461585640907288,
-1.88639497756958,
-2.2366342544555664,
-1.3439749479293823,
-0.8218691349029541,
0.9982646107673645,
0.23033887147903442,
-0.8616971373558044,
1.2196857929229736,
-0.3822830319404602,
-1.9061285257339478,
1.0858995914459229,
-2.1481387615203857
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | And I don't see any speed up when increasing the number of GPUs while calling `get_nearest_examples_batch`. | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 16 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
And I don't see any speed up when increasing the number of GPUs while calling `get_nearest_examples_batch`. | [
-1.2786760330200195,
-0.84458327293396,
-0.8940591216087341,
1.490808129310608,
-0.08143126964569092,
-1.3220794200897217,
0.10983671247959137,
-1.0831860303878784,
1.6840733289718628,
-0.8248887062072754,
0.2604202330112457,
-1.5536527633666992,
-0.00787968561053276,
-0.5192529559135437,
-0.6763713955879211,
-0.8831539154052734,
-0.3156670033931732,
-0.8358286023139954,
1.0364508628845215,
2.511240005493164,
1.1465353965759277,
-1.2769960165023804,
2.787959575653076,
0.6844759583473206,
-0.40172165632247925,
-1.0605396032333374,
0.5874247550964355,
0.06989884376525879,
-1.1005443334579468,
-0.5828338861465454,
-0.8867621421813965,
0.023549608886241913,
-0.6254052519798279,
-0.4646613597869873,
-0.011494854465126991,
0.4472980499267578,
-0.32504802942276,
-0.2659941017627716,
-0.3799774646759033,
-0.7961726784706116,
0.5412700176239014,
-0.3894551396369934,
0.790927529335022,
-0.39815452694892883,
1.7092479467391968,
-0.5386947989463806,
0.29862308502197266,
0.7020390629768372,
1.4705380201339722,
0.20077615976333618,
-0.06796620786190033,
0.19518084824085236,
0.33624058961868286,
-0.0861542746424675,
0.3985951840877533,
1.1569856405258179,
0.442950963973999,
0.5679112672805786,
0.5394962430000305,
-2.2377607822418213,
1.3617409467697144,
-0.9511004090309143,
0.10715945810079575,
1.3876762390136719,
-1.0328811407089233,
0.340851753950119,
-1.771987795829773,
-0.11939346045255661,
0.4877035319805145,
-2.404343605041504,
0.22578135132789612,
-1.2357631921768188,
-0.5306828618049622,
0.9377176761627197,
0.3342827558517456,
-1.3400810956954956,
0.14190351963043213,
-0.41367262601852417,
1.1020199060440063,
0.4362885355949402,
1.0813729763031006,
-1.7046018838882446,
-0.0043803066946566105,
-0.25683608651161194,
0.006083696149289608,
-1.3619905710220337,
-1.542189598083496,
0.5312516689300537,
0.5226961374282837,
0.6904674768447876,
-0.07687599211931229,
0.9746994972229004,
-1.0198769569396973,
0.80051589012146,
-0.8550822734832764,
-1.5855485200881958,
-1.2439806461334229,
-2.345590353012085,
-2.2604658603668213,
0.8385055661201477,
-0.48156145215034485,
-0.5617031455039978,
1.9244619607925415,
-1.0953495502471924,
-1.9021013975143433,
1.1326617002487183,
0.30993014574050903,
0.048028066754341125,
2.2969138622283936,
0.35927751660346985,
-0.7292113900184631,
0.5496323704719543,
-0.7656277418136597,
0.873589813709259,
-0.45657777786254883,
1.4084339141845703,
0.639009416103363,
-0.9893509149551392,
1.6077362298965454,
-0.4140417277812958,
0.6423860788345337,
-0.6758666634559631,
-0.5367028713226318,
-0.9508636593818665,
0.40402960777282715,
1.9687957763671875,
-0.33371132612228394,
1.6674658060073853,
-0.3313249945640564,
-1.5113943815231323,
-1.5412445068359375,
0.9501031041145325,
0.5345853567123413,
-0.7776539921760559,
0.16887296736240387,
-0.36019429564476013,
0.14505089819431305,
0.03934333845973015,
1.0964640378952026,
1.3134363889694214,
0.7140957713127136,
-0.2999151051044464,
-0.870551586151123,
0.2733812928199768,
0.011231360025703907,
-0.5803027749061584,
-1.9365154504776,
-0.2978956699371338,
0.16645976901054382,
0.7271631360054016,
-1.216042399406433,
1.6777700185775757,
0.9374387264251709,
2.043138265609741,
0.9616808295249939,
-0.35108205676078796,
1.535094976425171,
-0.10064883530139923,
1.9115219116210938,
-0.41784170269966125,
0.7561302781105042,
-0.24056333303451538,
-1.0788211822509766,
0.8861386775970459,
-0.3703412711620331,
-1.9336830377578735,
-0.8478426933288574,
-0.9166764616966248,
-0.19168169796466827,
-0.8114708065986633,
0.9926274418830872,
-0.37189701199531555,
-1.4830626249313354,
0.15546178817749023,
-0.6618784666061401,
0.14105704426765442,
-1.2298635244369507,
0.25053152441978455,
0.7318574786186218,
-0.5077837109565735,
0.003984410315752029,
-0.2310362309217453,
-1.3036768436431885,
-0.5161389112472534,
0.2762252688407898,
2.0405120849609375,
-0.6859453916549683,
1.0536187887191772,
1.0681360960006714,
-0.7667997479438782,
0.057181552052497864,
0.3764885663986206,
-0.3177327811717987,
0.7767600417137146,
-1.1485750675201416,
-0.372296005487442,
1.208958387374878,
-0.15327005088329315,
-0.7004633545875549,
1.4380112886428833,
0.9199978113174438,
-1.0127853155136108,
-0.08291009813547134,
-0.21845990419387817,
-0.741611659526825,
0.021859556436538696,
-1.55898118019104,
-0.17777752876281738,
0.2528762221336365,
-1.3907181024551392,
-0.4760836660861969,
-0.1568017452955246,
1.3620046377182007,
-0.19214394688606262,
1.3099255561828613,
-0.30213338136672974,
-0.18070432543754578,
-0.35109004378318787,
-0.5648791193962097,
0.15275882184505463,
-0.22287490963935852,
-0.5784085392951965,
0.2955586612224579,
-0.7851428389549255,
0.29504284262657166,
1.4430108070373535,
0.3308974802494049,
0.06954248994588852,
0.5442402958869934,
1.147985816001892,
0.37639120221138,
-0.13200579583644867,
-0.9262937903404236,
-1.5818932056427002,
2.008258819580078,
-1.4693161249160767,
1.9581023454666138,
0.7698004245758057,
-0.12074773758649826,
-1.6779557466506958,
-1.8261715173721313,
1.3344135284423828,
1.198732614517212,
2.37648606300354,
0.6331307888031006,
0.30386361479759216,
-0.7081094980239868,
-0.7685315608978271,
0.2715185284614563,
-1.1869847774505615,
-0.6578628420829773,
0.0402696318924427,
2.304328680038452,
1.73841392993927,
-0.5347871780395508,
-0.2377852350473404,
-0.9853915572166443,
1.1526952981948853,
-0.18953171372413635,
0.23095758259296417,
1.9951343536376953,
-0.28304436802864075,
-1.1165238618850708,
1.2610012292861938,
-2.287475109100342,
0.1854386031627655,
2.0815250873565674,
0.38973522186279297,
0.035344358533620834,
-1.41444730758667,
-0.7353487014770508,
-0.17467407882213593,
-0.3891742527484894,
-1.2639203071594238,
0.6056548357009888,
-0.34180736541748047,
-0.897549569606781,
-1.4050624370574951,
0.16720260679721832,
-1.1240513324737549,
-1.7778245210647583,
0.45601269602775574,
1.8965046405792236,
2.1528420448303223,
-0.7900125980377197,
1.4611440896987915,
-0.22399742901325226,
0.08058570325374603,
1.1869008541107178,
1.2053163051605225,
3.0095114707946777,
1.777834415435791,
-1.2093065977096558,
0.7382081151008606,
-0.14638803899288177,
-0.5682327151298523,
1.1924896240234375,
-0.9994686245918274,
1.2577379941940308,
-0.3047277331352234,
-1.105118751525879,
-1.297749638557434,
0.8579206466674805,
0.511715292930603,
0.08653504401445389,
-0.42794522643089294,
1.2396700382232666,
0.08788616955280304,
1.287456750869751,
0.4716600775718689,
-0.3174545168876648,
0.6096721291542053,
-0.38269951939582825,
-0.5605770945549011,
1.564520239830017,
0.2824144959449768,
-1.4546864032745361,
-2.319880247116089,
-0.16214604675769806,
-0.7341883778572083,
-0.07336614280939102,
-0.6599540114402771,
-1.0820895433425903,
1.5063828229904175,
0.4663769006729126,
-1.1752376556396484,
-0.3650335669517517,
-0.34062451124191284,
-0.6881030797958374,
2.614290237426758,
-1.3729039430618286,
-0.21785974502563477,
-0.9644235372543335,
-0.5711190700531006,
1.6364760398864746,
-1.246613621711731,
-0.14405232667922974,
-0.9328961372375488,
-0.6099637746810913,
-1.3456218242645264,
-0.485898494720459,
-0.027752157300710678,
-0.9297267198562622,
0.6620031595230103,
0.2166094034910202,
-1.1488046646118164,
-0.22666341066360474,
-0.8216949701309204,
0.8323422074317932,
-0.10847359895706177,
0.3348316550254822,
1.7591482400894165,
0.39337190985679626,
-0.3694714903831482,
0.8303034901618958,
1.2117195129394531,
0.5699657797813416,
-0.7177984118461609,
0.1276974380016327,
-0.7265963554382324,
0.3016303479671478,
-1.2900238037109375,
0.3184933662414551,
-3.026641607284546,
0.72943514585495,
-0.06975751370191574,
-0.11427155882120132,
-0.01718912646174431,
-1.3686341047286987,
1.2438697814941406,
2.5713186264038086,
-1.1918425559997559,
0.49587902426719666,
0.3597400188446045,
1.2414710521697998,
-1.5068044662475586,
0.23888716101646423,
-0.3757410943508148,
2.080733060836792,
0.17940470576286316,
1.2758463621139526,
-0.5039076805114746,
-2.2137162685394287,
0.7442768812179565,
-1.2286936044692993,
-1.1799156665802002,
0.7698321342468262,
-0.8898124694824219,
0.03122304007411003,
-1.4171148538589478,
-0.20086334645748138,
-0.9252118468284607,
-1.2544840574264526,
0.8388374447822571,
0.1886320859193802,
0.4928775131702423,
-0.6083331108093262,
0.35072511434555054,
-2.1595075130462646,
-1.3906503915786743,
-0.09251745790243149,
-0.9703583121299744,
0.5276209115982056,
-0.40378645062446594,
0.5925383567810059,
-0.16864639520645142,
0.13592292368412018,
0.32074612379074097,
1.43390691280365,
3.3807482719421387,
0.18932396173477173,
0.3772912919521332,
-0.10900483280420303,
-0.9293505549430847,
1.4699931144714355,
0.957699716091156,
-0.09359084069728851,
-0.6293730139732361,
-0.9038695096969604,
1.29928457736969,
1.9864298105239868,
1.0486105680465698,
0.05459433048963547,
-1.0068186521530151,
-0.6877712607383728,
-0.018524277955293655,
0.24122193455696106,
0.49829593300819397,
0.9775205850601196,
0.029738791286945343,
0.025629214942455292,
1.3623179197311401,
1.1138097047805786,
-0.5552650094032288,
0.4642556309700012,
-0.9646316170692444,
-0.25617215037345886,
0.4412707984447479,
0.25872111320495605,
0.06970120966434479,
0.39712873101234436,
-0.968906044960022,
-0.20305266976356506,
-0.22102023661136627,
-0.9046431183815002,
-0.8839002847671509,
-0.4838810861110687,
-0.4388740360736847,
1.72016179561615,
0.018278073519468307,
-0.4197344183921814,
-0.08503355830907822,
-0.7746392488479614,
-0.051529522985219955,
-1.0237765312194824,
0.12707160413265228,
-0.12802095711231232,
-0.11327196657657623,
-0.060071151703596115,
1.771443486213684,
-1.0307488441467285,
-2.1759109497070312,
0.2891606390476227,
0.31965523958206177,
-0.3462887108325958,
0.11486144363880157,
1.7207154035568237,
0.46058717370033264,
1.3848503828048706,
1.2768734693527222,
1.0927979946136475,
-0.6526623368263245,
-1.273560643196106,
0.6987155675888062,
0.9162273406982422,
-1.3211020231246948,
0.8425723910331726,
-0.058202192187309265,
-0.42716944217681885,
0.7243093252182007,
1.325920581817627,
0.48340457677841187,
-1.9796189069747925,
0.7894832491874695,
-0.9183303713798523,
0.848391056060791,
0.6108571290969849,
0.7620583772659302,
0.22702781856060028,
0.8535494804382324,
-1.2329219579696655,
-1.1955089569091797,
-0.8035355806350708,
-0.7761867046356201,
1.8635832071304321,
-0.19490393996238708,
0.48055511713027954,
-0.1020747497677803,
-1.1871081590652466,
-0.2062583565711975,
0.7730222344398499,
0.3284091651439667,
-0.2972218990325928,
0.7625126242637634,
-0.706092119216919,
-1.048432469367981,
-1.4530712366104126,
-0.49166741967201233,
-0.9143828749656677,
-0.9715975522994995,
1.0251526832580566,
0.6694610714912415,
0.35287976264953613,
1.995638370513916,
0.5373520255088806,
0.2798669934272766,
-2.5985472202301025,
0.8865295052528381,
0.3724881112575531,
0.0270431749522686,
0.9671986103057861,
0.3291797935962677,
1.1537492275238037,
-0.01762847602367401,
0.45196181535720825,
-2.29715633392334,
2.2299442291259766,
-0.24517220258712769,
0.5977501273155212,
0.023734435439109802,
-0.14836932718753815,
1.1350167989730835,
0.45366430282592773,
0.5930273532867432,
-1.299259901046753,
0.7992502450942993,
-0.6700263023376465,
1.1969369649887085,
0.9843118786811829,
-0.8203758597373962,
0.13621322810649872,
1.3190938234329224,
0.4794940650463104,
-0.5034854412078857,
-0.9207998514175415,
-0.8029013872146606,
0.844375491142273,
1.708275556564331,
-0.06064849719405174,
0.015039655379951,
0.6968379616737366,
0.5500550866127014,
-1.3246256113052368,
0.012170800007879734,
-0.6634334921836853,
-0.7765117883682251,
1.7296262979507446,
1.9994819164276123,
-0.11521761119365692,
-0.25716838240623474,
-0.8146401643753052,
-1.1535717248916626,
0.7727819681167603,
0.004975688643753529,
0.1698339432477951,
0.5597854852676392,
-0.6835652589797974,
1.2402764558792114,
0.8179842233657837,
0.8919228315353394,
-0.01121218129992485,
0.34209221601486206,
0.5361908078193665,
-0.23969876766204834,
-1.1056572198867798,
-0.40258339047431946,
-1.1963590383529663,
-2.6940062046051025,
0.3839797377586365,
-0.3827657997608185,
-1.3828470706939697,
-0.02684338018298149,
-1.0849899053573608,
0.8214915990829468,
-0.5971705317497253,
-0.9731472134590149,
-1.498192548751831,
0.25968804955482483,
-0.23744896054267883,
0.7904209494590759,
-1.5966111421585083,
-0.11862026900053024,
1.3284708261489868,
0.9994450211524963,
-0.7194001078605652,
1.1039167642593384,
0.2782287299633026,
1.0247526168823242,
0.7359669208526611,
-0.5571174621582031,
0.5640738606452942,
0.12493409216403961,
-1.3376656770706177,
0.5579173564910889,
1.3106495141983032,
0.14833508431911469,
1.4255765676498413,
-0.47149598598480225,
0.020944789052009583,
0.4764212667942047,
-0.5533915758132935,
-0.6548162698745728,
-0.5727615356445312,
0.8163486123085022,
0.03259797766804695,
-1.0093532800674438,
0.11959895491600037,
-0.14285171031951904,
-0.21265342831611633,
0.29853177070617676,
-1.5769027471542358,
-0.4296915531158447,
-0.41230249404907227,
-0.4784671366214752,
-1.2978700399398804,
-0.017766863107681274,
1.323472499847412,
-0.6431393027305603,
-0.2917388081550598,
0.4519723355770111,
0.46636924147605896,
0.4878425598144531,
0.5795300006866455,
-0.6725900769233704,
-0.3545360863208771,
-0.3628549575805664,
-0.35163265466690063,
0.4255346655845642,
1.2652183771133423,
-0.1450866460800171,
-1.0177890062332153,
0.7237924933433533,
-0.37769263982772827,
0.06488808989524841,
1.9148786067962646,
0.04144806042313576,
-0.7930323481559753,
0.20237688720226288,
-0.6748822331428528,
1.9549731016159058,
1.554912805557251,
1.2620350122451782,
-0.03204307705163956,
-0.7944855093955994,
0.5950745344161987,
-0.11405951529741287,
-0.3501667380332947,
0.955429196357727,
0.4458260238170624,
-0.2520294785499573,
-1.4594568014144897,
0.5107232332229614,
1.2463120222091675,
-0.8286126255989075,
-0.8066940903663635,
-0.11781264841556549,
-0.8434683680534363,
1.16896653175354,
0.6253176331520081,
0.3263283967971802,
0.3675423562526703,
1.657696008682251,
0.6748708486557007,
-0.48245158791542053,
0.43287646770477295,
0.36038315296173096,
-0.10485421866178513,
-2.1595752239227295,
-1.079486608505249,
0.38783979415893555,
-0.3750799596309662,
-1.5102944374084473,
1.4469350576400757,
-1.112716555595398,
-0.8934323787689209,
0.6071858406066895,
0.17575962841510773,
1.4017354249954224,
0.3077002167701721,
1.6680718660354614,
2.111999988555908,
0.9293211698532104,
0.1840325891971588,
1.3296891450881958,
-0.27852359414100647,
-0.4632994830608368,
1.8635379076004028,
-0.4282718300819397,
0.37152183055877686,
0.9828280806541443,
-0.3584303557872772,
-1.0192701816558838,
-0.8113991618156433,
-1.1453226804733276,
-0.6211696863174438,
1.154429316520691,
0.23931053280830383,
-1.1994118690490723,
0.17812944948673248,
1.55043363571167,
0.18348246812820435,
-0.10520627349615097,
0.619321346282959,
0.5414016246795654,
-0.7718732953071594,
0.022861722856760025,
-0.9156458377838135,
0.5252194404602051,
-0.13861589133739471,
-0.32884854078292847,
0.3330850303173065,
0.5264611840248108,
1.1778583526611328,
-0.10706080496311188,
0.08332276344299316,
1.2221226692199707,
-1.458540678024292,
1.5731639862060547,
-0.5464661717414856,
0.33506062626838684,
-2.373722553253174,
1.3379616737365723,
-0.7713682651519775,
1.898560881614685,
-2.534921169281006,
0.3118290305137634,
-0.5897631645202637,
-0.4409922659397125,
0.374624639749527,
-0.47723546624183655,
0.18381421267986298,
-0.21884523332118988,
-1.0261067152023315,
-0.05385616049170494,
-0.7856415510177612,
0.5246570110321045,
1.1790642738342285,
1.2992093563079834,
-0.955577552318573,
-0.1788257211446762,
-1.761351227760315,
-0.1809074431657791,
-0.5977755784988403,
0.262409508228302,
-2.069544553756714,
-0.2671423554420471,
-2.0768959522247314,
-2.142542600631714,
-1.319590449333191,
-0.736925482749939,
1.0401791334152222,
0.1439230889081955,
-0.9132449626922607,
1.0441988706588745,
-0.4164540767669678,
-1.7738089561462402,
1.0935055017471313,
-2.1704511642456055
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Hi ! Yes search_batch uses FAISS search which happens in parallel across the GPUs
> And I don't see any speed up when increasing the number of GPUs while calling get_nearest_examples_batch.
That's unexpected, can you share the code you're running ? | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 41 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Hi ! Yes search_batch uses FAISS search which happens in parallel across the GPUs
> And I don't see any speed up when increasing the number of GPUs while calling get_nearest_examples_batch.
That's unexpected, can you share the code you're running ? | [
-1.2867549657821655,
-0.8859696984291077,
-0.9069257378578186,
1.4857378005981445,
-0.06259052455425262,
-1.3358606100082397,
0.05340631306171417,
-1.1352912187576294,
1.6312240362167358,
-0.838603138923645,
0.2128736823797226,
-1.561444878578186,
0.005871088244020939,
-0.5441850423812866,
-0.7135787010192871,
-0.881116509437561,
-0.27836179733276367,
-0.8576997518539429,
0.9916768074035645,
2.5210928916931152,
1.1187609434127808,
-1.262099027633667,
2.8178505897521973,
0.6898856163024902,
-0.4032535254955292,
-1.0631433725357056,
0.6054696440696716,
0.05628909915685654,
-1.1023582220077515,
-0.5933080911636353,
-0.8931237459182739,
0.04620344191789627,
-0.6337471604347229,
-0.4090156853199005,
0.028347961604595184,
0.39960235357284546,
-0.3494293987751007,
-0.25631090998649597,
-0.4168917238712311,
-0.8102506995201111,
0.5036669969558716,
-0.40959620475769043,
0.8451259732246399,
-0.37451136112213135,
1.6928189992904663,
-0.5112774968147278,
0.33006203174591064,
0.7066386938095093,
1.4422796964645386,
0.15114068984985352,
-0.016851237043738365,
0.20581316947937012,
0.3558647632598877,
-0.07797177881002426,
0.3835787773132324,
1.1695855855941772,
0.44248008728027344,
0.547793984413147,
0.5779638290405273,
-2.2448394298553467,
1.341637134552002,
-0.9367434978485107,
0.14595723152160645,
1.3766266107559204,
-0.9417929649353027,
0.374099999666214,
-1.8036175966262817,
-0.13367445766925812,
0.4930148720741272,
-2.37906551361084,
0.24856285750865936,
-1.2607982158660889,
-0.5421262979507446,
0.9112187027931213,
0.30977335572242737,
-1.3021090030670166,
0.17999769747257233,
-0.4652402400970459,
1.0980113744735718,
0.4525339901447296,
1.054853081703186,
-1.723984718322754,
-0.013561025261878967,
-0.2079346477985382,
0.017596594989299774,
-1.3767915964126587,
-1.5295071601867676,
0.5759241580963135,
0.48100781440734863,
0.664510190486908,
-0.06025821715593338,
0.9674956798553467,
-1.0547266006469727,
0.8399357795715332,
-0.8713178634643555,
-1.590254545211792,
-1.2808552980422974,
-2.367526054382324,
-2.226789712905884,
0.7850804924964905,
-0.5379661917686462,
-0.5477551221847534,
1.9954488277435303,
-1.0966218709945679,
-1.8307267427444458,
1.1855980157852173,
0.2640586495399475,
0.0876537412405014,
2.270864248275757,
0.41225317120552063,
-0.7063618898391724,
0.47323617339134216,
-0.6969917416572571,
0.8983571529388428,
-0.4667878746986389,
1.398335337638855,
0.6263144016265869,
-0.9490151405334473,
1.5716408491134644,
-0.42310070991516113,
0.5747286081314087,
-0.6658384203910828,
-0.5147573351860046,
-0.9461774826049805,
0.4285658001899719,
1.9217647314071655,
-0.3382892310619354,
1.6603398323059082,
-0.3201676905155182,
-1.475978136062622,
-1.5264910459518433,
0.9641513228416443,
0.5765224695205688,
-0.8312909007072449,
0.17392511665821075,
-0.3411184847354889,
0.15534435212612152,
0.013708111830055714,
1.1039704084396362,
1.2940696477890015,
0.6785715222358704,
-0.32055947184562683,
-0.8705925345420837,
0.32257020473480225,
-0.03426690399646759,
-0.627839982509613,
-1.9644379615783691,
-0.2959054708480835,
0.16644833981990814,
0.7525683045387268,
-1.2494193315505981,
1.6296416521072388,
0.9787511229515076,
2.0162289142608643,
1.0331642627716064,
-0.3251359164714813,
1.5407755374908447,
-0.08612795919179916,
1.888850212097168,
-0.44508031010627747,
0.746524453163147,
-0.3260224163532257,
-1.0745419263839722,
0.8753138780593872,
-0.3413558304309845,
-1.9559415578842163,
-0.8304749727249146,
-0.9418408274650574,
-0.21879942715168,
-0.8377740979194641,
0.9460715055465698,
-0.44419506192207336,
-1.4213417768478394,
0.16700956225395203,
-0.7065168619155884,
0.14112821221351624,
-1.2093859910964966,
0.27693620324134827,
0.7017562985420227,
-0.48178428411483765,
0.009060521610081196,
-0.24455729126930237,
-1.2835538387298584,
-0.5321768522262573,
0.2808654010295868,
2.011178970336914,
-0.7006067633628845,
1.0460718870162964,
1.0494123697280884,
-0.7626080513000488,
0.014967613853514194,
0.35094356536865234,
-0.35632020235061646,
0.7893769145011902,
-1.1153277158737183,
-0.43099522590637207,
1.1760708093643188,
-0.18670721352100372,
-0.7198222279548645,
1.4141676425933838,
0.9077957272529602,
-1.0082366466522217,
-0.1476656049489975,
-0.21713171899318695,
-0.7248381972312927,
0.04460003599524498,
-1.566081166267395,
-0.2255614697933197,
0.2577766478061676,
-1.4225282669067383,
-0.47452253103256226,
-0.18830445408821106,
1.3296282291412354,
-0.19909800589084625,
1.3620296716690063,
-0.312723845243454,
-0.16480930149555206,
-0.3079342246055603,
-0.6102734804153442,
0.22736012935638428,
-0.23464004695415497,
-0.6052778363227844,
0.24558360874652863,
-0.7814581990242004,
0.3156810402870178,
1.3994437456130981,
0.37367212772369385,
0.0789039134979248,
0.5379851460456848,
1.1368308067321777,
0.35935577750205994,
-0.0440516322851181,
-0.9251088500022888,
-1.572410225868225,
2.052910566329956,
-1.5452438592910767,
1.977962851524353,
0.7668811678886414,
-0.11192963272333145,
-1.723591685295105,
-1.8341809511184692,
1.309278964996338,
1.1662442684173584,
2.3105850219726562,
0.5908582806587219,
0.3122961223125458,
-0.6792266964912415,
-0.7748786211013794,
0.29283928871154785,
-1.134562373161316,
-0.6487407088279724,
0.04634188488125801,
2.3373663425445557,
1.793960452079773,
-0.4921264052391052,
-0.23541373014450073,
-0.9547737240791321,
1.2037467956542969,
-0.16463929414749146,
0.25184258818626404,
2.0049822330474854,
-0.2760113775730133,
-1.1054970026016235,
1.2687710523605347,
-2.3046443462371826,
0.18856625258922577,
2.0799708366394043,
0.39329794049263,
-0.02870742604136467,
-1.3987034559249878,
-0.7278464436531067,
-0.24637340009212494,
-0.36812928318977356,
-1.2367398738861084,
0.609268069267273,
-0.3949669301509857,
-0.8895014524459839,
-1.4543843269348145,
0.17219366133213043,
-1.1676491498947144,
-1.7801648378372192,
0.4452189803123474,
1.9081921577453613,
2.2014057636260986,
-0.7712147831916809,
1.4919885396957397,
-0.25601646304130554,
0.09430556744337082,
1.1928678750991821,
1.224071979522705,
3.081472635269165,
1.7972865104675293,
-1.197836995124817,
0.6682498455047607,
-0.14189985394477844,
-0.5841314196586609,
1.1816627979278564,
-0.9538629651069641,
1.2356946468353271,
-0.2417721301317215,
-1.1277382373809814,
-1.2318158149719238,
0.8926951289176941,
0.4874013364315033,
0.047525372356176376,
-0.48547911643981934,
1.2250810861587524,
0.0391383022069931,
1.315865397453308,
0.5018510818481445,
-0.3311779797077179,
0.5733930468559265,
-0.3797173500061035,
-0.5739462971687317,
1.5718458890914917,
0.20134712755680084,
-1.4870764017105103,
-2.366624593734741,
-0.19837895035743713,
-0.6814690232276917,
-0.06096869707107544,
-0.6764547228813171,
-1.1089693307876587,
1.5010170936584473,
0.4273735284805298,
-1.1988511085510254,
-0.37646380066871643,
-0.3825095593929291,
-0.6697199940681458,
2.604384660720825,
-1.368466854095459,
-0.21019364893436432,
-0.9442955851554871,
-0.5701117515563965,
1.6379793882369995,
-1.2592484951019287,
-0.17649440467357635,
-0.9113983511924744,
-0.5919275283813477,
-1.3541744947433472,
-0.501481294631958,
-0.06445572525262833,
-0.9702502489089966,
0.7093802094459534,
0.2431950718164444,
-1.1030287742614746,
-0.21464134752750397,
-0.8130553364753723,
0.8315057158470154,
-0.1349937617778778,
0.3445564806461334,
1.8000341653823853,
0.4398072361946106,
-0.370168000459671,
0.8147078156471252,
1.2112656831741333,
0.5756136775016785,
-0.7644201517105103,
0.07591989636421204,
-0.7110537886619568,
0.293626070022583,
-1.2516939640045166,
0.30847230553627014,
-3.017446279525757,
0.7597079277038574,
-0.05927281454205513,
-0.15436352789402008,
0.0113776670768857,
-1.364356279373169,
1.1851835250854492,
2.598459243774414,
-1.2359950542449951,
0.48989003896713257,
0.35396742820739746,
1.2127796411514282,
-1.564393162727356,
0.255386084318161,
-0.3280368447303772,
2.066528797149658,
0.16728916764259338,
1.3186941146850586,
-0.5144601464271545,
-2.230048179626465,
0.7203072905540466,
-1.1997069120407104,
-1.1786874532699585,
0.7543478012084961,
-0.9013381600379944,
0.07558158040046692,
-1.4461418390274048,
-0.2036203145980835,
-0.9220191836357117,
-1.2553554773330688,
0.8408815860748291,
0.21623769402503967,
0.48709338903427124,
-0.6000925898551941,
0.325828492641449,
-2.14756178855896,
-1.4202858209609985,
-0.09022140502929688,
-0.9565898776054382,
0.5674448609352112,
-0.3851412832736969,
0.6046249270439148,
-0.17857865989208221,
0.14418905973434448,
0.33795401453971863,
1.4698396921157837,
3.3706092834472656,
0.21754620969295502,
0.3792557120323181,
-0.15805761516094208,
-0.9422972202301025,
1.4455928802490234,
0.973052442073822,
-0.05938627943396568,
-0.6096693873405457,
-0.9550100564956665,
1.3013992309570312,
1.9599741697311401,
0.9805241823196411,
0.10147666186094284,
-0.9707956314086914,
-0.6626161336898804,
-0.028052616864442825,
0.23616774380207062,
0.5330901145935059,
0.9673707485198975,
-0.0322541706264019,
0.07374634593725204,
1.398951530456543,
1.1499037742614746,
-0.5500515699386597,
0.42545151710510254,
-0.9117093086242676,
-0.3430357277393341,
0.44257357716560364,
0.27841463685035706,
-0.003972683101892471,
0.3883126974105835,
-0.907548189163208,
-0.2351105660200119,
-0.27216944098472595,
-0.8991638422012329,
-0.7834948301315308,
-0.47039467096328735,
-0.4213310182094574,
1.6506216526031494,
0.08375219255685806,
-0.3562988042831421,
-0.059292007237672806,
-0.7508304119110107,
-0.06928585469722748,
-1.035032868385315,
0.0822015255689621,
-0.1587895005941391,
-0.09833621233701706,
-0.07115598767995834,
1.7964491844177246,
-0.9960842728614807,
-2.140101432800293,
0.2676410675048828,
0.2777816951274872,
-0.31643781065940857,
0.1590556651353836,
1.7387621402740479,
0.4237244427204132,
1.3779631853103638,
1.2710657119750977,
1.0594006776809692,
-0.6528107523918152,
-1.2335155010223389,
0.6874464154243469,
0.9012951850891113,
-1.3326760530471802,
0.8889719247817993,
-0.09550392627716064,
-0.47265663743019104,
0.7589541077613831,
1.3746105432510376,
0.4822250008583069,
-1.978643536567688,
0.8320292830467224,
-0.9487485885620117,
0.8553111553192139,
0.6668726205825806,
0.7500777244567871,
0.2763320207595825,
0.8820328712463379,
-1.2487622499465942,
-1.2143876552581787,
-0.8480172753334045,
-0.7756879925727844,
1.884748935699463,
-0.22442880272865295,
0.4318585693836212,
-0.10474418103694916,
-1.2032225131988525,
-0.21007490158081055,
0.7515924572944641,
0.2991393804550171,
-0.25464555621147156,
0.7622271180152893,
-0.7788068652153015,
-1.0547078847885132,
-1.4963828325271606,
-0.42926454544067383,
-0.8971593379974365,
-0.9445552825927734,
1.0305527448654175,
0.6837596893310547,
0.3198990225791931,
2.0292165279388428,
0.5537490248680115,
0.269576758146286,
-2.588855028152466,
0.9093303680419922,
0.33290818333625793,
-0.03858955204486847,
0.9513285756111145,
0.3172343373298645,
1.191414713859558,
-0.005546003580093384,
0.42339661717414856,
-2.330273389816284,
2.1947357654571533,
-0.25986218452453613,
0.6501773595809937,
-0.01563527248799801,
-0.08997855335474014,
1.1546471118927002,
0.4266723096370697,
0.6294384002685547,
-1.2516357898712158,
0.8051134943962097,
-0.6433073878288269,
1.1975905895233154,
1.0784151554107666,
-0.8677895665168762,
0.15786151587963104,
1.363864541053772,
0.5068582892417908,
-0.5725134611129761,
-0.9093288779258728,
-0.8557157516479492,
0.822582483291626,
1.760216474533081,
-0.06842796504497528,
0.01913001388311386,
0.7062513828277588,
0.6043329238891602,
-1.2849920988082886,
0.053777702152729034,
-0.6797584891319275,
-0.8038030862808228,
1.68428635597229,
2.0221707820892334,
-0.1574019193649292,
-0.18579038977622986,
-0.7803401350975037,
-1.114736795425415,
0.7344250679016113,
-0.04697950929403305,
0.17843151092529297,
0.5215077996253967,
-0.6996203064918518,
1.1641267538070679,
0.8307910561561584,
0.8608865737915039,
0.010578385554254055,
0.35924768447875977,
0.5479760766029358,
-0.23570694029331207,
-1.0742759704589844,
-0.3661305904388428,
-1.1392710208892822,
-2.6622793674468994,
0.4218021631240845,
-0.3874856233596802,
-1.3744860887527466,
0.0021265940740704536,
-1.0564364194869995,
0.8987464308738708,
-0.6031227111816406,
-0.9725668430328369,
-1.5061875581741333,
0.23185710608959198,
-0.26318421959877014,
0.794146716594696,
-1.6012095212936401,
-0.15398305654525757,
1.34440279006958,
0.9500876665115356,
-0.6764492988586426,
1.1048368215560913,
0.2814411222934723,
1.0058804750442505,
0.760837197303772,
-0.5716171860694885,
0.5525004863739014,
0.1059507355093956,
-1.3274672031402588,
0.5377291440963745,
1.253907561302185,
0.20184484124183655,
1.439736247062683,
-0.4550827443599701,
0.01116322260349989,
0.48582923412323,
-0.5478082895278931,
-0.5730445384979248,
-0.5163968801498413,
0.8128806948661804,
0.016990818083286285,
-0.9517843723297119,
0.08710861206054688,
-0.19535697996616364,
-0.29281502962112427,
0.2596697211265564,
-1.5891226530075073,
-0.4129987061023712,
-0.3930676579475403,
-0.4766056537628174,
-1.287582516670227,
-0.00290871923789382,
1.3653757572174072,
-0.6685333847999573,
-0.31389984488487244,
0.4754928648471832,
0.48570144176483154,
0.5249050259590149,
0.591513991355896,
-0.6575667858123779,
-0.3866561949253082,
-0.3841491937637329,
-0.3026251792907715,
0.337663471698761,
1.2328553199768066,
-0.14464916288852692,
-0.9917707443237305,
0.6897327899932861,
-0.39267441630363464,
0.059672191739082336,
1.9031890630722046,
0.007975145243108273,
-0.7398995757102966,
0.21668240427970886,
-0.662164568901062,
1.9547561407089233,
1.5357635021209717,
1.2780935764312744,
-0.08056817948818207,
-0.8207916021347046,
0.5859865546226501,
-0.13634128868579865,
-0.31380695104599,
0.9440712332725525,
0.47785136103630066,
-0.2074624001979828,
-1.4164848327636719,
0.5390318036079407,
1.2235898971557617,
-0.8296687602996826,
-0.8164989948272705,
-0.06633001565933228,
-0.7835567593574524,
1.1939626932144165,
0.6208977699279785,
0.3254105746746063,
0.36298367381095886,
1.7090975046157837,
0.6644303798675537,
-0.5420727133750916,
0.4401727020740509,
0.4229317009449005,
-0.1541730910539627,
-2.1330628395080566,
-1.096739411354065,
0.3883684277534485,
-0.33344703912734985,
-1.543340802192688,
1.4646432399749756,
-1.0411821603775024,
-0.890168309211731,
0.6054781079292297,
0.14201520383358002,
1.3977633714675903,
0.3025738000869751,
1.6291354894638062,
2.1237056255340576,
0.9041005969047546,
0.28410398960113525,
1.3361750841140747,
-0.26112639904022217,
-0.48794975876808167,
1.8805557489395142,
-0.43034350872039795,
0.3747859597206116,
1.0236220359802246,
-0.372767835855484,
-1.0228837728500366,
-0.7889889478683472,
-1.1203619241714478,
-0.655610203742981,
1.1696850061416626,
0.18369999527931213,
-1.1799250841140747,
0.1932157427072525,
1.579758644104004,
0.2378336489200592,
-0.17488697171211243,
0.6149238348007202,
0.5248318314552307,
-0.6974670886993408,
-0.006459338590502739,
-0.9430810213088989,
0.5072129964828491,
-0.14962370693683624,
-0.2894114553928375,
0.35043424367904663,
0.4733203947544098,
1.1645745038986206,
-0.12163403630256653,
0.034342240542173386,
1.1748026609420776,
-1.4658054113388062,
1.517561912536621,
-0.5042182207107544,
0.2924491763114929,
-2.3831160068511963,
1.384480357170105,
-0.8119533061981201,
1.9328540563583374,
-2.5010123252868652,
0.3088836073875427,
-0.6237185597419739,
-0.4025402069091797,
0.38652682304382324,
-0.4472673833370209,
0.1968822032213211,
-0.22614480555057526,
-0.9938374161720276,
-0.023899920284748077,
-0.7615224123001099,
0.5509514212608337,
1.2094292640686035,
1.277775526046753,
-1.012075662612915,
-0.15352600812911987,
-1.7114531993865967,
-0.12002142518758774,
-0.650566041469574,
0.23688633739948273,
-2.0429368019104004,
-0.25523751974105835,
-2.072176218032837,
-2.1807172298431396,
-1.3432413339614868,
-0.7197403311729431,
1.022904396057129,
0.15261799097061157,
-0.9386275410652161,
1.0995172262191772,
-0.3878522515296936,
-1.7815141677856445,
1.065568447113037,
-2.1191213130950928
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | here is the code snippet
```python
# add faiss index
source_dataset = load_dataset(source_path)
queries = load_dataset(query_path)
gpu = [0,1,2,3]
source_dataset.add_faiss_index(
"embedding",
device=gpu,
)
# batch query
batch_size = 32
for i in tqdm(range(0, len(queries), batch_size)):
if i + batch_size >= len(queries):
batched_queries = queries[i:]
else:
batched_queries = queries[i:i+batch_size]
batched_query_embeddings = np.stack([i for i in batched_queries['embedding']], axis=0)
scores, candidates = source_dataset.get_nearest_examples_batch(
"embedding",
batched_query_embeddings,
k=5
)
``` | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 65 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
here is the code snippet
```python
# add faiss index
source_dataset = load_dataset(source_path)
queries = load_dataset(query_path)
gpu = [0,1,2,3]
source_dataset.add_faiss_index(
"embedding",
device=gpu,
)
# batch query
batch_size = 32
for i in tqdm(range(0, len(queries), batch_size)):
if i + batch_size >= len(queries):
batched_queries = queries[i:]
else:
batched_queries = queries[i:i+batch_size]
batched_query_embeddings = np.stack([i for i in batched_queries['embedding']], axis=0)
scores, candidates = source_dataset.get_nearest_examples_batch(
"embedding",
batched_query_embeddings,
k=5
)
``` | [
-1.3652456998825073,
-0.8657057285308838,
-0.7557196617126465,
1.5850226879119873,
-0.03880620375275612,
-1.2116594314575195,
0.17611020803451538,
-1.107895016670227,
1.6503643989562988,
-0.9426645636558533,
0.26689383387565613,
-1.5136384963989258,
0.06628461927175522,
-0.5932308435440063,
-0.6899049282073975,
-0.9240900278091431,
-0.29858118295669556,
-0.7431488633155823,
1.0988248586654663,
2.454149007797241,
1.1669788360595703,
-1.3485326766967773,
2.8266680240631104,
0.6899826526641846,
-0.28543949127197266,
-1.0861164331436157,
0.48932746052742004,
-0.0035094190388917923,
-1.1411556005477905,
-0.5360096096992493,
-0.8778271675109863,
-0.08012106269598007,
-0.6708621382713318,
-0.40315529704093933,
-0.028218813240528107,
0.4442206025123596,
-0.3594706952571869,
-0.3397447466850281,
-0.423255056142807,
-0.8652974367141724,
0.5250127911567688,
-0.3390100300312042,
0.8388539552688599,
-0.2507132887840271,
1.7312731742858887,
-0.6243588328361511,
0.3773316442966461,
0.690638542175293,
1.36483633518219,
0.17543552815914154,
0.008033663965761662,
0.2671736776828766,
0.3346414566040039,
0.005172546952962875,
0.5424898862838745,
1.1455446481704712,
0.5981287360191345,
0.5063959360122681,
0.6020126938819885,
-2.2865428924560547,
1.3635995388031006,
-1.0648002624511719,
0.2278745323419571,
1.3276619911193848,
-0.9324058890342712,
0.38349175453186035,
-1.7111679315567017,
-0.13533753156661987,
0.5940614342689514,
-2.2713887691497803,
0.35148537158966064,
-1.3258572816848755,
-0.5673923492431641,
0.9760456681251526,
0.3909568786621094,
-1.2643601894378662,
0.17236588895320892,
-0.36412984132766724,
1.172728180885315,
0.4045063853263855,
0.9822553396224976,
-1.7684799432754517,
-0.026330966502428055,
-0.2509537935256958,
0.10754267126321793,
-1.2381259202957153,
-1.5554813146591187,
0.5052093267440796,
0.505928099155426,
0.662875771522522,
-0.0926748588681221,
1.0673435926437378,
-1.057723045349121,
0.8177427053451538,
-1.080506682395935,
-1.5849215984344482,
-1.4156653881072998,
-2.4146716594696045,
-2.2794687747955322,
0.7333794832229614,
-0.5044035315513611,
-0.5035912394523621,
2.0134012699127197,
-1.0612704753875732,
-1.7009538412094116,
1.1798282861709595,
0.22368289530277252,
0.04758292809128761,
2.3333067893981934,
0.2518250048160553,
-0.7318956255912781,
0.5245883464813232,
-0.8602200150489807,
0.8389130234718323,
-0.3689516484737396,
1.3406120538711548,
0.5664398670196533,
-1.0648791790008545,
1.553684949874878,
-0.47202470898628235,
0.5332878232002258,
-0.709500253200531,
-0.4907991290092468,
-0.8983619809150696,
0.41135644912719727,
1.8758559226989746,
-0.24029786884784698,
1.6119298934936523,
-0.27114084362983704,
-1.470750093460083,
-1.50580632686615,
1.0012181997299194,
0.42908671498298645,
-0.7923527956008911,
0.22008882462978363,
-0.42263853549957275,
0.1351090967655182,
-0.0035239006392657757,
1.218519687652588,
1.218091368675232,
0.6862159967422485,
-0.4449402689933777,
-0.8688707947731018,
0.2191193401813507,
-0.04372105747461319,
-0.6727911829948425,
-1.8993127346038818,
-0.3078725039958954,
0.09261465072631836,
0.6678564548492432,
-1.2114375829696655,
1.719002366065979,
0.9149637818336487,
1.8727741241455078,
1.0512760877609253,
-0.369322270154953,
1.4886125326156616,
-0.012804783880710602,
1.81476891040802,
-0.40713080763816833,
0.7500500679016113,
-0.2818773686885834,
-1.1946321725845337,
0.8450787663459778,
-0.37440794706344604,
-2.0040664672851562,
-0.8260539770126343,
-0.7633237242698669,
-0.2002311497926712,
-0.8834688663482666,
0.9507152438163757,
-0.3833353817462921,
-1.577984094619751,
0.1826903223991394,
-0.750427782535553,
0.22372311353683472,
-1.2212555408477783,
0.2814221680164337,
0.7186669707298279,
-0.5612948536872864,
0.08512648940086365,
-0.23255571722984314,
-1.246804118156433,
-0.48077988624572754,
0.29263371229171753,
1.9459782838821411,
-0.6522330045700073,
0.9452295899391174,
1.0991218090057373,
-0.6279047131538391,
-0.033877573907375336,
0.2672857940196991,
-0.3002198338508606,
0.8698484897613525,
-1.0930774211883545,
-0.4945652484893799,
1.222007155418396,
-0.17015723884105682,
-0.6503137350082397,
1.4295843839645386,
0.8761279582977295,
-0.9689062833786011,
-0.19520911574363708,
-0.194888636469841,
-0.8465998768806458,
0.12737251818180084,
-1.5149403810501099,
-0.18915311992168427,
0.4642629623413086,
-1.4996709823608398,
-0.4127831757068634,
-0.15282559394836426,
1.3523873090744019,
-0.27629971504211426,
1.4658182859420776,
-0.4083801507949829,
-0.10802555829286575,
-0.35257241129875183,
-0.4091683328151703,
0.24660265445709229,
-0.1469624936580658,
-0.6185432076454163,
0.1572193056344986,
-0.7120384573936462,
0.2713888883590698,
1.4412753582000732,
0.3740593194961548,
0.11372794955968857,
0.356415718793869,
1.1101443767547607,
0.313605934381485,
-0.029334567487239838,
-0.929267942905426,
-1.5296671390533447,
2.002772808074951,
-1.4133671522140503,
2.1224124431610107,
0.8074125647544861,
-0.06020514294505119,
-1.7650303840637207,
-1.738986611366272,
1.3010846376419067,
1.1410322189331055,
2.3771798610687256,
0.5359980463981628,
0.33550208806991577,
-0.8610669374465942,
-0.7116281390190125,
0.2324228435754776,
-1.0920753479003906,
-0.6925288438796997,
0.10960685461759567,
2.464141607284546,
1.7919435501098633,
-0.3723406195640564,
-0.1590990573167801,
-0.9177725315093994,
1.3332059383392334,
-0.29014232754707336,
0.25926920771598816,
1.917024850845337,
-0.28464338183403015,
-1.0926182270050049,
1.2605687379837036,
-2.364612102508545,
0.1565060019493103,
2.111345052719116,
0.37576621770858765,
0.0670703575015068,
-1.4037556648254395,
-0.6302348971366882,
-0.29190945625305176,
-0.43440788984298706,
-1.282095193862915,
0.5033867955207825,
-0.2868495285511017,
-0.7747113108634949,
-1.3603894710540771,
0.21807225048542023,
-1.0953351259231567,
-1.6988714933395386,
0.30824679136276245,
1.8554359674453735,
2.1614327430725098,
-0.8225098848342896,
1.5179979801177979,
-0.3067844808101654,
0.22568756341934204,
1.1635533571243286,
1.277068853378296,
3.0345163345336914,
1.7670109272003174,
-1.3281691074371338,
0.569183886051178,
-0.19638356566429138,
-0.6118353605270386,
1.1765865087509155,
-1.1289429664611816,
1.2911909818649292,
-0.11546238511800766,
-1.2003898620605469,
-1.2542939186096191,
1.0244526863098145,
0.5082138776779175,
0.013177993707358837,
-0.5077656507492065,
1.1624727249145508,
0.06429050117731094,
1.3504974842071533,
0.5655217170715332,
-0.29023444652557373,
0.5544695258140564,
-0.4383593797683716,
-0.5276715755462646,
1.5053114891052246,
0.16738943755626678,
-1.489255666732788,
-2.294429302215576,
-0.11809206753969193,
-0.88770991563797,
-0.011496142484247684,
-0.6531504392623901,
-1.1135374307632446,
1.5583242177963257,
0.3871203660964966,
-1.1485882997512817,
-0.32534027099609375,
-0.33404722809791565,
-0.6073815226554871,
2.6854217052459717,
-1.2209444046020508,
-0.2133295238018036,
-0.9689094424247742,
-0.6560783386230469,
1.6084718704223633,
-1.2060600519180298,
-0.10768011212348938,
-0.9119879007339478,
-0.6476500630378723,
-1.3461127281188965,
-0.38939255475997925,
0.044774722307920456,
-0.958146333694458,
0.7547252774238586,
0.19920435547828674,
-1.1888080835342407,
-0.3355908691883087,
-0.8109233379364014,
0.8836102485656738,
-0.12280485033988953,
0.3224633038043976,
1.738153100013733,
0.31421443819999695,
-0.3824726641178131,
0.8741564154624939,
1.250022053718567,
0.6366972327232361,
-0.6992553472518921,
0.12866747379302979,
-0.6627927422523499,
0.24090683460235596,
-1.2341934442520142,
0.343757688999176,
-3.0015056133270264,
0.7989080548286438,
-0.02490564063191414,
-0.09357768297195435,
-0.05188658833503723,
-1.342394232749939,
1.1758193969726562,
2.622610092163086,
-1.1825518608093262,
0.475614458322525,
0.41433221101760864,
1.2212920188903809,
-1.5962296724319458,
0.23986324667930603,
-0.41717153787612915,
2.114795207977295,
0.2983148694038391,
1.285055160522461,
-0.44707190990448,
-2.439821243286133,
0.6344208717346191,
-1.3167864084243774,
-1.1852694749832153,
0.8218434453010559,
-0.939338207244873,
0.13779248297214508,
-1.3613334894180298,
-0.30821967124938965,
-0.9511666893959045,
-1.187086582183838,
0.7300596833229065,
0.19475729763507843,
0.4582090675830841,
-0.6013051271438599,
0.3164198398590088,
-2.2044105529785156,
-1.3162602186203003,
-0.10862834751605988,
-0.9469238519668579,
0.4893794357776642,
-0.42218294739723206,
0.7125597596168518,
-0.10750948637723923,
0.030703283846378326,
0.4040558338165283,
1.5704165697097778,
3.3796069622039795,
0.2439976930618286,
0.36767539381980896,
-0.18115460872650146,
-0.9009928703308105,
1.4437357187271118,
0.8595178127288818,
-0.12943649291992188,
-0.5401357412338257,
-0.9842357635498047,
1.3274803161621094,
1.89450204372406,
0.9779501557350159,
0.005865341052412987,
-0.867276132106781,
-0.6733202934265137,
-0.060890864580869675,
0.22167572379112244,
0.41851308941841125,
0.8613830804824829,
0.05734558403491974,
0.0660252571105957,
1.3848764896392822,
1.0880781412124634,
-0.48437365889549255,
0.3194439709186554,
-0.9104499220848083,
-0.3912739157676697,
0.5179597735404968,
0.19102974236011505,
-0.043851274996995926,
0.4104885756969452,
-0.9935047626495361,
-0.25141069293022156,
-0.3218609094619751,
-0.8426722288131714,
-0.7155288457870483,
-0.4803917407989502,
-0.3864268660545349,
1.598623514175415,
0.08274734765291214,
-0.40113377571105957,
0.00282090250402689,
-0.7800641059875488,
-0.23856599628925323,
-1.113443374633789,
0.13007411360740662,
-0.10980425775051117,
-0.16135025024414062,
-0.11346626281738281,
1.7713209390640259,
-0.940284013748169,
-2.0994064807891846,
0.17355650663375854,
0.26278677582740784,
-0.24618957936763763,
0.1046893447637558,
1.7628239393234253,
0.38421630859375,
1.4178298711776733,
1.1871987581253052,
1.0071417093276978,
-0.5784872174263,
-1.2533555030822754,
0.8014526963233948,
1.0479656457901,
-1.278554081916809,
0.9412935972213745,
-0.09804174304008484,
-0.46264225244522095,
0.6050806641578674,
1.2949283123016357,
0.42687657475471497,
-1.9815324544906616,
0.8207980990409851,
-0.9833661913871765,
0.8606014847755432,
0.6697671413421631,
0.6323526501655579,
0.2113633006811142,
0.9550518989562988,
-1.2542277574539185,
-1.1542962789535522,
-0.7360936999320984,
-0.7187442779541016,
1.9543129205703735,
-0.3295856714248657,
0.5504403710365295,
-0.20943813025951385,
-1.2259681224822998,
-0.04469575732946396,
0.7576780319213867,
0.3294694721698761,
-0.4474666118621826,
0.8516318798065186,
-0.7464848160743713,
-1.0918171405792236,
-1.3914843797683716,
-0.41128993034362793,
-1.050850510597229,
-0.9777626991271973,
1.0554232597351074,
0.7611058950424194,
0.3420301377773285,
1.9202970266342163,
0.6855310201644897,
0.29937246441841125,
-2.5417087078094482,
0.8566212058067322,
0.21803580224514008,
-0.04184733331203461,
0.8534007668495178,
0.37805312871932983,
1.0650079250335693,
0.13893136382102966,
0.5243011713027954,
-2.3966801166534424,
2.318021535873413,
-0.18895329535007477,
0.680229663848877,
-0.03493945673108101,
-0.15996040403842926,
1.1854678392410278,
0.5761134028434753,
0.5100173354148865,
-1.171552300453186,
0.6680176854133606,
-0.5370376110076904,
1.223595380783081,
0.8930782079696655,
-0.8195569515228271,
0.031142786145210266,
1.4097495079040527,
0.4082883596420288,
-0.5895324945449829,
-0.9348520636558533,
-0.9152694344520569,
0.9340463280677795,
1.6581820249557495,
-0.002679144963622093,
-0.09055189788341522,
0.7956799268722534,
0.6800984740257263,
-1.1969739198684692,
0.0398111455142498,
-0.6778526902198792,
-0.8282904624938965,
1.6682957410812378,
2.115293264389038,
-0.2197534739971161,
-0.16071182489395142,
-0.7305960655212402,
-1.1747279167175293,
0.8672493100166321,
-0.1309041678905487,
0.09418415278196335,
0.5552124381065369,
-0.6553668975830078,
1.0351966619491577,
0.8116421699523926,
0.8385462760925293,
0.21147015690803528,
0.2226560115814209,
0.43502727150917053,
-0.30090466141700745,
-1.0892125368118286,
-0.35006237030029297,
-1.1923787593841553,
-2.6864817142486572,
0.27777794003486633,
-0.32993245124816895,
-1.413118839263916,
0.07933595776557922,
-0.9879969358444214,
0.8982713222503662,
-0.6230602264404297,
-0.9905169010162354,
-1.4483870267868042,
0.26514652371406555,
-0.12455163896083832,
0.8683295845985413,
-1.6146584749221802,
-0.0680832713842392,
1.2418403625488281,
0.8919509649276733,
-0.5896507501602173,
1.0599803924560547,
0.19822245836257935,
0.9782701134681702,
0.8705146312713623,
-0.4565519094467163,
0.6198078989982605,
0.05193875730037689,
-1.4041284322738647,
0.5038130283355713,
1.2534470558166504,
0.24295920133590698,
1.4770872592926025,
-0.3825457990169525,
-0.056940872222185135,
0.38214313983917236,
-0.6010425686836243,
-0.5685904026031494,
-0.46297144889831543,
0.6972461342811584,
0.07535485923290253,
-0.9534556865692139,
0.03332214057445526,
-0.05367697775363922,
-0.2709127366542816,
0.2714880406856537,
-1.5375421047210693,
-0.2752320468425751,
-0.43270906805992126,
-0.5579513907432556,
-1.3012182712554932,
-0.09270565211772919,
1.3272831439971924,
-0.8044084310531616,
-0.2447822242975235,
0.4180041253566742,
0.429684042930603,
0.4889053404331207,
0.681730329990387,
-0.6526723504066467,
-0.3852265179157257,
-0.33413416147232056,
-0.28055065870285034,
0.40855100750923157,
1.2998392581939697,
-0.14821206033229828,
-0.8857029676437378,
0.6771308183670044,
-0.3437047004699707,
0.11652936786413193,
1.848466157913208,
0.09898694604635239,
-0.7608627080917358,
0.2963431775569916,
-0.7847898006439209,
1.9937058687210083,
1.6181658506393433,
1.238858699798584,
-0.14313408732414246,
-0.8223444223403931,
0.6503223180770874,
-0.35798871517181396,
-0.34457701444625854,
0.8933669924736023,
0.41106146574020386,
-0.19062072038650513,
-1.4670648574829102,
0.7070432305335999,
1.2073569297790527,
-0.7774673700332642,
-0.9091752767562866,
0.0636187419295311,
-0.8347289562225342,
1.1676323413848877,
0.5863219499588013,
0.3184385299682617,
0.305255264043808,
1.6602091789245605,
0.7552635669708252,
-0.5195973515510559,
0.5223437547683716,
0.5087096691131592,
-0.09918256103992462,
-2.1873464584350586,
-1.2648156881332397,
0.2662573456764221,
-0.4662398397922516,
-1.5230566263198853,
1.4374407529830933,
-1.061012864112854,
-1.0411189794540405,
0.6746883392333984,
0.0594441220164299,
1.2620826959609985,
0.3094526529312134,
1.5975686311721802,
2.073110818862915,
0.8126840591430664,
0.3682529330253601,
1.1956559419631958,
-0.2355373203754425,
-0.48156142234802246,
1.8418043851852417,
-0.37133413553237915,
0.42062634229660034,
1.0187418460845947,
-0.3786718547344208,
-1.0938570499420166,
-0.86033695936203,
-1.1698096990585327,
-0.7268187999725342,
1.1500117778778076,
0.18172554671764374,
-1.0384050607681274,
0.1801392138004303,
1.606490969657898,
0.12505459785461426,
-0.25552883744239807,
0.6470924615859985,
0.47330430150032043,
-0.674886167049408,
0.04922141879796982,
-0.9587234854698181,
0.6066272258758545,
-0.22668011486530304,
-0.2519521415233612,
0.3411325216293335,
0.48385089635849,
1.2269220352172852,
-0.07494699209928513,
0.12074894458055496,
1.0816831588745117,
-1.4212712049484253,
1.4003371000289917,
-0.6020564436912537,
0.3680238127708435,
-2.3993754386901855,
1.2877014875411987,
-0.7354397773742676,
1.8937538862228394,
-2.6443264484405518,
0.39657554030418396,
-0.5894263386726379,
-0.5290026664733887,
0.3701253831386566,
-0.4152246117591858,
0.18247944116592407,
-0.1926659196615219,
-1.1012942790985107,
-0.042800091207027435,
-0.730747401714325,
0.5155266523361206,
1.1935014724731445,
1.2606562376022339,
-1.0970203876495361,
-0.2023235708475113,
-1.6467679738998413,
-0.017263997346162796,
-0.6832236647605896,
0.21269530057907104,
-1.9872559309005737,
-0.1981372833251953,
-2.0134918689727783,
-2.27040958404541,
-1.1977403163909912,
-0.7174131274223328,
1.109954595565796,
0.18829955160617828,
-0.9358132481575012,
1.2561616897583008,
-0.39755335450172424,
-1.7856930494308472,
1.1154123544692993,
-2.104093551635742
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | The code looks all good to me, do you see all the GPUs being utilized ? What version of faiss are you using ? | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 24 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
The code looks all good to me, do you see all the GPUs being utilized ? What version of faiss are you using ? | [
-1.244001030921936,
-0.8170548677444458,
-1.009906530380249,
1.4334808588027954,
-0.09681165963411331,
-1.2294169664382935,
0.07875183969736099,
-1.0955259799957275,
1.6381889581680298,
-0.802242636680603,
0.160756915807724,
-1.5453647375106812,
-0.0018463339656591415,
-0.47762471437454224,
-0.6723891496658325,
-0.9138326048851013,
-0.37089842557907104,
-0.8269489407539368,
0.9957919120788574,
2.5759851932525635,
1.160008430480957,
-1.255672574043274,
2.746635913848877,
0.7426563501358032,
-0.3661782145500183,
-1.0375615358352661,
0.5790613293647766,
0.06493538618087769,
-1.114680528640747,
-0.6078084707260132,
-0.8813774585723877,
0.011987469159066677,
-0.6158783435821533,
-0.4748249650001526,
-0.014587868005037308,
0.39237067103385925,
-0.26002031564712524,
-0.21789023280143738,
-0.44051292538642883,
-0.7975327968597412,
0.5809729099273682,
-0.41906702518463135,
0.7972739338874817,
-0.38936319947242737,
1.6656345129013062,
-0.52032870054245,
0.3194756507873535,
0.722277820110321,
1.467235803604126,
0.20503078401088715,
-0.08537975698709488,
0.23180559277534485,
0.3629194498062134,
-0.09615521132946014,
0.3419305682182312,
1.1917731761932373,
0.48023998737335205,
0.5711238384246826,
0.570828378200531,
-2.242928981781006,
1.354106068611145,
-0.9427535533905029,
0.1652871072292328,
1.343464732170105,
-0.9469264149665833,
0.3944850265979767,
-1.7914588451385498,
-0.14307212829589844,
0.4301163852214813,
-2.4436018466949463,
0.21272604167461395,
-1.1755090951919556,
-0.5875235199928284,
0.9257403016090393,
0.31531116366386414,
-1.3387348651885986,
0.17495816946029663,
-0.4362773001194,
1.095513939857483,
0.45834285020828247,
1.1512253284454346,
-1.6954859495162964,
-0.03419080004096031,
-0.2882520854473114,
0.00482473149895668,
-1.395355224609375,
-1.5113894939422607,
0.5413562655448914,
0.5176040530204773,
0.630109965801239,
-0.10645239800214767,
0.9351192116737366,
-1.0049108266830444,
0.8835543990135193,
-0.8385049700737,
-1.6120710372924805,
-1.2649328708648682,
-2.327214479446411,
-2.292567729949951,
0.9003262519836426,
-0.556229293346405,
-0.5181673765182495,
1.910226583480835,
-1.095449447631836,
-1.8867614269256592,
1.1333708763122559,
0.31120815873146057,
0.05627588927745819,
2.3291807174682617,
0.4235070049762726,
-0.7191272974014282,
0.513175904750824,
-0.7350236177444458,
0.8926265239715576,
-0.4872356653213501,
1.4372265338897705,
0.6543416380882263,
-0.9936844110488892,
1.6158429384231567,
-0.47332730889320374,
0.6191997528076172,
-0.7031283974647522,
-0.5621294379234314,
-0.9353734254837036,
0.3968732953071594,
1.9327218532562256,
-0.3724753260612488,
1.7174566984176636,
-0.34354618191719055,
-1.5209354162216187,
-1.533734917640686,
0.9557868838310242,
0.5536071062088013,
-0.7660735249519348,
0.2174377292394638,
-0.3214370310306549,
0.0689309611916542,
0.07545185834169388,
1.0703322887420654,
1.2860422134399414,
0.665855348110199,
-0.31591716408729553,
-0.8996027112007141,
0.29290637373924255,
0.030519522726535797,
-0.555989146232605,
-1.9330251216888428,
-0.3216730058193207,
0.1500634104013443,
0.6994809508323669,
-1.2191402912139893,
1.6137785911560059,
0.945411205291748,
2.07824969291687,
0.9898135662078857,
-0.39606210589408875,
1.5367897748947144,
-0.11460655927658081,
1.875267744064331,
-0.4932801425457001,
0.7637272477149963,
-0.3389453887939453,
-1.068126916885376,
0.9396423101425171,
-0.3442330062389374,
-1.9755855798721313,
-0.8211382627487183,
-0.9593859910964966,
-0.21321338415145874,
-0.8014571666717529,
0.9861540198326111,
-0.35128915309906006,
-1.407430648803711,
0.14672186970710754,
-0.7345742583274841,
0.0767054408788681,
-1.2531386613845825,
0.277017742395401,
0.7369624972343445,
-0.5096338391304016,
0.00169343501329422,
-0.1987198293209076,
-1.309760332107544,
-0.5198410749435425,
0.20419034361839294,
1.9884235858917236,
-0.6712783575057983,
1.0504740476608276,
1.0812917947769165,
-0.81705242395401,
0.024968810379505157,
0.4034591615200043,
-0.32541969418525696,
0.7873352766036987,
-1.1431151628494263,
-0.3695313334465027,
1.1936901807785034,
-0.09071686863899231,
-0.6837728023529053,
1.391282081604004,
0.8881426453590393,
-1.0435991287231445,
-0.10790190100669861,
-0.21473929286003113,
-0.7962659001350403,
0.0021955566480755806,
-1.5075641870498657,
-0.22602242231369019,
0.20451726019382477,
-1.3755995035171509,
-0.473168283700943,
-0.2203766405582428,
1.3705346584320068,
-0.21899445354938507,
1.3504847288131714,
-0.27087122201919556,
-0.18929633498191833,
-0.3710241913795471,
-0.5705934166908264,
0.18131692707538605,
-0.20594418048858643,
-0.5662030577659607,
0.3401312530040741,
-0.8190584778785706,
0.29054397344589233,
1.4081916809082031,
0.3616599440574646,
0.10682662576436996,
0.5463863015174866,
1.0870156288146973,
0.41619375348091125,
-0.13751353323459625,
-0.9081563353538513,
-1.5548933744430542,
2.020216703414917,
-1.46123206615448,
1.9295666217803955,
0.7765650153160095,
-0.16447244584560394,
-1.7118053436279297,
-1.8486170768737793,
1.311750888824463,
1.2080466747283936,
2.399470329284668,
0.6571938991546631,
0.3731292486190796,
-0.7119591236114502,
-0.7983051538467407,
0.3255668878555298,
-1.2284513711929321,
-0.6883476376533508,
0.02199334278702736,
2.3432118892669678,
1.6997945308685303,
-0.5208767652511597,
-0.21191565692424774,
-0.9436617493629456,
1.1653255224227905,
-0.1601034700870514,
0.23383352160453796,
2.0129098892211914,
-0.3119339346885681,
-1.0964903831481934,
1.221345067024231,
-2.2535367012023926,
0.150948166847229,
2.0744009017944336,
0.41240763664245605,
0.016088780015707016,
-1.4237829446792603,
-0.7366371750831604,
-0.1810307651758194,
-0.44526052474975586,
-1.254873514175415,
0.6688870787620544,
-0.3415725529193878,
-0.9385807514190674,
-1.4454498291015625,
0.12620480358600616,
-1.1862760782241821,
-1.7755178213119507,
0.45340391993522644,
1.8697832822799683,
2.1514201164245605,
-0.7342166304588318,
1.460395097732544,
-0.24468746781349182,
0.04634397476911545,
1.1738290786743164,
1.1936564445495605,
3.006175994873047,
1.805214762687683,
-1.2105146646499634,
0.71066814661026,
-0.13506709039211273,
-0.5927842855453491,
1.1595337390899658,
-0.9154565334320068,
1.234440565109253,
-0.2752803564071655,
-1.1326522827148438,
-1.2627323865890503,
0.9002605080604553,
0.46801120042800903,
0.09107919782400131,
-0.4344612956047058,
1.253238320350647,
0.08510476350784302,
1.2802674770355225,
0.519775390625,
-0.3443838655948639,
0.5754493474960327,
-0.3788371980190277,
-0.4944021701812744,
1.5750794410705566,
0.29197463393211365,
-1.4408971071243286,
-2.3735296726226807,
-0.18403321504592896,
-0.7521880269050598,
-0.11202648282051086,
-0.6590269207954407,
-1.095664381980896,
1.52511465549469,
0.4802684187889099,
-1.1662566661834717,
-0.4325000047683716,
-0.3534194827079773,
-0.6713663339614868,
2.5919716358184814,
-1.4581948518753052,
-0.18464328348636627,
-0.9220943450927734,
-0.5051642060279846,
1.6336826086044312,
-1.2260241508483887,
-0.11543934792280197,
-0.9299102425575256,
-0.6308295726776123,
-1.3682551383972168,
-0.5645476579666138,
-0.022913850843906403,
-0.9220526814460754,
0.6566784977912903,
0.21997293829917908,
-1.0727195739746094,
-0.1944134384393692,
-0.8072084784507751,
0.8078071475028992,
-0.11773855239152908,
0.3789861798286438,
1.7965338230133057,
0.442568838596344,
-0.37262940406799316,
0.7895445823669434,
1.2473973035812378,
0.5557042956352234,
-0.719763457775116,
0.100830078125,
-0.7555498480796814,
0.3123514950275421,
-1.28450345993042,
0.31161534786224365,
-3.0026917457580566,
0.7312200665473938,
-0.08288199454545975,
-0.09982476383447647,
0.002529764547944069,
-1.3177437782287598,
1.210110068321228,
2.557141065597534,
-1.2236852645874023,
0.45950305461883545,
0.33408936858177185,
1.20789635181427,
-1.5369144678115845,
0.1833661049604416,
-0.414331316947937,
2.0755202770233154,
0.19832031428813934,
1.306897521018982,
-0.5241275429725647,
-2.1905786991119385,
0.6741142868995667,
-1.187443494796753,
-1.1770837306976318,
0.7733274698257446,
-0.869137704372406,
0.014388256706297398,
-1.490565538406372,
-0.12427560985088348,
-0.8821238279342651,
-1.2847833633422852,
0.8704832792282104,
0.20406122505664825,
0.5546886920928955,
-0.625739336013794,
0.3295285403728485,
-2.120969295501709,
-1.388685703277588,
-0.11562763899564743,
-0.9010008573532104,
0.5815538763999939,
-0.3495706021785736,
0.6571604609489441,
-0.11779458075761795,
0.12448436766862869,
0.34162649512290955,
1.3568381071090698,
3.385026216506958,
0.1716659814119339,
0.3913436233997345,
-0.09788704663515091,
-0.9295939803123474,
1.4412814378738403,
1.04365074634552,
-0.07992105185985565,
-0.6585719585418701,
-0.8914118409156799,
1.2954027652740479,
2.016890048980713,
1.0843861103057861,
0.07632557302713394,
-0.9993487000465393,
-0.6472727060317993,
-0.005845961160957813,
0.3067602217197418,
0.41377967596054077,
1.001165509223938,
0.01708715409040451,
0.05275522917509079,
1.3724793195724487,
1.1760046482086182,
-0.5592307448387146,
0.428826242685318,
-0.9532579183578491,
-0.2925572693347931,
0.45732516050338745,
0.2743261754512787,
0.07389145344495773,
0.4077213704586029,
-0.9575098156929016,
-0.2769532799720764,
-0.20356503129005432,
-0.9602764248847961,
-0.8634925484657288,
-0.47804999351501465,
-0.4420791566371918,
1.6873427629470825,
-0.009171029552817345,
-0.3783782124519348,
-0.06815965473651886,
-0.8187562823295593,
-0.06515460461378098,
-1.0873483419418335,
0.14409992098808289,
-0.15507058799266815,
-0.10367152839899063,
-0.04711507633328438,
1.8035519123077393,
-1.0546964406967163,
-2.1549527645111084,
0.304949015378952,
0.34600818157196045,
-0.3850242793560028,
0.1390400230884552,
1.7124217748641968,
0.4786056876182556,
1.3595283031463623,
1.246455192565918,
1.0403748750686646,
-0.654794454574585,
-1.1860257387161255,
0.678810715675354,
0.9735291004180908,
-1.3361574411392212,
0.843213677406311,
-0.0910511463880539,
-0.43924111127853394,
0.7145508527755737,
1.3186781406402588,
0.4430544078350067,
-1.9436067342758179,
0.7965471148490906,
-0.8656299710273743,
0.8091987371444702,
0.5481087565422058,
0.7788570523262024,
0.25268420577049255,
0.809434175491333,
-1.283171534538269,
-1.1933048963546753,
-0.8200038075447083,
-0.7158039808273315,
1.849829912185669,
-0.16299064457416534,
0.4655962288379669,
-0.13770094513893127,
-1.1921343803405762,
-0.20714138448238373,
0.7865046262741089,
0.3092919588088989,
-0.34263554215431213,
0.7535873055458069,
-0.6381469368934631,
-1.0857219696044922,
-1.5037097930908203,
-0.43178343772888184,
-0.9018946290016174,
-0.9339997172355652,
1.0511411428451538,
0.7038941383361816,
0.32571426033973694,
2.014322519302368,
0.46730172634124756,
0.26860642433166504,
-2.6303329467773438,
0.8851805329322815,
0.3814292550086975,
-0.003485951106995344,
1.0179966688156128,
0.34471437335014343,
1.1499595642089844,
-0.009824427776038647,
0.4546011686325073,
-2.298809289932251,
2.1932430267333984,
-0.19481141865253448,
0.6153692603111267,
0.0716203823685646,
-0.12862937152385712,
1.1317578554153442,
0.4554270803928375,
0.597703218460083,
-1.2976536750793457,
0.7394444942474365,
-0.6403096318244934,
1.200299620628357,
1.0195871591567993,
-0.8126752972602844,
0.17804932594299316,
1.3625203371047974,
0.492300808429718,
-0.422517865896225,
-0.8484516739845276,
-0.7743012309074402,
0.8823606371879578,
1.7537765502929688,
-0.06714437156915665,
0.06996448338031769,
0.7109133005142212,
0.5823016166687012,
-1.338403344154358,
0.04199424386024475,
-0.6958685517311096,
-0.7571250200271606,
1.678066611289978,
2.016240119934082,
-0.1471528559923172,
-0.1811143159866333,
-0.8224937319755554,
-1.1890994310379028,
0.8201298713684082,
0.005804778076708317,
0.2547680139541626,
0.5551475286483765,
-0.6813868880271912,
1.267794132232666,
0.8250072002410889,
0.8578420877456665,
0.020823542028665543,
0.401109516620636,
0.5236609578132629,
-0.22005398571491241,
-1.040954351425171,
-0.3473997712135315,
-1.1714001893997192,
-2.7194526195526123,
0.4041622579097748,
-0.39070093631744385,
-1.3392301797866821,
-0.03867502138018608,
-1.077637791633606,
0.8734423518180847,
-0.5901785492897034,
-0.9492578506469727,
-1.5616610050201416,
0.2438337206840515,
-0.21814118325710297,
0.8077031373977661,
-1.6240092515945435,
-0.11571522057056427,
1.333634376525879,
0.9872600436210632,
-0.7124506831169128,
1.0778590440750122,
0.3078422546386719,
0.9694073796272278,
0.7605563402175903,
-0.5576116442680359,
0.5719931125640869,
0.2031344622373581,
-1.3334540128707886,
0.5313084125518799,
1.350071668624878,
0.1897812932729721,
1.3681578636169434,
-0.513184666633606,
-0.012987537309527397,
0.468871146440506,
-0.5497883558273315,
-0.608256459236145,
-0.5612858533859253,
0.722302258014679,
0.09688429534435272,
-1.0319712162017822,
0.10985933244228363,
-0.15797416865825653,
-0.2336350679397583,
0.2101656049489975,
-1.5063247680664062,
-0.4411354064941406,
-0.417410671710968,
-0.47035396099090576,
-1.3211342096328735,
-0.008293223567306995,
1.3271911144256592,
-0.6674447655677795,
-0.28626328706741333,
0.48359206318855286,
0.4821140468120575,
0.503612220287323,
0.5728588104248047,
-0.6525774598121643,
-0.4314574599266052,
-0.30908963084220886,
-0.35242760181427,
0.3721441924571991,
1.2673799991607666,
-0.14181986451148987,
-1.001498818397522,
0.730625569820404,
-0.3899866044521332,
0.04730421304702759,
1.941830039024353,
0.081409752368927,
-0.8464939594268799,
0.1815168857574463,
-0.5996231436729431,
1.9623146057128906,
1.6020573377609253,
1.2856897115707397,
-0.06233946606516838,
-0.7663998007774353,
0.5575248599052429,
-0.12811030447483063,
-0.330185204744339,
0.9849864840507507,
0.4233664870262146,
-0.2601779103279114,
-1.5186481475830078,
0.44692885875701904,
1.2970373630523682,
-0.8779076337814331,
-0.8129637837409973,
-0.12867510318756104,
-0.8198422789573669,
1.1322087049484253,
0.7018561363220215,
0.3691882789134979,
0.30906984210014343,
1.6782556772232056,
0.6477371454238892,
-0.5165524482727051,
0.48550185561180115,
0.3939593732357025,
-0.08192355930805206,
-2.1604394912719727,
-1.0947611331939697,
0.3970208466053009,
-0.33014926314353943,
-1.4516242742538452,
1.4686534404754639,
-1.109249234199524,
-0.900797426700592,
0.5946003794670105,
0.19584865868091583,
1.3792511224746704,
0.22134369611740112,
1.6622322797775269,
2.0793471336364746,
0.899437427520752,
0.16654202342033386,
1.3523465394973755,
-0.24519406259059906,
-0.40321797132492065,
1.85793137550354,
-0.41576364636421204,
0.4207892119884491,
0.9409980773925781,
-0.41803741455078125,
-1.024405837059021,
-0.7645639181137085,
-1.1458686590194702,
-0.6414862871170044,
1.181799054145813,
0.20488332211971283,
-1.1210652589797974,
0.1781890094280243,
1.6024060249328613,
0.20593425631523132,
-0.14882420003414154,
0.6184241771697998,
0.5456088185310364,
-0.7523303031921387,
0.026552867144346237,
-1.0030330419540405,
0.5223486423492432,
-0.1115267276763916,
-0.31665122509002686,
0.31764718890190125,
0.512761116027832,
1.1526044607162476,
-0.11407119035720825,
0.04845244064927101,
1.2052522897720337,
-1.4442228078842163,
1.5706368684768677,
-0.5622880458831787,
0.24815747141838074,
-2.3860881328582764,
1.3902595043182373,
-0.7269079089164734,
1.8699660301208496,
-2.5451419353485107,
0.2753516435623169,
-0.584284245967865,
-0.42851099371910095,
0.3250434696674347,
-0.4391525983810425,
0.193946972489357,
-0.2245178073644638,
-0.9959783554077148,
-0.04697716236114502,
-0.7961352467536926,
0.5186036229133606,
1.1799018383026123,
1.2882075309753418,
-1.001869797706604,
-0.2151440680027008,
-1.7280346155166626,
-0.16515319049358368,
-0.572981595993042,
0.2624061405658722,
-2.0641722679138184,
-0.26325681805610657,
-2.042600631713867,
-2.157212257385254,
-1.3936243057250977,
-0.775311291217804,
1.0685925483703613,
0.14983271062374115,
-0.9061623215675354,
0.9777905344963074,
-0.44810956716537476,
-1.8647860288619995,
1.0584479570388794,
-2.1749613285064697
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | I can see the memory usage of all the GPUs.
My version of `faiss-gpu` is `1.7.2` | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 16 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
I can see the memory usage of all the GPUs.
My version of `faiss-gpu` is `1.7.2` | [
-1.2309882640838623,
-0.8163909316062927,
-0.9401063919067383,
1.4850761890411377,
-0.07920247316360474,
-1.2911090850830078,
0.12939667701721191,
-1.0684797763824463,
1.6886742115020752,
-0.821288526058197,
0.22896063327789307,
-1.5794304609298706,
-0.014888301491737366,
-0.4630695879459381,
-0.7232363820075989,
-0.9104653596878052,
-0.31638288497924805,
-0.8203227519989014,
0.9557770490646362,
2.5160350799560547,
1.1959422826766968,
-1.1971125602722168,
2.736055850982666,
0.7188140749931335,
-0.3966248035430908,
-1.0736533403396606,
0.594318151473999,
0.07000897079706192,
-1.1303116083145142,
-0.5767495036125183,
-0.8935601711273193,
0.020952511578798294,
-0.6498887538909912,
-0.5124562978744507,
0.017796184867620468,
0.4284628927707672,
-0.3055444359779358,
-0.27481403946876526,
-0.3439054787158966,
-0.8206875324249268,
0.5338533520698547,
-0.42317983508110046,
0.85719895362854,
-0.39977243542671204,
1.6873503923416138,
-0.5662903785705566,
0.3178554177284241,
0.7086451053619385,
1.4441322088241577,
0.20481552183628082,
-0.06864358484745026,
0.19774296879768372,
0.3599749803543091,
-0.06370034068822861,
0.36021000146865845,
1.205645203590393,
0.4580617845058441,
0.5521155595779419,
0.5937846302986145,
-2.2310616970062256,
1.3472594022750854,
-0.9582115411758423,
0.14472101628780365,
1.3738759756088257,
-0.9964442253112793,
0.39392778277397156,
-1.756151795387268,
-0.1360931098461151,
0.4197317361831665,
-2.4314935207366943,
0.18726250529289246,
-1.2584848403930664,
-0.5545432567596436,
0.9603865742683411,
0.314196914434433,
-1.351459264755249,
0.1482936441898346,
-0.41768142580986023,
1.0362719297409058,
0.4082583785057068,
1.1664988994598389,
-1.7038486003875732,
-0.05700776353478432,
-0.3049837648868561,
0.04658086970448494,
-1.4057246446609497,
-1.5181748867034912,
0.5656862258911133,
0.5452598929405212,
0.6484366059303284,
-0.12071444094181061,
0.964460551738739,
-0.9666269421577454,
0.8315885663032532,
-0.8284484148025513,
-1.6670995950698853,
-1.250140905380249,
-2.2943928241729736,
-2.2564408779144287,
0.8610677123069763,
-0.4941019117832184,
-0.5266343355178833,
1.9700450897216797,
-1.103562593460083,
-1.9017702341079712,
1.0930430889129639,
0.2670505940914154,
0.02606271579861641,
2.306943893432617,
0.38515302538871765,
-0.718602180480957,
0.468025803565979,
-0.7308601140975952,
0.8406272530555725,
-0.4302937984466553,
1.4153048992156982,
0.6308647990226746,
-1.0481048822402954,
1.6144973039627075,
-0.4532647132873535,
0.6030638217926025,
-0.7029289603233337,
-0.5052289962768555,
-0.9042835235595703,
0.3846583366394043,
1.9313701391220093,
-0.37062790989875793,
1.6619737148284912,
-0.34509459137916565,
-1.5011125802993774,
-1.545964002609253,
0.9329623579978943,
0.5240723490715027,
-0.7243177890777588,
0.1794363558292389,
-0.3294508457183838,
0.055741388350725174,
0.08588726073503494,
1.0787872076034546,
1.2620325088500977,
0.7302367091178894,
-0.26665809750556946,
-0.8794829249382019,
0.3253689706325531,
0.08053011447191238,
-0.6138849854469299,
-1.9196908473968506,
-0.32090485095977783,
0.1876314878463745,
0.7276396751403809,
-1.2078726291656494,
1.6592530012130737,
0.9293803572654724,
2.0726442337036133,
0.9707111716270447,
-0.3623124361038208,
1.5600996017456055,
-0.12149114906787872,
1.884958028793335,
-0.40249547362327576,
0.779424786567688,
-0.32969728112220764,
-1.0677167177200317,
0.9149919152259827,
-0.3600200116634369,
-1.9598020315170288,
-0.7930870056152344,
-0.9549270868301392,
-0.15027175843715668,
-0.8242022395133972,
0.9888924360275269,
-0.29385873675346375,
-1.441596508026123,
0.13814541697502136,
-0.721078097820282,
0.07944982498884201,
-1.2536780834197998,
0.26588961482048035,
0.7549601793289185,
-0.5223050713539124,
0.04161970317363739,
-0.23094770312309265,
-1.3038393259048462,
-0.5303130745887756,
0.23131063580513,
2.002800941467285,
-0.6865310072898865,
1.0958837270736694,
1.062041163444519,
-0.7863729596138,
0.010218319483101368,
0.3987746834754944,
-0.34279587864875793,
0.7983567714691162,
-1.1633903980255127,
-0.37230759859085083,
1.1635156869888306,
-0.07492759078741074,
-0.7286511659622192,
1.4308485984802246,
0.9263043403625488,
-1.0029371976852417,
-0.07253372669219971,
-0.23634058237075806,
-0.7369999885559082,
0.04465877637267113,
-1.511850357055664,
-0.16893251240253448,
0.24431514739990234,
-1.356553316116333,
-0.45030128955841064,
-0.1796557903289795,
1.3957775831222534,
-0.1736159473657608,
1.3310141563415527,
-0.22032086551189423,
-0.20838689804077148,
-0.40445706248283386,
-0.5153980851173401,
0.15907904505729675,
-0.2638997733592987,
-0.6242771148681641,
0.3558240532875061,
-0.7743626236915588,
0.3176439702510834,
1.4130358695983887,
0.3452065885066986,
0.06514138728380203,
0.5608169436454773,
1.1749162673950195,
0.37472715973854065,
-0.1255677044391632,
-0.9890326857566833,
-1.548197627067566,
2.0134434700012207,
-1.4487401247024536,
1.943052887916565,
0.7643730044364929,
-0.1485423892736435,
-1.7041722536087036,
-1.865279197692871,
1.334760069847107,
1.2160873413085938,
2.393930435180664,
0.6725544929504395,
0.3350658714771271,
-0.7092002034187317,
-0.7397618889808655,
0.31654059886932373,
-1.2144255638122559,
-0.6802809834480286,
0.07073578238487244,
2.3163697719573975,
1.7391771078109741,
-0.5530471801757812,
-0.24044929444789886,
-0.9899880886077881,
1.1735734939575195,
-0.16965198516845703,
0.16164371371269226,
2.035625696182251,
-0.3032626807689667,
-1.1067713499069214,
1.2530614137649536,
-2.2179994583129883,
0.15388938784599304,
2.052196741104126,
0.3715028166770935,
-0.036801815032958984,
-1.4678093194961548,
-0.7636326551437378,
-0.16020378470420837,
-0.4268682599067688,
-1.2716785669326782,
0.6477622389793396,
-0.33058708906173706,
-0.8875695466995239,
-1.439064860343933,
0.15584464371204376,
-1.1671311855316162,
-1.801826000213623,
0.40995723009109497,
1.844949722290039,
2.115537405014038,
-0.7693225741386414,
1.4449824094772339,
-0.19515939056873322,
0.03264617919921875,
1.215061902999878,
1.201780915260315,
3.038933515548706,
1.808822751045227,
-1.20090651512146,
0.7194749712944031,
-0.12494410574436188,
-0.5798383951187134,
1.2084331512451172,
-0.9848319292068481,
1.1928722858428955,
-0.3126506507396698,
-1.178922414779663,
-1.2872833013534546,
0.8764154314994812,
0.44919073581695557,
0.05719165876507759,
-0.4036839008331299,
1.223012924194336,
0.11013000458478928,
1.3129830360412598,
0.503627598285675,
-0.2692338228225708,
0.6448563933372498,
-0.35931679606437683,
-0.47641319036483765,
1.540668249130249,
0.3069022595882416,
-1.3779655694961548,
-2.3404386043548584,
-0.16464900970458984,
-0.742148220539093,
-0.1090337410569191,
-0.6827559471130371,
-1.05777108669281,
1.539331316947937,
0.5195731520652771,
-1.1664352416992188,
-0.3539973199367523,
-0.3571745753288269,
-0.7033467888832092,
2.6010756492614746,
-1.4072295427322388,
-0.19496279954910278,
-1.007393479347229,
-0.5241602063179016,
1.6566394567489624,
-1.2265009880065918,
-0.08628928661346436,
-0.9289253950119019,
-0.5868149399757385,
-1.3901870250701904,
-0.5591539740562439,
-0.014497067779302597,
-0.888698935508728,
0.6896369457244873,
0.20929275453090668,
-1.1166549921035767,
-0.24160346388816833,
-0.8267918229103088,
0.7839471101760864,
-0.1085328534245491,
0.35706210136413574,
1.8112212419509888,
0.4504659175872803,
-0.38094040751457214,
0.777167558670044,
1.1523914337158203,
0.5699834227561951,
-0.6798546314239502,
0.18882088363170624,
-0.7579948902130127,
0.24701836705207825,
-1.3115664720535278,
0.3070128560066223,
-3.0065577030181885,
0.7057804465293884,
-0.08473584055900574,
-0.0915275290608406,
-0.040212538093328476,
-1.313301920890808,
1.2165300846099854,
2.571789264678955,
-1.1892858743667603,
0.4586867690086365,
0.323406845331192,
1.2496027946472168,
-1.5497808456420898,
0.2076735645532608,
-0.3721611499786377,
2.0746307373046875,
0.12252532690763474,
1.3034098148345947,
-0.47309058904647827,
-2.218435525894165,
0.7019332051277161,
-1.212790608406067,
-1.166989803314209,
0.7990807890892029,
-0.8591210842132568,
-0.017072368413209915,
-1.4234751462936401,
-0.19095855951309204,
-0.9205405712127686,
-1.2636282444000244,
0.888794481754303,
0.19717925786972046,
0.5831323862075806,
-0.6340895891189575,
0.3578127920627594,
-2.1336557865142822,
-1.383721947669983,
-0.14296041429042816,
-0.9225430488586426,
0.5372747778892517,
-0.3153938353061676,
0.6205881834030151,
-0.16974706947803497,
0.10890638828277588,
0.3255501091480255,
1.40987229347229,
3.3555867671966553,
0.1732502579689026,
0.40703117847442627,
-0.11215577274560928,
-0.9454760551452637,
1.4086761474609375,
0.9813517928123474,
-0.13266557455062866,
-0.6512218713760376,
-0.906086266040802,
1.2952088117599487,
1.9773720502853394,
1.0698308944702148,
0.1256616711616516,
-0.9980588555335999,
-0.7140295505523682,
-0.03688196837902069,
0.28023067116737366,
0.484087198972702,
0.9962660670280457,
0.05297466367483139,
0.020711306482553482,
1.3730717897415161,
1.1622650623321533,
-0.5507853627204895,
0.4466564357280731,
-0.9820302724838257,
-0.3012719452381134,
0.45353785157203674,
0.26836079359054565,
0.09253820031881332,
0.3725285232067108,
-1.006624460220337,
-0.265392929315567,
-0.20692658424377441,
-0.9661712646484375,
-0.8745489120483398,
-0.48572874069213867,
-0.4219314157962799,
1.7322893142700195,
-0.005082296207547188,
-0.39576154947280884,
-0.08885485678911209,
-0.804232656955719,
-0.04798844829201698,
-1.0098819732666016,
0.13008153438568115,
-0.17800273001194,
-0.050103407353162766,
-0.049111273139715195,
1.7741841077804565,
-1.0595695972442627,
-2.110175132751465,
0.30285441875457764,
0.3249967694282532,
-0.392322838306427,
0.15472552180290222,
1.6992905139923096,
0.5065554976463318,
1.3847397565841675,
1.2898985147476196,
1.093592882156372,
-0.6571719646453857,
-1.2748606204986572,
0.6112956404685974,
0.9294945001602173,
-1.337760329246521,
0.8557112812995911,
-0.04197829216718674,
-0.41357213258743286,
0.6769713759422302,
1.3391000032424927,
0.45508885383605957,
-2.0022361278533936,
0.7483662962913513,
-0.8456015586853027,
0.7950849533081055,
0.6180084347724915,
0.808668851852417,
0.23102563619613647,
0.7715588212013245,
-1.2618558406829834,
-1.1804735660552979,
-0.7956268191337585,
-0.7202253937721252,
1.8550727367401123,
-0.16090869903564453,
0.4654918909072876,
-0.12868790328502655,
-1.2171783447265625,
-0.19323143362998962,
0.7258077263832092,
0.34237098693847656,
-0.3577461838722229,
0.7648188471794128,
-0.6564891338348389,
-1.074765682220459,
-1.4942947626113892,
-0.49134358763694763,
-0.9178464412689209,
-0.9588596820831299,
1.0138418674468994,
0.7307695746421814,
0.2995592951774597,
2.0223300457000732,
0.5040504336357117,
0.2611583471298218,
-2.6500532627105713,
0.8273587822914124,
0.3706906735897064,
0.0325552262365818,
0.9491113424301147,
0.3116321563720703,
1.1234514713287354,
-0.05976342409849167,
0.4978151023387909,
-2.3187389373779297,
2.257861375808716,
-0.21955189108848572,
0.6176164150238037,
0.07872941344976425,
-0.15594828128814697,
1.1126086711883545,
0.4281487464904785,
0.6386287212371826,
-1.2917460203170776,
0.7619606852531433,
-0.7007259726524353,
1.2062692642211914,
0.9659819602966309,
-0.810858964920044,
0.16479900479316711,
1.3489816188812256,
0.5136639475822449,
-0.4145243167877197,
-0.8902162909507751,
-0.8494696021080017,
0.8225343823432922,
1.7271956205368042,
-0.02973443642258644,
0.0525386743247509,
0.7150751352310181,
0.6139587163925171,
-1.323628306388855,
0.0410124808549881,
-0.6916554570198059,
-0.7572144269943237,
1.6996736526489258,
2.017335891723633,
-0.16418088972568512,
-0.25240761041641235,
-0.8631343245506287,
-1.0976687669754028,
0.8050456047058105,
0.06452710181474686,
0.19051924347877502,
0.5642393231391907,
-0.674407958984375,
1.308321475982666,
0.8414823412895203,
0.8808334469795227,
0.09785914421081543,
0.4227253496646881,
0.47006431221961975,
-0.22386279702186584,
-1.0880788564682007,
-0.3326250910758972,
-1.1457536220550537,
-2.698927164077759,
0.39532721042633057,
-0.40787819027900696,
-1.3782172203063965,
-0.056419067084789276,
-1.0946909189224243,
0.7936185598373413,
-0.6231473684310913,
-1.0009052753448486,
-1.4980535507202148,
0.2545138895511627,
-0.2627781331539154,
0.7806644439697266,
-1.623533844947815,
-0.041635774075984955,
1.3315222263336182,
1.033811092376709,
-0.7220970392227173,
1.0215197801589966,
0.25830960273742676,
1.0280691385269165,
0.8404409885406494,
-0.5305489301681519,
0.5303518176078796,
0.1718454509973526,
-1.3278683423995972,
0.5216200351715088,
1.2979881763458252,
0.1692139357328415,
1.4183415174484253,
-0.5082155466079712,
0.01674036681652069,
0.4621756672859192,
-0.4955514371395111,
-0.6280462741851807,
-0.6182245016098022,
0.8053358197212219,
0.059049662202596664,
-1.0182909965515137,
0.15142685174942017,
-0.1418263018131256,
-0.18210606276988983,
0.248475581407547,
-1.5548183917999268,
-0.42682409286499023,
-0.38210031390190125,
-0.49300360679626465,
-1.2800606489181519,
-0.017591645941138268,
1.288171648979187,
-0.6608403921127319,
-0.28429749608039856,
0.45347994565963745,
0.4249952435493469,
0.47517693042755127,
0.5317191481590271,
-0.6627390384674072,
-0.4449193775653839,
-0.30632662773132324,
-0.3493848145008087,
0.43469566106796265,
1.256657361984253,
-0.12432610988616943,
-1.0090012550354004,
0.7181515693664551,
-0.3856222927570343,
0.03976194187998772,
1.9618321657180786,
0.04086805135011673,
-0.8127819895744324,
0.1865556836128235,
-0.6324648857116699,
1.9474685192108154,
1.6106758117675781,
1.2536450624465942,
-0.005292470566928387,
-0.8167218565940857,
0.5502533316612244,
-0.14328059554100037,
-0.3570878207683563,
0.9564424753189087,
0.435712993144989,
-0.26288700103759766,
-1.450057029724121,
0.46565893292427063,
1.3194119930267334,
-0.8419840335845947,
-0.8028022646903992,
-0.12597452104091644,
-0.8466237783432007,
1.1284120082855225,
0.6831180453300476,
0.31182965636253357,
0.34524714946746826,
1.6372424364089966,
0.6589939594268799,
-0.45150354504585266,
0.45813632011413574,
0.31888747215270996,
-0.07593421638011932,
-2.1449899673461914,
-1.0940980911254883,
0.3718591630458832,
-0.35018154978752136,
-1.4927318096160889,
1.4223273992538452,
-1.141974687576294,
-0.8820951581001282,
0.5826053023338318,
0.1973380297422409,
1.4187991619110107,
0.24761134386062622,
1.6632499694824219,
2.069489002227783,
0.9482676982879639,
0.15343104302883148,
1.3505336046218872,
-0.21994008123874664,
-0.4478081166744232,
1.8665109872817993,
-0.4596371650695801,
0.419464111328125,
0.9665006995201111,
-0.35651448369026184,
-1.0390381813049316,
-0.8124556541442871,
-1.1585158109664917,
-0.6250146627426147,
1.203062891960144,
0.2517019510269165,
-1.1565836668014526,
0.20568276941776276,
1.5495280027389526,
0.16445596516132355,
-0.1128339096903801,
0.6175089478492737,
0.527838945388794,
-0.7528349161148071,
0.03830794245004654,
-0.9235134124755859,
0.5457228422164917,
-0.1434382051229477,
-0.30588099360466003,
0.3351384699344635,
0.5573233962059021,
1.1660962104797363,
-0.06799330562353134,
0.030371367931365967,
1.2757034301757812,
-1.4337828159332275,
1.6044580936431885,
-0.5927118062973022,
0.25474268198013306,
-2.365624189376831,
1.3787026405334473,
-0.8397197127342224,
1.878084659576416,
-2.560678482055664,
0.30296334624290466,
-0.5566559433937073,
-0.40759894251823425,
0.33992084860801697,
-0.46792227029800415,
0.21431589126586914,
-0.2213454246520996,
-1.0362377166748047,
-0.07020578533411026,
-0.8146911263465881,
0.5018664002418518,
1.1748683452606201,
1.3130682706832886,
-1.0120090246200562,
-0.23090185225009918,
-1.7642902135849,
-0.15174032747745514,
-0.5506223440170288,
0.3138408362865448,
-1.9927455186843872,
-0.25789618492126465,
-2.0686161518096924,
-2.1691179275512695,
-1.3598161935806274,
-0.7584869265556335,
1.0152238607406616,
0.10715899616479874,
-0.890009343624115,
0.9700249433517456,
-0.40479016304016113,
-1.8065969944000244,
1.062366008758545,
-2.1891889572143555
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | It looks all good to me then ^^ though you said you didn't experienced speed improvements by adding more GPUs ? What size is your source dataset and what time differences did you experience ? | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 35 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
It looks all good to me then ^^ though you said you didn't experienced speed improvements by adding more GPUs ? What size is your source dataset and what time differences did you experience ? | [
-1.264390230178833,
-0.8778632283210754,
-0.9781934022903442,
1.381111741065979,
-0.06415784358978271,
-1.2375266551971436,
0.04499813914299011,
-1.0999897718429565,
1.6789318323135376,
-0.8037810325622559,
0.20712533593177795,
-1.534374713897705,
0.006438109092414379,
-0.45954570174217224,
-0.6876006722450256,
-0.8835485577583313,
-0.29890379309654236,
-0.8958672881126404,
1.014078974723816,
2.5632870197296143,
1.1298030614852905,
-1.2881412506103516,
2.7723541259765625,
0.6920628547668457,
-0.4147424101829529,
-1.0405659675598145,
0.6018832921981812,
0.10313302278518677,
-1.1301404237747192,
-0.5919581055641174,
-0.8972104787826538,
0.04775530844926834,
-0.6188499927520752,
-0.4921109974384308,
-0.01163125317543745,
0.4136672616004944,
-0.22299471497535706,
-0.2865593731403351,
-0.39462488889694214,
-0.7806745767593384,
0.5504379868507385,
-0.4260926842689514,
0.8628107905387878,
-0.3474855422973633,
1.7059553861618042,
-0.5329989790916443,
0.3024405837059021,
0.6483791470527649,
1.4061927795410156,
0.24577008187770844,
-0.07780559360980988,
0.20605145394802094,
0.3521658182144165,
-0.09414754062891006,
0.3991951048374176,
1.1819709539413452,
0.47916510701179504,
0.5718211531639099,
0.5503733158111572,
-2.250265598297119,
1.355344295501709,
-0.9654701948165894,
0.18952424824237823,
1.3289510011672974,
-0.913371205329895,
0.40306541323661804,
-1.7668070793151855,
-0.12540820240974426,
0.4777921438217163,
-2.4202709197998047,
0.235828697681427,
-1.2060343027114868,
-0.5792153477668762,
0.9514232873916626,
0.25922250747680664,
-1.3256675004959106,
0.1893029808998108,
-0.43805909156799316,
1.092204213142395,
0.4047665297985077,
1.1284950971603394,
-1.6587659120559692,
-0.022779736667871475,
-0.3345159888267517,
0.050959084182977676,
-1.3888616561889648,
-1.5360798835754395,
0.5323965549468994,
0.5095943808555603,
0.6421209573745728,
-0.06122829020023346,
0.9818646311759949,
-1.0491231679916382,
0.8382791876792908,
-0.8517399430274963,
-1.6179516315460205,
-1.2963818311691284,
-2.32625675201416,
-2.325547218322754,
0.8507875800132751,
-0.5369951128959656,
-0.5211389660835266,
1.9461352825164795,
-1.0940732955932617,
-1.8415396213531494,
1.1403295993804932,
0.2629985809326172,
0.043217677623033524,
2.317542314529419,
0.35169264674186707,
-0.7653772830963135,
0.4907015562057495,
-0.7288762927055359,
0.8432288765907288,
-0.4565698206424713,
1.4304009675979614,
0.6413195729255676,
-0.94341641664505,
1.635231614112854,
-0.5114414691925049,
0.5689963698387146,
-0.6545460820198059,
-0.6095210313796997,
-0.9487944841384888,
0.4011536240577698,
1.9605882167816162,
-0.36562928557395935,
1.704480528831482,
-0.3640350103378296,
-1.5836141109466553,
-1.5287362337112427,
0.9220893383026123,
0.5556920766830444,
-0.8252161741256714,
0.20067615807056427,
-0.3658997714519501,
0.09314410388469696,
0.013029196299612522,
1.0726319551467896,
1.2238812446594238,
0.6866490840911865,
-0.2836773991584778,
-0.9341422915458679,
0.36286506056785583,
0.037164222449064255,
-0.5742388367652893,
-1.9286967515945435,
-0.3195858895778656,
0.17799431085586548,
0.6960408091545105,
-1.2630023956298828,
1.598170280456543,
0.9277964234352112,
2.058234691619873,
0.9850332140922546,
-0.311591237783432,
1.535971999168396,
-0.1353248655796051,
1.8473100662231445,
-0.45658305287361145,
0.774938702583313,
-0.32620322704315186,
-1.068828821182251,
0.8920167088508606,
-0.39214107394218445,
-1.9329299926757812,
-0.8223046064376831,
-0.9427947998046875,
-0.1894022822380066,
-0.853535532951355,
0.950167715549469,
-0.32974639534950256,
-1.4441555738449097,
0.19495292007923126,
-0.7019873261451721,
0.13755537569522858,
-1.2664711475372314,
0.24278514087200165,
0.7134737372398376,
-0.48814865946769714,
0.031854692846536636,
-0.18300393223762512,
-1.2774088382720947,
-0.43326008319854736,
0.17338301241397858,
2.014739513397217,
-0.7124388813972473,
1.0204848051071167,
1.0908725261688232,
-0.7576969861984253,
0.04130721837282181,
0.4043380618095398,
-0.32030776143074036,
0.7924049496650696,
-1.1414252519607544,
-0.3225835859775543,
1.1585661172866821,
-0.07213886827230453,
-0.678225040435791,
1.450260043144226,
0.8981831073760986,
-1.032712697982788,
-0.10417637228965759,
-0.16618479788303375,
-0.7137486934661865,
-0.01187478844076395,
-1.539689064025879,
-0.2312554121017456,
0.22038911283016205,
-1.3940130472183228,
-0.45204851031303406,
-0.2178642302751541,
1.3202699422836304,
-0.26286882162094116,
1.3901035785675049,
-0.2995646595954895,
-0.20946498215198517,
-0.3448028564453125,
-0.5185968279838562,
0.18803507089614868,
-0.19494356215000153,
-0.6178216338157654,
0.31168845295906067,
-0.8202328681945801,
0.2688387930393219,
1.4044716358184814,
0.3609892427921295,
0.046110644936561584,
0.5452317595481873,
1.0989086627960205,
0.4077626168727875,
-0.11468770354986191,
-0.9585120677947998,
-1.6043328046798706,
2.045872449874878,
-1.4609910249710083,
1.956688642501831,
0.8174660801887512,
-0.1557873785495758,
-1.6972509622573853,
-1.831014633178711,
1.3460592031478882,
1.2409669160842896,
2.3781747817993164,
0.6282336115837097,
0.4012722671031952,
-0.7657033205032349,
-0.7384461164474487,
0.3298807442188263,
-1.2022132873535156,
-0.7117243409156799,
0.018273744732141495,
2.307866096496582,
1.7147321701049805,
-0.4894425868988037,
-0.2462543249130249,
-0.9279590845108032,
1.155072569847107,
-0.1856682449579239,
0.22864486277103424,
2.0142316818237305,
-0.37557584047317505,
-1.1283410787582397,
1.2249966859817505,
-2.270693302154541,
0.1858784556388855,
2.079204559326172,
0.3760700821876526,
0.01788737252354622,
-1.4001524448394775,
-0.7013320326805115,
-0.21969135105609894,
-0.39895179867744446,
-1.2433128356933594,
0.6665332317352295,
-0.26742151379585266,
-0.919620931148529,
-1.4921237230300903,
0.1735249161720276,
-1.1558966636657715,
-1.7373920679092407,
0.45886901021003723,
1.861687183380127,
2.127236843109131,
-0.8249574899673462,
1.4538662433624268,
-0.22190603613853455,
0.12715017795562744,
1.2056564092636108,
1.1762776374816895,
3.047224998474121,
1.7764099836349487,
-1.1822021007537842,
0.7040321826934814,
-0.15553298592567444,
-0.6030356287956238,
1.1717500686645508,
-0.9849324226379395,
1.229354739189148,
-0.2641807794570923,
-1.1344155073165894,
-1.2278863191604614,
0.8954787850379944,
0.4951883554458618,
0.04510617256164551,
-0.43624794483184814,
1.2667721509933472,
0.10040432214736938,
1.2791446447372437,
0.45776602625846863,
-0.3431672751903534,
0.599216878414154,
-0.3789166212081909,
-0.4979352056980133,
1.5600731372833252,
0.25477489829063416,
-1.4298691749572754,
-2.3778469562530518,
-0.19450239837169647,
-0.7539477944374084,
-0.14736245572566986,
-0.6065573692321777,
-1.108702301979065,
1.489479660987854,
0.4709846079349518,
-1.158747673034668,
-0.3894982635974884,
-0.3359764814376831,
-0.6841716170310974,
2.5899362564086914,
-1.432429313659668,
-0.1525564342737198,
-0.9832271337509155,
-0.5200520157814026,
1.7253496646881104,
-1.2466611862182617,
-0.14541466534137726,
-0.9196365475654602,
-0.654617965221405,
-1.414100170135498,
-0.5662756562232971,
-0.0624224990606308,
-0.9108587503433228,
0.6381421685218811,
0.2404787242412567,
-1.0325034856796265,
-0.21825383603572845,
-0.815382719039917,
0.7640118598937988,
-0.09523219615221024,
0.35501253604888916,
1.7807519435882568,
0.39233240485191345,
-0.40731167793273926,
0.764918863773346,
1.199697732925415,
0.5557519793510437,
-0.7454516887664795,
0.08338286727666855,
-0.8065130710601807,
0.29205256700515747,
-1.3273824453353882,
0.2880488932132721,
-2.9672110080718994,
0.7378667593002319,
-0.0684819221496582,
-0.07824710756540298,
0.011132403276860714,
-1.329883337020874,
1.2170255184173584,
2.5446367263793945,
-1.2056916952133179,
0.4709538519382477,
0.3352913558483124,
1.2141871452331543,
-1.529334306716919,
0.23623543977737427,
-0.35877564549446106,
2.0486676692962646,
0.20139507949352264,
1.3413182497024536,
-0.4874654710292816,
-2.2015042304992676,
0.6985045075416565,
-1.2151031494140625,
-1.2168083190917969,
0.739365816116333,
-0.9829763770103455,
-0.008254515938460827,
-1.4831199645996094,
-0.14969676733016968,
-0.9737210869789124,
-1.2609899044036865,
0.8435884118080139,
0.1707175374031067,
0.48911768198013306,
-0.6285796165466309,
0.3535461127758026,
-2.146965265274048,
-1.3970853090286255,
-0.1326553225517273,
-0.9521124958992004,
0.4858354330062866,
-0.34956711530685425,
0.5852428674697876,
-0.15090307593345642,
0.1360522359609604,
0.38116514682769775,
1.386310338973999,
3.3584301471710205,
0.24388359487056732,
0.40788906812667847,
-0.0865727961063385,
-0.9720213413238525,
1.45260488986969,
1.039515733718872,
-0.078646719455719,
-0.6137123703956604,
-0.9215368032455444,
1.3382213115692139,
1.9792076349258423,
1.053083062171936,
0.07965309172868729,
-0.9636039733886719,
-0.668013870716095,
0.010751697234809399,
0.3055382966995239,
0.4520873725414276,
1.006922721862793,
0.013469011522829533,
0.07272205501794815,
1.437522292137146,
1.1746190786361694,
-0.5861016511917114,
0.4111948311328888,
-0.9457349181175232,
-0.2975549101829529,
0.4765219986438751,
0.2615440785884857,
0.05254439264535904,
0.420541375875473,
-0.9661647081375122,
-0.26440367102622986,
-0.22665148973464966,
-0.9644960761070251,
-0.8675897121429443,
-0.4986454248428345,
-0.3666226267814636,
1.670115351676941,
-0.00019138585776090622,
-0.3807305097579956,
-0.024823471903800964,
-0.8162237405776978,
-0.028068043291568756,
-1.0647757053375244,
0.11956673860549927,
-0.12410016357898712,
-0.129243865609169,
-0.020160634070634842,
1.8354836702346802,
-1.01374351978302,
-2.1206777095794678,
0.31733939051628113,
0.29924920201301575,
-0.318765252828598,
0.14775744080543518,
1.7015571594238281,
0.4354890286922455,
1.414700984954834,
1.2072333097457886,
1.0908784866333008,
-0.6574669480323792,
-1.2256855964660645,
0.6456816792488098,
1.0119625329971313,
-1.2806923389434814,
0.8490058779716492,
-0.07554806023836136,
-0.46269017457962036,
0.6776058077812195,
1.2819427251815796,
0.484015554189682,
-1.9139888286590576,
0.7695545554161072,
-0.8919373750686646,
0.7479619383811951,
0.5951845049858093,
0.8402037620544434,
0.2565062642097473,
0.7963529825210571,
-1.2656060457229614,
-1.1421887874603271,
-0.8424180746078491,
-0.676327109336853,
1.8488966226577759,
-0.1695951670408249,
0.47930920124053955,
-0.11007507145404816,
-1.1913726329803467,
-0.18102560937404633,
0.7805317640304565,
0.31540432572364807,
-0.34377968311309814,
0.7773813605308533,
-0.6889083981513977,
-1.076172947883606,
-1.4911017417907715,
-0.4439496099948883,
-0.8865418434143066,
-0.9507570266723633,
1.0244591236114502,
0.6969257593154907,
0.2867240905761719,
2.0260584354400635,
0.5272440910339355,
0.27503785490989685,
-2.6451895236968994,
0.9405818581581116,
0.32023704051971436,
0.002939680591225624,
1.0191479921340942,
0.30982616543769836,
1.1200226545333862,
-0.004128733649849892,
0.4455699920654297,
-2.29830265045166,
2.2219085693359375,
-0.18301402032375336,
0.6390277743339539,
0.039954133331775665,
-0.15852288901805878,
1.1463698148727417,
0.45058906078338623,
0.6051087975502014,
-1.2792888879776,
0.7546883821487427,
-0.6177892684936523,
1.1899770498275757,
1.0026521682739258,
-0.8000235557556152,
0.12931638956069946,
1.2940195798873901,
0.4823862910270691,
-0.44141921401023865,
-0.8783499002456665,
-0.8062294721603394,
0.9026923775672913,
1.7271589040756226,
-0.03204356133937836,
0.014157705940306187,
0.7375461459159851,
0.594555139541626,
-1.2959471940994263,
0.053249578922986984,
-0.7329064011573792,
-0.7435765266418457,
1.658331274986267,
2.040769577026367,
-0.09265941381454468,
-0.23541904985904694,
-0.8233451843261719,
-1.1364924907684326,
0.7930189371109009,
-0.011845718137919903,
0.19838014245033264,
0.6262991428375244,
-0.6865178346633911,
1.2632890939712524,
0.8977645039558411,
0.8444598317146301,
0.010464721359312534,
0.39897239208221436,
0.5147506594657898,
-0.18541574478149414,
-1.0730899572372437,
-0.3381819725036621,
-1.1391615867614746,
-2.7474610805511475,
0.4106157124042511,
-0.3315621614456177,
-1.355985164642334,
-0.02183094248175621,
-1.0887387990951538,
0.8910910487174988,
-0.60968017578125,
-0.9690515995025635,
-1.534969449043274,
0.20481210947036743,
-0.22299499809741974,
0.8258090019226074,
-1.6054317951202393,
-0.1160079762339592,
1.3381088972091675,
1.019760251045227,
-0.6909275054931641,
1.0790753364562988,
0.24525798857212067,
0.9635085463523865,
0.7690988779067993,
-0.511538565158844,
0.625948965549469,
0.19209513068199158,
-1.3397330045700073,
0.541488528251648,
1.3139283657073975,
0.2337719351053238,
1.3639684915542603,
-0.5107293725013733,
0.0022433623671531677,
0.4968605637550354,
-0.5477317571640015,
-0.5354499220848083,
-0.5933747887611389,
0.7882736921310425,
0.15226955711841583,
-0.9845705628395081,
0.09481000900268555,
-0.18367765843868256,
-0.19533799588680267,
0.24097318947315216,
-1.5608508586883545,
-0.45828741788864136,
-0.3946295976638794,
-0.5364985466003418,
-1.2844467163085938,
0.03017374500632286,
1.307657241821289,
-0.7381999492645264,
-0.2880816161632538,
0.4533805549144745,
0.5108259916305542,
0.5078548192977905,
0.5687286853790283,
-0.6714460253715515,
-0.42647311091423035,
-0.27913954854011536,
-0.298458069562912,
0.3495037853717804,
1.262656569480896,
-0.13298480212688446,
-1.0624712705612183,
0.7158399820327759,
-0.42171069979667664,
0.048065997660160065,
1.906365990638733,
0.05323806032538414,
-0.8357069492340088,
0.18812888860702515,
-0.6097205877304077,
1.9904576539993286,
1.5444108247756958,
1.2585370540618896,
-0.03931442275643349,
-0.6950693726539612,
0.595470666885376,
-0.1326168328523636,
-0.3577515482902527,
0.9847046732902527,
0.44214895367622375,
-0.20270690321922302,
-1.4593005180358887,
0.5000264048576355,
1.2728983163833618,
-0.9127992987632751,
-0.8338205218315125,
-0.0790751576423645,
-0.8130307793617249,
1.1376851797103882,
0.6395512223243713,
0.31835806369781494,
0.28066667914390564,
1.683548092842102,
0.6754856705665588,
-0.5252968072891235,
0.426913857460022,
0.40321096777915955,
-0.05655074119567871,
-2.196162462234497,
-1.0486202239990234,
0.41782644391059875,
-0.373030424118042,
-1.4500266313552856,
1.4697214365005493,
-1.1466931104660034,
-0.8857415914535522,
0.5954059958457947,
0.1796945184469223,
1.3962517976760864,
0.2663092315196991,
1.6672441959381104,
2.0840015411376953,
0.9453980326652527,
0.1658436357975006,
1.3552422523498535,
-0.22946907579898834,
-0.39439645409584045,
1.8660070896148682,
-0.4285314977169037,
0.43944817781448364,
0.9335168600082397,
-0.4045063853263855,
-0.9880948662757874,
-0.7773953676223755,
-1.196582317352295,
-0.6392710208892822,
1.146694540977478,
0.2265980988740921,
-1.1593782901763916,
0.19558699429035187,
1.5666284561157227,
0.16671323776245117,
-0.15507930517196655,
0.6040066480636597,
0.5364238619804382,
-0.7488046884536743,
0.012402511201798916,
-0.9796016216278076,
0.5607494711875916,
-0.1696862131357193,
-0.32292595505714417,
0.2870929539203644,
0.5473426580429077,
1.2339963912963867,
-0.06851501017808914,
0.030778493732213974,
1.2369399070739746,
-1.4017956256866455,
1.5674527883529663,
-0.5549759864807129,
0.23802725970745087,
-2.4124581813812256,
1.3344284296035767,
-0.7897915244102478,
1.8960236310958862,
-2.5507149696350098,
0.30676430463790894,
-0.6337041258811951,
-0.36081966757774353,
0.3663417100906372,
-0.4345310628414154,
0.2072204351425171,
-0.22838422656059265,
-1.0119946002960205,
-0.07703212648630142,
-0.7918182015419006,
0.5529265999794006,
1.1434019804000854,
1.2967759370803833,
-1.0036617517471313,
-0.21308620274066925,
-1.7695765495300293,
-0.10686987638473511,
-0.5960456728935242,
0.24962081015110016,
-2.0630834102630615,
-0.22047388553619385,
-2.061396360397339,
-2.158543586730957,
-1.392237901687622,
-0.7287881374359131,
1.0778785943984985,
0.12856000661849976,
-0.8880036473274231,
0.96616131067276,
-0.4243345260620117,
-1.7908884286880493,
1.0831756591796875,
-2.1721131801605225
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | query set: 1e6
source dataset: 1e6
embedding size: 768
index: Flat
topk: 20
GPU: V100
The time taken to traverse the query set once is about 1.5h, which is almost not influenced by the value of query batch size or the number of GPUs according to my experiments. | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 48 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
query set: 1e6
source dataset: 1e6
embedding size: 768
index: Flat
topk: 20
GPU: V100
The time taken to traverse the query set once is about 1.5h, which is almost not influenced by the value of query batch size or the number of GPUs according to my experiments. | [
-1.2050089836120605,
-0.8943449258804321,
-0.9588335156440735,
1.5219777822494507,
-0.10444071143865585,
-1.2720272541046143,
0.09909652173519135,
-1.114426612854004,
1.61130690574646,
-0.7919096946716309,
0.2717013657093048,
-1.5423150062561035,
-0.017270421609282494,
-0.5075888633728027,
-0.7006244659423828,
-0.9007017016410828,
-0.3276042342185974,
-0.8331210613250732,
0.9352452754974365,
2.5961523056030273,
1.1969788074493408,
-1.277678370475769,
2.7411892414093018,
0.6899369359016418,
-0.35315027832984924,
-1.0901638269424438,
0.6440092325210571,
0.08421827107667923,
-1.1703424453735352,
-0.552533745765686,
-0.8432876467704773,
-0.012451864778995514,
-0.618017852306366,
-0.481557160615921,
0.03329895809292793,
0.41881024837493896,
-0.3177565634250641,
-0.2896570861339569,
-0.3926187753677368,
-0.844910740852356,
0.5382982492446899,
-0.4102351665496826,
0.8223856687545776,
-0.3421155512332916,
1.7587718963623047,
-0.5330185294151306,
0.28266051411628723,
0.7651047110557556,
1.4298861026763916,
0.09538936614990234,
-0.08917683362960815,
0.2427891045808792,
0.34427618980407715,
-0.0637272521853447,
0.3720056414604187,
1.1626015901565552,
0.49931350350379944,
0.4608605206012726,
0.6323497891426086,
-2.225918769836426,
1.3654543161392212,
-0.9635242223739624,
0.14642104506492615,
1.38882315158844,
-0.9432829022407532,
0.35630863904953003,
-1.7793549299240112,
-0.13407209515571594,
0.466348797082901,
-2.3607470989227295,
0.2891104221343994,
-1.18919038772583,
-0.5610637068748474,
0.9900175929069519,
0.282918781042099,
-1.3057291507720947,
0.1256006956100464,
-0.5040179491043091,
1.0206252336502075,
0.45345792174339294,
1.166103720664978,
-1.7461516857147217,
-0.07564204931259155,
-0.2660057246685028,
0.022186119109392166,
-1.3755731582641602,
-1.5351279973983765,
0.5678277611732483,
0.48162713646888733,
0.626788854598999,
-0.025963064283132553,
0.9035547375679016,
-0.9540950059890747,
0.8286680579185486,
-0.936493992805481,
-1.624881625175476,
-1.3162117004394531,
-2.33866024017334,
-2.2290115356445312,
0.7629238963127136,
-0.5283246636390686,
-0.5378857851028442,
1.9939502477645874,
-1.098441243171692,
-1.839532494544983,
1.1730010509490967,
0.29917633533477783,
0.07968022674322128,
2.319821834564209,
0.3648599684238434,
-0.6787934899330139,
0.42357105016708374,
-0.7035200595855713,
0.829215943813324,
-0.4217385947704315,
1.4060637950897217,
0.5742829442024231,
-1.0374581813812256,
1.5701900720596313,
-0.4975215792655945,
0.566252589225769,
-0.74603271484375,
-0.4747733473777771,
-0.8793970346450806,
0.3803044855594635,
1.8443533182144165,
-0.3396872282028198,
1.5767748355865479,
-0.39604753255844116,
-1.5004630088806152,
-1.5282621383666992,
0.9484140276908875,
0.5403345823287964,
-0.7490289211273193,
0.12852203845977783,
-0.351936399936676,
0.027416057884693146,
0.029611587524414062,
1.0778872966766357,
1.2083888053894043,
0.650485098361969,
-0.37490978837013245,
-0.9303005933761597,
0.28388601541519165,
0.04339516907930374,
-0.6872561573982239,
-1.9444499015808105,
-0.3346976935863495,
0.16925783455371857,
0.7273103594779968,
-1.278358817100525,
1.6366112232208252,
0.9850513935089111,
2.0031678676605225,
1.0014989376068115,
-0.3435078263282776,
1.5419405698776245,
-0.08313781768083572,
1.8541501760482788,
-0.45372474193573,
0.7581501007080078,
-0.30233365297317505,
-1.092448353767395,
0.8788206577301025,
-0.30938583612442017,
-1.9762897491455078,
-0.891242265701294,
-0.9325352907180786,
-0.2291344404220581,
-0.812395453453064,
1.0267891883850098,
-0.32891130447387695,
-1.334856390953064,
0.16349057853221893,
-0.7423183917999268,
0.09703890234231949,
-1.201310634613037,
0.2859017252922058,
0.6868147850036621,
-0.5855958461761475,
0.0436716303229332,
-0.23830543458461761,
-1.2410070896148682,
-0.5392106175422668,
0.22324061393737793,
1.9422829151153564,
-0.7604730129241943,
0.9905198216438293,
1.033157229423523,
-0.7224079370498657,
0.055139631032943726,
0.37669965624809265,
-0.40810203552246094,
0.8693026900291443,
-1.0764421224594116,
-0.39368778467178345,
1.1186058521270752,
-0.04743659496307373,
-0.6999131441116333,
1.5104984045028687,
0.8139726519584656,
-1.0206631422042847,
-0.11053233593702316,
-0.20475269854068756,
-0.7728308439254761,
0.07403748482465744,
-1.5596027374267578,
-0.18681269884109497,
0.19310519099235535,
-1.369054913520813,
-0.45103979110717773,
-0.26331284642219543,
1.3989284038543701,
-0.16920900344848633,
1.346864104270935,
-0.3322429955005646,
-0.1972389817237854,
-0.3259858787059784,
-0.41298907995224,
0.19716142117977142,
-0.21201226115226746,
-0.6459429860115051,
0.307052880525589,
-0.8487985730171204,
0.2885037660598755,
1.4150009155273438,
0.45395606756210327,
0.08016274124383926,
0.4967232048511505,
1.1184839010238647,
0.42928293347358704,
-0.03520267829298973,
-0.9674971103668213,
-1.5574896335601807,
2.04834246635437,
-1.504289150238037,
1.993557095527649,
0.867370069026947,
-0.04071127995848656,
-1.8178569078445435,
-1.8707383871078491,
1.2972975969314575,
1.1869392395019531,
2.364858627319336,
0.6750656962394714,
0.29377418756484985,
-0.7317171692848206,
-0.7114318609237671,
0.32023540139198303,
-1.1547304391860962,
-0.6836255192756653,
0.05564504116773605,
2.355644941329956,
1.8000342845916748,
-0.4583311975002289,
-0.22673290967941284,
-0.9612880349159241,
1.2723897695541382,
-0.11878152936697006,
0.19449515640735626,
2.028693914413452,
-0.21881957352161407,
-1.1023417711257935,
1.2461581230163574,
-2.2677502632141113,
0.17020782828330994,
2.000009536743164,
0.3857906758785248,
0.01042600441724062,
-1.457288384437561,
-0.7471586465835571,
-0.21683074533939362,
-0.39093664288520813,
-1.231258749961853,
0.6194278597831726,
-0.37926411628723145,
-0.8768819570541382,
-1.4715912342071533,
0.17702993750572205,
-1.2051023244857788,
-1.7777724266052246,
0.4571588933467865,
1.7998324632644653,
2.1657137870788574,
-0.812080442905426,
1.4987794160842896,
-0.23630067706108093,
0.07421986013650894,
1.1986488103866577,
1.2228602170944214,
3.082867383956909,
1.7452338933944702,
-1.253753423690796,
0.6461955904960632,
-0.12396240234375,
-0.541703462600708,
1.1667137145996094,
-0.9767986536026001,
1.2358821630477905,
-0.29606497287750244,
-1.1618297100067139,
-1.3099441528320312,
0.9419265985488892,
0.4995029866695404,
0.1296875774860382,
-0.5075413584709167,
1.2305059432983398,
0.05079682916402817,
1.3043774366378784,
0.5552910566329956,
-0.2807786762714386,
0.6490468978881836,
-0.44013550877571106,
-0.45555436611175537,
1.5272045135498047,
0.26116570830345154,
-1.4679169654846191,
-2.3614554405212402,
-0.19420990347862244,
-0.7214065790176392,
-0.05291574075818062,
-0.6140615940093994,
-1.0981961488723755,
1.57975435256958,
0.43778884410858154,
-1.273725152015686,
-0.3859526813030243,
-0.3996107876300812,
-0.6538719534873962,
2.5631422996520996,
-1.4165637493133545,
-0.15602543950080872,
-0.9673321843147278,
-0.4952844977378845,
1.6275871992111206,
-1.2340366840362549,
-0.12946735322475433,
-1.0210509300231934,
-0.6123849749565125,
-1.3338536024093628,
-0.6031938195228577,
0.05234847217798233,
-0.9591166973114014,
0.7920904755592346,
0.16956011950969696,
-1.0920747518539429,
-0.24528971314430237,
-0.8421933650970459,
0.8107743263244629,
-0.08825940638780594,
0.37456876039505005,
1.8357267379760742,
0.5430868268013,
-0.3885832726955414,
0.7680849432945251,
1.197432279586792,
0.5591569542884827,
-0.7443341612815857,
0.1811710149049759,
-0.7392645478248596,
0.2170914113521576,
-1.3143903017044067,
0.3556916415691376,
-3.000011444091797,
0.6928850412368774,
-0.018495924770832062,
-0.07427216321229935,
0.01910332217812538,
-1.3283560276031494,
1.249517560005188,
2.6298885345458984,
-1.186681866645813,
0.4608039855957031,
0.31521639227867126,
1.206102967262268,
-1.591001272201538,
0.2966594398021698,
-0.31504637002944946,
2.114285945892334,
0.1461552232503891,
1.317612886428833,
-0.507219135761261,
-2.2291555404663086,
0.6655980944633484,
-1.2577680349349976,
-1.1697628498077393,
0.753691554069519,
-0.8191003799438477,
-0.018296033143997192,
-1.4958797693252563,
-0.1874782145023346,
-0.8893280029296875,
-1.2829498052597046,
0.8334861397743225,
0.27632102370262146,
0.5126919746398926,
-0.5789980888366699,
0.2982059121131897,
-2.1249475479125977,
-1.4398741722106934,
-0.1419345885515213,
-0.865300714969635,
0.5498592257499695,
-0.3183569014072418,
0.7335765957832336,
-0.16281600296497345,
0.10911497473716736,
0.4068230390548706,
1.3626748323440552,
3.3928918838500977,
0.270976722240448,
0.38568946719169617,
-0.16916969418525696,
-0.9337847828865051,
1.4428075551986694,
0.963331937789917,
-0.0884450376033783,
-0.576542317867279,
-0.9408112168312073,
1.235312581062317,
1.976799726486206,
1.0113205909729004,
0.04773258417844772,
-0.950875997543335,
-0.728530764579773,
-0.09692128747701645,
0.219887375831604,
0.5318413972854614,
0.9343689680099487,
-0.014564497396349907,
0.062123581767082214,
1.452890396118164,
1.2076475620269775,
-0.4934721291065216,
0.45223742723464966,
-0.9141273498535156,
-0.37879011034965515,
0.48472827672958374,
0.2736413776874542,
0.03683694452047348,
0.4092719256877899,
-0.978670597076416,
-0.349302738904953,
-0.26870763301849365,
-0.9795738458633423,
-0.7855517268180847,
-0.539967954158783,
-0.41878896951675415,
1.6218798160552979,
0.09937100857496262,
-0.32398930191993713,
-0.07267655432224274,
-0.7705320119857788,
-0.08101792633533478,
-1.1121522188186646,
0.18152420222759247,
-0.19564898312091827,
-0.13460633158683777,
-0.1090221032500267,
1.8533681631088257,
-1.049019455909729,
-2.1285240650177,
0.3111739158630371,
0.24791808426380157,
-0.40122151374816895,
0.17597559094429016,
1.7061089277267456,
0.5317313075065613,
1.3876553773880005,
1.2387577295303345,
1.0321857929229736,
-0.6321373581886292,
-1.2335118055343628,
0.6858367323875427,
0.9572123885154724,
-1.3547303676605225,
0.885418713092804,
0.0011446671560406685,
-0.46591252088546753,
0.7858628034591675,
1.3725786209106445,
0.409578800201416,
-1.9999195337295532,
0.7309746146202087,
-0.7921410202980042,
0.8287257552146912,
0.6894596815109253,
0.75362229347229,
0.2158942073583603,
0.7213107347488403,
-1.229423999786377,
-1.1947942972183228,
-0.7916759252548218,
-0.6966938972473145,
1.8767975568771362,
-0.22709804773330688,
0.47237643599510193,
-0.17174774408340454,
-1.219150424003601,
-0.1366673856973648,
0.7077274322509766,
0.28557607531547546,
-0.34291917085647583,
0.7680907845497131,
-0.6918573379516602,
-1.0924463272094727,
-1.4743897914886475,
-0.41301995515823364,
-0.8704334497451782,
-0.8785188794136047,
1.0291861295700073,
0.7540909051895142,
0.2711992561817169,
1.9601597785949707,
0.5482913851737976,
0.16023531556129456,
-2.596764087677002,
0.9024845361709595,
0.29719996452331543,
-0.008468477055430412,
0.9814900159835815,
0.2779388725757599,
1.0706316232681274,
0.044753897935152054,
0.4564775824546814,
-2.367473840713501,
2.2421255111694336,
-0.21011382341384888,
0.639057993888855,
-0.015482611954212189,
-0.1739807426929474,
1.1542569398880005,
0.47968462109565735,
0.6480472683906555,
-1.204899549484253,
0.7790732979774475,
-0.5843133330345154,
1.1893340349197388,
0.9542597532272339,
-0.8262147903442383,
0.10480093955993652,
1.336105465888977,
0.5808354616165161,
-0.4907302260398865,
-0.8257158994674683,
-0.8776924014091492,
0.8613226413726807,
1.808891773223877,
-0.06268823891878128,
0.03959957882761955,
0.7548742294311523,
0.6340356469154358,
-1.2884548902511597,
0.032832372933626175,
-0.669198751449585,
-0.7699917554855347,
1.6208347082138062,
2.078207015991211,
-0.17211787402629852,
-0.1869884431362152,
-0.7917989492416382,
-1.0993479490280151,
0.8371759653091431,
-0.04104224592447281,
0.22288399934768677,
0.4967569410800934,
-0.6598271727561951,
1.199944019317627,
0.8578558564186096,
0.8846145868301392,
0.023788608610630035,
0.38830268383026123,
0.4434250295162201,
-0.25144198536872864,
-1.0487879514694214,
-0.3380582928657532,
-1.164840817451477,
-2.580968141555786,
0.46884244680404663,
-0.36406436562538147,
-1.3886165618896484,
-0.01983857899904251,
-1.0612218379974365,
0.9105508327484131,
-0.6042007207870483,
-0.9677650332450867,
-1.5449848175048828,
0.23414425551891327,
-0.2772485613822937,
0.8342733979225159,
-1.592477560043335,
-0.01743083819746971,
1.3585158586502075,
0.9494304060935974,
-0.6446312069892883,
1.022810459136963,
0.25892314314842224,
1.0221601724624634,
0.7973048686981201,
-0.48806503415107727,
0.5015843510627747,
0.22683614492416382,
-1.3613117933273315,
0.4138639271259308,
1.243224859237671,
0.22377073764801025,
1.4489164352416992,
-0.4633905291557312,
0.03570304811000824,
0.44992709159851074,
-0.48807448148727417,
-0.5689100623130798,
-0.4962448477745056,
0.7831670045852661,
0.13755537569522858,
-0.9795843958854675,
0.14749017357826233,
-0.11231724917888641,
-0.28068625926971436,
0.261128306388855,
-1.5160893201828003,
-0.40642139315605164,
-0.4092085659503937,
-0.4666297137737274,
-1.3105188608169556,
-0.04416710138320923,
1.3737645149230957,
-0.6640722751617432,
-0.31988340616226196,
0.46096545457839966,
0.4384448826313019,
0.5079342722892761,
0.636589765548706,
-0.6058629751205444,
-0.4396134316921234,
-0.27889150381088257,
-0.32941678166389465,
0.3340162932872772,
1.3011465072631836,
-0.11197356134653091,
-0.9553079605102539,
0.7509214282035828,
-0.39155468344688416,
0.10425665974617004,
1.9474142789840698,
0.03867620974779129,
-0.7883426547050476,
0.2170754224061966,
-0.61952805519104,
1.9484198093414307,
1.5690503120422363,
1.275814175605774,
-0.07249926775693893,
-0.8782891035079956,
0.62311851978302,
-0.15191268920898438,
-0.3119390308856964,
0.9678603410720825,
0.4758060574531555,
-0.23244206607341766,
-1.3769575357437134,
0.42828628420829773,
1.2421156167984009,
-0.8724355697631836,
-0.8560083508491516,
-0.07837745547294617,
-0.9316507577896118,
1.1023638248443604,
0.7148743867874146,
0.40212482213974,
0.2715473771095276,
1.5919338464736938,
0.6123780608177185,
-0.5560473799705505,
0.4589269161224365,
0.37012186646461487,
-0.12219079583883286,
-2.121873140335083,
-1.0938305854797363,
0.3545331060886383,
-0.31078094244003296,
-1.53135347366333,
1.353188395500183,
-1.1747502088546753,
-0.9260823726654053,
0.6017366647720337,
0.08747557550668716,
1.3796963691711426,
0.2531396150588989,
1.6660914421081543,
2.057727575302124,
0.9208459258079529,
0.18259812891483307,
1.383736491203308,
-0.21638423204421997,
-0.5005763173103333,
1.8508085012435913,
-0.4130589962005615,
0.47660529613494873,
1.0163203477859497,
-0.363831490278244,
-1.0998479127883911,
-0.7972753047943115,
-1.1103622913360596,
-0.6417808532714844,
1.2700228691101074,
0.24328793585300446,
-1.1975668668746948,
0.19030983746051788,
1.5962806940078735,
0.19232434034347534,
-0.18880881369113922,
0.590595006942749,
0.5433257222175598,
-0.7916581034660339,
-0.019678616896271706,
-0.931561291217804,
0.4983372986316681,
-0.15139397978782654,
-0.25487735867500305,
0.349355548620224,
0.5105590224266052,
1.232375979423523,
-0.1198010966181755,
0.04839564859867096,
1.2166208028793335,
-1.4021660089492798,
1.5106823444366455,
-0.5749413967132568,
0.2115868180990219,
-2.3509702682495117,
1.4347409009933472,
-0.8311048150062561,
1.8735315799713135,
-2.556692600250244,
0.3408258259296417,
-0.5961066484451294,
-0.4246845543384552,
0.3137393891811371,
-0.41104820370674133,
0.23685038089752197,
-0.2117072343826294,
-0.9895131587982178,
-0.07641677558422089,
-0.7601444125175476,
0.5114076137542725,
1.3043776750564575,
1.2849664688110352,
-1.0607335567474365,
-0.26394417881965637,
-1.7068532705307007,
-0.23404817283153534,
-0.7224091291427612,
0.27994880080223083,
-2.024000406265259,
-0.2459741085767746,
-2.0382397174835205,
-2.210345983505249,
-1.3352596759796143,
-0.8165990114212036,
1.032556414604187,
0.2252475768327713,
-0.9299178719520569,
0.9539689421653748,
-0.43336841464042664,
-1.7733240127563477,
1.0777459144592285,
-2.1009390354156494
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Hmmm the number of GPUs should divide the time, something is going wrong. Can you check that adding more GPU does divide the memory used per GPU ? Maybe it can be worth looking at similar issues in the FAISS repository or create a noew issue over there to understand what's going on | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 53 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Hmmm the number of GPUs should divide the time, something is going wrong. Can you check that adding more GPU does divide the memory used per GPU ? Maybe it can be worth looking at similar issues in the FAISS repository or create a noew issue over there to understand what's going on | [
-1.205276370048523,
-0.8908133506774902,
-0.9810760617256165,
1.517134189605713,
-0.12005927413702011,
-1.3040844202041626,
0.11731792986392975,
-1.0856231451034546,
1.6452854871749878,
-0.9002130031585693,
0.2947157621383667,
-1.6034493446350098,
0.037190213799476624,
-0.4992271363735199,
-0.7405234575271606,
-0.9084112048149109,
-0.2780957818031311,
-0.8314142227172852,
0.9625995755195618,
2.4980733394622803,
1.1886851787567139,
-1.2440823316574097,
2.764888286590576,
0.6803004145622253,
-0.38623282313346863,
-1.0564119815826416,
0.5843596458435059,
0.07128065079450607,
-1.1656709909439087,
-0.5355029702186584,
-0.9214577078819275,
0.0206619743257761,
-0.6180112361907959,
-0.42423298954963684,
0.06946591287851334,
0.3865019679069519,
-0.2896071970462799,
-0.2869910001754761,
-0.426921010017395,
-0.8046660423278809,
0.5557147860527039,
-0.42023852467536926,
0.9151819348335266,
-0.3816864490509033,
1.7360044717788696,
-0.5391139388084412,
0.29467153549194336,
0.7011051774024963,
1.422461748123169,
0.19561058282852173,
-0.0390251949429512,
0.19853565096855164,
0.3307053744792938,
-0.07748053222894669,
0.38667306303977966,
1.1829098463058472,
0.47635552287101746,
0.520542323589325,
0.6224471926689148,
-2.2229747772216797,
1.3802679777145386,
-0.9387718439102173,
0.20805183053016663,
1.3551338911056519,
-0.9319571256637573,
0.390838623046875,
-1.7839205265045166,
-0.18543866276741028,
0.4499132037162781,
-2.3740170001983643,
0.1663387417793274,
-1.2535667419433594,
-0.5416122078895569,
0.9456649422645569,
0.30901145935058594,
-1.320348858833313,
0.2307106852531433,
-0.5003805756568909,
1.046191930770874,
0.3975781202316284,
1.1412594318389893,
-1.703399658203125,
-0.05962052941322327,
-0.21888646483421326,
0.07797804474830627,
-1.4023209810256958,
-1.5587736368179321,
0.5686103105545044,
0.5393953323364258,
0.6385408043861389,
-0.10958823561668396,
0.9660571217536926,
-1.0223369598388672,
0.8423110842704773,
-0.815074622631073,
-1.5696920156478882,
-1.273413896560669,
-2.3028619289398193,
-2.2308571338653564,
0.8394762873649597,
-0.5293887257575989,
-0.5583668351173401,
1.984376311302185,
-1.1174734830856323,
-1.842665433883667,
1.143412470817566,
0.22437086701393127,
0.03337812423706055,
2.299830675125122,
0.33754876255989075,
-0.6978639364242554,
0.4552708864212036,
-0.6429688334465027,
0.8992367386817932,
-0.47807377576828003,
1.391311526298523,
0.6011515259742737,
-1.0141233205795288,
1.610243558883667,
-0.41225072741508484,
0.5173837542533875,
-0.6785949468612671,
-0.5390791893005371,
-0.9142429232597351,
0.35690778493881226,
1.9074366092681885,
-0.3296339511871338,
1.6487820148468018,
-0.3138748109340668,
-1.5380327701568604,
-1.5700469017028809,
0.951984703540802,
0.5651291012763977,
-0.7668147683143616,
0.20805951952934265,
-0.3116268217563629,
0.10933185368776321,
0.07382193207740784,
1.1269280910491943,
1.3061730861663818,
0.671217143535614,
-0.3293823003768921,
-0.8390224575996399,
0.29899948835372925,
-0.015340341255068779,
-0.6325169205665588,
-1.943476915359497,
-0.3181132376194,
0.18840579688549042,
0.7028622627258301,
-1.2632975578308105,
1.6658862829208374,
0.9854849576950073,
2.0190205574035645,
1.0204006433486938,
-0.33640187978744507,
1.590468168258667,
-0.14004531502723694,
1.7968615293502808,
-0.4149671196937561,
0.7455551028251648,
-0.3352776765823364,
-1.05926513671875,
0.8580520749092102,
-0.3719007074832916,
-1.967705488204956,
-0.8178474307060242,
-0.9249557256698608,
-0.22513645887374878,
-0.8232621550559998,
0.9279398918151855,
-0.38592061400413513,
-1.4049221277236938,
0.19636525213718414,
-0.6657371520996094,
0.14612378180027008,
-1.2374500036239624,
0.2981737554073334,
0.725162148475647,
-0.5095507502555847,
-0.012844926677644253,
-0.24370552599430084,
-1.2643729448318481,
-0.4935804605484009,
0.23283801972866058,
1.9614176750183105,
-0.7413570284843445,
0.9869272708892822,
1.0548330545425415,
-0.7460053563117981,
0.05952928215265274,
0.39311495423316956,
-0.42373427748680115,
0.7948158383369446,
-1.083361029624939,
-0.3932400941848755,
1.11440110206604,
-0.11191807687282562,
-0.6927936673164368,
1.3700915575027466,
0.8883412480354309,
-0.9775158166885376,
-0.16291671991348267,
-0.18812507390975952,
-0.7797750234603882,
0.051751136779785156,
-1.5267750024795532,
-0.19181227684020996,
0.22029291093349457,
-1.3804171085357666,
-0.4118800163269043,
-0.25188538432121277,
1.3521175384521484,
-0.22756846249103546,
1.362085223197937,
-0.31852927803993225,
-0.20723745226860046,
-0.3286341428756714,
-0.5444576740264893,
0.19941943883895874,
-0.2332768589258194,
-0.6406015753746033,
0.32244157791137695,
-0.7468234896659851,
0.2697882056236267,
1.413758635520935,
0.38676491379737854,
0.0808757022023201,
0.5498990416526794,
1.1332252025604248,
0.40269842743873596,
-0.03939725458621979,
-0.9123638868331909,
-1.559159755706787,
2.020477294921875,
-1.5176445245742798,
1.9812939167022705,
0.8516480922698975,
-0.07123631238937378,
-1.7882837057113647,
-1.8780122995376587,
1.2661397457122803,
1.23533034324646,
2.3454701900482178,
0.625396192073822,
0.3448168933391571,
-0.6815117597579956,
-0.7486845254898071,
0.35898950695991516,
-1.152659296989441,
-0.7000803351402283,
0.08623339235782623,
2.294628143310547,
1.7861336469650269,
-0.48102444410324097,
-0.24703633785247803,
-0.9798828959465027,
1.206504225730896,
-0.14444179832935333,
0.16798633337020874,
2.062140464782715,
-0.23930391669273376,
-1.1453609466552734,
1.243086338043213,
-2.285841703414917,
0.14659002423286438,
2.036160469055176,
0.3765333294868469,
-0.07048336416482925,
-1.4599082469940186,
-0.7331261038780212,
-0.26230669021606445,
-0.3412207067012787,
-1.2384178638458252,
0.5708675384521484,
-0.37016427516937256,
-0.8565188050270081,
-1.4664323329925537,
0.15335267782211304,
-1.2192418575286865,
-1.7149922847747803,
0.4328773617744446,
1.8599402904510498,
2.185432195663452,
-0.7433032393455505,
1.4576348066329956,
-0.24744801223278046,
0.03136333078145981,
1.2190966606140137,
1.2382196187973022,
3.118556022644043,
1.7376594543457031,
-1.2615580558776855,
0.6751538515090942,
-0.135890394449234,
-0.5567541718482971,
1.173087239265442,
-0.9519321918487549,
1.2312359809875488,
-0.22320371866226196,
-1.1663910150527954,
-1.2186609506607056,
0.9320206046104431,
0.47684305906295776,
0.05495615303516388,
-0.4438323676586151,
1.2404189109802246,
0.10204673558473587,
1.341927170753479,
0.5028095841407776,
-0.3037666976451874,
0.5654565691947937,
-0.3915695548057556,
-0.5183700919151306,
1.5551639795303345,
0.26359274983406067,
-1.4403812885284424,
-2.36940860748291,
-0.2018367499113083,
-0.7278547883033752,
-0.05646087974309921,
-0.5991740822792053,
-1.074093222618103,
1.550956130027771,
0.42382755875587463,
-1.2299392223358154,
-0.36169561743736267,
-0.3448393642902374,
-0.6730486750602722,
2.5537941455841064,
-1.4337044954299927,
-0.1752646118402481,
-0.9694626927375793,
-0.5663835406303406,
1.670674204826355,
-1.2303208112716675,
-0.174503356218338,
-0.9148514866828918,
-0.6066909432411194,
-1.3988866806030273,
-0.5446192026138306,
-0.020219892263412476,
-0.9181047677993774,
0.6604670286178589,
0.2284172773361206,
-1.0686947107315063,
-0.2463487833738327,
-0.8133419156074524,
0.7608044743537903,
-0.12640565633773804,
0.3264211118221283,
1.7975382804870605,
0.48694726824760437,
-0.4294404983520508,
0.7645850777626038,
1.1565136909484863,
0.5780931115150452,
-0.6936741471290588,
0.1200581043958664,
-0.7540146112442017,
0.28286343812942505,
-1.2777987718582153,
0.35589340329170227,
-2.976522207260132,
0.7047614455223083,
-0.1378852277994156,
-0.1499156802892685,
-0.010443508625030518,
-1.3403735160827637,
1.170567274093628,
2.566466808319092,
-1.2106081247329712,
0.44923704862594604,
0.3122168779373169,
1.2486674785614014,
-1.6132960319519043,
0.2589974105358124,
-0.31254544854164124,
2.0450499057769775,
0.1681089997291565,
1.2766399383544922,
-0.5381685495376587,
-2.2178633213043213,
0.6551589965820312,
-1.2231076955795288,
-1.1262258291244507,
0.8017772436141968,
-0.8571048974990845,
-0.017213236540555954,
-1.460795283317566,
-0.19612270593643188,
-0.8838527798652649,
-1.2690067291259766,
0.8107901811599731,
0.20189453661441803,
0.5411035418510437,
-0.5676190853118896,
0.2784036695957184,
-2.124068021774292,
-1.4173215627670288,
-0.12370343506336212,
-0.9369354844093323,
0.5742022395133972,
-0.39882737398147583,
0.6678196787834167,
-0.19304531812667847,
0.15774187445640564,
0.336893230676651,
1.4052584171295166,
3.3937604427337646,
0.21794509887695312,
0.4415298402309418,
-0.1797311156988144,
-0.907204806804657,
1.417065978050232,
0.9532002806663513,
-0.13426554203033447,
-0.6535966992378235,
-0.9492814540863037,
1.3115226030349731,
1.9606746435165405,
1.0237057209014893,
0.13246245682239532,
-0.8816390037536621,
-0.7054437398910522,
-0.06768489629030228,
0.24545128643512726,
0.5030258893966675,
0.9728212356567383,
-0.01944315806031227,
0.06548269838094711,
1.40727698802948,
1.17826247215271,
-0.5513792037963867,
0.46999022364616394,
-0.9394070506095886,
-0.3481915593147278,
0.3953205943107605,
0.2934151589870453,
-0.024557434022426605,
0.41466203331947327,
-0.9498355984687805,
-0.30874890089035034,
-0.2828068733215332,
-0.9776943922042847,
-0.8087260127067566,
-0.5291988253593445,
-0.42306017875671387,
1.6842750310897827,
0.0701226219534874,
-0.35276585817337036,
-0.10390429198741913,
-0.7763786911964417,
-0.08259478956460953,
-1.080775499343872,
0.10729660093784332,
-0.14942346513271332,
-0.13820570707321167,
0.01219533197581768,
1.8333333730697632,
-0.9834131002426147,
-2.1347124576568604,
0.2571938931941986,
0.27254775166511536,
-0.34585654735565186,
0.13212867081165314,
1.6920469999313354,
0.4341179132461548,
1.417723536491394,
1.2757068872451782,
1.0460633039474487,
-0.6222659349441528,
-1.2746317386627197,
0.7253153920173645,
0.9207360744476318,
-1.3869394063949585,
0.8708658814430237,
-0.060634955763816833,
-0.4486490488052368,
0.7096627354621887,
1.338712215423584,
0.45787614583969116,
-2.0134575366973877,
0.8168947100639343,
-0.9245055913925171,
0.7609514594078064,
0.6841781735420227,
0.7601137161254883,
0.27303946018218994,
0.7877992987632751,
-1.2697949409484863,
-1.2353416681289673,
-0.8620449900627136,
-0.7096086144447327,
1.8713165521621704,
-0.15545277297496796,
0.42739227414131165,
-0.11943104863166809,
-1.2435334920883179,
-0.17106449604034424,
0.7599955201148987,
0.3122286796569824,
-0.31480178236961365,
0.7786856293678284,
-0.7628809809684753,
-1.0910314321517944,
-1.516043782234192,
-0.4297954738140106,
-0.9125347137451172,
-0.9163660407066345,
1.0332847833633423,
0.8108118772506714,
0.2457110434770584,
2.011591911315918,
0.5518407225608826,
0.24905480444431305,
-2.602900266647339,
0.8723839521408081,
0.3222205638885498,
-0.02373281493782997,
1.014141321182251,
0.2837676703929901,
1.1581554412841797,
0.008547963574528694,
0.44726836681365967,
-2.382683038711548,
2.2364306449890137,
-0.2401186227798462,
0.6822425723075867,
0.04236753284931183,
-0.15720832347869873,
1.178858757019043,
0.43544232845306396,
0.6275200843811035,
-1.2158076763153076,
0.7415332198143005,
-0.6343939900398254,
1.1809066534042358,
1.0114222764968872,
-0.8201233744621277,
0.14858479797840118,
1.345881700515747,
0.5241791605949402,
-0.4945968985557556,
-0.8422867655754089,
-0.9141073822975159,
0.7896825671195984,
1.7563949823379517,
-0.02162524126470089,
0.050067365169525146,
0.7076737880706787,
0.6523340940475464,
-1.3604021072387695,
0.08168217539787292,
-0.6961702704429626,
-0.8234395384788513,
1.6766319274902344,
2.029470682144165,
-0.1418398767709732,
-0.19915072619915009,
-0.8241851329803467,
-1.15576171875,
0.7704852223396301,
-0.018543291836977005,
0.1882474273443222,
0.5539862513542175,
-0.695380449295044,
1.2335904836654663,
0.8869755268096924,
0.913637101650238,
0.10386697202920914,
0.36082449555397034,
0.5274559259414673,
-0.19975274801254272,
-1.0085821151733398,
-0.35041067004203796,
-1.191541314125061,
-2.6602261066436768,
0.4751536548137665,
-0.37941277027130127,
-1.3759469985961914,
-0.00047123897820711136,
-1.0274003744125366,
0.8374157547950745,
-0.6106809377670288,
-1.0175325870513916,
-1.5356777906417847,
0.2513476014137268,
-0.2744213342666626,
0.7996101379394531,
-1.635923981666565,
-0.08114098757505417,
1.3208235502243042,
1.0273414850234985,
-0.6294838786125183,
1.0681949853897095,
0.23519307374954224,
0.9689867496490479,
0.8190872669219971,
-0.5127227306365967,
0.5218336582183838,
0.12383300065994263,
-1.3052862882614136,
0.4917635917663574,
1.256691813468933,
0.18992647528648376,
1.3779170513153076,
-0.49997708201408386,
0.028461376205086708,
0.45611637830734253,
-0.5248814821243286,
-0.5436625480651855,
-0.5563315749168396,
0.8180422186851501,
0.07372412830591202,
-0.9692569971084595,
0.14936573803424835,
-0.18289799988269806,
-0.2756456136703491,
0.21753011643886566,
-1.5650250911712646,
-0.3681999444961548,
-0.4018276035785675,
-0.4736423194408417,
-1.320460557937622,
0.031255774199962616,
1.333064079284668,
-0.7132894396781921,
-0.28494754433631897,
0.4667288661003113,
0.4844488799571991,
0.5265440940856934,
0.587011992931366,
-0.6773490309715271,
-0.3913607597351074,
-0.2572574019432068,
-0.335556298494339,
0.35720497369766235,
1.2830290794372559,
-0.1268918812274933,
-0.9680926203727722,
0.7155353426933289,
-0.38238874077796936,
0.04623685032129288,
1.9895930290222168,
0.042371198534965515,
-0.7504754662513733,
0.19197474420070648,
-0.6569075584411621,
1.9415581226348877,
1.6304566860198975,
1.2817580699920654,
-0.024124473333358765,
-0.8679664731025696,
0.6025246977806091,
-0.1271338164806366,
-0.27277523279190063,
0.9665111899375916,
0.46584030985832214,
-0.17821688950061798,
-1.4711650609970093,
0.47080016136169434,
1.2289798259735107,
-0.7988049387931824,
-0.7875791192054749,
-0.11327525973320007,
-0.8351364731788635,
1.1560990810394287,
0.6567345857620239,
0.36094579100608826,
0.2609991729259491,
1.6891682147979736,
0.654341995716095,
-0.5508959889411926,
0.44763681292533875,
0.39355915784835815,
-0.11013790220022202,
-2.1300814151763916,
-1.0635572671890259,
0.39579153060913086,
-0.3009997606277466,
-1.5442969799041748,
1.4223867654800415,
-1.081651210784912,
-0.8802973628044128,
0.5571396350860596,
0.11124639958143234,
1.399223804473877,
0.27340951561927795,
1.6439768075942993,
2.0534250736236572,
0.9447394013404846,
0.1840139478445053,
1.3281596899032593,
-0.21181036531925201,
-0.5033848881721497,
1.9056814908981323,
-0.4100598394870758,
0.421503484249115,
1.0066101551055908,
-0.3639242351055145,
-1.0517709255218506,
-0.7515392303466797,
-1.0563474893569946,
-0.626078188419342,
1.264933466911316,
0.175896555185318,
-1.1400989294052124,
0.22504158318042755,
1.5692116022109985,
0.1822338104248047,
-0.1782122105360031,
0.629298985004425,
0.5365799069404602,
-0.7299977540969849,
-0.00826654490083456,
-0.9279298186302185,
0.5437126159667969,
-0.1588732898235321,
-0.30711159110069275,
0.3791186809539795,
0.4664040505886078,
1.2054651975631714,
-0.07941964268684387,
0.06646155565977097,
1.242138385772705,
-1.457862138748169,
1.5017942190170288,
-0.55694580078125,
0.2356274276971817,
-2.3810536861419678,
1.4365628957748413,
-0.8509846925735474,
1.9423820972442627,
-2.5241966247558594,
0.30874496698379517,
-0.6201900839805603,
-0.422759473323822,
0.4035552442073822,
-0.45765233039855957,
0.25117138028144836,
-0.21984677016735077,
-0.9808208346366882,
-0.07944736629724503,
-0.771117091178894,
0.5392991900444031,
1.1832882165908813,
1.2664495706558228,
-1.0471999645233154,
-0.22623048722743988,
-1.7168514728546143,
-0.16078254580497742,
-0.6090760231018066,
0.2487349659204483,
-2.0314958095550537,
-0.23991909623146057,
-2.0557096004486084,
-2.1940765380859375,
-1.4158833026885986,
-0.7597141265869141,
1.0004109144210815,
0.18271704018115997,
-0.8816280961036682,
1.0238878726959229,
-0.3980977535247803,
-1.8027029037475586,
1.0448906421661377,
-2.113985300064087
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | > Can you check that adding more GPU does divide the memory used per GPU
The memory used per GPU is unchanged while adding more GPU. Is this unexpected?
I used to think that every GPU loads all the source vectors and the data parallelism is at the query level. 😆 | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 51 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
> Can you check that adding more GPU does divide the memory used per GPU
The memory used per GPU is unchanged while adding more GPU. Is this unexpected?
I used to think that every GPU loads all the source vectors and the data parallelism is at the query level. 😆 | [
-1.3000835180282593,
-0.9016852974891663,
-0.9517722725868225,
1.481885313987732,
-0.09283357113599777,
-1.2990962266921997,
0.11117000132799149,
-1.1043144464492798,
1.6711645126342773,
-0.9257606267929077,
0.2750285267829895,
-1.5738519430160522,
0.016081325709819794,
-0.48499444127082825,
-0.738982617855072,
-0.9440003037452698,
-0.28492027521133423,
-0.8992676138877869,
0.9201120734214783,
2.4954886436462402,
1.1826410293579102,
-1.2038401365280151,
2.792538642883301,
0.7187224626541138,
-0.45432642102241516,
-1.0575733184814453,
0.5812336206436157,
0.0797530859708786,
-1.1823384761810303,
-0.5880603790283203,
-0.9067550897598267,
0.06063632294535637,
-0.6354675889015198,
-0.4585059881210327,
0.07453795522451401,
0.36285656690597534,
-0.3333795368671417,
-0.28443342447280884,
-0.44724977016448975,
-0.758568525314331,
0.5393456220626831,
-0.44244351983070374,
0.8441066741943359,
-0.3851565420627594,
1.721207618713379,
-0.5507439374923706,
0.26912355422973633,
0.7243001461029053,
1.4147287607192993,
0.1897965520620346,
-0.06486937403678894,
0.16281774640083313,
0.3247498869895935,
-0.06821253895759583,
0.39442867040634155,
1.2366836071014404,
0.4610447287559509,
0.5506083369255066,
0.5669616460800171,
-2.226311445236206,
1.3864179849624634,
-0.929059624671936,
0.16000312566757202,
1.3501282930374146,
-0.9664875268936157,
0.4427749812602997,
-1.802128553390503,
-0.1727333515882492,
0.3976140320301056,
-2.4133541584014893,
0.1356622874736786,
-1.2841764688491821,
-0.5497962832450867,
0.9524819254875183,
0.3097248077392578,
-1.3897145986557007,
0.16484849154949188,
-0.4699510335922241,
1.0210055112838745,
0.4375416040420532,
1.16620671749115,
-1.6614364385604858,
-0.08357860147953033,
-0.2798991799354553,
0.04818456247448921,
-1.3452123403549194,
-1.5701582431793213,
0.5704357624053955,
0.5280352234840393,
0.6389734745025635,
-0.0876835286617279,
1.027166485786438,
-0.9856382012367249,
0.8363311886787415,
-0.76119464635849,
-1.5457477569580078,
-1.2616682052612305,
-2.277343988418579,
-2.1950595378875732,
0.8762362003326416,
-0.5772707462310791,
-0.5549147129058838,
1.989665150642395,
-1.2035552263259888,
-1.8869551420211792,
1.1340911388397217,
0.20304915308952332,
0.06280916929244995,
2.2793407440185547,
0.37625208497047424,
-0.6775948405265808,
0.41010406613349915,
-0.6305274963378906,
0.8915517330169678,
-0.45557352900505066,
1.387787938117981,
0.6440416574478149,
-1.0092015266418457,
1.5820446014404297,
-0.388385534286499,
0.5201544165611267,
-0.6385706663131714,
-0.5281381011009216,
-0.9069437980651855,
0.32490453124046326,
1.864797592163086,
-0.41957998275756836,
1.6667591333389282,
-0.32797685265541077,
-1.527867317199707,
-1.5950136184692383,
0.9603149890899658,
0.5580072402954102,
-0.7383285164833069,
0.2289748340845108,
-0.306289404630661,
0.0724908709526062,
0.06079552695155144,
1.0956026315689087,
1.2574474811553955,
0.7147628664970398,
-0.3401424288749695,
-0.8031814694404602,
0.3036869168281555,
0.04965437203645706,
-0.6074846386909485,
-1.9577078819274902,
-0.2885447144508362,
0.16740991175174713,
0.7297332882881165,
-1.2623493671417236,
1.6283924579620361,
0.9883823394775391,
2.028287410736084,
1.036651611328125,
-0.34222957491874695,
1.57266104221344,
-0.1847386509180069,
1.7704095840454102,
-0.4362044930458069,
0.760120153427124,
-0.28988221287727356,
-1.0643633604049683,
0.8802308440208435,
-0.3810897171497345,
-1.9500203132629395,
-0.8765330910682678,
-0.9302626848220825,
-0.20020262897014618,
-0.7945506572723389,
0.9384129047393799,
-0.3657827377319336,
-1.422008752822876,
0.14586792886257172,
-0.6818816065788269,
0.07930576056241989,
-1.19810152053833,
0.28478798270225525,
0.6956759691238403,
-0.5150991082191467,
-0.027016106992959976,
-0.20508567988872528,
-1.2111549377441406,
-0.4499834179878235,
0.1589335948228836,
1.9720287322998047,
-0.7432601451873779,
1.0759074687957764,
1.0304876565933228,
-0.8156905770301819,
0.013090514577925205,
0.32975125312805176,
-0.3722016513347626,
0.816832959651947,
-1.0934962034225464,
-0.37639424204826355,
1.1265497207641602,
-0.02943047508597374,
-0.6710747480392456,
1.412629246711731,
0.8774949908256531,
-0.9824262857437134,
-0.14616011083126068,
-0.16383863985538483,
-0.7825377583503723,
0.03093777596950531,
-1.5446816682815552,
-0.24694789946079254,
0.17908762395381927,
-1.3937243223190308,
-0.38686755299568176,
-0.21321704983711243,
1.3661552667617798,
-0.19746887683868408,
1.3347421884536743,
-0.30498114228248596,
-0.18494954705238342,
-0.30967551469802856,
-0.5163521766662598,
0.21300065517425537,
-0.18458108603954315,
-0.63553786277771,
0.33428502082824707,
-0.7898322939872742,
0.22331602871418,
1.4193494319915771,
0.4446927309036255,
0.07688792794942856,
0.5684759616851807,
1.1173310279846191,
0.4278654158115387,
-0.0754655972123146,
-0.9797114133834839,
-1.5493054389953613,
2.008190631866455,
-1.481263279914856,
1.9543931484222412,
0.8587606549263,
-0.10341306030750275,
-1.7722439765930176,
-1.8583779335021973,
1.2762997150421143,
1.2396332025527954,
2.365830183029175,
0.6456374526023865,
0.3376694321632385,
-0.663580596446991,
-0.785797655582428,
0.41232356429100037,
-1.204926609992981,
-0.7023766040802002,
0.012238551862537861,
2.2846105098724365,
1.799062967300415,
-0.49065694212913513,
-0.2564213275909424,
-0.9131128191947937,
1.1407216787338257,
-0.1316831409931183,
0.17458496987819672,
2.035407066345215,
-0.28902310132980347,
-1.1237120628356934,
1.2508797645568848,
-2.227363109588623,
0.07465223222970963,
2.0209622383117676,
0.4173952341079712,
-0.08202285319566727,
-1.4888883829116821,
-0.7726817727088928,
-0.20811620354652405,
-0.44108954071998596,
-1.2614223957061768,
0.6283660531044006,
-0.4257507622241974,
-0.8085890412330627,
-1.4876185655593872,
0.1115245595574379,
-1.2161540985107422,
-1.7376163005828857,
0.4435482323169708,
1.8843449354171753,
2.132741928100586,
-0.7322221398353577,
1.421748399734497,
-0.2823418974876404,
0.012283573858439922,
1.1982910633087158,
1.2081886529922485,
3.0990803241729736,
1.734039545059204,
-1.2599766254425049,
0.6759185194969177,
-0.12785781919956207,
-0.5406855344772339,
1.150954246520996,
-0.9632755517959595,
1.2014784812927246,
-0.25865232944488525,
-1.1437760591506958,
-1.1861424446105957,
0.9580787420272827,
0.4249270260334015,
0.0185171440243721,
-0.40580448508262634,
1.3179959058761597,
0.05248920992016792,
1.350226879119873,
0.5138599872589111,
-0.3030075430870056,
0.5997254252433777,
-0.39122194051742554,
-0.49249565601348877,
1.568090558052063,
0.23202461004257202,
-1.3859105110168457,
-2.377448797225952,
-0.17258699238300323,
-0.7093050479888916,
-0.050650645047426224,
-0.6072078347206116,
-1.069273591041565,
1.5676395893096924,
0.48714742064476013,
-1.2201579809188843,
-0.37545374035835266,
-0.4028942286968231,
-0.6866822242736816,
2.5482118129730225,
-1.4324676990509033,
-0.11589546501636505,
-0.9721469283103943,
-0.5362635850906372,
1.6557470560073853,
-1.1985069513320923,
-0.12855425477027893,
-0.8947919011116028,
-0.5710434913635254,
-1.447035789489746,
-0.5598947405815125,
0.01330105122178793,
-0.9458454251289368,
0.7051110863685608,
0.23090344667434692,
-1.035630702972412,
-0.24716541171073914,
-0.7565792202949524,
0.7829970717430115,
-0.13923661410808563,
0.38091352581977844,
1.8459089994430542,
0.4817870259284973,
-0.4045211374759674,
0.7988572120666504,
1.1670585870742798,
0.5862909555435181,
-0.7045660614967346,
0.15930889546871185,
-0.7760725617408752,
0.25875580310821533,
-1.2812310457229614,
0.32540321350097656,
-3.0488715171813965,
0.7703293561935425,
-0.08002292364835739,
-0.09441208094358444,
0.0014980649575591087,
-1.3461281061172485,
1.1282455921173096,
2.5564754009246826,
-1.1742416620254517,
0.36713773012161255,
0.3127002716064453,
1.2319746017456055,
-1.5471680164337158,
0.2761968970298767,
-0.35452157258987427,
2.0522804260253906,
0.1581123024225235,
1.3478398323059082,
-0.48159632086753845,
-2.2182655334472656,
0.6987119913101196,
-1.208367943763733,
-1.198645830154419,
0.8323248028755188,
-0.8293620347976685,
0.01456014160066843,
-1.4957215785980225,
-0.21451613306999207,
-0.8706985712051392,
-1.1848013401031494,
0.8751873970031738,
0.20971226692199707,
0.5030620694160461,
-0.5914002060890198,
0.31915420293807983,
-2.108724594116211,
-1.4157429933547974,
-0.10121309012174606,
-0.9031655788421631,
0.5777694582939148,
-0.35380953550338745,
0.6810123920440674,
-0.16871221363544464,
0.17959995567798615,
0.368344247341156,
1.3772286176681519,
3.346472978591919,
0.22143089771270752,
0.3755558729171753,
-0.15772812068462372,
-0.9729161858558655,
1.431470274925232,
0.9497258067131042,
-0.12361927330493927,
-0.6675989031791687,
-0.965106189250946,
1.2982114553451538,
1.9434701204299927,
1.0125417709350586,
0.12694689631462097,
-0.9130831360816956,
-0.6720103621482849,
-0.05181010812520981,
0.28937283158302307,
0.4786854684352875,
0.9877583384513855,
-0.007014336064457893,
0.09554766863584518,
1.477366328239441,
1.1988965272903442,
-0.5788562893867493,
0.4629569351673126,
-0.9320391416549683,
-0.3617015779018402,
0.39560410380363464,
0.32595574855804443,
-0.013490095734596252,
0.4298974275588989,
-0.9205782413482666,
-0.3125995397567749,
-0.2761498987674713,
-0.9898604154586792,
-0.8104513883590698,
-0.48115721344947815,
-0.4439782202243805,
1.680436134338379,
0.03791976720094681,
-0.3568769097328186,
-0.12439072877168655,
-0.791839063167572,
-0.08868556469678879,
-1.09130859375,
0.11944517493247986,
-0.16195492446422577,
-0.13564281165599823,
-0.02057763561606407,
1.7806003093719482,
-0.9893602132797241,
-2.106253147125244,
0.31771257519721985,
0.27848151326179504,
-0.3411141037940979,
0.115541972219944,
1.7060097455978394,
0.45548000931739807,
1.4358046054840088,
1.2494983673095703,
1.036895751953125,
-0.6003317832946777,
-1.2601089477539062,
0.6757934093475342,
0.9357669949531555,
-1.3492448329925537,
0.8778361678123474,
-0.06834515929222107,
-0.47748011350631714,
0.6631572246551514,
1.363418698310852,
0.4992111325263977,
-1.9991220235824585,
0.845308244228363,
-0.8336891531944275,
0.7627353072166443,
0.6388208270072937,
0.8190366625785828,
0.24789191782474518,
0.7912001013755798,
-1.2513461112976074,
-1.2436922788619995,
-0.8329154849052429,
-0.7097448706626892,
1.9212441444396973,
-0.17384874820709229,
0.47773754596710205,
-0.14584384858608246,
-1.1957470178604126,
-0.22232559323310852,
0.6839578151702881,
0.2560708224773407,
-0.33058422803878784,
0.7764057517051697,
-0.7396270632743835,
-1.098451018333435,
-1.5696260929107666,
-0.41788312792778015,
-0.9078629612922668,
-0.8634056448936462,
1.087170958518982,
0.8267143964767456,
0.2578720152378082,
2.016075611114502,
0.48251599073410034,
0.25636202096939087,
-2.6884515285491943,
0.872417151927948,
0.32087451219558716,
0.02580011636018753,
0.9851695895195007,
0.3078404664993286,
1.127951979637146,
-0.03047541156411171,
0.42814087867736816,
-2.3738534450531006,
2.215108871459961,
-0.178180992603302,
0.6655448079109192,
0.0002602972090244293,
-0.1600363403558731,
1.2091152667999268,
0.4329298138618469,
0.7048735618591309,
-1.2235361337661743,
0.7267842292785645,
-0.6087967157363892,
1.2068367004394531,
1.056320309638977,
-0.809913158416748,
0.11906430125236511,
1.3961372375488281,
0.5631861090660095,
-0.48072800040245056,
-0.8210177421569824,
-0.9021229147911072,
0.7797945737838745,
1.8089193105697632,
-0.02292066439986229,
0.05597415193915367,
0.6629337072372437,
0.6568198204040527,
-1.3314905166625977,
0.10124842822551727,
-0.7049002647399902,
-0.8913255333900452,
1.6202863454818726,
2.030998468399048,
-0.16066329181194305,
-0.21435672044754028,
-0.7978609204292297,
-1.130422592163086,
0.8253827095031738,
-0.011126469820737839,
0.24206219613552094,
0.6217572093009949,
-0.7024988532066345,
1.2725942134857178,
0.8519651293754578,
0.9233472943305969,
0.0657791718840599,
0.40878230333328247,
0.5172938704490662,
-0.17491969466209412,
-1.0227336883544922,
-0.28560584783554077,
-1.158635139465332,
-2.6927907466888428,
0.47657302021980286,
-0.41156700253486633,
-1.331529140472412,
-0.016618594527244568,
-1.012321949005127,
0.8303583860397339,
-0.6402233242988586,
-0.9982461333274841,
-1.5065102577209473,
0.27360865473747253,
-0.26187652349472046,
0.7784608602523804,
-1.6166421175003052,
-0.05876707285642624,
1.2994742393493652,
1.0401490926742554,
-0.64522784948349,
1.0370649099349976,
0.26694774627685547,
0.8940910696983337,
0.816099226474762,
-0.5344995856285095,
0.5100988745689392,
0.13605280220508575,
-1.3317348957061768,
0.5041637420654297,
1.222465991973877,
0.16881941258907318,
1.435683012008667,
-0.46740132570266724,
0.042884711176157,
0.5029325485229492,
-0.5055221319198608,
-0.5282719731330872,
-0.5703531503677368,
0.8114660382270813,
0.04397442191839218,
-0.9831390976905823,
0.13921283185482025,
-0.19260498881340027,
-0.27035847306251526,
0.20767390727996826,
-1.5358145236968994,
-0.3872697949409485,
-0.4338398277759552,
-0.5126104950904846,
-1.300553321838379,
-0.06136547774076462,
1.34872305393219,
-0.7252981066703796,
-0.2952345311641693,
0.43160223960876465,
0.42536449432373047,
0.5182291865348816,
0.5764692425727844,
-0.6374834179878235,
-0.440961629152298,
-0.2838190495967865,
-0.33835428953170776,
0.3881385922431946,
1.2780065536499023,
-0.19154517352581024,
-1.0160020589828491,
0.708408534526825,
-0.3999871611595154,
0.049162257462739944,
2.0004348754882812,
0.055078256875276566,
-0.7319471836090088,
0.20148107409477234,
-0.6310234069824219,
1.8821824789047241,
1.6125706434249878,
1.2616312503814697,
0.0027167117223143578,
-0.7944197058677673,
0.5887433290481567,
-0.12447524070739746,
-0.30629077553749084,
0.9974020719528198,
0.45951661467552185,
-0.17741023004055023,
-1.4400970935821533,
0.4784320294857025,
1.252199649810791,
-0.874573290348053,
-0.7720233798027039,
-0.1855289787054062,
-0.8305049538612366,
1.1515936851501465,
0.6196053624153137,
0.3401852548122406,
0.2747541666030884,
1.6721206903457642,
0.6686652898788452,
-0.5221397280693054,
0.4317066967487335,
0.33130529522895813,
-0.07575441896915436,
-2.178755283355713,
-1.0360116958618164,
0.3608826696872711,
-0.2989148497581482,
-1.5534493923187256,
1.3875627517700195,
-1.0757564306259155,
-0.8519947528839111,
0.550898015499115,
0.08349288254976273,
1.40221107006073,
0.2639639973640442,
1.6287416219711304,
2.1294963359832764,
0.970282793045044,
0.11349678784608841,
1.3681389093399048,
-0.2086598128080368,
-0.42001187801361084,
1.886733055114746,
-0.43527209758758545,
0.3756924271583557,
0.9924095869064331,
-0.35353007912635803,
-1.0024420022964478,
-0.7850630879402161,
-1.1103764772415161,
-0.6882148385047913,
1.2710627317428589,
0.19365867972373962,
-1.1110777854919434,
0.21304713189601898,
1.5350444316864014,
0.20796851813793182,
-0.13768668472766876,
0.6227124929428101,
0.6071452498435974,
-0.6997599005699158,
-0.037331126630306244,
-0.9074788093566895,
0.5591051578521729,
-0.13524669408798218,
-0.31018969416618347,
0.3551458418369293,
0.46985575556755066,
1.15922212600708,
-0.12122140824794769,
-0.00153811601921916,
1.2600115537643433,
-1.4447630643844604,
1.5761467218399048,
-0.500153660774231,
0.22811514139175415,
-2.44795560836792,
1.4360958337783813,
-0.8828418850898743,
1.9081542491912842,
-2.517239570617676,
0.32158955931663513,
-0.5821682810783386,
-0.3675040900707245,
0.3662182688713074,
-0.4661475718021393,
0.25286680459976196,
-0.29185929894447327,
-0.9711984395980835,
-0.06815440952777863,
-0.778641402721405,
0.5175182819366455,
1.1934521198272705,
1.300658106803894,
-1.1048197746276855,
-0.20631718635559082,
-1.7086777687072754,
-0.1651139259338379,
-0.5932043790817261,
0.27150216698646545,
-2.04809308052063,
-0.228951096534729,
-2.050316333770752,
-2.261579751968384,
-1.3008270263671875,
-0.7238547801971436,
1.0096790790557861,
0.18057790398597717,
-0.88229900598526,
0.9840980172157288,
-0.38628655672073364,
-1.852776050567627,
1.0614196062088013,
-2.1280927658081055
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | > I used to think that every GPU loads all the source vectors and the data parallelism is at the query level. 😆
Oh indeed that's possible, I wasn't sure. Anyway you can check that calling get_nearest_examples_batch simply calls search under the hood:
https://github.com/huggingface/datasets/blob/f90f71fbbb33889fe75a3ffc101cdf16a88a3453/src/datasets/search.py#L375 | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 44 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
> I used to think that every GPU loads all the source vectors and the data parallelism is at the query level. 😆
Oh indeed that's possible, I wasn't sure. Anyway you can check that calling get_nearest_examples_batch simply calls search under the hood:
https://github.com/huggingface/datasets/blob/f90f71fbbb33889fe75a3ffc101cdf16a88a3453/src/datasets/search.py#L375 | [
-1.265091061592102,
-0.8812392354011536,
-0.9142833352088928,
1.379093050956726,
-0.032969482243061066,
-1.2764796018600464,
0.07048683613538742,
-1.088830828666687,
1.667892575263977,
-0.745108425617218,
0.2546960711479187,
-1.5489846467971802,
-0.025446945801377296,
-0.5303129553794861,
-0.7242833375930786,
-0.9042894840240479,
-0.2687831521034241,
-0.868815541267395,
0.9714213609695435,
2.574145555496216,
1.185054063796997,
-1.2533332109451294,
2.7642483711242676,
0.6899190545082092,
-0.3607429265975952,
-0.9911640286445618,
0.5927854776382446,
0.059076063334941864,
-1.1073335409164429,
-0.549457848072052,
-0.8716574311256409,
0.03334005922079086,
-0.5832064151763916,
-0.5227649211883545,
0.04309212043881416,
0.4009724259376526,
-0.31818604469299316,
-0.22239401936531067,
-0.493289053440094,
-0.7916192412376404,
0.5045921206474304,
-0.38216060400009155,
0.8843385577201843,
-0.3256604075431824,
1.7622979879379272,
-0.48285871744155884,
0.3255156874656677,
0.7065645456314087,
1.4347172975540161,
0.1485363394021988,
-0.05135413631796837,
0.1696603149175644,
0.2867696285247803,
-0.017104633152484894,
0.36478614807128906,
1.1979584693908691,
0.5146358609199524,
0.4426491856575012,
0.6372690796852112,
-2.2346432209014893,
1.2996760606765747,
-0.9019563794136047,
0.1484079211950302,
1.3635920286178589,
-0.9351439476013184,
0.3822956085205078,
-1.797262191772461,
-0.1276818960905075,
0.47235041856765747,
-2.3699331283569336,
0.17373669147491455,
-1.2859371900558472,
-0.5616757869720459,
0.902810275554657,
0.24073582887649536,
-1.31695556640625,
0.19509516656398773,
-0.48287999629974365,
1.135324239730835,
0.5693755745887756,
1.212203025817871,
-1.7283152341842651,
-0.05409945175051689,
-0.2045648843050003,
0.1069251298904419,
-1.3912485837936401,
-1.5943214893341064,
0.5213039517402649,
0.5691230893135071,
0.6442274451255798,
-0.04066526144742966,
0.9743692278862,
-0.9885097742080688,
0.8131461143493652,
-0.8954172730445862,
-1.5591267347335815,
-1.3038736581802368,
-2.3186862468719482,
-2.2676632404327393,
0.7559536695480347,
-0.49706214666366577,
-0.48161518573760986,
1.9496525526046753,
-1.1164051294326782,
-1.8405108451843262,
1.101139783859253,
0.3185765743255615,
0.04767630621790886,
2.3141531944274902,
0.3607161045074463,
-0.7087145447731018,
0.39810293912887573,
-0.6738318800926208,
0.844448983669281,
-0.4111400246620178,
1.4302167892456055,
0.6938371062278748,
-0.9675420522689819,
1.5857245922088623,
-0.49959105253219604,
0.5291074514389038,
-0.6740837693214417,
-0.43720144033432007,
-0.9337836503982544,
0.37419694662094116,
1.8500491380691528,
-0.41916584968566895,
1.6795097589492798,
-0.32940948009490967,
-1.5660185813903809,
-1.546459436416626,
0.9248160719871521,
0.48163676261901855,
-0.8253573775291443,
0.18724800646305084,
-0.4052526354789734,
0.07477293908596039,
-0.04995904117822647,
1.0499128103256226,
1.2188310623168945,
0.6642003655433655,
-0.29156213998794556,
-0.8494179248809814,
0.28477203845977783,
-0.05038708075881004,
-0.5993468165397644,
-1.9309931993484497,
-0.2999178171157837,
0.20892566442489624,
0.7556642293930054,
-1.2857416868209839,
1.6543247699737549,
0.8643767833709717,
2.0113067626953125,
0.9940706491470337,
-0.3737163543701172,
1.54985511302948,
-0.08110815286636353,
1.8810412883758545,
-0.4847484827041626,
0.7440910935401917,
-0.27302128076553345,
-1.089470624923706,
0.9090836048126221,
-0.3861454725265503,
-2.007983922958374,
-0.815536618232727,
-0.9180969595909119,
-0.2233830839395523,
-0.8025424480438232,
0.8763320446014404,
-0.32572245597839355,
-1.3963600397109985,
0.2357775866985321,
-0.6449659466743469,
0.12494823336601257,
-1.2085189819335938,
0.2824510931968689,
0.7272999286651611,
-0.492245078086853,
-0.07374992221593857,
-0.20136216282844543,
-1.2626348733901978,
-0.4749823808670044,
0.30563884973526,
2.016371250152588,
-0.6283020973205566,
1.009999394416809,
1.054606556892395,
-0.740462064743042,
0.09900174289941788,
0.3288623094558716,
-0.358883798122406,
0.769089937210083,
-1.1313118934631348,
-0.34593600034713745,
1.1463098526000977,
-0.16213026642799377,
-0.6602423191070557,
1.415242314338684,
0.9550645351409912,
-1.0553234815597534,
-0.10902004688978195,
-0.21588823199272156,
-0.761792778968811,
0.011757967993617058,
-1.5546386241912842,
-0.24910832941532135,
0.2308461219072342,
-1.3555290699005127,
-0.44349968433380127,
-0.20828431844711304,
1.3681294918060303,
-0.16575480997562408,
1.385067105293274,
-0.3220853805541992,
-0.21039576828479767,
-0.3528381586074829,
-0.5268867015838623,
0.21870535612106323,
-0.1827760934829712,
-0.6355733275413513,
0.23910902440547943,
-0.8020184636116028,
0.27405208349227905,
1.363209843635559,
0.4655141234397888,
0.05966483801603317,
0.5388167500495911,
1.1259360313415527,
0.32915395498275757,
-0.05287224426865578,
-0.8958679437637329,
-1.5955004692077637,
2.0749239921569824,
-1.417526125907898,
1.9359644651412964,
0.7967511415481567,
-0.0682150349020958,
-1.793135643005371,
-1.8249601125717163,
1.3378164768218994,
1.1634036302566528,
2.328727960586548,
0.6258531212806702,
0.3577943444252014,
-0.6807782649993896,
-0.7540264129638672,
0.32045412063598633,
-1.1185824871063232,
-0.6307746767997742,
0.03218108415603638,
2.3924145698547363,
1.7663440704345703,
-0.568565845489502,
-0.24810433387756348,
-0.9335852861404419,
1.1687744855880737,
-0.1683272421360016,
0.21098268032073975,
2.031585216522217,
-0.27511167526245117,
-1.056832194328308,
1.252457618713379,
-2.2927374839782715,
0.18223631381988525,
2.0587007999420166,
0.3582351803779602,
0.0204415675252676,
-1.4358866214752197,
-0.757560133934021,
-0.27957284450531006,
-0.4736034870147705,
-1.2303341627120972,
0.5628532767295837,
-0.3622922897338867,
-0.9051529169082642,
-1.4780526161193848,
0.1428678333759308,
-1.1984598636627197,
-1.7816165685653687,
0.40794581174850464,
1.8656858205795288,
2.0577287673950195,
-0.7425064444541931,
1.4462525844573975,
-0.2454904168844223,
0.07130111753940582,
1.2682826519012451,
1.2678942680358887,
3.1344964504241943,
1.720139503479004,
-1.2752894163131714,
0.7410190105438232,
-0.1424524188041687,
-0.5460678339004517,
1.2041583061218262,
-0.9890353083610535,
1.2055832147598267,
-0.2778615355491638,
-1.1846345663070679,
-1.2265419960021973,
0.9962571859359741,
0.5233485698699951,
0.06715522706508636,
-0.49356091022491455,
1.2923991680145264,
0.04825817793607712,
1.3381401300430298,
0.5257259607315063,
-0.3453224301338196,
0.5501403212547302,
-0.38734132051467896,
-0.5543152689933777,
1.5440062284469604,
0.20717161893844604,
-1.4918791055679321,
-2.45035982131958,
-0.25185656547546387,
-0.7044717073440552,
-0.11005248129367828,
-0.6284746527671814,
-1.117795705795288,
1.5205903053283691,
0.47149813175201416,
-1.167594075202942,
-0.3593941330909729,
-0.40951859951019287,
-0.6150033473968506,
2.5489840507507324,
-1.4109193086624146,
-0.1504916548728943,
-0.9614652991294861,
-0.5243268013000488,
1.5674362182617188,
-1.2095662355422974,
-0.18451309204101562,
-0.9731797575950623,
-0.6448220610618591,
-1.4261548519134521,
-0.5674031972885132,
-0.023406069725751877,
-0.8931020498275757,
0.6686547994613647,
0.20304134488105774,
-1.0188807249069214,
-0.1654340922832489,
-0.8742930293083191,
0.8816259503364563,
-0.13493600487709045,
0.32610952854156494,
1.8136065006256104,
0.4670529365539551,
-0.45202016830444336,
0.7488864660263062,
1.1821632385253906,
0.5704348087310791,
-0.7239229083061218,
0.09021453559398651,
-0.7673795819282532,
0.22458045184612274,
-1.2994109392166138,
0.2848883271217346,
-2.940391778945923,
0.757588267326355,
-0.09422169625759125,
-0.10443171113729477,
0.014900309965014458,
-1.3468252420425415,
1.1729532480239868,
2.652829885482788,
-1.2291702032089233,
0.4505593180656433,
0.33283084630966187,
1.2098726034164429,
-1.5981162786483765,
0.2645212411880493,
-0.36948108673095703,
2.050696611404419,
0.22503715753555298,
1.3399722576141357,
-0.5134022235870361,
-2.197049856185913,
0.6318039894104004,
-1.2040776014328003,
-1.1719404458999634,
0.8245923519134521,
-0.8874441981315613,
0.1547832489013672,
-1.5144286155700684,
-0.1778489649295807,
-0.9266388416290283,
-1.2646247148513794,
0.8419256210327148,
0.14213259518146515,
0.5153290033340454,
-0.5807713866233826,
0.3325309753417969,
-2.1332449913024902,
-1.3924633264541626,
-0.05819091573357582,
-0.9636095762252808,
0.5174306631088257,
-0.34250253438949585,
0.6351885795593262,
-0.09451999515295029,
0.1284363716840744,
0.34210050106048584,
1.4403249025344849,
3.4061596393585205,
0.2142859250307083,
0.37505531311035156,
-0.12161538749933243,
-0.9761471152305603,
1.4197204113006592,
0.9304816126823425,
-0.10770981013774872,
-0.5690359473228455,
-0.9106428623199463,
1.2217543125152588,
1.9880338907241821,
1.1108685731887817,
0.09615689516067505,
-0.9164647459983826,
-0.7316698431968689,
0.06819754838943481,
0.2114056497812271,
0.5074504613876343,
0.9487640261650085,
-0.06390723586082458,
0.03990531340241432,
1.429709792137146,
1.2028199434280396,
-0.49776703119277954,
0.4495636224746704,
-0.9029265642166138,
-0.3486182689666748,
0.42512720823287964,
0.2474837750196457,
0.07716376334428787,
0.5253640413284302,
-0.9640622138977051,
-0.25089019536972046,
-0.3152863383293152,
-0.9733494520187378,
-0.7843136787414551,
-0.4757530689239502,
-0.393163800239563,
1.6496995687484741,
0.054948367178440094,
-0.3556947112083435,
-0.03985597938299179,
-0.769597589969635,
-0.08778056502342224,
-1.0433205366134644,
0.1120995357632637,
-0.1547900289297104,
-0.121334008872509,
-0.048328690230846405,
1.6678175926208496,
-1.019545316696167,
-2.1326711177825928,
0.2764199376106262,
0.2991222143173218,
-0.4293869137763977,
0.17103660106658936,
1.6990457773208618,
0.4293450117111206,
1.3925292491912842,
1.2718183994293213,
1.0719584226608276,
-0.6760429739952087,
-1.217189073562622,
0.7285730242729187,
0.8721995949745178,
-1.3548040390014648,
0.8984338045120239,
-0.10385279357433319,
-0.5257721543312073,
0.7275082468986511,
1.3699902296066284,
0.4517420530319214,
-1.9504644870758057,
0.805017352104187,
-0.7845906615257263,
0.8075980544090271,
0.5233964323997498,
0.7860308289527893,
0.29825359582901,
0.8352379202842712,
-1.3074023723602295,
-1.1615992784500122,
-0.8296706080436707,
-0.6474103927612305,
1.9046660661697388,
-0.15656602382659912,
0.47826266288757324,
-0.18582004308700562,
-1.218186378479004,
-0.16605287790298462,
0.708139181137085,
0.316520094871521,
-0.32092297077178955,
0.7845789790153503,
-0.6988325119018555,
-1.038237452507019,
-1.4366075992584229,
-0.4753914475440979,
-0.8716681599617004,
-0.8872974514961243,
1.022862434387207,
0.7413533329963684,
0.3254982829093933,
1.9638442993164062,
0.5108646750450134,
0.25174427032470703,
-2.6079580783843994,
0.8917790651321411,
0.3119061589241028,
0.03928952291607857,
1.0162184238433838,
0.2424275428056717,
1.2091068029403687,
-0.04212115705013275,
0.4507032632827759,
-2.3007304668426514,
2.1379551887512207,
-0.22542287409305573,
0.6415323615074158,
0.00038461480289697647,
-0.1998407244682312,
1.1328496932983398,
0.5141716003417969,
0.5860575437545776,
-1.287095069885254,
0.7507364749908447,
-0.6464115977287292,
1.1037617921829224,
1.069413661956787,
-0.8903767466545105,
0.11977650225162506,
1.420833945274353,
0.48109233379364014,
-0.44957149028778076,
-0.8858574628829956,
-0.812078058719635,
0.8736758232116699,
1.7264630794525146,
-0.06834305822849274,
0.05561402440071106,
0.7685205936431885,
0.6597923636436462,
-1.3597018718719482,
0.1382167637348175,
-0.7486554384231567,
-0.7635577321052551,
1.729439616203308,
1.9833511114120483,
-0.08485261350870132,
-0.22173263132572174,
-0.7872821092605591,
-1.176058053970337,
0.7824336290359497,
-0.008962303400039673,
0.1903245598077774,
0.5608711242675781,
-0.6995611786842346,
1.2589523792266846,
0.7972008585929871,
0.9396107792854309,
-0.011776973493397236,
0.3736880421638489,
0.456856906414032,
-0.2690129280090332,
-1.0538362264633179,
-0.42007923126220703,
-1.1886054277420044,
-2.6505157947540283,
0.49746477603912354,
-0.3834613561630249,
-1.4192830324172974,
-0.011659055948257446,
-1.0158066749572754,
0.909003734588623,
-0.597119927406311,
-0.9651252627372742,
-1.535131812095642,
0.3262280821800232,
-0.22614413499832153,
0.8282703757286072,
-1.637093424797058,
-0.09439907222986221,
1.383242130279541,
0.947895884513855,
-0.5968441367149353,
1.0599404573440552,
0.28270989656448364,
0.9740555882453918,
0.7506083846092224,
-0.5476067066192627,
0.5374141931533813,
0.15971103310585022,
-1.3176079988479614,
0.5023338794708252,
1.2117620706558228,
0.20783576369285583,
1.462327003479004,
-0.4672730565071106,
0.08055593818426132,
0.46461552381515503,
-0.5590918064117432,
-0.6073314547538757,
-0.5426744818687439,
0.816280722618103,
0.08340122550725937,
-0.9871742725372314,
0.11129800975322723,
-0.20940570533275604,
-0.31489765644073486,
0.27549535036087036,
-1.5767897367477417,
-0.39717113971710205,
-0.37920743227005005,
-0.4491034746170044,
-1.2865327596664429,
-0.055371999740600586,
1.2813900709152222,
-0.7337417006492615,
-0.2792908549308777,
0.4733719229698181,
0.4795302152633667,
0.5038509368896484,
0.5769622921943665,
-0.6630898118019104,
-0.45251959562301636,
-0.4129694700241089,
-0.346854567527771,
0.2801240086555481,
1.1726839542388916,
-0.15916304290294647,
-1.0619467496871948,
0.6844030022621155,
-0.4443979263305664,
0.0865006148815155,
1.9373540878295898,
0.013009017333388329,
-0.7239425182342529,
0.2574841380119324,
-0.6587037444114685,
1.8492549657821655,
1.6161130666732788,
1.33298659324646,
-0.07569239288568497,
-0.84293133020401,
0.6237220764160156,
-0.18584217131137848,
-0.2707256078720093,
1.0017881393432617,
0.4921760559082031,
-0.20738400518894196,
-1.4084177017211914,
0.48308342695236206,
1.2633267641067505,
-0.9404144883155823,
-0.7280968427658081,
-0.09946160763502121,
-0.8312489986419678,
1.2411848306655884,
0.596771776676178,
0.2988716959953308,
0.3014752268791199,
1.6463664770126343,
0.5829063057899475,
-0.5583500862121582,
0.47656959295272827,
0.36414211988449097,
-0.09781213104724884,
-2.155654191970825,
-0.9497026801109314,
0.3516327738761902,
-0.31287580728530884,
-1.579125165939331,
1.4043110609054565,
-1.13092041015625,
-0.8597603440284729,
0.5742634534835815,
0.1722402125597,
1.3738514184951782,
0.24133266508579254,
1.7335017919540405,
2.148329257965088,
0.8786293268203735,
0.21657295525074005,
1.2834805250167847,
-0.12039361894130707,
-0.39007532596588135,
1.8097134828567505,
-0.3463948369026184,
0.49501824378967285,
0.9689673781394958,
-0.39385783672332764,
-1.031117558479309,
-0.8611624240875244,
-1.1516584157943726,
-0.649610161781311,
1.2582367658615112,
0.1651192158460617,
-1.1505496501922607,
0.18261376023292542,
1.6208018064498901,
0.13793082535266876,
-0.22198666632175446,
0.6466541290283203,
0.5659063458442688,
-0.6938381791114807,
-0.06374961137771606,
-0.9104068875312805,
0.498465359210968,
-0.1305999755859375,
-0.2990375757217407,
0.30636972188949585,
0.5455994009971619,
1.2082937955856323,
-0.07700026780366898,
0.05929550528526306,
1.3086419105529785,
-1.3752286434173584,
1.575179934501648,
-0.5169307589530945,
0.2559690475463867,
-2.393497943878174,
1.351292610168457,
-0.8303232789039612,
1.9309637546539307,
-2.5235435962677,
0.3179251551628113,
-0.6041898131370544,
-0.3183977007865906,
0.3579285740852356,
-0.44132721424102783,
0.18086332082748413,
-0.19025219976902008,
-0.9278355836868286,
-0.12973181903362274,
-0.8150808215141296,
0.5290433168411255,
1.278106689453125,
1.355588674545288,
-1.0790318250656128,
-0.20687854290008545,
-1.7128156423568726,
-0.20271648466587067,
-0.6545912623405457,
0.3226168155670166,
-2.0110764503479004,
-0.1674206256866455,
-2.082813262939453,
-2.359354019165039,
-1.4042631387710571,
-0.7847370505332947,
1.0888229608535767,
0.15991373360157013,
-0.9534310102462769,
1.0247869491577148,
-0.3946269154548645,
-1.7797826528549194,
1.0970137119293213,
-2.130638360977173
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Here is a runnable script.
Multi-GPU searching still does not work in my experiments.
```python
import os
from tqdm import tqdm
import numpy as np
import datasets
from datasets import Dataset
class DPRSelector:
def __init__(self, source, target, index_name, gpu=None):
self.source = source
self.target = target
self.index_name = index_name
cache_path = 'embedding.faiss'
if not os.path.exists(cache_path):
self.source.add_faiss_index(
column="embedding",
index_name=index_name,
device=gpu,
)
self.source.save_faiss_index(index_name, cache_path)
else:
self.source.load_faiss_index(
index_name,
cache_path,
device=gpu
)
print('index builded!')
def build_dataset(self, top_k, batch_size):
print('start search')
for i in tqdm(range(0, len(self.target), batch_size)):
if i + batch_size >= len(self.target):
batched_queries = self.target[i:]
else:
batched_queries = self.target[i:i+batch_size]
batched_query_embeddings = np.stack([i for i in batched_queries['embedding']], axis=0)
search_res = self.source.get_nearest_examples_batch(
self.index_name,
batched_query_embeddings,
k=top_k
)
print('finish search')
def get_pseudo_dataset():
pseudo_dict = {"embedding": np.zeros((1000000, 768), dtype=np.float32)}
print('generate pseudo data')
dataset = Dataset.from_dict(pseudo_dict)
def list_to_array(data):
return {"embedding": [np.array(vector, dtype=np.float32) for vector in data["embedding"]]}
dataset.set_transform(list_to_array, columns='embedding', output_all_columns=True)
print('build dataset')
return dataset
if __name__=="__main__":
np.random.seed(42)
source_dataset = get_pseudo_dataset()
target_dataset = get_pseudo_dataset()
gpu = [0,1,2,3,4,5,6,7]
selector = DPRSelector(source_dataset, target_dataset, "embedding", gpu=gpu)
selector.build_dataset(top_k=20, batch_size=32)
``` | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 163 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Here is a runnable script.
Multi-GPU searching still does not work in my experiments.
```python
import os
from tqdm import tqdm
import numpy as np
import datasets
from datasets import Dataset
class DPRSelector:
def __init__(self, source, target, index_name, gpu=None):
self.source = source
self.target = target
self.index_name = index_name
cache_path = 'embedding.faiss'
if not os.path.exists(cache_path):
self.source.add_faiss_index(
column="embedding",
index_name=index_name,
device=gpu,
)
self.source.save_faiss_index(index_name, cache_path)
else:
self.source.load_faiss_index(
index_name,
cache_path,
device=gpu
)
print('index builded!')
def build_dataset(self, top_k, batch_size):
print('start search')
for i in tqdm(range(0, len(self.target), batch_size)):
if i + batch_size >= len(self.target):
batched_queries = self.target[i:]
else:
batched_queries = self.target[i:i+batch_size]
batched_query_embeddings = np.stack([i for i in batched_queries['embedding']], axis=0)
search_res = self.source.get_nearest_examples_batch(
self.index_name,
batched_query_embeddings,
k=top_k
)
print('finish search')
def get_pseudo_dataset():
pseudo_dict = {"embedding": np.zeros((1000000, 768), dtype=np.float32)}
print('generate pseudo data')
dataset = Dataset.from_dict(pseudo_dict)
def list_to_array(data):
return {"embedding": [np.array(vector, dtype=np.float32) for vector in data["embedding"]]}
dataset.set_transform(list_to_array, columns='embedding', output_all_columns=True)
print('build dataset')
return dataset
if __name__=="__main__":
np.random.seed(42)
source_dataset = get_pseudo_dataset()
target_dataset = get_pseudo_dataset()
gpu = [0,1,2,3,4,5,6,7]
selector = DPRSelector(source_dataset, target_dataset, "embedding", gpu=gpu)
selector.build_dataset(top_k=20, batch_size=32)
``` | [
-1.3753377199172974,
-0.9818557500839233,
-0.6343930959701538,
1.5361030101776123,
-0.11602922528982162,
-1.1541712284088135,
0.19543856382369995,
-1.0962162017822266,
1.6782124042510986,
-0.8954570293426514,
0.24477694928646088,
-1.4711499214172363,
0.051881905645132065,
-0.5465432405471802,
-0.6882328391075134,
-0.8692513704299927,
-0.37673765420913696,
-0.8365548849105835,
1.0869946479797363,
2.409252643585205,
1.2076237201690674,
-1.3835636377334595,
2.7824206352233887,
0.7348459959030151,
-0.23420387506484985,
-1.1043431758880615,
0.504923403263092,
-0.008668718859553337,
-1.2861661911010742,
-0.5047141909599304,
-0.9772480130195618,
-0.0724123865365982,
-0.7071629762649536,
-0.38639310002326965,
-0.012226988561451435,
0.42693522572517395,
-0.268353670835495,
-0.3847130537033081,
-0.49310246109962463,
-0.8148276209831238,
0.5174868106842041,
-0.3451455235481262,
0.880355179309845,
-0.2571850121021271,
1.7007575035095215,
-0.6233465075492859,
0.42628300189971924,
0.6931267976760864,
1.3492236137390137,
0.16443830728530884,
-0.03742572292685509,
0.2394816130399704,
0.3679920434951782,
0.028944049030542374,
0.5616632103919983,
1.142591118812561,
0.6498003005981445,
0.47354856133461,
0.5683743953704834,
-2.2430810928344727,
1.397512435913086,
-0.996356725692749,
0.287229984998703,
1.3121111392974854,
-0.8694072365760803,
0.3668917417526245,
-1.7289396524429321,
-0.10757263749837875,
0.6202818751335144,
-2.2043254375457764,
0.3562103509902954,
-1.3278632164001465,
-0.5326039791107178,
1.077316403388977,
0.45335447788238525,
-1.2710603475570679,
0.13570819795131683,
-0.43070778250694275,
1.1276373863220215,
0.3857293426990509,
1.0048187971115112,
-1.7742043733596802,
-0.04322625696659088,
-0.2565476894378662,
0.12171179056167603,
-1.207501769065857,
-1.5638160705566406,
0.5302317142486572,
0.561126708984375,
0.6022157669067383,
-0.14733298122882843,
1.0924222469329834,
-1.1701871156692505,
0.8680788278579712,
-1.0894839763641357,
-1.6039695739746094,
-1.4441094398498535,
-2.467525005340576,
-2.3098793029785156,
0.6316270232200623,
-0.48287835717201233,
-0.4447149336338043,
2.1176645755767822,
-1.0705530643463135,
-1.6829736232757568,
1.104409098625183,
0.17837274074554443,
0.13709208369255066,
2.3180606365203857,
0.2146308571100235,
-0.7017121911048889,
0.5124226212501526,
-0.868187665939331,
0.7941485643386841,
-0.3189076781272888,
1.3280158042907715,
0.49680131673812866,
-0.9368964433670044,
1.5463814735412598,
-0.4047771394252777,
0.515550434589386,
-0.6702437400817871,
-0.4662846028804779,
-0.7659987211227417,
0.3390003442764282,
1.8289474248886108,
-0.23895230889320374,
1.4778691530227661,
-0.4046747386455536,
-1.517998218536377,
-1.5649762153625488,
0.9057642817497253,
0.4715890884399414,
-0.8088239431381226,
0.1055258959531784,
-0.5155928134918213,
0.12763071060180664,
-0.06928297132253647,
1.276342511177063,
1.318823218345642,
0.8015999794006348,
-0.4594179093837738,
-0.8929554224014282,
0.17987355589866638,
-0.08551670610904694,
-0.7705513834953308,
-1.864210605621338,
-0.2982046604156494,
0.07436130195856094,
0.7364334464073181,
-1.1414905786514282,
1.7627071142196655,
0.9647063612937927,
1.9611855745315552,
1.0662283897399902,
-0.43359217047691345,
1.5254759788513184,
0.03217034414410591,
1.787688136100769,
-0.4875780940055847,
0.7365484237670898,
-0.3661900758743286,
-1.166204810142517,
0.8428649306297302,
-0.3541887402534485,
-1.9955099821090698,
-0.7812120318412781,
-0.6615672707557678,
-0.21084532141685486,
-0.8903863430023193,
0.9342238306999207,
-0.3143037259578705,
-1.6129382848739624,
0.16436626017093658,
-0.8012012839317322,
0.2179335355758667,
-1.0466175079345703,
0.28542360663414,
0.7173722982406616,
-0.5536288022994995,
0.1345619112253189,
-0.2583669424057007,
-1.2240763902664185,
-0.5088900327682495,
0.36681699752807617,
1.8863654136657715,
-0.6502878069877625,
0.8785940408706665,
1.0973113775253296,
-0.59814453125,
0.030821993947029114,
0.283557653427124,
-0.24571669101715088,
0.8139126300811768,
-1.1597377061843872,
-0.5002592206001282,
1.1995760202407837,
-0.2500941753387451,
-0.5929019451141357,
1.4621288776397705,
0.7750851511955261,
-1.0341941118240356,
-0.2168436497449875,
-0.10369504988193512,
-0.8511656522750854,
0.14479821920394897,
-1.5747804641723633,
-0.1872466504573822,
0.47804126143455505,
-1.5410555601119995,
-0.39547809958457947,
-0.16433721780776978,
1.4291940927505493,
-0.14468173682689667,
1.4477176666259766,
-0.38530588150024414,
-0.055150680243968964,
-0.2821679413318634,
-0.32810553908348083,
0.29057028889656067,
-0.16310162842273712,
-0.5135197639465332,
0.14686740934848785,
-0.8154641389846802,
0.3102690875530243,
1.4734851121902466,
0.3138369023799896,
0.0956479012966156,
0.31963595747947693,
1.0870171785354614,
0.4386991560459137,
-0.05206197127699852,
-0.8698657155036926,
-1.5849428176879883,
1.9682625532150269,
-1.449688196182251,
2.0510053634643555,
0.7758225798606873,
-0.1303311437368393,
-1.7855632305145264,
-1.759814977645874,
1.2024589776992798,
0.9958548545837402,
2.331753730773926,
0.48126721382141113,
0.3514648377895355,
-0.8687766790390015,
-0.6967856884002686,
0.35622912645339966,
-1.0078561305999756,
-0.6955928802490234,
0.10657192021608353,
2.387580156326294,
1.7585474252700806,
-0.3885272443294525,
-0.20716038346290588,
-0.896240234375,
1.356573462486267,
-0.23156405985355377,
0.3037654459476471,
2.00696063041687,
-0.23087728023529053,
-1.0728235244750977,
1.3432345390319824,
-2.4054837226867676,
0.22929221391677856,
2.100743055343628,
0.31647607684135437,
0.1407238245010376,
-1.4427558183670044,
-0.6209702491760254,
-0.3086872696876526,
-0.4604198634624481,
-1.268541932106018,
0.5284842848777771,
-0.28387874364852905,
-0.8226227760314941,
-1.3978255987167358,
0.19733598828315735,
-1.161560297012329,
-1.769853115081787,
0.307951956987381,
1.9102815389633179,
2.160693883895874,
-0.8361195921897888,
1.5232099294662476,
-0.36499062180519104,
0.14265206456184387,
1.153984785079956,
1.2406479120254517,
3.010836124420166,
1.832271933555603,
-1.3216967582702637,
0.6391658186912537,
-0.21333204209804535,
-0.4720536768436432,
1.0551233291625977,
-1.2138193845748901,
1.257861614227295,
-0.14003735780715942,
-1.1578431129455566,
-1.1884657144546509,
1.042536973953247,
0.4865339994430542,
-0.020102813839912415,
-0.46905189752578735,
1.2611428499221802,
0.07406608760356903,
1.4036705493927002,
0.5322426557540894,
-0.31176650524139404,
0.6127103567123413,
-0.4340585768222809,
-0.5365109443664551,
1.4678165912628174,
0.1994848996400833,
-1.4872843027114868,
-2.1420865058898926,
-0.17735382914543152,
-0.9074358940124512,
0.02968832477927208,
-0.6014329791069031,
-1.0199586153030396,
1.6097544431686401,
0.3520331084728241,
-1.192685604095459,
-0.3286227881908417,
-0.26696670055389404,
-0.4975191652774811,
2.702054738998413,
-1.1652194261550903,
-0.1613481491804123,
-0.9379093050956726,
-0.5875495672225952,
1.6422547101974487,
-1.2861275672912598,
-0.21866914629936218,
-1.0113991498947144,
-0.6520267724990845,
-1.2735384702682495,
-0.44287562370300293,
0.09266383200883865,
-0.9891247749328613,
0.748559832572937,
0.22056317329406738,
-1.1708474159240723,
-0.41369009017944336,
-0.8070756196975708,
0.9584380984306335,
-0.04693198949098587,
0.23152953386306763,
1.7746764421463013,
0.2190847545862198,
-0.3956070840358734,
0.8522130250930786,
1.1909832954406738,
0.6185108423233032,
-0.6365965604782104,
0.11040712147951126,
-0.5994343757629395,
0.34830817580223083,
-1.2427783012390137,
0.3964154124259949,
-3.0057315826416016,
0.7780522108078003,
-0.005244758445769548,
-0.11561090499162674,
-0.09678912162780762,
-1.3539835214614868,
1.1670029163360596,
2.591672897338867,
-1.1610651016235352,
0.5473179817199707,
0.4297458529472351,
1.1441887617111206,
-1.568150281906128,
0.3588279187679291,
-0.42219415307044983,
2.083876609802246,
0.3310016989707947,
1.3098242282867432,
-0.43634921312332153,
-2.4882569313049316,
0.6853306293487549,
-1.2671914100646973,
-1.0551985502243042,
0.7283505201339722,
-0.9021604061126709,
0.1351994425058365,
-1.3740686178207397,
-0.3125476837158203,
-0.9552344679832458,
-1.1769639253616333,
0.5712756514549255,
0.2848200798034668,
0.4186175465583801,
-0.5959477424621582,
0.34262919425964355,
-2.2134227752685547,
-1.2342842817306519,
-0.10322252660989761,
-0.9485029578208923,
0.4895624816417694,
-0.46622994542121887,
0.6679772138595581,
-0.12011238932609558,
0.060196615755558014,
0.4146936237812042,
1.5072100162506104,
3.4261786937713623,
0.19198042154312134,
0.31769299507141113,
-0.15843631327152252,
-0.9374948143959045,
1.4019397497177124,
0.8639830350875854,
-0.11104881763458252,
-0.6167369484901428,
-1.0902001857757568,
1.3039120435714722,
2.027836322784424,
0.9302887320518494,
-0.0077884565107524395,
-0.8908466100692749,
-0.7663747668266296,
-0.0371471531689167,
0.2386384904384613,
0.48749876022338867,
0.9306135773658752,
0.11525766551494598,
-0.03512267768383026,
1.4913661479949951,
1.1305817365646362,
-0.3890964984893799,
0.30975058674812317,
-0.984409749507904,
-0.41007402539253235,
0.46085989475250244,
0.1935274749994278,
-0.04640059173107147,
0.38664498925209045,
-0.9828107953071594,
-0.20990943908691406,
-0.3904806673526764,
-0.8869185447692871,
-0.7591766119003296,
-0.3777853846549988,
-0.39656728506088257,
1.629672884941101,
0.17910712957382202,
-0.3672616183757782,
0.0007079187780618668,
-0.6871216893196106,
-0.17185857892036438,
-1.1164305210113525,
0.2170337438583374,
-0.05109573155641556,
-0.15817101299762726,
-0.20681238174438477,
1.7451415061950684,
-0.8289114236831665,
-2.0531325340270996,
0.236710324883461,
0.1806413233280182,
-0.248369961977005,
0.21579933166503906,
1.7056686878204346,
0.46459415555000305,
1.4001697301864624,
1.2645195722579956,
1.012394666671753,
-0.5102265477180481,
-1.2889105081558228,
0.8040339350700378,
0.9857304096221924,
-1.4052073955535889,
0.9315924048423767,
-0.14861580729484558,
-0.4681580364704132,
0.7209804058074951,
1.3629566431045532,
0.46045973896980286,
-2.09080171585083,
0.8346984386444092,
-1.0069646835327148,
0.8863278031349182,
0.6728541851043701,
0.6105480790138245,
0.1735209822654724,
0.8785971403121948,
-1.2936577796936035,
-1.1327217817306519,
-0.6343443989753723,
-0.8200578689575195,
2.004392385482788,
-0.49242228269577026,
0.5765888094902039,
-0.1725640445947647,
-1.2466496229171753,
-0.14219941198825836,
0.7007194757461548,
0.2750534117221832,
-0.49870091676712036,
0.8888329267501831,
-0.7311757206916809,
-1.10152268409729,
-1.3239103555679321,
-0.4618922472000122,
-1.0644217729568481,
-0.9638636708259583,
1.0367928743362427,
0.7658652067184448,
0.3659631311893463,
1.9585621356964111,
0.5928028225898743,
0.3174668550491333,
-2.5783679485321045,
0.8301206827163696,
0.2638966739177704,
-0.013908367604017258,
0.8761520385742188,
0.2961273789405823,
1.0550936460494995,
0.09139049798250198,
0.5697206258773804,
-2.4659197330474854,
2.3649227619171143,
-0.16252179443836212,
0.7335124611854553,
-0.01362499687820673,
-0.20094740390777588,
1.146618127822876,
0.6684787273406982,
0.5817326307296753,
-1.1069244146347046,
0.6414493918418884,
-0.5522190928459167,
1.2396970987319946,
0.8032836318016052,
-0.7621753811836243,
-0.05613354966044426,
1.3221219778060913,
0.4149298667907715,
-0.556637704372406,
-0.8956258296966553,
-1.0556391477584839,
0.9074019193649292,
1.7024108171463013,
-0.0575178824365139,
-0.08192792534828186,
0.7505183815956116,
0.7188209295272827,
-1.178619623184204,
-0.019556965678930283,
-0.6818519830703735,
-0.772023618221283,
1.6237155199050903,
2.1785943508148193,
-0.17064036428928375,
-0.17635005712509155,
-0.6200613379478455,
-1.263169527053833,
0.7874318361282349,
-0.16144371032714844,
0.09830281138420105,
0.4676657021045685,
-0.5584200620651245,
1.0314854383468628,
0.7063309550285339,
0.8883180618286133,
0.1585879921913147,
0.28710609674453735,
0.43651849031448364,
-0.39777496457099915,
-1.1813936233520508,
-0.38206762075424194,
-1.144726037979126,
-2.6614465713500977,
0.32030579447746277,
-0.23879434168338776,
-1.4658572673797607,
0.07366687804460526,
-0.993074893951416,
0.8523602485656738,
-0.6047418713569641,
-1.0392050743103027,
-1.3797528743743896,
0.21308758854866028,
-0.04073343053460121,
0.8708695769309998,
-1.5896466970443726,
-0.10399254411458969,
1.189197301864624,
0.8406741619110107,
-0.6037018895149231,
1.0352696180343628,
0.22322246432304382,
1.0200231075286865,
0.7455314993858337,
-0.4074189066886902,
0.5280820727348328,
0.11878000199794769,
-1.31008780002594,
0.4584978222846985,
1.2630006074905396,
0.17421503365039825,
1.4781115055084229,
-0.425794780254364,
0.04129736125469208,
0.435362845659256,
-0.7174642086029053,
-0.4677281379699707,
-0.4202296733856201,
0.7432303428649902,
0.017760533839464188,
-0.9213365912437439,
-0.10405430197715759,
-0.08483126759529114,
-0.3197666108608246,
0.19854086637496948,
-1.50485360622406,
-0.33235183358192444,
-0.43261924386024475,
-0.5187034010887146,
-1.3201714754104614,
-0.11769343912601471,
1.369454026222229,
-0.7465214729309082,
-0.2755027711391449,
0.4388553500175476,
0.44713062047958374,
0.49409347772598267,
0.7488070130348206,
-0.6962942481040955,
-0.42603278160095215,
-0.2656054198741913,
-0.3115442991256714,
0.39262908697128296,
1.3780161142349243,
-0.08165257424116135,
-0.8653577566146851,
0.6230373978614807,
-0.4008520543575287,
0.16546650230884552,
1.8277043104171753,
0.07049529999494553,
-0.731772780418396,
0.33001476526260376,
-0.7742425203323364,
1.9600639343261719,
1.6341055631637573,
1.198254942893982,
-0.16595882177352905,
-0.8531439304351807,
0.5841885805130005,
-0.38674303889274597,
-0.372871071100235,
0.840669572353363,
0.4147275686264038,
-0.2517141103744507,
-1.3580775260925293,
0.7615266442298889,
1.1114507913589478,
-0.8452332615852356,
-0.9207152128219604,
0.09312160313129425,
-0.7620309591293335,
1.2296169996261597,
0.6335391402244568,
0.36349815130233765,
0.3050737679004669,
1.6914359331130981,
0.816156804561615,
-0.46644335985183716,
0.6029298305511475,
0.4811122417449951,
-0.19607454538345337,
-2.185589075088501,
-1.14485764503479,
0.24976982176303864,
-0.5708984136581421,
-1.563641905784607,
1.4264042377471924,
-1.1105421781539917,
-1.092975378036499,
0.564515233039856,
-0.004501975607126951,
1.191691517829895,
0.37087079882621765,
1.5716420412063599,
2.0983054637908936,
0.7925956845283508,
0.43349510431289673,
1.221816897392273,
-0.17092005908489227,
-0.5162875652313232,
1.852491021156311,
-0.40819695591926575,
0.49158209562301636,
1.0875898599624634,
-0.3636605441570282,
-1.009413480758667,
-0.8726732134819031,
-1.0981712341308594,
-0.7336196303367615,
1.1631277799606323,
0.13232196867465973,
-1.0718803405761719,
0.2111928015947342,
1.5547852516174316,
0.1708219200372696,
-0.20593814551830292,
0.6183596253395081,
0.36736631393432617,
-0.6769601702690125,
-0.08043407648801804,
-0.8706027269363403,
0.547325849533081,
-0.3311402201652527,
-0.4044095575809479,
0.3483233153820038,
0.4858863651752472,
1.2586578130722046,
-0.16584397852420807,
0.0773061141371727,
1.042810320854187,
-1.4854053258895874,
1.457223892211914,
-0.5692927837371826,
0.43074125051498413,
-2.3765759468078613,
1.2691919803619385,
-0.7265968918800354,
2.0060105323791504,
-2.718510389328003,
0.41948914527893066,
-0.48562151193618774,
-0.5851184725761414,
0.34221601486206055,
-0.33753663301467896,
0.1189529299736023,
-0.17031778395175934,
-1.0628927946090698,
-0.0345102995634079,
-0.6785176396369934,
0.5319105386734009,
1.1320770978927612,
1.3203413486480713,
-1.1387372016906738,
-0.1560910940170288,
-1.59177565574646,
-0.08734488487243652,
-0.7759597897529602,
0.30714771151542664,
-1.9532629251480103,
-0.1575917899608612,
-2.020308256149292,
-2.2348685264587402,
-1.1873691082000732,
-0.7606489658355713,
1.1011030673980713,
0.19022907316684723,
-0.8171886801719666,
1.2057819366455078,
-0.30663567781448364,
-1.8291198015213013,
1.075069546699524,
-2.1001484394073486
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Maybe @albertvillanova you can take a look ? I won't be available in the following days | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 16 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Maybe @albertvillanova you can take a look ? I won't be available in the following days | [
-1.2693772315979004,
-0.8724853992462158,
-0.9535921812057495,
1.4670761823654175,
-0.06422673165798187,
-1.2315716743469238,
0.08518215268850327,
-1.0527153015136719,
1.70440673828125,
-0.7681140303611755,
0.21155191957950592,
-1.5484267473220825,
-0.05320403724908829,
-0.519271731376648,
-0.6746661067008972,
-0.8265382051467896,
-0.3222615122795105,
-0.8194597363471985,
1.032782793045044,
2.5021815299987793,
1.1825827360153198,
-1.2910373210906982,
2.7439515590667725,
0.7189611196517944,
-0.39962875843048096,
-1.0216373205184937,
0.5869791507720947,
0.09549371898174286,
-1.0970723628997803,
-0.569909930229187,
-0.8614373803138733,
0.06150422990322113,
-0.6114490032196045,
-0.4834877848625183,
-0.03482872620224953,
0.4183153212070465,
-0.30464625358581543,
-0.281653493642807,
-0.3809160590171814,
-0.7496628165245056,
0.522241473197937,
-0.36506181955337524,
0.8290469646453857,
-0.3500531017780304,
1.6902008056640625,
-0.5312166213989258,
0.29761940240859985,
0.693828284740448,
1.4758988618850708,
0.1992671638727188,
-0.09464654326438904,
0.2251683920621872,
0.3487536311149597,
-0.09736659377813339,
0.4196445047855377,
1.2035439014434814,
0.45516273379325867,
0.5655603408813477,
0.6087587475776672,
-2.2158169746398926,
1.3209148645401,
-0.9351071715354919,
0.1431950330734253,
1.3439927101135254,
-0.9778347015380859,
0.42690709233283997,
-1.7726783752441406,
-0.13755550980567932,
0.46311187744140625,
-2.3637712001800537,
0.173074409365654,
-1.2103511095046997,
-0.5629351735115051,
0.9012749791145325,
0.24165327847003937,
-1.3702354431152344,
0.14320024847984314,
-0.41802120208740234,
1.1135921478271484,
0.42806684970855713,
1.1539901494979858,
-1.6796373128890991,
-0.0013802945613861084,
-0.26245447993278503,
0.014053025282919407,
-1.4046196937561035,
-1.5367332696914673,
0.5433962345123291,
0.5454105138778687,
0.6739940643310547,
-0.06975146383047104,
0.9286601543426514,
-0.992708146572113,
0.8204768300056458,
-0.8671010732650757,
-1.602330207824707,
-1.270651936531067,
-2.3065083026885986,
-2.269512414932251,
0.8559132218360901,
-0.5230299830436707,
-0.5059109330177307,
1.911506175994873,
-1.0866326093673706,
-1.9000366926193237,
1.1490763425827026,
0.35323524475097656,
0.03720040246844292,
2.3464982509613037,
0.37720057368278503,
-0.7588464617729187,
0.5133488178253174,
-0.7292624711990356,
0.900313675403595,
-0.42558884620666504,
1.4474788904190063,
0.6085972189903259,
-0.941135585308075,
1.652441143989563,
-0.5040956735610962,
0.5941969156265259,
-0.6821182370185852,
-0.5439413189888,
-0.9517920017242432,
0.39677754044532776,
1.9468369483947754,
-0.3556704819202423,
1.6981626749038696,
-0.3626340925693512,
-1.5830107927322388,
-1.5135300159454346,
0.8996750116348267,
0.533795952796936,
-0.827011227607727,
0.19825200736522675,
-0.3546518385410309,
0.08702932298183441,
0.07364874333143234,
1.1305265426635742,
1.2687397003173828,
0.6976703405380249,
-0.24426959455013275,
-0.8683508038520813,
0.28368523716926575,
-0.008886604569852352,
-0.5706328749656677,
-1.9370834827423096,
-0.2790554463863373,
0.18301530182361603,
0.6889386177062988,
-1.2502241134643555,
1.6791069507598877,
0.9755091071128845,
2.082012891769409,
0.9936250448226929,
-0.31576910614967346,
1.558797836303711,
-0.09809323400259018,
1.8737115859985352,
-0.3972010314464569,
0.7671953439712524,
-0.2517183721065521,
-1.0385818481445312,
0.9213613867759705,
-0.3859771192073822,
-1.9403860569000244,
-0.8066158294677734,
-0.9543532729148865,
-0.21647128462791443,
-0.7986376881599426,
0.98089998960495,
-0.3106105923652649,
-1.446966290473938,
0.17354466021060944,
-0.7050079703330994,
0.14990663528442383,
-1.2299423217773438,
0.2236427217721939,
0.7720953226089478,
-0.5291301012039185,
-0.01509079523384571,
-0.21451972424983978,
-1.3451967239379883,
-0.4978828430175781,
0.2588612735271454,
2.0068154335021973,
-0.6883850693702698,
0.9946086406707764,
1.0555484294891357,
-0.7511808276176453,
0.06758885085582733,
0.381300151348114,
-0.3376830816268921,
0.7700539827346802,
-1.1277673244476318,
-0.3165121376514435,
1.2036066055297852,
-0.12150736153125763,
-0.7001237273216248,
1.3923146724700928,
0.9361125230789185,
-1.0128313302993774,
-0.09560203552246094,
-0.23868942260742188,
-0.7655181288719177,
-0.05463762208819389,
-1.572100043296814,
-0.2297554314136505,
0.2062174528837204,
-1.3628380298614502,
-0.4868098795413971,
-0.1809225231409073,
1.3698276281356812,
-0.2294413447380066,
1.362176775932312,
-0.2806572914123535,
-0.19134221971035004,
-0.3921439051628113,
-0.5456675291061401,
0.19606484472751617,
-0.2218250185251236,
-0.6006529331207275,
0.30474358797073364,
-0.7932689189910889,
0.2966271638870239,
1.4370951652526855,
0.389089971780777,
0.09626492112874985,
0.5570761561393738,
1.11513352394104,
0.3868456184864044,
-0.10685837268829346,
-0.917366087436676,
-1.5421910285949707,
2.0307798385620117,
-1.4629812240600586,
1.914331316947937,
0.7460120320320129,
-0.15102334320545197,
-1.7561999559402466,
-1.8565517663955688,
1.3448185920715332,
1.2357758283615112,
2.392153263092041,
0.666845977306366,
0.31440553069114685,
-0.6850250959396362,
-0.7663193941116333,
0.252154678106308,
-1.2168915271759033,
-0.7078412175178528,
0.0322951078414917,
2.2743539810180664,
1.7477529048919678,
-0.5799672603607178,
-0.2538469135761261,
-0.8985941410064697,
1.167356252670288,
-0.19786697626113892,
0.2440720647573471,
2.0060465335845947,
-0.31891047954559326,
-1.1108638048171997,
1.252350091934204,
-2.3008382320404053,
0.15025641024112701,
2.0525033473968506,
0.42403659224510193,
0.04218585416674614,
-1.4599275588989258,
-0.7608400583267212,
-0.14602188766002655,
-0.4179631769657135,
-1.2739695310592651,
0.6395725607872009,
-0.33405792713165283,
-0.9304764270782471,
-1.4635697603225708,
0.1934877336025238,
-1.1449674367904663,
-1.7753900289535522,
0.4211278557777405,
1.8800853490829468,
2.1280407905578613,
-0.816696286201477,
1.4261974096298218,
-0.2080913782119751,
0.09915892034769058,
1.2001363039016724,
1.189186453819275,
3.010390043258667,
1.8110260963439941,
-1.2098710536956787,
0.7343385815620422,
-0.1386169195175171,
-0.5948982834815979,
1.1964666843414307,
-0.975055992603302,
1.2209304571151733,
-0.2914174497127533,
-1.1369940042495728,
-1.2873982191085815,
0.8402854800224304,
0.49438241124153137,
0.07043192535638809,
-0.4464184641838074,
1.2643871307373047,
0.11174040287733078,
1.3090026378631592,
0.4868380129337311,
-0.33917638659477234,
0.5821521878242493,
-0.3808726966381073,
-0.5074805021286011,
1.5532177686691284,
0.20855839550495148,
-1.4313896894454956,
-2.333275318145752,
-0.19229106605052948,
-0.7718414664268494,
-0.08930034190416336,
-0.6505469679832458,
-1.0648285150527954,
1.508265495300293,
0.5170802474021912,
-1.1493618488311768,
-0.3460922837257385,
-0.33607232570648193,
-0.646862268447876,
2.597170829772949,
-1.4066667556762695,
-0.20147576928138733,
-0.9414801597595215,
-0.5038807392120361,
1.6634488105773926,
-1.1711821556091309,
-0.13365612924098969,
-0.9850019216537476,
-0.6471009254455566,
-1.4001845121383667,
-0.5378815531730652,
-0.03103756159543991,
-0.8603843450546265,
0.6639635562896729,
0.18252602219581604,
-1.0781850814819336,
-0.2729971706867218,
-0.8292561769485474,
0.8072530627250671,
-0.13929635286331177,
0.3622678220272064,
1.8170711994171143,
0.3912486135959625,
-0.4522123634815216,
0.8465744256973267,
1.2074003219604492,
0.544116199016571,
-0.685989499092102,
0.09528455883264542,
-0.731505811214447,
0.29261451959609985,
-1.3278530836105347,
0.28608253598213196,
-3.0264713764190674,
0.7045848369598389,
-0.06797119975090027,
-0.10876292735338211,
0.0035606268793344498,
-1.3663923740386963,
1.2007873058319092,
2.583794593811035,
-1.1872484683990479,
0.48045292496681213,
0.34674137830734253,
1.2505950927734375,
-1.5891294479370117,
0.2305254340171814,
-0.3985154330730438,
2.0921599864959717,
0.15665848553180695,
1.2452083826065063,
-0.5285730361938477,
-2.2110679149627686,
0.6883251070976257,
-1.2220159769058228,
-1.1903924942016602,
0.7773087620735168,
-0.9197835922241211,
0.04129709303379059,
-1.4934371709823608,
-0.17574454843997955,
-0.9345490336418152,
-1.254563331604004,
0.8376610279083252,
0.2100348025560379,
0.5368621349334717,
-0.6229282021522522,
0.3482574224472046,
-2.1515960693359375,
-1.358081340789795,
-0.13207532465457916,
-0.9493337869644165,
0.5414829254150391,
-0.3858862817287445,
0.6155775785446167,
-0.10741036385297775,
0.10980885475873947,
0.31532973051071167,
1.381874918937683,
3.350797176361084,
0.23340250551700592,
0.413642019033432,
-0.1125669777393341,
-0.899959921836853,
1.4241974353790283,
0.978849470615387,
-0.1474020928144455,
-0.671977698802948,
-0.9135586619377136,
1.3042027950286865,
1.9626250267028809,
1.022294282913208,
0.07094702124595642,
-0.9630678296089172,
-0.6861077547073364,
0.021330803632736206,
0.2837894558906555,
0.4773777425289154,
1.0172386169433594,
0.05218573659658432,
0.009836663492023945,
1.361592411994934,
1.142997145652771,
-0.5244297981262207,
0.5027252435684204,
-1.0124655961990356,
-0.30616137385368347,
0.4235464930534363,
0.2756466567516327,
0.0811566412448883,
0.38652297854423523,
-0.9689533114433289,
-0.26545730233192444,
-0.18433012068271637,
-0.9770193696022034,
-0.8549978733062744,
-0.43105044960975647,
-0.39164942502975464,
1.6865417957305908,
0.010177929885685444,
-0.41202402114868164,
-0.0626312792301178,
-0.7815078496932983,
-0.06718847155570984,
-1.0042210817337036,
0.10722745209932327,
-0.1548117995262146,
-0.10921110212802887,
-0.04431551322340965,
1.7911378145217896,
-1.034136414527893,
-2.1850175857543945,
0.27031567692756653,
0.32017943263053894,
-0.3651832342147827,
0.13303177058696747,
1.740791916847229,
0.4603841304779053,
1.372381329536438,
1.2947570085525513,
1.1173642873764038,
-0.6594409346580505,
-1.2571145296096802,
0.6811866164207458,
0.9367232322692871,
-1.3062769174575806,
0.8293389678001404,
-0.06252457946538925,
-0.4302239716053009,
0.7102009057998657,
1.3025860786437988,
0.4445497691631317,
-1.9536954164505005,
0.7846961617469788,
-0.8657195568084717,
0.8164452314376831,
0.5961113572120667,
0.7970418334007263,
0.2938811480998993,
0.8420538306236267,
-1.2440310716629028,
-1.1585357189178467,
-0.8425527215003967,
-0.7323875427246094,
1.8665043115615845,
-0.17509931325912476,
0.44691002368927,
-0.09657301753759384,
-1.1961272954940796,
-0.1755620539188385,
0.8136167526245117,
0.2925691604614258,
-0.27877503633499146,
0.7561258673667908,
-0.6796881556510925,
-1.0485295057296753,
-1.4571863412857056,
-0.45536068081855774,
-0.8467080593109131,
-0.9298657178878784,
1.0087215900421143,
0.7195767164230347,
0.3308299481868744,
2.027954339981079,
0.5067324638366699,
0.25879764556884766,
-2.6206865310668945,
0.8806474208831787,
0.34978023171424866,
0.03293444216251373,
0.9333747625350952,
0.3424639105796814,
1.0963129997253418,
-0.03771961107850075,
0.40102821588516235,
-2.308518171310425,
2.2097136974334717,
-0.2588025629520416,
0.6429968476295471,
0.06923021376132965,
-0.17789338529109955,
1.0727850198745728,
0.4564739763736725,
0.6049318909645081,
-1.2882840633392334,
0.7613798379898071,
-0.6432419419288635,
1.1663649082183838,
1.013044834136963,
-0.8064688444137573,
0.19431640207767487,
1.2941462993621826,
0.44709041714668274,
-0.4364057779312134,
-0.9086965322494507,
-0.7790050506591797,
0.8837383985519409,
1.678053617477417,
-0.08401014655828476,
0.03864890709519386,
0.7145240902900696,
0.617816150188446,
-1.3038921356201172,
0.07780767232179642,
-0.6946704983711243,
-0.7622472643852234,
1.7482049465179443,
1.988146185874939,
-0.08066119998693466,
-0.22537671029567719,
-0.8450098037719727,
-1.1928884983062744,
0.8179797530174255,
0.039721712470054626,
0.20876070857048035,
0.574254035949707,
-0.7093073129653931,
1.2907450199127197,
0.8096206188201904,
0.8169993758201599,
-0.013280665501952171,
0.4051416516304016,
0.5345124006271362,
-0.1770816296339035,
-1.1079407930374146,
-0.3830927610397339,
-1.1764980554580688,
-2.697435140609741,
0.3684319853782654,
-0.3473791182041168,
-1.4052082300186157,
-0.03122469037771225,
-1.0712406635284424,
0.8369531035423279,
-0.5868871212005615,
-0.9962121248245239,
-1.540845513343811,
0.2939588725566864,
-0.20707271993160248,
0.7561553120613098,
-1.6209388971328735,
-0.09916574507951736,
1.3054864406585693,
1.002816081047058,
-0.7129251956939697,
1.103247880935669,
0.2717721462249756,
1.0262418985366821,
0.7829731106758118,
-0.5243011116981506,
0.581138014793396,
0.16310864686965942,
-1.3285837173461914,
0.521774411201477,
1.2979005575180054,
0.16451536118984222,
1.409635066986084,
-0.503380537033081,
-0.006414192728698254,
0.4677964746952057,
-0.5312485098838806,
-0.6099397540092468,
-0.6044993996620178,
0.7843936681747437,
0.061020202934741974,
-0.9881752133369446,
0.06541906297206879,
-0.14902333915233612,
-0.24329838156700134,
0.26035913825035095,
-1.5718655586242676,
-0.432750940322876,
-0.386505126953125,
-0.4545648396015167,
-1.3029650449752808,
0.006441135890781879,
1.3154642581939697,
-0.6677806377410889,
-0.2944779694080353,
0.5006698369979858,
0.4490211308002472,
0.4776455760002136,
0.5778366327285767,
-0.678002119064331,
-0.33210763335227966,
-0.32919204235076904,
-0.3338286876678467,
0.38950178027153015,
1.275111198425293,
-0.111066073179245,
-0.9843206405639648,
0.6755848526954651,
-0.40050509572029114,
0.025796450674533844,
1.9401346445083618,
0.04582807049155235,
-0.815329372882843,
0.16811710596084595,
-0.6702771186828613,
1.9574609994888306,
1.5945310592651367,
1.2529467344284058,
-0.027859479188919067,
-0.8201987743377686,
0.6391283273696899,
-0.14430789649486542,
-0.388281911611557,
0.953643262386322,
0.4680386781692505,
-0.26919931173324585,
-1.4342094659805298,
0.4933486878871918,
1.2160067558288574,
-0.8530089855194092,
-0.7734827399253845,
-0.18759885430335999,
-0.8425498604774475,
1.1346559524536133,
0.6889225840568542,
0.3081842362880707,
0.3018716275691986,
1.6936661005020142,
0.6222076416015625,
-0.48792392015457153,
0.45988839864730835,
0.4015629291534424,
-0.03995324671268463,
-2.175057888031006,
-1.0991315841674805,
0.3471280634403229,
-0.3357057273387909,
-1.4832494258880615,
1.4595787525177002,
-1.1386736631393433,
-0.9071251749992371,
0.5719754099845886,
0.15698541700839996,
1.412069320678711,
0.2789287567138672,
1.7017585039138794,
2.0946316719055176,
0.9328635334968567,
0.15853622555732727,
1.3285109996795654,
-0.2490989714860916,
-0.4445907473564148,
1.8879668712615967,
-0.4234960079193115,
0.4710763096809387,
0.9071543216705322,
-0.3936879336833954,
-1.0254101753234863,
-0.7996077537536621,
-1.1950159072875977,
-0.6302022933959961,
1.192764163017273,
0.2090737670660019,
-1.1477898359298706,
0.20664279162883759,
1.559221863746643,
0.14728084206581116,
-0.1409260332584381,
0.6086235642433167,
0.5258418917655945,
-0.8078447580337524,
0.0017139166593551636,
-0.9460412263870239,
0.5166720747947693,
-0.1234845444560051,
-0.31330183148384094,
0.2936985194683075,
0.5382183194160461,
1.1722373962402344,
-0.07743796706199646,
0.07766463607549667,
1.2378675937652588,
-1.4633101224899292,
1.5586107969284058,
-0.5602074861526489,
0.3051883280277252,
-2.416024684906006,
1.392256498336792,
-0.825482189655304,
1.9104106426239014,
-2.584390878677368,
0.34739527106285095,
-0.6099461913108826,
-0.40572553873062134,
0.40905749797821045,
-0.4520835280418396,
0.20066606998443604,
-0.20658650994300842,
-0.9923526048660278,
-0.035333115607500076,
-0.7463767528533936,
0.5106632113456726,
1.1668691635131836,
1.2680675983428955,
-0.9994473457336426,
-0.2495637834072113,
-1.7383801937103271,
-0.17723973095417023,
-0.5939242839813232,
0.30636581778526306,
-2.093709945678711,
-0.2595825791358948,
-2.063263177871704,
-2.151101589202881,
-1.3519043922424316,
-0.7596086859703064,
1.064903736114502,
0.15031200647354126,
-0.9165835380554199,
1.0033307075500488,
-0.4132821559906006,
-1.7806916236877441,
1.0675328969955444,
-2.1497251987457275
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Hi @xwwwwww I'm investigating it, but I'm not an expert in Faiss. In principle, it is weird that your code does not work properly because it seems right... | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 28 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Hi @xwwwwww I'm investigating it, but I'm not an expert in Faiss. In principle, it is weird that your code does not work properly because it seems right... | [
-1.2357268333435059,
-0.8909574151039124,
-0.8515178561210632,
1.4494807720184326,
-0.04504003748297691,
-1.2342387437820435,
0.08769150078296661,
-1.1197941303253174,
1.6558899879455566,
-0.9063663482666016,
0.21897336840629578,
-1.576788306236267,
0.015310321003198624,
-0.4875718057155609,
-0.7321920990943909,
-0.825892448425293,
-0.30712422728538513,
-0.8819125294685364,
0.9852639436721802,
2.527120590209961,
1.1719409227371216,
-1.2530924081802368,
2.768584966659546,
0.6975084543228149,
-0.3612962067127228,
-1.136020302772522,
0.5588982105255127,
-0.008380018174648285,
-1.224051594734192,
-0.518936038017273,
-0.9572204351425171,
0.003004666417837143,
-0.6933620572090149,
-0.43588000535964966,
-0.025560617446899414,
0.39667263627052307,
-0.2646148204803467,
-0.20725283026695251,
-0.41915637254714966,
-0.7388371825218201,
0.5363954901695251,
-0.3995898962020874,
0.8933961987495422,
-0.35847190022468567,
1.6930596828460693,
-0.5182281136512756,
0.4091319739818573,
0.6169599890708923,
1.4581729173660278,
0.2691929042339325,
-0.047657087445259094,
0.132765531539917,
0.3618322014808655,
-0.043479181826114655,
0.3761337697505951,
1.1130824089050293,
0.5586709380149841,
0.5483204126358032,
0.5742213129997253,
-2.1998283863067627,
1.3742139339447021,
-0.9295157194137573,
0.18807831406593323,
1.361184000968933,
-0.8959313035011292,
0.30221208930015564,
-1.7712541818618774,
-0.16582617163658142,
0.5046420097351074,
-2.3020989894866943,
0.16963687539100647,
-1.2588130235671997,
-0.5274223685264587,
1.0181792974472046,
0.30866938829421997,
-1.3524640798568726,
0.11876868456602097,
-0.41214051842689514,
1.0337892770767212,
0.4360394775867462,
1.0972707271575928,
-1.7414052486419678,
-0.01669961027801037,
-0.31190693378448486,
0.05637010186910629,
-1.3767093420028687,
-1.5554126501083374,
0.5196094512939453,
0.5596328973770142,
0.7238081097602844,
-0.030846867710351944,
0.9936566948890686,
-1.1248087882995605,
0.762826681137085,
-0.8517299294471741,
-1.6791768074035645,
-1.1615793704986572,
-2.3589086532592773,
-2.3397738933563232,
0.7427082061767578,
-0.45089325308799744,
-0.5102053284645081,
2.037968635559082,
-1.0551345348358154,
-1.8588387966156006,
1.0836352109909058,
0.22363531589508057,
0.119364432990551,
2.357503652572632,
0.30675047636032104,
-0.7133339643478394,
0.45241692662239075,
-0.7512215375900269,
0.7891732454299927,
-0.3966275155544281,
1.4620308876037598,
0.5658508539199829,
-0.9520970582962036,
1.619071125984192,
-0.37599459290504456,
0.5537356734275818,
-0.6915367841720581,
-0.458311527967453,
-0.883181095123291,
0.3274584114551544,
1.895883560180664,
-0.35703086853027344,
1.7143994569778442,
-0.28617289662361145,
-1.5396360158920288,
-1.5799959897994995,
0.8827885389328003,
0.4766663908958435,
-0.7839202284812927,
0.08334413915872574,
-0.4224579632282257,
0.07160504162311554,
0.06892116367816925,
1.1179726123809814,
1.2952196598052979,
0.6918985843658447,
-0.3089640736579895,
-0.9539481997489929,
0.3253231644630432,
-0.06248321756720543,
-0.6356921195983887,
-1.8920060396194458,
-0.27540650963783264,
0.1540350317955017,
0.747465968132019,
-1.1660470962524414,
1.6776005029678345,
0.9584096074104309,
2.0697543621063232,
0.9725890755653381,
-0.333266943693161,
1.5128509998321533,
-0.09020024538040161,
1.8331565856933594,
-0.4254946708679199,
0.7864117622375488,
-0.32781317830085754,
-1.0457576513290405,
0.8931328058242798,
-0.389298677444458,
-1.9157406091690063,
-0.80646151304245,
-0.9055541157722473,
-0.1615598499774933,
-0.9031501412391663,
0.9632771015167236,
-0.3577123284339905,
-1.4086402654647827,
0.19917407631874084,
-0.7132324576377869,
0.15921059250831604,
-1.2589670419692993,
0.2706204950809479,
0.7932621836662292,
-0.5291187167167664,
0.06857042759656906,
-0.22409525513648987,
-1.3582955598831177,
-0.5739068984985352,
0.2503017783164978,
1.9973212480545044,
-0.6333874464035034,
0.9526695609092712,
1.138741135597229,
-0.7741520404815674,
0.0737457200884819,
0.4183256924152374,
-0.3521100580692291,
0.7484201788902283,
-1.1881210803985596,
-0.26059019565582275,
1.183274269104004,
-0.151563823223114,
-0.6845954656600952,
1.407989501953125,
0.9568763971328735,
-1.057602047920227,
-0.1254497468471527,
-0.15070581436157227,
-0.628228485584259,
0.10639496892690659,
-1.546904444694519,
-0.1769702136516571,
0.3025473654270172,
-1.3266817331314087,
-0.4316028356552124,
-0.23925143480300903,
1.3652271032333374,
-0.21898961067199707,
1.3176774978637695,
-0.21990543603897095,
-0.26959311962127686,
-0.3164611756801605,
-0.5687914490699768,
0.17585232853889465,
-0.20800718665122986,
-0.585821807384491,
0.3694552481174469,
-0.7964674830436707,
0.3483635485172272,
1.4031403064727783,
0.2948196232318878,
0.07005609571933746,
0.5155428051948547,
1.0877184867858887,
0.4151725769042969,
-0.13550186157226562,
-0.9738848209381104,
-1.5897215604782104,
2.0596654415130615,
-1.3882349729537964,
1.9878617525100708,
0.8666349649429321,
-0.14158374071121216,
-1.7290881872177124,
-1.7981387376785278,
1.3529531955718994,
1.1487616300582886,
2.3980066776275635,
0.598095178604126,
0.3402271270751953,
-0.7696307301521301,
-0.698961079120636,
0.36098089814186096,
-1.1076568365097046,
-0.6994366645812988,
0.07390089333057404,
2.3862595558166504,
1.7495954036712646,
-0.48419350385665894,
-0.18802252411842346,
-0.8999262452125549,
1.0869858264923096,
-0.1729506254196167,
0.17630746960639954,
2.0471725463867188,
-0.2909000813961029,
-1.2152137756347656,
1.2146815061569214,
-2.3347980976104736,
0.18210923671722412,
2.0783302783966064,
0.3813711404800415,
-0.006111004389822483,
-1.471144437789917,
-0.7751796245574951,
-0.27270999550819397,
-0.35621270537376404,
-1.2683172225952148,
0.6196312308311462,
-0.23253768682479858,
-0.8751876950263977,
-1.5572788715362549,
0.21612784266471863,
-1.1868723630905151,
-1.7590140104293823,
0.41624462604522705,
1.8349449634552002,
2.1342215538024902,
-0.7868635058403015,
1.3984078168869019,
-0.11446449160575867,
0.1253606379032135,
1.1225301027297974,
1.205640196800232,
3.0231893062591553,
1.8391671180725098,
-1.205916166305542,
0.7658634185791016,
-0.07476336508989334,
-0.5922332406044006,
1.125425934791565,
-0.9502289295196533,
1.1958447694778442,
-0.2602778375148773,
-1.1554510593414307,
-1.3198916912078857,
0.8896504640579224,
0.4106532633304596,
-0.011354981921613216,
-0.41727688908576965,
1.2319339513778687,
0.1414734125137329,
1.3125455379486084,
0.4630066752433777,
-0.1900080144405365,
0.6543818116188049,
-0.3598111569881439,
-0.5193074941635132,
1.5370116233825684,
0.2773660719394684,
-1.5327588319778442,
-2.340216875076294,
-0.20683681964874268,
-0.7703836560249329,
-0.1295519769191742,
-0.6056883931159973,
-1.0678938627243042,
1.5357019901275635,
0.4639723002910614,
-1.1787703037261963,
-0.3473362326622009,
-0.318380743265152,
-0.7027195692062378,
2.6028690338134766,
-1.3325167894363403,
-0.22545018792152405,
-0.9796311259269714,
-0.6467695236206055,
1.6853382587432861,
-1.2790430784225464,
-0.09169343113899231,
-1.0081721544265747,
-0.6342770457267761,
-1.3290199041366577,
-0.5227501392364502,
0.0027300603687763214,
-0.921942949295044,
0.5886021852493286,
0.31725233793258667,
-1.0843777656555176,
-0.257038950920105,
-0.8772062063217163,
0.7858361601829529,
-0.09709487855434418,
0.28920888900756836,
1.7726078033447266,
0.4163653552532196,
-0.3950193226337433,
0.7405320405960083,
1.1495054960250854,
0.5333854556083679,
-0.7209707498550415,
0.11558331549167633,
-0.7448735237121582,
0.2666710317134857,
-1.3227964639663696,
0.3339472711086273,
-2.988612651824951,
0.7398978471755981,
-0.10734081268310547,
-0.13161371648311615,
0.02030414342880249,
-1.3368734121322632,
1.2411333322525024,
2.594749927520752,
-1.1921396255493164,
0.4947624206542969,
0.36971941590309143,
1.2488235235214233,
-1.5542951822280884,
0.23800206184387207,
-0.3153589367866516,
2.1208510398864746,
0.20725896954536438,
1.20841646194458,
-0.5575206875801086,
-2.23926043510437,
0.7267147302627563,
-1.2544896602630615,
-1.1683176755905151,
0.7122318744659424,
-0.9786868691444397,
0.01519014872610569,
-1.3659865856170654,
-0.12499050050973892,
-0.926429808139801,
-1.2866848707199097,
0.7864049077033997,
0.13108611106872559,
0.5551473498344421,
-0.6555699706077576,
0.33863380551338196,
-2.18669056892395,
-1.4063925743103027,
-0.08084605634212494,
-1.0280382633209229,
0.4342357814311981,
-0.36827588081359863,
0.6474161148071289,
-0.27273425459861755,
0.11522691696882248,
0.38129284977912903,
1.4443252086639404,
3.370816230773926,
0.2452215552330017,
0.43497541546821594,
-0.06725800037384033,
-0.954929530620575,
1.4451061487197876,
0.9277981519699097,
-0.08745023608207703,
-0.5913819074630737,
-0.9208417534828186,
1.2741378545761108,
2.0413289070129395,
1.0093225240707397,
0.06893234699964523,
-0.9383246302604675,
-0.7369120121002197,
-0.02246369794011116,
0.31652989983558655,
0.4656083583831787,
0.9899321794509888,
0.020494621247053146,
-0.011998545378446579,
1.4229549169540405,
1.1696945428848267,
-0.5713682174682617,
0.38945043087005615,
-0.931013286113739,
-0.36144834756851196,
0.41266360878944397,
0.271152526140213,
0.08656519651412964,
0.39263448119163513,
-1.0008286237716675,
-0.2658422589302063,
-0.2461887001991272,
-0.9646431803703308,
-0.8804125189781189,
-0.5479910373687744,
-0.30129650235176086,
1.6663825511932373,
0.042015399783849716,
-0.39135316014289856,
0.0503382571041584,
-0.7834152579307556,
-0.03783614933490753,
-1.06620454788208,
0.10943976044654846,
-0.12922970950603485,
-0.07451780140399933,
-0.019936278462409973,
1.8247803449630737,
-1.0679699182510376,
-2.170719623565674,
0.2538609802722931,
0.23435285687446594,
-0.37055981159210205,
0.1789693534374237,
1.6929035186767578,
0.4414091110229492,
1.5062792301177979,
1.2519758939743042,
1.1311794519424438,
-0.6982195973396301,
-1.3164103031158447,
0.773304283618927,
0.8852530121803284,
-1.2701928615570068,
0.8810110688209534,
-0.0993911474943161,
-0.4405548870563507,
0.6616132855415344,
1.2993249893188477,
0.4484090805053711,
-1.9246591329574585,
0.7349612712860107,
-0.8812211751937866,
0.7244964241981506,
0.6609979867935181,
0.7779515981674194,
0.20686033368110657,
0.7947384119033813,
-1.20946204662323,
-1.1443102359771729,
-0.8045269846916199,
-0.712099552154541,
1.8700367212295532,
-0.23908165097236633,
0.5323009490966797,
-0.11272510141134262,
-1.2489423751831055,
-0.15043675899505615,
0.7132733464241028,
0.3729182481765747,
-0.3636484742164612,
0.7924196720123291,
-0.7069554328918457,
-1.1202150583267212,
-1.4741846323013306,
-0.4695119857788086,
-0.9581116437911987,
-1.0178124904632568,
0.981898307800293,
0.7028539776802063,
0.32020053267478943,
2.01623272895813,
0.5595496296882629,
0.30287179350852966,
-2.6178805828094482,
0.8880529999732971,
0.35595083236694336,
0.015300694853067398,
0.9928174614906311,
0.35531696677207947,
1.1096755266189575,
-0.02472197450697422,
0.5100960731506348,
-2.2994370460510254,
2.3410778045654297,
-0.2049119472503662,
0.6490758657455444,
0.06658058613538742,
-0.17234644293785095,
1.1639468669891357,
0.48638683557510376,
0.5997031331062317,
-1.2597402334213257,
0.735904335975647,
-0.7118966579437256,
1.1700021028518677,
1.0030502080917358,
-0.7883495092391968,
0.1996704638004303,
1.2357884645462036,
0.4697355329990387,
-0.49666327238082886,
-0.9253577589988708,
-0.8759317994117737,
0.8972401022911072,
1.6923837661743164,
-0.059364981949329376,
0.016921725124120712,
0.7616790533065796,
0.6189298629760742,
-1.3835880756378174,
-0.05047150328755379,
-0.6783235669136047,
-0.7675549387931824,
1.7193917036056519,
2.0372402667999268,
-0.06090838834643364,
-0.2414596676826477,
-0.7601534724235535,
-1.1714305877685547,
0.7757052183151245,
-0.05269971117377281,
0.13107579946517944,
0.6003049612045288,
-0.6507908701896667,
1.1871411800384521,
0.8691637516021729,
0.9313773512840271,
0.0681195855140686,
0.366180956363678,
0.5215368866920471,
-0.2830740809440613,
-1.076116681098938,
-0.33316728472709656,
-1.1834458112716675,
-2.618793249130249,
0.3875311315059662,
-0.3942447602748871,
-1.4214001893997192,
-0.08719667047262192,
-1.0599889755249023,
0.8498298525810242,
-0.579559862613678,
-0.9144526124000549,
-1.4985721111297607,
0.23286157846450806,
-0.3007688522338867,
0.840024471282959,
-1.5856263637542725,
-0.11240377277135849,
1.2897752523422241,
1.050036072731018,
-0.6940560340881348,
1.0668059587478638,
0.24990606307983398,
1.0687782764434814,
0.7698865532875061,
-0.4791717827320099,
0.5924918055534363,
0.1767600178718567,
-1.2903369665145874,
0.4630681872367859,
1.2734289169311523,
0.20611253380775452,
1.3273156881332397,
-0.4249074161052704,
0.04090583324432373,
0.4844017028808594,
-0.5504234433174133,
-0.5651477575302124,
-0.5710079669952393,
0.8219875693321228,
0.06886553019285202,
-0.9277467131614685,
0.09600545465946198,
-0.23897314071655273,
-0.13348498940467834,
0.21170201897621155,
-1.5828477144241333,
-0.3752191960811615,
-0.408700555562973,
-0.5136587619781494,
-1.2487223148345947,
-0.030664263293147087,
1.3553063869476318,
-0.7512814998626709,
-0.2605035901069641,
0.42001378536224365,
0.48114606738090515,
0.5119806528091431,
0.5988914370536804,
-0.728875994682312,
-0.4041988253593445,
-0.28312936425209045,
-0.35036030411720276,
0.42603856325149536,
1.272336483001709,
-0.07994946837425232,
-1.000137448310852,
0.7059330940246582,
-0.37740927934646606,
0.10810070484876633,
1.9126049280166626,
-0.022752486169338226,
-0.8250240683555603,
0.17151907086372375,
-0.6351114511489868,
2.0365383625030518,
1.6155040264129639,
1.2203296422958374,
-0.07648516446352005,
-0.8003631830215454,
0.6089110374450684,
-0.09176138043403625,
-0.39668065309524536,
0.991278350353241,
0.4468400180339813,
-0.2323097288608551,
-1.4834320545196533,
0.5045537948608398,
1.2318229675292969,
-0.8171948790550232,
-0.8102530837059021,
-0.07041452825069427,
-0.9018743634223938,
1.1582303047180176,
0.5909013748168945,
0.27733170986175537,
0.3202815651893616,
1.7023807764053345,
0.6827601790428162,
-0.5503635406494141,
0.430819571018219,
0.3929758369922638,
-0.08656970411539078,
-2.089627742767334,
-1.0806719064712524,
0.29967328906059265,
-0.39838507771492004,
-1.4870762825012207,
1.3958503007888794,
-1.1413625478744507,
-0.8170702457427979,
0.5595511794090271,
0.17713356018066406,
1.3785651922225952,
0.30440154671669006,
1.6672219038009644,
2.0274150371551514,
0.9252060651779175,
0.2835809588432312,
1.335397720336914,
-0.20823460817337036,
-0.44957977533340454,
1.800073266029358,
-0.3944450914859772,
0.42748671770095825,
1.0345234870910645,
-0.38326284289360046,
-1.0353025197982788,
-0.8304970860481262,
-1.0850995779037476,
-0.6214828491210938,
1.207594871520996,
0.23936468362808228,
-1.2770545482635498,
0.23279821872711182,
1.5461820363998413,
0.17007505893707275,
-0.1484297215938568,
0.585895299911499,
0.4750547409057617,
-0.7079904675483704,
0.060152843594551086,
-0.9239659309387207,
0.5910354852676392,
-0.2666117548942566,
-0.3167652487754822,
0.39176878333091736,
0.5409282445907593,
1.24311101436615,
-0.07322270423173904,
0.0665954053401947,
1.2483644485473633,
-1.400652289390564,
1.5374799966812134,
-0.4990503787994385,
0.25906917452812195,
-2.3173770904541016,
1.330816388130188,
-0.7779833078384399,
1.9335808753967285,
-2.5800302028656006,
0.29202479124069214,
-0.5730787515640259,
-0.43218091130256653,
0.3403779864311218,
-0.4857366383075714,
0.1777559518814087,
-0.21355804800987244,
-1.011605978012085,
-0.140295147895813,
-0.7389646768569946,
0.5350735187530518,
1.1684664487838745,
1.2809584140777588,
-0.8801541328430176,
-0.2589731812477112,
-1.7407629489898682,
-0.15130704641342163,
-0.5847635865211487,
0.23310723900794983,
-2.0123751163482666,
-0.31453102827072144,
-2.1166985034942627,
-2.195751190185547,
-1.3658158779144287,
-0.7000769376754761,
1.0382237434387207,
0.11928436905145645,
-0.827850878238678,
1.0211904048919678,
-0.3616195023059845,
-1.7786227464675903,
1.0493861436843872,
-2.150338649749756
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | > Have you tried passing `gpu=-1` and check if there is a speedup?
yes, there is a speed up using GPU compared with CPU. | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 24 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
> Have you tried passing `gpu=-1` and check if there is a speedup?
yes, there is a speed up using GPU compared with CPU. | [
-1.2380677461624146,
-0.8671485781669617,
-0.9200850129127502,
1.5141208171844482,
-0.07371681928634644,
-1.2854825258255005,
0.10920947790145874,
-1.0934393405914307,
1.6750094890594482,
-0.8538159132003784,
0.27928707003593445,
-1.5770293474197388,
-0.05101466923952103,
-0.4942750036716461,
-0.7207522392272949,
-0.932526171207428,
-0.27456074953079224,
-0.8297103643417358,
0.9844205975532532,
2.511479139328003,
1.1592930555343628,
-1.2717738151550293,
2.7151944637298584,
0.7035821676254272,
-0.4568692445755005,
-0.9998623728752136,
0.6436671614646912,
0.08617660403251648,
-1.1002922058105469,
-0.5421307682991028,
-0.9274694919586182,
0.010559376329183578,
-0.6544000506401062,
-0.4858444631099701,
0.020704224705696106,
0.3930813670158386,
-0.32179829478263855,
-0.2514052391052246,
-0.367868572473526,
-0.7812563180923462,
0.5539823174476624,
-0.46188101172447205,
0.8166272640228271,
-0.3645431399345398,
1.6899317502975464,
-0.5631279349327087,
0.29421746730804443,
0.6636928915977478,
1.4395685195922852,
0.20800955593585968,
-0.035155288875103,
0.20490401983261108,
0.3328464925289154,
-0.09453343600034714,
0.41683971881866455,
1.1581639051437378,
0.45061445236206055,
0.5768759250640869,
0.5904763340950012,
-2.2457597255706787,
1.37962007522583,
-0.9669304490089417,
0.12910357117652893,
1.3465359210968018,
-0.9848516583442688,
0.4280841648578644,
-1.7928184270858765,
-0.11608140170574188,
0.43672698736190796,
-2.3885133266448975,
0.21629482507705688,
-1.251570701599121,
-0.5738230347633362,
0.9478198289871216,
0.3344999849796295,
-1.347017526626587,
0.1446126252412796,
-0.4210635721683502,
1.0611079931259155,
0.3889418840408325,
1.1300041675567627,
-1.695770263671875,
-0.05728353559970856,
-0.32687288522720337,
0.08418704569339752,
-1.3950284719467163,
-1.5428075790405273,
0.5830663442611694,
0.513350248336792,
0.6695091128349304,
-0.06267362833023071,
0.9676616787910461,
-1.0195356607437134,
0.8044060468673706,
-0.8148646354675293,
-1.6435375213623047,
-1.2730870246887207,
-2.305598497390747,
-2.2451789379119873,
0.7953192591667175,
-0.5283769369125366,
-0.5491112470626831,
1.9322540760040283,
-1.116546630859375,
-1.8541940450668335,
1.136824369430542,
0.2878919243812561,
0.02775557152926922,
2.3093886375427246,
0.36726826429367065,
-0.7436284422874451,
0.5154787302017212,
-0.7548063397407532,
0.8276233077049255,
-0.4102886915206909,
1.3705883026123047,
0.6153300404548645,
-0.9795198440551758,
1.6426234245300293,
-0.4676890969276428,
0.5765120387077332,
-0.6814954876899719,
-0.5406416654586792,
-0.8991955518722534,
0.35933274030685425,
1.9413570165634155,
-0.35969939827919006,
1.675490379333496,
-0.3337426781654358,
-1.4952459335327148,
-1.5281062126159668,
0.9290030002593994,
0.5415337085723877,
-0.7737223505973816,
0.2163880169391632,
-0.33302655816078186,
0.15849953889846802,
0.06931009143590927,
1.0510203838348389,
1.304685115814209,
0.6899927854537964,
-0.2855987250804901,
-0.908406138420105,
0.31586477160453796,
0.041269272565841675,
-0.6172817945480347,
-1.9367185831069946,
-0.30876240134239197,
0.15278360247612,
0.707960844039917,
-1.1949777603149414,
1.6911671161651611,
0.9576346278190613,
2.0440139770507812,
0.9634303450584412,
-0.3369205892086029,
1.5521811246871948,
-0.12857528030872345,
1.8623212575912476,
-0.3965246081352234,
0.8292599320411682,
-0.30138781666755676,
-1.0535401105880737,
0.8606703281402588,
-0.3804011046886444,
-1.9347591400146484,
-0.8154251575469971,
-0.9332605004310608,
-0.19566482305526733,
-0.8340178728103638,
0.9850643277168274,
-0.3174155354499817,
-1.4408224821090698,
0.16919219493865967,
-0.7332166433334351,
0.07048913836479187,
-1.23685622215271,
0.24752084910869598,
0.7216595411300659,
-0.4914551377296448,
0.009846089407801628,
-0.234889954328537,
-1.2674086093902588,
-0.48540741205215454,
0.18403372168540955,
2.011383056640625,
-0.6854832172393799,
1.015724539756775,
1.063742995262146,
-0.7406806349754333,
0.006659908220171928,
0.3945165276527405,
-0.35634881258010864,
0.7825191617012024,
-1.1313778162002563,
-0.33146393299102783,
1.1736280918121338,
-0.03932208567857742,
-0.7094760537147522,
1.3746510744094849,
0.867435097694397,
-0.986693263053894,
-0.1063842698931694,
-0.23918814957141876,
-0.6421186923980713,
0.0071456898003816605,
-1.5497709512710571,
-0.19449307024478912,
0.22761280834674835,
-1.3387998342514038,
-0.4531252384185791,
-0.20237961411476135,
1.3533992767333984,
-0.19339889287948608,
1.3196123838424683,
-0.2106870412826538,
-0.1749381124973297,
-0.40835773944854736,
-0.5460963845252991,
0.15845045447349548,
-0.21455764770507812,
-0.5509531497955322,
0.3450954854488373,
-0.7721452713012695,
0.27901020646095276,
1.4160231351852417,
0.3181200623512268,
0.05907702445983887,
0.4857577085494995,
1.118615746498108,
0.41181689500808716,
-0.10771410912275314,
-0.9768859148025513,
-1.5601515769958496,
1.988642692565918,
-1.4654237031936646,
1.9769575595855713,
0.8238673806190491,
-0.07057248800992966,
-1.7293552160263062,
-1.8776614665985107,
1.3195271492004395,
1.2492642402648926,
2.3978803157806396,
0.6651314496994019,
0.28856295347213745,
-0.6941275000572205,
-0.7429861426353455,
0.3357521891593933,
-1.224134087562561,
-0.7298673391342163,
0.05471714586019516,
2.3454456329345703,
1.7226378917694092,
-0.4793730676174164,
-0.20367608964443207,
-0.8930412530899048,
1.1542774438858032,
-0.14495904743671417,
0.2003338634967804,
2.0136196613311768,
-0.3215809762477875,
-1.1817896366119385,
1.2302826642990112,
-2.233225107192993,
0.10407077521085739,
2.02689266204834,
0.36397746205329895,
-0.004590598400682211,
-1.4243137836456299,
-0.7775892615318298,
-0.13882337510585785,
-0.4408658444881439,
-1.2803975343704224,
0.6049566864967346,
-0.31068575382232666,
-0.9123642444610596,
-1.4383070468902588,
0.17454256117343903,
-1.1782963275909424,
-1.7601197957992554,
0.4268893897533417,
1.8646634817123413,
2.1749002933502197,
-0.8739281296730042,
1.4288071393966675,
-0.2107522189617157,
0.06008226424455643,
1.1802947521209717,
1.2130383253097534,
3.0606284141540527,
1.788883090019226,
-1.209536075592041,
0.7090145945549011,
-0.175093874335289,
-0.6016805768013,
1.2444051504135132,
-1.0254037380218506,
1.199971079826355,
-0.2822166085243225,
-1.127395510673523,
-1.2754590511322021,
0.8757742047309875,
0.47672125697135925,
-0.000302010215818882,
-0.4098889231681824,
1.2515980005264282,
0.1257636696100235,
1.3252638578414917,
0.4748920798301697,
-0.24081258475780487,
0.633006751537323,
-0.3956852853298187,
-0.49144530296325684,
1.5757025480270386,
0.2801104784011841,
-1.3514240980148315,
-2.3886494636535645,
-0.16912133991718292,
-0.7632395029067993,
-0.06759616732597351,
-0.6655621528625488,
-1.0749356746673584,
1.5603328943252563,
0.44386446475982666,
-1.1532405614852905,
-0.3422073423862457,
-0.33684101700782776,
-0.6882315278053284,
2.5321059226989746,
-1.4045876264572144,
-0.14928561449050903,
-0.9773653149604797,
-0.5678020715713501,
1.641121745109558,
-1.2133312225341797,
-0.14811286330223083,
-0.9620119333267212,
-0.6183891296386719,
-1.3777656555175781,
-0.5022153854370117,
-0.054939933121204376,
-0.9144574403762817,
0.6749844551086426,
0.26218923926353455,
-1.116226315498352,
-0.23770415782928467,
-0.8241406679153442,
0.7682675123214722,
-0.09578043222427368,
0.3623027503490448,
1.8040671348571777,
0.41661372780799866,
-0.3755394518375397,
0.8085775971412659,
1.2091882228851318,
0.5312766432762146,
-0.7636016607284546,
0.16271503269672394,
-0.7581966519355774,
0.3494197130203247,
-1.298100471496582,
0.3141031265258789,
-2.989061117172241,
0.7117961645126343,
-0.10113603621721268,
-0.14097264409065247,
-0.01330991555005312,
-1.3357677459716797,
1.2279863357543945,
2.593853712081909,
-1.150996208190918,
0.49261537194252014,
0.30911096930503845,
1.2428675889968872,
-1.5655497312545776,
0.2375321388244629,
-0.4021465480327606,
2.130422830581665,
0.16530996561050415,
1.2761942148208618,
-0.5149941444396973,
-2.246330976486206,
0.6732441186904907,
-1.2458559274673462,
-1.166365385055542,
0.763251006603241,
-0.8790987133979797,
-0.043257661163806915,
-1.4526690244674683,
-0.1718285083770752,
-0.9509477615356445,
-1.2500544786453247,
0.8176954388618469,
0.19463519752025604,
0.5758639574050903,
-0.6066069602966309,
0.33770474791526794,
-2.152022361755371,
-1.402461051940918,
-0.1416623890399933,
-0.9352323412895203,
0.545214056968689,
-0.3496338725090027,
0.6445931792259216,
-0.15686140954494476,
0.1464880257844925,
0.4125659465789795,
1.4162003993988037,
3.3607211112976074,
0.19297346472740173,
0.4075109362602234,
-0.11573244631290436,
-0.934138834476471,
1.42351233959198,
0.948872983455658,
-0.10726945102214813,
-0.7019515633583069,
-0.9333437085151672,
1.3108729124069214,
1.9559745788574219,
1.0503110885620117,
0.09183120727539062,
-0.976010262966156,
-0.6445378065109253,
-0.003675429616123438,
0.2964520752429962,
0.473903089761734,
1.0195940732955933,
0.04571697860956192,
0.041865356266498566,
1.39279305934906,
1.1340693235397339,
-0.5421048402786255,
0.4366861879825592,
-0.9943429827690125,
-0.313385933637619,
0.4133780896663666,
0.2142811119556427,
0.05405709147453308,
0.38854148983955383,
-0.9586642384529114,
-0.27912992238998413,
-0.2104029804468155,
-0.9683725237846375,
-0.8751154541969299,
-0.508477509021759,
-0.4051809310913086,
1.7242317199707031,
-0.005159621126949787,
-0.38692566752433777,
-0.02671533077955246,
-0.7772014141082764,
-0.03154198080301285,
-1.0493779182434082,
0.11214205622673035,
-0.19319240748882294,
-0.10963913798332214,
0.00020659714937210083,
1.7784301042556763,
-1.0095181465148926,
-2.1260881423950195,
0.33910319209098816,
0.28239142894744873,
-0.4039442241191864,
0.12643618881702423,
1.73987877368927,
0.48772308230400085,
1.3931559324264526,
1.2421462535858154,
1.0938642024993896,
-0.6769888997077942,
-1.2879337072372437,
0.6438263654708862,
0.963765561580658,
-1.317198634147644,
0.8877884745597839,
-0.05632776767015457,
-0.4517000615596771,
0.6284103989601135,
1.283976435661316,
0.4599435329437256,
-1.9650908708572388,
0.7772577404975891,
-0.8714556097984314,
0.8727051019668579,
0.6218936443328857,
0.8135356903076172,
0.20982718467712402,
0.7941333055496216,
-1.2176958322525024,
-1.1292054653167725,
-0.7915776371955872,
-0.7127368450164795,
1.8977309465408325,
-0.1790497601032257,
0.4837450683116913,
-0.16446468234062195,
-1.1933002471923828,
-0.1371268332004547,
0.7522603273391724,
0.30141422152519226,
-0.3319934606552124,
0.7689277529716492,
-0.6539117693901062,
-1.0440833568572998,
-1.4930425882339478,
-0.47840195894241333,
-0.9301597476005554,
-0.9462401866912842,
1.0510156154632568,
0.7409371137619019,
0.3292761445045471,
2.013166904449463,
0.5446293354034424,
0.2506450414657593,
-2.642930269241333,
0.8988277912139893,
0.3334990441799164,
-0.015254941768944263,
0.9645797610282898,
0.32319989800453186,
1.089418649673462,
-0.07551496475934982,
0.49643394351005554,
-2.3299264907836914,
2.241337776184082,
-0.17530573904514313,
0.5983878374099731,
0.05703826993703842,
-0.13613048195838928,
1.1076852083206177,
0.42574989795684814,
0.5978593230247498,
-1.2413520812988281,
0.7518837451934814,
-0.6416215896606445,
1.1527273654937744,
0.988941490650177,
-0.8129504919052124,
0.15132911503314972,
1.3189655542373657,
0.4717816114425659,
-0.4800739288330078,
-0.8852946758270264,
-0.8020911812782288,
0.8483445644378662,
1.7605681419372559,
-0.06064440310001373,
-0.008959292434155941,
0.7050095200538635,
0.5778872966766357,
-1.306190013885498,
0.03897617757320404,
-0.6614506840705872,
-0.7992567420005798,
1.6907775402069092,
2.053947687149048,
-0.08843249827623367,
-0.22608919441699982,
-0.8272489905357361,
-1.1679211854934692,
0.8632538914680481,
0.06086982786655426,
0.18615804612636566,
0.5477586984634399,
-0.6605809926986694,
1.3325648307800293,
0.8386402726173401,
0.9425248503684998,
0.08266595005989075,
0.39025595784187317,
0.5204466581344604,
-0.25292009115219116,
-1.0290353298187256,
-0.33364856243133545,
-1.1881468296051025,
-2.700989007949829,
0.4162862002849579,
-0.402787983417511,
-1.361327886581421,
-0.050420425832271576,
-1.0009400844573975,
0.8189366459846497,
-0.6268432140350342,
-0.9322678446769714,
-1.52102792263031,
0.27032381296157837,
-0.2224004864692688,
0.7873108386993408,
-1.669977068901062,
-0.06390491127967834,
1.3078992366790771,
1.0830490589141846,
-0.6969340443611145,
1.0529803037643433,
0.2432311624288559,
0.9746910929679871,
0.8451773524284363,
-0.49945068359375,
0.5804942846298218,
0.19310136139392853,
-1.3026838302612305,
0.4695636034011841,
1.3231490850448608,
0.16843868792057037,
1.4405149221420288,
-0.44398146867752075,
-0.03072456456720829,
0.4596940875053406,
-0.47634631395339966,
-0.5585965514183044,
-0.6027156114578247,
0.7912567853927612,
0.08531831204891205,
-1.0472297668457031,
0.09225032478570938,
-0.11621466279029846,
-0.17191971838474274,
0.24230171740055084,
-1.5404516458511353,
-0.39036425948143005,
-0.4262256324291229,
-0.4666164219379425,
-1.291846513748169,
-0.017173022031784058,
1.3117817640304565,
-0.66484135389328,
-0.26058268547058105,
0.4331433176994324,
0.44507932662963867,
0.475559800863266,
0.5830766558647156,
-0.6844297647476196,
-0.4473535418510437,
-0.2912067472934723,
-0.331600159406662,
0.39307886362075806,
1.2267489433288574,
-0.1650393009185791,
-1.017598271369934,
0.6535245180130005,
-0.3847678303718567,
0.048868678510189056,
1.9192543029785156,
0.028907762840390205,
-0.8022608757019043,
0.20141662657260895,
-0.6276406049728394,
1.93248450756073,
1.5424565076828003,
1.2988778352737427,
0.018675601109862328,
-0.7718167304992676,
0.6515895128250122,
-0.14183197915554047,
-0.38584762811660767,
0.9790225028991699,
0.4748417139053345,
-0.24040500819683075,
-1.485479712486267,
0.44186633825302124,
1.283867597579956,
-0.8628008961677551,
-0.8442802429199219,
-0.1335042119026184,
-0.8006792068481445,
1.1834584474563599,
0.6754366755485535,
0.29705533385276794,
0.34468716382980347,
1.6961432695388794,
0.6651614904403687,
-0.5310669541358948,
0.46740826964378357,
0.3363533318042755,
-0.14665859937667847,
-2.130753755569458,
-1.0922048091888428,
0.36128726601600647,
-0.34918928146362305,
-1.481621503829956,
1.440330982208252,
-1.1289581060409546,
-0.8804863095283508,
0.6109943389892578,
0.13405881822109222,
1.4092625379562378,
0.264695942401886,
1.7296918630599976,
2.066343069076538,
0.948160707950592,
0.12723560631275177,
1.3487759828567505,
-0.27810558676719666,
-0.410366028547287,
1.8469781875610352,
-0.46300315856933594,
0.42339473962783813,
0.9010049104690552,
-0.3073076903820038,
-1.0518815517425537,
-0.8381635546684265,
-1.1629794836044312,
-0.6773859858512878,
1.2221723794937134,
0.235050231218338,
-1.1283323764801025,
0.2347581386566162,
1.6015135049819946,
0.13921095430850983,
-0.1363198161125183,
0.6083273887634277,
0.5543041825294495,
-0.78645920753479,
-0.01221920270472765,
-0.9310111999511719,
0.5237681269645691,
-0.11331602185964584,
-0.2894701063632965,
0.30826133489608765,
0.5367894172668457,
1.1805305480957031,
-0.04740522801876068,
0.03790855407714844,
1.2461683750152588,
-1.431779384613037,
1.6291615962982178,
-0.5550855994224548,
0.26484501361846924,
-2.426084280014038,
1.3815217018127441,
-0.8199084401130676,
1.8886903524398804,
-2.571115732192993,
0.33123350143432617,
-0.566761314868927,
-0.4461522698402405,
0.33816495537757874,
-0.41596996784210205,
0.2622744143009186,
-0.2616177797317505,
-1.0177369117736816,
-0.04920239746570587,
-0.821768045425415,
0.5013502836227417,
1.1685000658035278,
1.252660870552063,
-1.015622615814209,
-0.2267434298992157,
-1.7885297536849976,
-0.18773005902767181,
-0.5684873461723328,
0.2091481238603592,
-2.062011957168579,
-0.2504744529724121,
-2.098921775817871,
-2.2079477310180664,
-1.3846182823181152,
-0.7619339227676392,
1.043902039527893,
0.16754452884197235,
-0.8751512169837952,
0.9680232405662537,
-0.41451942920684814,
-1.7824701070785522,
1.1368213891983032,
-2.1127536296844482
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | When passing `device=-1`, ALL existing GPUs are used (multi GPU): this is the maximum speedup you can get. To know the number of total GPUs:
```
import faiss
ngpus = faiss.get_num_gpus()
print(ngpus)
```
When passing a list of integers to `device`, then only that number of GPUs are used (multi GPU as well)
- the speedup should be proportional (more or less) to the ratio of the number of elements passed to `device` over `ngpus`
- if this is not the case, then there is an issue in the implementation of this use case (however, I have reviewed the code and in principle I can't find any evident bug)
When passing a positive integer to `device`, then only a single GPU is used.
- this time should be more or less proportional to the time when passing `device=-1` over `ngpus` | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 140 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
When passing `device=-1`, ALL existing GPUs are used (multi GPU): this is the maximum speedup you can get. To know the number of total GPUs:
```
import faiss
ngpus = faiss.get_num_gpus()
print(ngpus)
```
When passing a list of integers to `device`, then only that number of GPUs are used (multi GPU as well)
- the speedup should be proportional (more or less) to the ratio of the number of elements passed to `device` over `ngpus`
- if this is not the case, then there is an issue in the implementation of this use case (however, I have reviewed the code and in principle I can't find any evident bug)
When passing a positive integer to `device`, then only a single GPU is used.
- this time should be more or less proportional to the time when passing `device=-1` over `ngpus` | [
-1.1754785776138306,
-0.8435770869255066,
-0.8084506392478943,
1.510048270225525,
-0.07016807794570923,
-1.2618257999420166,
0.08139647543430328,
-1.11594557762146,
1.672089695930481,
-0.8427186012268066,
0.3733464181423187,
-1.5837574005126953,
0.07195086777210236,
-0.6386392116546631,
-0.8676155209541321,
-0.8167718052864075,
-0.38022109866142273,
-0.7631285786628723,
0.9411288499832153,
2.49049973487854,
1.2265626192092896,
-1.3541327714920044,
2.6575393676757812,
0.689775288105011,
-0.2380012422800064,
-0.9973669052124023,
0.5072864294052124,
0.005725954659283161,
-1.1686891317367554,
-0.5547041893005371,
-0.8712103962898254,
-0.1054987907409668,
-0.6603745222091675,
-0.6117584109306335,
-0.020700762048363686,
0.45565253496170044,
-0.3031568229198456,
-0.36572086811065674,
-0.3835790753364563,
-0.8819025158882141,
0.5781680345535278,
-0.4293763339519501,
0.8749449253082275,
-0.29678812623023987,
1.7768577337265015,
-0.621261715888977,
0.42569583654403687,
0.6918677687644958,
1.4496076107025146,
0.257574200630188,
-0.10220394283533096,
0.31924206018447876,
0.298817902803421,
-0.00833340547978878,
0.5310338735580444,
1.177564263343811,
0.6057095527648926,
0.5114465355873108,
0.7280943989753723,
-2.2585291862487793,
1.253736138343811,
-1.0556366443634033,
0.24115346372127533,
1.2594047784805298,
-0.9212369918823242,
0.3857332170009613,
-1.8489471673965454,
-0.10601881146430969,
0.5337510108947754,
-2.3179538249969482,
0.19136770069599152,
-1.2454755306243896,
-0.4299370348453522,
1.0426902770996094,
0.30702757835388184,
-1.351021647453308,
0.14562617242336273,
-0.38705745339393616,
1.0057200193405151,
0.384195476770401,
1.0993931293487549,
-1.7221851348876953,
-0.030031319707632065,
-0.3460621237754822,
0.15557898581027985,
-1.2928367853164673,
-1.5073853731155396,
0.5176871418952942,
0.5652531385421753,
0.49680647253990173,
-0.11954813450574875,
0.9674699902534485,
-0.967555582523346,
0.8123155236244202,
-0.9747906923294067,
-1.7471096515655518,
-1.3900812864303589,
-2.1787993907928467,
-2.2461037635803223,
0.7415464520454407,
-0.523454487323761,
-0.5733399987220764,
1.9570120573043823,
-1.0178086757659912,
-1.807557225227356,
1.1650400161743164,
0.30399438738822937,
-0.01955673098564148,
2.3141846656799316,
0.23011213541030884,
-0.7845087051391602,
0.5357070565223694,
-0.6933550238609314,
0.7685935497283936,
-0.4580451548099518,
1.3927932977676392,
0.5508220195770264,
-1.1628926992416382,
1.698254942893982,
-0.4860880970954895,
0.5111536383628845,
-0.757198691368103,
-0.5014880895614624,
-0.7406702637672424,
0.44368594884872437,
1.877373218536377,
-0.30869531631469727,
1.6097664833068848,
-0.32982125878334045,
-1.5152804851531982,
-1.5333735942840576,
0.963190495967865,
0.49590298533439636,
-0.7438752055168152,
0.24611040949821472,
-0.33976686000823975,
0.141109898686409,
-0.03617829829454422,
1.1036338806152344,
1.2941917181015015,
0.7242794632911682,
-0.30116695165634155,
-0.8530173301696777,
0.25533527135849,
-0.01244385540485382,
-0.6793843507766724,
-1.8435791730880737,
-0.3394627273082733,
0.1662750244140625,
0.6035925149917603,
-1.159245491027832,
1.7882055044174194,
0.952620267868042,
1.9557920694351196,
1.0683624744415283,
-0.3423420190811157,
1.545825719833374,
-0.017160888761281967,
1.9290965795516968,
-0.3709580600261688,
0.7481638789176941,
-0.355019748210907,
-1.1001863479614258,
0.8294283151626587,
-0.38061219453811646,
-2.024714469909668,
-0.7273602485656738,
-0.8317164778709412,
-0.17898736894130707,
-0.8206223249435425,
0.9760580062866211,
-0.21592655777931213,
-1.418588399887085,
0.21713568270206451,
-0.7297731041908264,
0.11362432688474655,
-1.2295490503311157,
0.3701932430267334,
0.7296649813652039,
-0.6079238653182983,
0.14354778826236725,
-0.29171109199523926,
-1.2332453727722168,
-0.5783914923667908,
0.18323853611946106,
1.8918709754943848,
-0.8353976011276245,
0.9066305756568909,
1.0512102842330933,
-0.6888117790222168,
-0.023341752588748932,
0.46698230504989624,
-0.3771379888057709,
0.8175490498542786,
-1.0433101654052734,
-0.4072360098361969,
1.2119617462158203,
-0.128206267952919,
-0.6894687414169312,
1.4354112148284912,
0.8123094439506531,
-0.9865972995758057,
-0.078623466193676,
-0.212917760014534,
-0.9037683010101318,
0.1000145673751831,
-1.5982704162597656,
-0.0619157999753952,
0.27537113428115845,
-1.4777792692184448,
-0.40694570541381836,
-0.13921160995960236,
1.3746848106384277,
-0.17781290411949158,
1.4184733629226685,
-0.3981783986091614,
-0.16727757453918457,
-0.3650374114513397,
-0.4755710959434509,
0.14817559719085693,
-0.21142742037773132,
-0.6586654782295227,
0.29666098952293396,
-0.6662279963493347,
0.3514687120914459,
1.3498116731643677,
0.33575356006622314,
0.02507951483130455,
0.4904230535030365,
1.2468446493148804,
0.2976098954677582,
-0.01703229919075966,
-0.8901350498199463,
-1.569517731666565,
1.9956645965576172,
-1.4917269945144653,
1.963543176651001,
0.8037400841712952,
-0.015760906040668488,
-1.7038044929504395,
-1.7550816535949707,
1.3355038166046143,
1.1907708644866943,
2.416970729827881,
0.6858382821083069,
0.38260358572006226,
-0.7812670469284058,
-0.5959440469741821,
0.42427003383636475,
-1.106316328048706,
-0.8103504180908203,
0.04622510075569153,
2.37142276763916,
1.7953201532363892,
-0.4338773488998413,
-0.22136637568473816,
-0.9986768364906311,
1.3710719347000122,
-0.19548119604587555,
0.16481660306453705,
2.009962558746338,
-0.22565387189388275,
-1.1292262077331543,
1.3017609119415283,
-2.3178439140319824,
0.1424841582775116,
2.022404670715332,
0.34734034538269043,
-0.015130281448364258,
-1.368682861328125,
-0.6774045825004578,
-0.10840847343206406,
-0.3796447217464447,
-1.2340348958969116,
0.5285208821296692,
-0.31734272837638855,
-0.8122564554214478,
-1.4215441942214966,
0.15892845392227173,
-1.183597445487976,
-1.6937623023986816,
0.35848695039749146,
1.7935423851013184,
2.070319175720215,
-0.7195622324943542,
1.5909082889556885,
-0.2714654505252838,
0.17947037518024445,
1.2598400115966797,
1.3105324506759644,
3.1375133991241455,
1.826626181602478,
-1.3210046291351318,
0.6216222643852234,
-0.25072386860847473,
-0.6123583912849426,
1.2101460695266724,
-1.146619439125061,
1.2437846660614014,
-0.2580661177635193,
-1.1627169847488403,
-1.2303457260131836,
0.9405460953712463,
0.5073068737983704,
0.08940035849809647,
-0.4873804450035095,
1.131771206855774,
0.15232150256633759,
1.2558834552764893,
0.5364109873771667,
-0.2827240228652954,
0.6112278699874878,
-0.37813231348991394,
-0.5146750211715698,
1.477992057800293,
0.2639312148094177,
-1.2646284103393555,
-2.3340203762054443,
-0.051080409437417984,
-0.8420731425285339,
-0.06384700536727905,
-0.6472318768501282,
-1.0323753356933594,
1.5767494440078735,
0.3870851695537567,
-1.2598609924316406,
-0.3440468907356262,
-0.3206236958503723,
-0.7260807156562805,
2.5959665775299072,
-1.4339112043380737,
-0.30500316619873047,
-1.0172983407974243,
-0.6197245717048645,
1.6665616035461426,
-1.1977975368499756,
-0.16361548006534576,
-0.9429872035980225,
-0.6107286214828491,
-1.320407509803772,
-0.5640164613723755,
-0.04266287758946419,
-0.8349911570549011,
0.8492977619171143,
0.2411426603794098,
-1.2180718183517456,
-0.35084590315818787,
-0.8404272198677063,
0.7058106660842896,
-0.17430844902992249,
0.34533870220184326,
1.8096824884414673,
0.4924589693546295,
-0.4118148386478424,
0.7794880270957947,
1.177135705947876,
0.6289151310920715,
-0.564132034778595,
0.2599106729030609,
-0.664862871170044,
0.26895540952682495,
-1.3507616519927979,
0.38489386439323425,
-2.8652942180633545,
0.664635181427002,
-0.00953778624534607,
-0.03357179835438728,
-0.07137490063905716,
-1.355373740196228,
1.0690118074417114,
2.610231637954712,
-1.117322564125061,
0.34774336218833923,
0.28404736518859863,
1.2577040195465088,
-1.6991734504699707,
0.2894141376018524,
-0.38139206171035767,
2.094041585922241,
0.11864116787910461,
1.2147904634475708,
-0.41933244466781616,
-2.371779441833496,
0.5878714323043823,
-1.2406967878341675,
-1.1890873908996582,
0.8524782657623291,
-0.7533953785896301,
-0.09119534492492676,
-1.4429770708084106,
-0.19788645207881927,
-0.8814147710800171,
-1.1961781978607178,
0.922954261302948,
0.20769277215003967,
0.5903599262237549,
-0.6070118546485901,
0.35919293761253357,
-2.120466947555542,
-1.4196290969848633,
-0.23080359399318695,
-0.7899658679962158,
0.4910036623477936,
-0.3228590786457062,
0.7320408821105957,
-0.22083957493305206,
0.03368707373738289,
0.3744877874851227,
1.4569734334945679,
3.361853837966919,
0.29219281673431396,
0.4707089066505432,
-0.2316015213727951,
-0.8714021444320679,
1.4067233800888062,
0.8307862877845764,
-0.2128790020942688,
-0.6144925355911255,
-0.9843181371688843,
1.2140223979949951,
1.8963336944580078,
0.9848934412002563,
0.05021205544471741,
-0.8970878720283508,
-0.7201768755912781,
-0.06566748023033142,
0.1856260746717453,
0.4625681936740875,
0.9546351432800293,
0.08954133838415146,
0.038262009620666504,
1.3705253601074219,
1.184704303741455,
-0.5560440421104431,
0.4024594724178314,
-0.7873793244361877,
-0.3164038062095642,
0.4856679141521454,
0.293657511472702,
0.025051504373550415,
0.33014559745788574,
-0.9581082463264465,
-0.2605994939804077,
-0.3086857497692108,
-0.97481769323349,
-0.7778552770614624,
-0.5772973895072937,
-0.3848547637462616,
1.689225673675537,
0.011377071030437946,
-0.43565085530281067,
-0.08669079840183258,
-0.805906355381012,
-0.08976753801107407,
-1.054776906967163,
0.12160991132259369,
-0.06287479400634766,
-0.1902778148651123,
-0.10278058052062988,
1.8166121244430542,
-0.9288930892944336,
-2.089062452316284,
0.2823122441768646,
0.2626880705356598,
-0.41059738397598267,
0.13463513553142548,
1.6824744939804077,
0.43753954768180847,
1.3564032316207886,
1.3467360734939575,
0.998824417591095,
-0.6248577833175659,
-1.2656265497207642,
0.651231586933136,
1.0142838954925537,
-1.3806912899017334,
0.8537513017654419,
0.04571380093693733,
-0.39246422052383423,
0.6562486886978149,
1.2893275022506714,
0.44617417454719543,
-1.9642016887664795,
0.7107993960380554,
-0.9010142683982849,
0.8227666020393372,
0.6346063613891602,
0.6434668302536011,
0.20635086297988892,
0.7487325668334961,
-1.2599945068359375,
-1.2581621408462524,
-0.7273310422897339,
-0.7549389600753784,
1.9035093784332275,
-0.13640707731246948,
0.5002816915512085,
-0.03712916374206543,
-1.38502037525177,
-0.11074023693799973,
0.7776172161102295,
0.37063997983932495,
-0.4164881706237793,
0.7046858668327332,
-0.7049732804298401,
-1.0831100940704346,
-1.4788576364517212,
-0.4360925555229187,
-0.969717800617218,
-0.9231446981430054,
1.0008280277252197,
0.8158299922943115,
0.268297016620636,
1.9363603591918945,
0.6584612727165222,
0.1876194179058075,
-2.6320242881774902,
0.8744039535522461,
0.3846278488636017,
-0.09048311412334442,
0.9021893739700317,
0.275574266910553,
1.0213236808776855,
0.02944885566830635,
0.5802049040794373,
-2.4921634197235107,
2.2877233028411865,
-0.18940648436546326,
0.6484839916229248,
-0.023278336971998215,
-0.24571846425533295,
1.0675311088562012,
0.4761292040348053,
0.5056692957878113,
-1.1333588361740112,
0.7146608829498291,
-0.6822654604911804,
1.2387956380844116,
0.8991410732269287,
-0.8483161926269531,
0.027215901762247086,
1.3476186990737915,
0.46155786514282227,
-0.564017653465271,
-0.8266908526420593,
-0.9166597127914429,
0.878953218460083,
1.7525185346603394,
0.0491316020488739,
-0.02569575235247612,
0.8327291011810303,
0.6452305912971497,
-1.3214210271835327,
0.13714838027954102,
-0.7529403567314148,
-0.8403490781784058,
1.671138048171997,
2.062455177307129,
-0.15686218440532684,
-0.20129714906215668,
-0.8118828535079956,
-1.165940284729004,
0.8609092831611633,
0.03509199991822243,
0.1396259218454361,
0.59541916847229,
-0.7004828453063965,
1.213744878768921,
0.9672686457633972,
0.902571439743042,
0.23591704666614532,
0.2820442020893097,
0.46109944581985474,
-0.2654503583908081,
-1.062194585800171,
-0.28980445861816406,
-1.2119736671447754,
-2.6612823009490967,
0.4695531725883484,
-0.26856252551078796,
-1.390123724937439,
0.020979583263397217,
-0.9873834252357483,
0.7907134890556335,
-0.6093552708625793,
-1.0995335578918457,
-1.531041145324707,
0.26321256160736084,
-0.10049635916948318,
0.711724042892456,
-1.6194485425949097,
-0.03990134224295616,
1.2153955698013306,
0.931947648525238,
-0.7005599141120911,
0.9278097748756409,
0.28619298338890076,
1.0395796298980713,
0.9661020636558533,
-0.47242945432662964,
0.5335685014724731,
0.09176997095346451,
-1.3495588302612305,
0.4809643030166626,
1.2601628303527832,
0.11423840373754501,
1.4800591468811035,
-0.49608010053634644,
-0.0431838221848011,
0.31061920523643494,
-0.49170297384262085,
-0.5220938920974731,
-0.681329607963562,
0.6897040009498596,
0.06516541540622711,
-0.8982755541801453,
0.12078243494033813,
-0.022220412269234657,
-0.21476036310195923,
0.1590915471315384,
-1.5565515756607056,
-0.14256568253040314,
-0.37736254930496216,
-0.5412015914916992,
-1.2559337615966797,
-0.06482334434986115,
1.3463890552520752,
-0.6975691318511963,
-0.21277907490730286,
0.4718579947948456,
0.3372933268547058,
0.48253878951072693,
0.6108845472335815,
-0.5642206072807312,
-0.44750669598579407,
-0.22028560936450958,
-0.3650381565093994,
0.37259939312934875,
1.3250631093978882,
-0.09387917071580887,
-0.9032350778579712,
0.7527319192886353,
-0.43420758843421936,
-0.00943079125136137,
1.8644566535949707,
0.13127018511295319,
-0.8221446871757507,
0.32621124386787415,
-0.7046756148338318,
1.9618504047393799,
1.7330412864685059,
1.2556029558181763,
-0.019762134179472923,
-0.9573201537132263,
0.6417697072029114,
-0.3445119857788086,
-0.3887159526348114,
0.9516109824180603,
0.39907774329185486,
-0.15136191248893738,
-1.367271065711975,
0.58319091796875,
1.2926223278045654,
-0.7644839286804199,
-0.7796698212623596,
-0.0791461318731308,
-0.8280643820762634,
1.0848222970962524,
0.7021567225456238,
0.3846357762813568,
0.2612934708595276,
1.6454702615737915,
0.662970244884491,
-0.46189117431640625,
0.5695264935493469,
0.41117992997169495,
-0.09325475990772247,
-2.1459460258483887,
-1.1963106393814087,
0.3561877906322479,
-0.3737328052520752,
-1.5619038343429565,
1.3596583604812622,
-1.2261556386947632,
-0.927333652973175,
0.6190218925476074,
0.08498134464025497,
1.4733514785766602,
0.29138386249542236,
1.602433204650879,
2.1192755699157715,
0.900569498538971,
0.29175853729248047,
1.2642881870269775,
-0.17897489666938782,
-0.415144681930542,
1.8633657693862915,
-0.45558464527130127,
0.45997434854507446,
1.0337294340133667,
-0.25599855184555054,
-1.136627435684204,
-0.7988210916519165,
-1.2583428621292114,
-0.6999779343605042,
1.2173287868499756,
0.10575944930315018,
-1.1790128946304321,
0.3161282539367676,
1.6863031387329102,
0.07766186445951462,
-0.32466650009155273,
0.6110675930976868,
0.48300400376319885,
-0.8324342966079712,
0.01077971700578928,
-0.9085394144058228,
0.5260000824928284,
-0.15224333107471466,
-0.32647716999053955,
0.393322616815567,
0.5221138596534729,
1.2128559350967407,
-0.03439908102154732,
0.06942224502563477,
1.1891645193099976,
-1.4852358102798462,
1.5135997533798218,
-0.7073438763618469,
0.2942993938922882,
-2.3089599609375,
1.4137121438980103,
-0.8614506125450134,
1.9054181575775146,
-2.5651841163635254,
0.32844990491867065,
-0.5311484932899475,
-0.4630189836025238,
0.4110663831233978,
-0.3721279799938202,
0.15187323093414307,
-0.20350299775600433,
-1.0919570922851562,
-0.06924734264612198,
-0.6811748147010803,
0.5666152834892273,
1.184226393699646,
1.334596037864685,
-1.1295650005340576,
-0.24912123382091522,
-1.7060467004776,
-0.18889382481575012,
-0.5094034671783447,
0.26754817366600037,
-1.9413948059082031,
-0.1737082302570343,
-2.082456588745117,
-2.2015562057495117,
-1.381292462348938,
-0.8027336001396179,
1.0306910276412964,
0.11875756084918976,
-0.8877280354499817,
1.0055267810821533,
-0.45695504546165466,
-1.7977259159088135,
1.0650699138641357,
-2.0919504165649414
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Thanks for your help!
Have you run the code and replicated the same experimental results (i.e., no speedup while increasing the number of GPUs)? | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 24 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Thanks for your help!
Have you run the code and replicated the same experimental results (i.e., no speedup while increasing the number of GPUs)? | [
-1.29527747631073,
-0.8644013404846191,
-0.9371532201766968,
1.4826208353042603,
-0.09479209780693054,
-1.3160074949264526,
0.019853202626109123,
-1.0725992918014526,
1.653076171875,
-0.8150683641433716,
0.2204941213130951,
-1.578590989112854,
0.02743009477853775,
-0.4464920461177826,
-0.6726579666137695,
-0.9077775478363037,
-0.3307054936885834,
-0.8930918574333191,
1.0006225109100342,
2.5390102863311768,
1.1375588178634644,
-1.2865898609161377,
2.7747457027435303,
0.7007048726081848,
-0.4173179566860199,
-1.0729501247406006,
0.6195428371429443,
0.10215356200933456,
-1.1582577228546143,
-0.5932437181472778,
-0.9162058234214783,
0.03653670847415924,
-0.6213924884796143,
-0.4797041714191437,
0.032503388822078705,
0.4278700351715088,
-0.29040467739105225,
-0.26877540349960327,
-0.33953219652175903,
-0.78132563829422,
0.5611772537231445,
-0.4073413610458374,
0.858496904373169,
-0.3681616187095642,
1.7011134624481201,
-0.531084418296814,
0.3214166462421417,
0.6535520553588867,
1.4746171236038208,
0.2404044270515442,
-0.09192949533462524,
0.17912179231643677,
0.3631536662578583,
-0.053719766438007355,
0.3804525136947632,
1.1597671508789062,
0.4685080647468567,
0.5540145039558411,
0.5707628130912781,
-2.1707444190979004,
1.3331435918807983,
-0.9431200623512268,
0.14757513999938965,
1.3786413669586182,
-1.0122437477111816,
0.3821028769016266,
-1.7564822435379028,
-0.14414367079734802,
0.4735182225704193,
-2.385133743286133,
0.20534297823905945,
-1.2323092222213745,
-0.5384177565574646,
0.9955679774284363,
0.26585814356803894,
-1.3212467432022095,
0.16267618536949158,
-0.4839029014110565,
1.0793706178665161,
0.4315454363822937,
1.1370097398757935,
-1.6730347871780396,
-0.05813285708427429,
-0.3099023103713989,
0.005135693587362766,
-1.381618857383728,
-1.5349547863006592,
0.5733402967453003,
0.5201296210289001,
0.6813531517982483,
-0.04561233147978783,
0.9690925478935242,
-1.0174200534820557,
0.8503051400184631,
-0.8308987021446228,
-1.628416657447815,
-1.2566072940826416,
-2.3079638481140137,
-2.2639060020446777,
0.8417002558708191,
-0.49199289083480835,
-0.5418649911880493,
1.95564866065979,
-1.0964757204055786,
-1.8620378971099854,
1.0972299575805664,
0.3068126440048218,
0.031200483441352844,
2.3293380737304688,
0.3664955496788025,
-0.7575960755348206,
0.5028261542320251,
-0.7068449854850769,
0.8601589798927307,
-0.47433069348335266,
1.4164127111434937,
0.6436730623245239,
-0.971345067024231,
1.6366486549377441,
-0.45899778604507446,
0.5952860713005066,
-0.6818861365318298,
-0.5260508060455322,
-0.9622064232826233,
0.43390220403671265,
1.9670740365982056,
-0.3574906587600708,
1.6847158670425415,
-0.3232905864715576,
-1.5616482496261597,
-1.5321764945983887,
0.8981291055679321,
0.5479668974876404,
-0.8498609066009521,
0.19536584615707397,
-0.36236056685447693,
0.09673681855201721,
0.06031116843223572,
1.0560722351074219,
1.27068293094635,
0.7049132585525513,
-0.2981726825237274,
-0.9363909363746643,
0.31714171171188354,
0.008376283571124077,
-0.6022402048110962,
-1.9212919473648071,
-0.3078191876411438,
0.09320886433124542,
0.7598065137863159,
-1.2168240547180176,
1.6554756164550781,
0.9806874394416809,
2.0070295333862305,
0.97222501039505,
-0.33440837264060974,
1.5550378561019897,
-0.10847589373588562,
1.8608899116516113,
-0.4560735821723938,
0.8000208139419556,
-0.31613218784332275,
-1.0586634874343872,
0.8805139064788818,
-0.34997233748435974,
-1.911071538925171,
-0.8415437340736389,
-0.8971722722053528,
-0.2084488868713379,
-0.8604142069816589,
0.9892336130142212,
-0.36042067408561707,
-1.4738531112670898,
0.20241448283195496,
-0.7026826739311218,
0.11212780326604843,
-1.2324402332305908,
0.2488557994365692,
0.7505828738212585,
-0.4933722913265228,
-0.008209113962948322,
-0.21394389867782593,
-1.2958744764328003,
-0.505614161491394,
0.19672328233718872,
2.029341459274292,
-0.7091546654701233,
1.0558693408966064,
1.0460617542266846,
-0.7407862544059753,
0.048549260944128036,
0.3762390911579132,
-0.31635114550590515,
0.8346782922744751,
-1.162611484527588,
-0.2973867356777191,
1.1980563402175903,
-0.1280738115310669,
-0.6663264632225037,
1.4513641595840454,
0.888714075088501,
-1.0139691829681396,
-0.09336993843317032,
-0.19198480248451233,
-0.737115740776062,
0.003341875970363617,
-1.5333930253982544,
-0.20873135328292847,
0.20749297738075256,
-1.3503092527389526,
-0.48211419582366943,
-0.1723046898841858,
1.366369605064392,
-0.2063920497894287,
1.3742491006851196,
-0.3101469576358795,
-0.24214458465576172,
-0.41153812408447266,
-0.5324592590332031,
0.19248521327972412,
-0.2256210446357727,
-0.5611774921417236,
0.30270999670028687,
-0.7748998999595642,
0.27647918462753296,
1.4343756437301636,
0.3809259235858917,
0.07782643288373947,
0.5352771282196045,
1.156649112701416,
0.3755415081977844,
-0.12786731123924255,
-0.9497655630111694,
-1.5988377332687378,
2.0218734741210938,
-1.4912452697753906,
1.9347949028015137,
0.7924803495407104,
-0.12681271135807037,
-1.7051178216934204,
-1.8280295133590698,
1.3191598653793335,
1.2193125486373901,
2.3958325386047363,
0.6481382846832275,
0.31691646575927734,
-0.6830503344535828,
-0.7465173602104187,
0.32490989565849304,
-1.2496669292449951,
-0.7068727016448975,
0.049628715962171555,
2.2951266765594482,
1.7455923557281494,
-0.526090145111084,
-0.26022860407829285,
-0.9221530556678772,
1.1518592834472656,
-0.1587369441986084,
0.2198353111743927,
1.9901248216629028,
-0.3225896954536438,
-1.119554877281189,
1.2150267362594604,
-2.262773275375366,
0.15999513864517212,
2.107797622680664,
0.40563735365867615,
-0.005189232528209686,
-1.4547089338302612,
-0.7404572367668152,
-0.13041424751281738,
-0.4409976601600647,
-1.294746994972229,
0.581683337688446,
-0.34788641333580017,
-0.90277099609375,
-1.4842602014541626,
0.16269797086715698,
-1.1922459602355957,
-1.7391963005065918,
0.44416889548301697,
1.8512767553329468,
2.1445882320404053,
-0.7443673014640808,
1.4521207809448242,
-0.20378512144088745,
0.1051006093621254,
1.1937100887298584,
1.2112294435501099,
3.042964220046997,
1.7857935428619385,
-1.1530991792678833,
0.7441509366035461,
-0.15091046690940857,
-0.5475605130195618,
1.1619278192520142,
-0.997247576713562,
1.243859887123108,
-0.27336207032203674,
-1.1348397731781006,
-1.2619428634643555,
0.8871071934700012,
0.4762018620967865,
0.0512201152741909,
-0.4191019535064697,
1.2495505809783936,
0.09102349728345871,
1.2672730684280396,
0.4427641034126282,
-0.30230090022087097,
0.6051599979400635,
-0.39057064056396484,
-0.5037664175033569,
1.5251692533493042,
0.2757476568222046,
-1.4078701734542847,
-2.364142417907715,
-0.20781108736991882,
-0.725898802280426,
-0.07874274998903275,
-0.6667274832725525,
-1.068659782409668,
1.5529946088790894,
0.4752679467201233,
-1.1878677606582642,
-0.3611191511154175,
-0.3596039414405823,
-0.7051281929016113,
2.567990303039551,
-1.3867157697677612,
-0.1830444633960724,
-0.952484130859375,
-0.5625908374786377,
1.646279215812683,
-1.239129900932312,
-0.11142624169588089,
-0.9233142137527466,
-0.6624202132225037,
-1.375084400177002,
-0.5140669345855713,
-0.03442453593015671,
-0.9428918957710266,
0.6812856197357178,
0.21110126376152039,
-1.076074242591858,
-0.24259912967681885,
-0.8020285964012146,
0.7350375652313232,
-0.05436772480607033,
0.36691150069236755,
1.7916901111602783,
0.4223426878452301,
-0.43995243310928345,
0.774616539478302,
1.1924731731414795,
0.5664021372795105,
-0.7317358255386353,
0.08843886852264404,
-0.7380989193916321,
0.3061616122722626,
-1.2840168476104736,
0.29541221261024475,
-3.014019250869751,
0.7128005027770996,
-0.10323582589626312,
-0.1326991617679596,
-0.024614987894892693,
-1.3073064088821411,
1.2188684940338135,
2.590878963470459,
-1.1496797800064087,
0.4808143377304077,
0.31485292315483093,
1.2504218816757202,
-1.540798306465149,
0.23592698574066162,
-0.3743513822555542,
2.0723156929016113,
0.16417533159255981,
1.2696508169174194,
-0.5062549114227295,
-2.2222864627838135,
0.6996518969535828,
-1.2119207382202148,
-1.1689531803131104,
0.7512515783309937,
-0.8832694292068481,
-0.0010919850319623947,
-1.45791757106781,
-0.15974745154380798,
-0.9387921094894409,
-1.2451149225234985,
0.852161169052124,
0.1674482226371765,
0.49726057052612305,
-0.6321150660514832,
0.30806130170822144,
-2.1309261322021484,
-1.3557591438293457,
-0.1263405978679657,
-0.9344088435173035,
0.4884786903858185,
-0.39683428406715393,
0.5860334038734436,
-0.16041171550750732,
0.12191247195005417,
0.33218345046043396,
1.4038573503494263,
3.366199016571045,
0.1772250235080719,
0.40948912501335144,
-0.10710389167070389,
-0.9239542484283447,
1.453721046447754,
1.0208383798599243,
-0.11602337658405304,
-0.6901763081550598,
-0.8934996724128723,
1.3207780122756958,
1.9616039991378784,
1.0239100456237793,
0.08390830457210541,
-0.9409773349761963,
-0.6795505285263062,
-0.04319397360086441,
0.24582546949386597,
0.5078230500221252,
0.9784356355667114,
0.014247961342334747,
0.012919530272483826,
1.4380147457122803,
1.1267964839935303,
-0.536880612373352,
0.43437638878822327,
-0.9596327543258667,
-0.2973804175853729,
0.4547049403190613,
0.2764875590801239,
0.07524608075618744,
0.38588032126426697,
-0.9698377251625061,
-0.2587205767631531,
-0.23207947611808777,
-1.00529944896698,
-0.8416075706481934,
-0.5185649394989014,
-0.3849669396877289,
1.7168023586273193,
0.013117501512169838,
-0.39522644877433777,
-0.08408961445093155,
-0.8281504511833191,
-0.05561171844601631,
-1.0395539999008179,
0.11869116872549057,
-0.1615433692932129,
-0.0929100513458252,
-0.007362219970673323,
1.8211919069290161,
-1.0049940347671509,
-2.1672487258911133,
0.3173995912075043,
0.2622981667518616,
-0.3522488474845886,
0.12741908431053162,
1.699651837348938,
0.5137929916381836,
1.3882195949554443,
1.2549904584884644,
1.0699536800384521,
-0.644763708114624,
-1.272325038909912,
0.6831748485565186,
0.9261468052864075,
-1.3473542928695679,
0.875096321105957,
-0.08459149301052094,
-0.4496269226074219,
0.708651065826416,
1.3023910522460938,
0.44480252265930176,
-1.9846688508987427,
0.7895342111587524,
-0.8441554307937622,
0.8003002405166626,
0.6239020824432373,
0.7615811228752136,
0.23406177759170532,
0.8248933553695679,
-1.269829273223877,
-1.1640679836273193,
-0.8230236768722534,
-0.7043352723121643,
1.884569764137268,
-0.17087024450302124,
0.48824483156204224,
-0.1295558512210846,
-1.1899585723876953,
-0.16626551747322083,
0.7433555722236633,
0.3359271287918091,
-0.295492947101593,
0.782101571559906,
-0.6890385150909424,
-1.0780401229858398,
-1.4628058671951294,
-0.49683210253715515,
-0.8893221616744995,
-0.9494079351425171,
1.0218281745910645,
0.6831590533256531,
0.2721284329891205,
2.063347578048706,
0.5465630888938904,
0.25642499327659607,
-2.62910795211792,
0.8705417513847351,
0.3661418855190277,
0.017532268539071083,
1.0010446310043335,
0.27136871218681335,
1.131927490234375,
-0.033604696393013,
0.4389621913433075,
-2.277383327484131,
2.2236177921295166,
-0.22252672910690308,
0.6227714419364929,
0.05458257347345352,
-0.12960687279701233,
1.1544418334960938,
0.435886949300766,
0.6215619444847107,
-1.276135802268982,
0.7751231789588928,
-0.6887949705123901,
1.1829906702041626,
1.0009959936141968,
-0.7804962396621704,
0.1395862102508545,
1.2979568243026733,
0.4993637800216675,
-0.4764104187488556,
-0.8698657155036926,
-0.8387609720230103,
0.8542233109474182,
1.7460167407989502,
-0.005588793195784092,
0.039463263005018234,
0.714859664440155,
0.6501666903495789,
-1.3169368505477905,
0.03171570971608162,
-0.6939271688461304,
-0.7321052551269531,
1.6792995929718018,
2.0009031295776367,
-0.052512459456920624,
-0.2129490077495575,
-0.834270179271698,
-1.1790693998336792,
0.7750698328018188,
0.018819302320480347,
0.21686357259750366,
0.5651512145996094,
-0.7279555201530457,
1.2674704790115356,
0.8448449373245239,
0.8850921988487244,
0.01876504346728325,
0.40533775091171265,
0.5032451152801514,
-0.21547329425811768,
-1.082456111907959,
-0.3648791015148163,
-1.1325749158859253,
-2.6999728679656982,
0.3871060907840729,
-0.3541255295276642,
-1.3752336502075195,
-0.005400918424129486,
-1.0757149457931519,
0.8395352959632874,
-0.6105344891548157,
-1.015157699584961,
-1.5028129816055298,
0.2393302619457245,
-0.24811935424804688,
0.8340759873390198,
-1.5690927505493164,
-0.05832858383655548,
1.2765848636627197,
1.042004942893982,
-0.6767147779464722,
1.080902099609375,
0.255571573972702,
1.0009315013885498,
0.7548428177833557,
-0.5605224370956421,
0.5501670241355896,
0.1376643180847168,
-1.3160598278045654,
0.5304752588272095,
1.2741763591766357,
0.17592117190361023,
1.3720158338546753,
-0.5145081281661987,
-0.0033446853049099445,
0.49125370383262634,
-0.5578294992446899,
-0.5839023590087891,
-0.5868288278579712,
0.8223932981491089,
0.052295297384262085,
-0.9772619009017944,
0.11057516932487488,
-0.1471119523048401,
-0.22039055824279785,
0.27589425444602966,
-1.5199854373931885,
-0.46281662583351135,
-0.4151698648929596,
-0.4853726327419281,
-1.3085178136825562,
0.03078969195485115,
1.302984595298767,
-0.6743358969688416,
-0.2736377716064453,
0.46396926045417786,
0.4631836414337158,
0.46819034218788147,
0.5803139805793762,
-0.6817121505737305,
-0.36526602506637573,
-0.301653653383255,
-0.3623610734939575,
0.3630615770816803,
1.2243362665176392,
-0.16542690992355347,
-1.0094460248947144,
0.7042632699012756,
-0.3734544515609741,
0.058522261679172516,
1.9385652542114258,
0.06064780056476593,
-0.8005803227424622,
0.2217911183834076,
-0.6697070598602295,
1.9612383842468262,
1.5745079517364502,
1.2958216667175293,
-0.051516029983758926,
-0.794896125793457,
0.5919979810714722,
-0.11792455613613129,
-0.3556055426597595,
0.9307745099067688,
0.4595347046852112,
-0.2172820270061493,
-1.433982491493225,
0.5059899091720581,
1.2142651081085205,
-0.8545815944671631,
-0.7867704033851624,
-0.07918492704629898,
-0.8177489042282104,
1.1572661399841309,
0.6804150342941284,
0.3647752106189728,
0.32270148396492004,
1.7082319259643555,
0.6307483315467834,
-0.486875057220459,
0.40552183985710144,
0.39654016494750977,
-0.0660405084490776,
-2.1585118770599365,
-1.0467880964279175,
0.37264177203178406,
-0.37778839468955994,
-1.4965541362762451,
1.4265856742858887,
-1.1197693347930908,
-0.8783553242683411,
0.5724258422851562,
0.18555718660354614,
1.447021484375,
0.30238255858421326,
1.7149715423583984,
2.0954623222351074,
0.9749549627304077,
0.1726379692554474,
1.330127477645874,
-0.20871451497077942,
-0.40254461765289307,
1.9124195575714111,
-0.4219706058502197,
0.4450776278972626,
0.95233553647995,
-0.41013211011886597,
-1.0142664909362793,
-0.7942233681678772,
-1.163299798965454,
-0.6209409236907959,
1.1322885751724243,
0.23933997750282288,
-1.1879537105560303,
0.17882400751113892,
1.5470702648162842,
0.1483502984046936,
-0.11216457188129425,
0.612634003162384,
0.5605868697166443,
-0.7166109681129456,
0.015297943726181984,
-0.9219894409179688,
0.50627601146698,
-0.15620079636573792,
-0.37379178404808044,
0.29831093549728394,
0.5232357978820801,
1.2064541578292847,
-0.05382096767425537,
0.05449969321489334,
1.2679158449172974,
-1.4369134902954102,
1.5717827081680298,
-0.5591438412666321,
0.2558521032333374,
-2.404799222946167,
1.4021828174591064,
-0.8694573044776917,
1.887687087059021,
-2.5488452911376953,
0.31541305780410767,
-0.6043623685836792,
-0.43464577198028564,
0.41854119300842285,
-0.48862192034721375,
0.21607491374015808,
-0.2185840904712677,
-1.0143961906433105,
-0.04166129231452942,
-0.7585041522979736,
0.5333163738250732,
1.1898552179336548,
1.2917616367340088,
-1.0359547138214111,
-0.2093864381313324,
-1.7756731510162354,
-0.15523645281791687,
-0.5584694743156433,
0.2784751057624817,
-2.0921285152435303,
-0.24407970905303955,
-2.0616281032562256,
-2.1593587398529053,
-1.447890281677246,
-0.781517744064331,
1.0235882997512817,
0.1628136932849884,
-0.9138780832290649,
1.0103919506072998,
-0.41190189123153687,
-1.7691658735275269,
1.071386694908142,
-2.1573398113250732
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | I can confirm `add_faiss_index` calls `index = faiss.index_cpu_to_gpus_list(index, gpus=list(device))`.
Could this be an issue with your environment ? Could you try running with 1 and 8 GPUs with a code similar to[ this one from the FAISS examples](https://github.com/facebookresearch/faiss/blob/main/tutorial/python/5-Multiple-GPUs.py) but using `gpu_index = faiss.index_cpu_to_gpus_list(cpu_index, gpus=list(device))`, and see if the speed changes ? | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 51 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
I can confirm `add_faiss_index` calls `index = faiss.index_cpu_to_gpus_list(index, gpus=list(device))`.
Could this be an issue with your environment ? Could you try running with 1 and 8 GPUs with a code similar to[ this one from the FAISS examples](https://github.com/facebookresearch/faiss/blob/main/tutorial/python/5-Multiple-GPUs.py) but using `gpu_index = faiss.index_cpu_to_gpus_list(cpu_index, gpus=list(device))`, and see if the speed changes ? | [
-1.3243331909179688,
-0.8818889260292053,
-0.8435089588165283,
1.5391806364059448,
-0.09881564974784851,
-1.208289623260498,
0.10619492083787918,
-1.0703530311584473,
1.5660994052886963,
-0.8290348649024963,
0.2644176781177521,
-1.4515244960784912,
0.03326994925737381,
-0.5507087111473083,
-0.7992628812789917,
-0.8461111783981323,
-0.33806926012039185,
-0.8199982047080994,
1.0065914392471313,
2.505603075027466,
1.2802412509918213,
-1.3122491836547852,
2.7299327850341797,
0.7571147680282593,
-0.31913086771965027,
-1.0802067518234253,
0.530479371547699,
0.04778851941227913,
-1.1245101690292358,
-0.5718084573745728,
-0.8748943209648132,
-0.1022719144821167,
-0.6365016102790833,
-0.4630356431007385,
0.05826350674033165,
0.3957311511039734,
-0.30907967686653137,
-0.25297409296035767,
-0.4727518856525421,
-0.8814781904220581,
0.5825626254081726,
-0.4237305819988251,
0.8581964373588562,
-0.2945963144302368,
1.7203468084335327,
-0.637661874294281,
0.41239792108535767,
0.662992537021637,
1.4380768537521362,
0.21290113031864166,
-0.03517026826739311,
0.254491925239563,
0.4037993550300598,
-0.009621496312320232,
0.510610044002533,
1.1672552824020386,
0.5657901167869568,
0.4441133439540863,
0.612437903881073,
-2.2460684776306152,
1.3807846307754517,
-0.9832711219787598,
0.18681128323078156,
1.3274383544921875,
-0.8565701842308044,
0.3730384409427643,
-1.7649874687194824,
-0.11123903840780258,
0.5887183547019958,
-2.324251890182495,
0.24021922051906586,
-1.3141597509384155,
-0.5511488318443298,
1.0015103816986084,
0.3557443916797638,
-1.289328694343567,
0.17483218014240265,
-0.49332940578460693,
1.0669437646865845,
0.3918275535106659,
1.0488358736038208,
-1.764015555381775,
-0.09079507738351822,
-0.24367941915988922,
0.1066373810172081,
-1.3417502641677856,
-1.5350570678710938,
0.5353131294250488,
0.5381913781166077,
0.5996077060699463,
-0.10859645158052444,
1.0245866775512695,
-1.0883415937423706,
0.9121903777122498,
-0.9840524792671204,
-1.5843565464019775,
-1.3698813915252686,
-2.395002603530884,
-2.283397912979126,
0.8213723301887512,
-0.5363929867744446,
-0.5619217157363892,
1.9772601127624512,
-1.0800979137420654,
-1.8111271858215332,
1.060707449913025,
0.2705232501029968,
0.12298020720481873,
2.2841756343841553,
0.2958084046840668,
-0.7791787385940552,
0.5199156403541565,
-0.6693553924560547,
0.8053817749023438,
-0.4749942421913147,
1.3549129962921143,
0.6198278665542603,
-1.0330544710159302,
1.5369722843170166,
-0.46869906783103943,
0.517549991607666,
-0.7262940406799316,
-0.4843604266643524,
-0.8214345574378967,
0.32804542779922485,
1.9244122505187988,
-0.30516692996025085,
1.606663465499878,
-0.3445342183113098,
-1.5320194959640503,
-1.6025089025497437,
0.9671850800514221,
0.52348792552948,
-0.803439736366272,
0.1764325499534607,
-0.43630123138427734,
0.1477605551481247,
0.018179669976234436,
1.0877400636672974,
1.357954978942871,
0.6123868823051453,
-0.39205917716026306,
-0.8655887246131897,
0.29523569345474243,
-0.08400361239910126,
-0.6825329661369324,
-1.837765097618103,
-0.32837042212486267,
0.17584599554538727,
0.6765227913856506,
-1.168486475944519,
1.781584620475769,
0.8952707052230835,
1.9932432174682617,
1.0246963500976562,
-0.3380274772644043,
1.5486677885055542,
-0.10064610838890076,
1.8858307600021362,
-0.5516181588172913,
0.7413133978843689,
-0.4168504774570465,
-1.04166841506958,
0.8563345074653625,
-0.44214022159576416,
-1.9992344379425049,
-0.7383766174316406,
-0.7719267010688782,
-0.1964714229106903,
-0.839557945728302,
0.9167640209197998,
-0.27278250455856323,
-1.4728217124938965,
0.13115133345127106,
-0.813336968421936,
0.1839188039302826,
-1.1528549194335938,
0.33145177364349365,
0.6728599071502686,
-0.5061889290809631,
0.04500684142112732,
-0.28120481967926025,
-1.1794869899749756,
-0.5464774966239929,
0.23880386352539062,
1.9761959314346313,
-0.6522439122200012,
0.9978755712509155,
1.0323286056518555,
-0.7327902317047119,
0.07214290648698807,
0.4207583963871002,
-0.4089740514755249,
0.7648955583572388,
-1.1251071691513062,
-0.4409450888633728,
1.2039114236831665,
-0.18964503705501556,
-0.648906409740448,
1.4178760051727295,
0.9138014316558838,
-0.9771552681922913,
-0.12589755654335022,
-0.14543390274047852,
-0.7723675966262817,
0.12038324773311615,
-1.5162168741226196,
-0.18068383634090424,
0.3170534372329712,
-1.4033184051513672,
-0.408779114484787,
-0.17731055617332458,
1.3321064710617065,
-0.20024938881397247,
1.4471431970596313,
-0.3362277150154114,
-0.13398313522338867,
-0.26876330375671387,
-0.49193063378334045,
0.16790808737277985,
-0.2056794911623001,
-0.5798751711845398,
0.2705051600933075,
-0.7829111814498901,
0.3040585517883301,
1.3692517280578613,
0.37535810470581055,
0.08126761764287949,
0.45548710227012634,
1.1644880771636963,
0.38009876012802124,
-0.05341140553355217,
-0.8778965473175049,
-1.605453372001648,
1.9694496393203735,
-1.4499412775039673,
2.04824161529541,
0.8160996437072754,
-0.05574905872344971,
-1.7174304723739624,
-1.7740217447280884,
1.2093346118927002,
1.167340874671936,
2.420280933380127,
0.4857071042060852,
0.37767815589904785,
-0.7387050986289978,
-0.747796893119812,
0.3416277766227722,
-1.0995382070541382,
-0.7062989473342896,
0.021445434540510178,
2.34112811088562,
1.737780213356018,
-0.4527752101421356,
-0.2851218581199646,
-0.9606564044952393,
1.3056397438049316,
-0.2873602509498596,
0.21379923820495605,
2.060932159423828,
-0.24145404994487762,
-1.0627273321151733,
1.2948765754699707,
-2.3872933387756348,
0.20475409924983978,
2.0167531967163086,
0.37694886326789856,
-0.01200333796441555,
-1.3940541744232178,
-0.7062875628471375,
-0.25778549909591675,
-0.4192979335784912,
-1.2129170894622803,
0.5389414429664612,
-0.3647533655166626,
-0.8829207420349121,
-1.380455493927002,
0.07972826063632965,
-1.208939552307129,
-1.7784373760223389,
0.41064342856407166,
1.8597633838653564,
2.1117491722106934,
-0.7658055424690247,
1.492134928703308,
-0.2608124613761902,
0.03786110132932663,
1.2094093561172485,
1.3655798435211182,
3.0972964763641357,
1.738991618156433,
-1.2400332689285278,
0.6772230863571167,
-0.21640847623348236,
-0.5970561504364014,
1.1968713998794556,
-1.106472134590149,
1.1512000560760498,
-0.24444283545017242,
-1.2223820686340332,
-1.2717679738998413,
0.962141215801239,
0.4721718430519104,
-0.0022047976963222027,
-0.48929184675216675,
1.2467381954193115,
0.11242976784706116,
1.3139019012451172,
0.5863088369369507,
-0.28274282813072205,
0.5916164517402649,
-0.35443735122680664,
-0.5175127983093262,
1.5090484619140625,
0.2462160289287567,
-1.364904522895813,
-2.3164265155792236,
-0.1146751418709755,
-0.7866924405097961,
-0.15783089399337769,
-0.696501612663269,
-1.0520904064178467,
1.5665327310562134,
0.40777477622032166,
-1.2384365797042847,
-0.34286534786224365,
-0.27165037393569946,
-0.658781111240387,
2.5968711376190186,
-1.336561918258667,
-0.16498158872127533,
-0.9949279427528381,
-0.5886659622192383,
1.65098237991333,
-1.2574735879898071,
-0.15529198944568634,
-0.9841191172599792,
-0.6031495332717896,
-1.3283171653747559,
-0.46858158707618713,
-0.034215714782476425,
-0.977090060710907,
0.6604111194610596,
0.2114337533712387,
-1.16619074344635,
-0.2889004647731781,
-0.8190926909446716,
0.8485108613967896,
-0.091619573533535,
0.2950492203235626,
1.8102295398712158,
0.35870248079299927,
-0.4106275141239166,
0.8137120008468628,
1.2223286628723145,
0.544204831123352,
-0.6778501272201538,
0.13691365718841553,
-0.725791335105896,
0.38331151008605957,
-1.3509455919265747,
0.3764621615409851,
-2.936140298843384,
0.7747348546981812,
-0.064920574426651,
-0.17067387700080872,
-0.07840771973133087,
-1.362598180770874,
1.1621761322021484,
2.609933614730835,
-1.1828558444976807,
0.4562605917453766,
0.33123141527175903,
1.1961910724639893,
-1.6891064643859863,
0.3141537010669708,
-0.34623777866363525,
2.053950071334839,
0.2495107352733612,
1.2961455583572388,
-0.4601079821586609,
-2.3207130432128906,
0.6168744564056396,
-1.187994122505188,
-1.0713390111923218,
0.7193050384521484,
-0.8415547609329224,
0.10604549944400787,
-1.4427558183670044,
-0.2193518877029419,
-0.9273139238357544,
-1.213445782661438,
0.7766114473342896,
0.23787350952625275,
0.514737606048584,
-0.5622292160987854,
0.2905242145061493,
-2.2030222415924072,
-1.3690484762191772,
-0.07206050306558609,
-0.8548782467842102,
0.6096169352531433,
-0.36392632126808167,
0.6296629905700684,
-0.15888497233390808,
0.07332807034254074,
0.313819944858551,
1.4913047552108765,
3.3991568088531494,
0.22432850301265717,
0.364610493183136,
-0.15836338698863983,
-0.8689590692520142,
1.4128834009170532,
0.8685022592544556,
-0.1717921942472458,
-0.6414655447006226,
-0.9511383175849915,
1.3179532289505005,
1.982676386833191,
1.0244017839431763,
0.08243764191865921,
-0.9225884079933167,
-0.7513024806976318,
-0.056541502475738525,
0.198167622089386,
0.4175087511539459,
1.0269410610198975,
0.06606463342905045,
0.036069635301828384,
1.4186240434646606,
1.229430913925171,
-0.4773775637149811,
0.38078638911247253,
-0.9567059278488159,
-0.30677884817123413,
0.39574259519577026,
0.20957531034946442,
-0.021922875195741653,
0.43791574239730835,
-0.9953436851501465,
-0.27832987904548645,
-0.2674143612384796,
-0.9292058944702148,
-0.8453795909881592,
-0.5716699361801147,
-0.45779111981391907,
1.6940451860427856,
0.09665283560752869,
-0.3545478582382202,
-0.04268765449523926,
-0.8048489093780518,
-0.09578664600849152,
-1.0755020380020142,
0.10438897460699081,
-0.055764321237802505,
-0.11147604882717133,
-0.10096126049757004,
1.7657098770141602,
-0.901491641998291,
-2.1275031566619873,
0.25522464513778687,
0.23786763846874237,
-0.34508493542671204,
0.14701125025749207,
1.7479993104934692,
0.46259868144989014,
1.4067918062210083,
1.2819443941116333,
1.0255887508392334,
-0.5726794004440308,
-1.2207896709442139,
0.7084888219833374,
1.0056912899017334,
-1.370324969291687,
0.9525033235549927,
-0.060180820524692535,
-0.42250025272369385,
0.6559653878211975,
1.309834361076355,
0.41792720556259155,
-2.002911329269409,
0.7683875560760498,
-0.9135041236877441,
0.8297737240791321,
0.6280936002731323,
0.6811633110046387,
0.284568190574646,
0.8843255639076233,
-1.2786829471588135,
-1.2204025983810425,
-0.7095263600349426,
-0.7636853456497192,
1.9207231998443604,
-0.25087210536003113,
0.502472996711731,
-0.14171645045280457,
-1.2408572435379028,
-0.1516650915145874,
0.7898862361907959,
0.2944517731666565,
-0.4149145185947418,
0.858627438545227,
-0.7207964062690735,
-1.0221407413482666,
-1.410024642944336,
-0.43989887833595276,
-0.9718422293663025,
-0.861920952796936,
1.008603811264038,
0.7837762832641602,
0.30353307723999023,
2.007765531539917,
0.54807448387146,
0.29339003562927246,
-2.625502347946167,
0.8239609599113464,
0.23349571228027344,
-0.058425210416316986,
0.9972569942474365,
0.2321620136499405,
1.1595871448516846,
0.014120264910161495,
0.5902150273323059,
-2.438232183456421,
2.2306361198425293,
-0.1648009866476059,
0.6308749318122864,
0.04795972630381584,
-0.104912668466568,
1.1622984409332275,
0.5098140239715576,
0.5623467564582825,
-1.212101697921753,
0.7015644907951355,
-0.6436876654624939,
1.1903469562530518,
0.95798259973526,
-0.8810021281242371,
0.13816574215888977,
1.4253246784210205,
0.3704817593097687,
-0.5617782473564148,
-0.891028106212616,
-0.8725582957267761,
0.8742098808288574,
1.6861497163772583,
0.012530946172773838,
-0.023436959832906723,
0.7463062405586243,
0.6699091792106628,
-1.2957353591918945,
0.10566017031669617,
-0.6570332050323486,
-0.7792404294013977,
1.6873924732208252,
2.116633176803589,
-0.12260834127664566,
-0.17510509490966797,
-0.6943803429603577,
-1.1799607276916504,
0.7756068110466003,
0.011097040958702564,
0.16294141113758087,
0.5152959823608398,
-0.6653559803962708,
1.179686427116394,
0.8048149943351746,
0.967745304107666,
0.06948544085025787,
0.3305550515651703,
0.5359896421432495,
-0.372390478849411,
-1.0818792581558228,
-0.32111549377441406,
-1.1947425603866577,
-2.6143269538879395,
0.4442994296550751,
-0.307244211435318,
-1.406697154045105,
0.03029337152838707,
-1.0409544706344604,
0.8289474844932556,
-0.649718701839447,
-1.0160012245178223,
-1.521071434020996,
0.2395053505897522,
-0.1970231682062149,
0.8358913064002991,
-1.6845932006835938,
-0.07639086991548538,
1.224726676940918,
0.8737065196037292,
-0.5614538788795471,
1.0382672548294067,
0.2883513271808624,
0.9637333750724792,
0.85043865442276,
-0.4741531312465668,
0.5899341106414795,
0.18466982245445251,
-1.335044503211975,
0.5312793850898743,
1.345453143119812,
0.15815861523151398,
1.4354990720748901,
-0.444943368434906,
0.09738044440746307,
0.4208211600780487,
-0.703459620475769,
-0.5477123260498047,
-0.5121474266052246,
0.7325467467308044,
0.08527130633592606,
-0.9884068369865417,
-0.014348873868584633,
-0.10876055061817169,
-0.3057912588119507,
0.13491405546665192,
-1.5485233068466187,
-0.22420059144496918,
-0.3816419839859009,
-0.4690755307674408,
-1.3028064966201782,
-0.019999830052256584,
1.3170738220214844,
-0.7612758874893188,
-0.24145632982254028,
0.43314045667648315,
0.4391550123691559,
0.5381360650062561,
0.5960918068885803,
-0.6477218866348267,
-0.3848050832748413,
-0.2079046368598938,
-0.3569025993347168,
0.29489678144454956,
1.2141326665878296,
-0.10285540670156479,
-0.8871851563453674,
0.7136734127998352,
-0.40529710054397583,
0.11791585385799408,
1.8548797369003296,
0.030759036540985107,
-0.7393429279327393,
0.24205496907234192,
-0.6539487838745117,
1.9018125534057617,
1.6579482555389404,
1.2120541334152222,
-0.07903303951025009,
-0.8529605269432068,
0.5392040610313416,
-0.30484357476234436,
-0.3205908238887787,
0.8948160409927368,
0.4187765121459961,
-0.29069194197654724,
-1.3941353559494019,
0.5211470127105713,
1.173220157623291,
-0.7887351512908936,
-0.7667531371116638,
-0.0799659937620163,
-0.8474074602127075,
1.1741790771484375,
0.5470350980758667,
0.2752351462841034,
0.28970128297805786,
1.7349498271942139,
0.6285762190818787,
-0.4940050542354584,
0.5202718377113342,
0.45619380474090576,
-0.16725566983222961,
-2.1083505153656006,
-1.08977210521698,
0.3913484513759613,
-0.3971431851387024,
-1.5492041110992432,
1.3599717617034912,
-1.0711801052093506,
-0.9509884715080261,
0.5908316969871521,
0.1367400735616684,
1.3174805641174316,
0.26976877450942993,
1.7427903413772583,
2.1099326610565186,
0.8542190194129944,
0.33244064450263977,
1.2618358135223389,
-0.15316732227802277,
-0.4462936222553253,
1.905440092086792,
-0.3852759897708893,
0.5186842083930969,
0.9712098836898804,
-0.3586192727088928,
-1.1165640354156494,
-0.8219617009162903,
-1.1514358520507812,
-0.6559903025627136,
1.2661973237991333,
0.21224194765090942,
-1.0670231580734253,
0.20833629369735718,
1.687644600868225,
0.17564289271831512,
-0.1981363147497177,
0.6788768172264099,
0.4315944314002991,
-0.6914868950843811,
0.04447399079799652,
-0.9117130637168884,
0.5071443915367126,
-0.12982408702373505,
-0.31664979457855225,
0.3093298077583313,
0.5211256146430969,
1.2142529487609863,
-0.13792747259140015,
-0.0017569554038345814,
1.155603051185608,
-1.5063188076019287,
1.6045395135879517,
-0.5971941947937012,
0.3479824364185333,
-2.3406574726104736,
1.4074385166168213,
-0.8338884115219116,
1.9470041990280151,
-2.550340414047241,
0.30325672030448914,
-0.6339884996414185,
-0.5479817986488342,
0.3574082851409912,
-0.4008384048938751,
0.16846227645874023,
-0.1768646389245987,
-0.9633217453956604,
0.02414887025952339,
-0.7485994100570679,
0.5078058838844299,
1.2060636281967163,
1.3576889038085938,
-1.1487003564834595,
-0.199508935213089,
-1.7395325899124146,
-0.1637713462114334,
-0.6903685331344604,
0.2712593376636505,
-1.96061110496521,
-0.15793126821517944,
-2.0893936157226562,
-2.117924928665161,
-1.4158046245574951,
-0.7969422340393066,
0.9445613026618958,
0.12336501479148865,
-0.8639260530471802,
1.0720998048782349,
-0.3763907849788666,
-1.846034049987793,
1.1130152940750122,
-2.118252992630005
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Hi, I test the FAISS example and the speed indeed changes. I set `nb=1000000`, `nq=1000000` and `d=64`
| num GPUS | time cost |
| -------- | --------- |
| 1 | 28.53 |
| 5 | 7.16 |
| While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 39 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Hi, I test the FAISS example and the speed indeed changes. I set `nb=1000000`, `nq=1000000` and `d=64`
| num GPUS | time cost |
| -------- | --------- |
| 1 | 28.53 |
| 5 | 7.16 |
| [
-1.2319378852844238,
-0.7885639667510986,
-0.8891006708145142,
1.4197771549224854,
-0.006971488706767559,
-1.3338768482208252,
0.056258562952280045,
-1.104067087173462,
1.6270698308944702,
-0.8417075872421265,
0.290682315826416,
-1.626009464263916,
0.05181824043393135,
-0.5761940479278564,
-0.6970283389091492,
-0.8697920441627502,
-0.21966443955898285,
-0.7073161005973816,
1.06404709815979,
2.5300133228302,
1.2176334857940674,
-1.2506812810897827,
2.801142930984497,
0.6638201475143433,
-0.3491688668727875,
-0.894582986831665,
0.554114580154419,
0.10934624075889587,
-1.2006771564483643,
-0.46712949872016907,
-0.790057361125946,
-0.14083316922187805,
-0.725625216960907,
-0.5302104949951172,
0.09069174528121948,
0.4564090073108673,
-0.27423790097236633,
-0.3082275092601776,
-0.3357696831226349,
-0.7550103068351746,
0.5795297026634216,
-0.4122329652309418,
0.8299497365951538,
-0.32336896657943726,
1.756466031074524,
-0.5571628212928772,
0.36445003747940063,
0.5963436365127563,
1.3151224851608276,
0.1935068964958191,
-0.024434015154838562,
0.2477807104587555,
0.2776612341403961,
-0.005567057058215141,
0.4497232437133789,
1.1722086668014526,
0.5531749129295349,
0.597537100315094,
0.6755149960517883,
-2.1040496826171875,
1.411289095878601,
-0.9426308870315552,
0.17350263893604279,
1.3750602006912231,
-1.0886943340301514,
0.45133331418037415,
-1.8097723722457886,
-0.22690142691135406,
0.35903793573379517,
-2.3422346115112305,
0.09004401415586472,
-1.3097708225250244,
-0.5752579569816589,
0.959242582321167,
0.27709710597991943,
-1.2462875843048096,
0.14350184798240662,
-0.4151735305786133,
1.0486949682235718,
0.3973144590854645,
1.1125102043151855,
-1.7557084560394287,
0.024263571947813034,
-0.3053869605064392,
0.141361802816391,
-1.4158776998519897,
-1.530870795249939,
0.6019462943077087,
0.604525089263916,
0.6674830317497253,
-0.07724707573652267,
0.9081440567970276,
-1.0341355800628662,
0.8497459292411804,
-0.9596735835075378,
-1.6808576583862305,
-1.2293800115585327,
-2.465099334716797,
-2.3710827827453613,
0.884895920753479,
-0.33288347721099854,
-0.39424681663513184,
2.014077663421631,
-1.0874139070510864,
-1.792586326599121,
1.071828842163086,
0.3105911612510681,
-0.05903535336256027,
2.366901159286499,
0.37209123373031616,
-0.866641640663147,
0.6248303651809692,
-0.8650227189064026,
0.7372734546661377,
-0.4700174629688263,
1.3841636180877686,
0.5806774497032166,
-1.0328326225280762,
1.630175232887268,
-0.42491135001182556,
0.5192816257476807,
-0.7937144637107849,
-0.42511260509490967,
-0.7950207591056824,
0.3390518128871918,
2.003542900085449,
-0.22738905251026154,
1.6535016298294067,
-0.2648542821407318,
-1.4417465925216675,
-1.4375855922698975,
0.799663245677948,
0.5030086636543274,
-0.795171856880188,
0.21755211055278778,
-0.2673245668411255,
0.1392917037010193,
0.16797105967998505,
1.0858043432235718,
1.30962336063385,
0.7008408308029175,
-0.24474449455738068,
-0.8607946038246155,
0.34643107652664185,
0.05084920674562454,
-0.6183374524116516,
-1.9241390228271484,
-0.32580918073654175,
0.08228746801614761,
0.7417601346969604,
-1.2323871850967407,
1.7863283157348633,
0.9442288279533386,
1.991174578666687,
0.9735857248306274,
-0.3172968029975891,
1.4843894243240356,
-0.01653464511036873,
1.991960883140564,
-0.3904792368412018,
0.8224109411239624,
-0.44048911333084106,
-0.9394875764846802,
0.814504861831665,
-0.3043018877506256,
-1.8684566020965576,
-0.5975183844566345,
-1.0002444982528687,
-0.16079124808311462,
-0.8773840665817261,
1.0138834714889526,
-0.2480911761522293,
-1.4471551179885864,
0.1908491998910904,
-0.7131141424179077,
0.047126758843660355,
-1.2651695013046265,
0.2538522779941559,
0.6938735842704773,
-0.49686819314956665,
0.04328373074531555,
-0.39507606625556946,
-1.304403305053711,
-0.5885735750198364,
0.2034679502248764,
1.9502198696136475,
-0.6871386766433716,
1.059572458267212,
1.1200164556503296,
-0.7013573050498962,
0.024766098707914352,
0.5137398838996887,
-0.3446386456489563,
0.7779930233955383,
-1.1499472856521606,
-0.3110477030277252,
1.1441887617111206,
-0.15309825539588928,
-0.4745710790157318,
1.410243272781372,
0.886577844619751,
-0.993448793888092,
-0.05675194412469864,
-0.19538556039333344,
-0.8124445676803589,
0.08853037655353546,
-1.5731533765792847,
-0.14399096369743347,
0.1764666587114334,
-1.4334419965744019,
-0.5177018642425537,
-0.20743833482265472,
1.3423856496810913,
-0.09873153269290924,
1.3445467948913574,
-0.22437916696071625,
-0.22651584446430206,
-0.4248940050601959,
-0.5422157049179077,
0.14431072771549225,
-0.21328087151050568,
-0.6084473133087158,
0.3521757423877716,
-0.7307008504867554,
0.15336498618125916,
1.4965243339538574,
0.2744522988796234,
0.15551051497459412,
0.5525000691413879,
1.1170574426651,
0.3295108675956726,
-0.06546977162361145,
-0.8703064918518066,
-1.595067024230957,
1.9785126447677612,
-1.6344177722930908,
2.0649824142456055,
0.8000249266624451,
0.020539525896310806,
-1.7327781915664673,
-1.8373175859451294,
1.5283466577529907,
1.1489274501800537,
2.4853479862213135,
0.6331812143325806,
0.2999916970729828,
-0.7117933630943298,
-0.7360228300094604,
0.3349740207195282,
-1.0523357391357422,
-0.7650676369667053,
0.09097712486982346,
2.252690315246582,
1.7088950872421265,
-0.5371930599212646,
-0.2364426553249359,
-0.9285334944725037,
1.238689661026001,
-0.15509828925132751,
0.20954203605651855,
1.9250835180282593,
-0.3900205194950104,
-1.1214790344238281,
1.2276842594146729,
-2.337615966796875,
0.0896032378077507,
1.9874924421310425,
0.37638235092163086,
-0.0037520267069339752,
-1.356672763824463,
-0.7672198414802551,
-0.1915356069803238,
-0.45301753282546997,
-1.295373797416687,
0.46973225474357605,
-0.30468788743019104,
-0.826046884059906,
-1.4744653701782227,
0.09818821400403976,
-1.2159241437911987,
-1.7208932638168335,
0.4631616473197937,
1.8493483066558838,
2.154526472091675,
-0.7500801682472229,
1.4818464517593384,
-0.23281246423721313,
0.21163713932037354,
1.2170523405075073,
1.19112229347229,
3.106920003890991,
1.759004831314087,
-1.1329712867736816,
0.7222283482551575,
-0.22503288090229034,
-0.6198853850364685,
1.1472920179367065,
-0.9560280442237854,
1.1655255556106567,
-0.21566809713840485,
-1.1414037942886353,
-1.250313639640808,
0.7884030342102051,
0.4754372537136078,
-0.002640543505549431,
-0.4302278757095337,
1.255111813545227,
0.12386282533407211,
1.3099031448364258,
0.503907322883606,
-0.21662211418151855,
0.5833017826080322,
-0.4794401228427887,
-0.518147349357605,
1.5274996757507324,
0.20688730478286743,
-1.4528268575668335,
-2.443740129470825,
-0.08876998722553253,
-0.8256956338882446,
-0.09702575206756592,
-0.8026002049446106,
-1.1091957092285156,
1.4741272926330566,
0.4952523708343506,
-1.0116263628005981,
-0.20597702264785767,
-0.40245258808135986,
-0.8034876585006714,
2.526916027069092,
-1.500887155532837,
-0.23941251635551453,
-0.9624696373939514,
-0.6470889449119568,
1.5838813781738281,
-1.214036464691162,
-0.12110661715269089,
-0.9511966109275818,
-0.4911121726036072,
-1.3554764986038208,
-0.445695698261261,
-0.020982252433896065,
-0.8663566708564758,
0.6997761130332947,
0.05870237573981285,
-1.1453081369400024,
-0.2446870654821396,
-0.9162960052490234,
0.6984220743179321,
-0.0384255014359951,
0.3148837983608246,
1.7181702852249146,
0.368451863527298,
-0.4313068985939026,
0.7946701049804688,
1.1764229536056519,
0.55951988697052,
-0.7092137336730957,
0.24086356163024902,
-0.7139855027198792,
0.40139442682266235,
-1.2073147296905518,
0.3740357756614685,
-2.9867584705352783,
0.7201909422874451,
-0.10418278723955154,
-0.11406262218952179,
-0.003521950449794531,
-1.416190266609192,
1.1355654001235962,
2.560051918029785,
-1.099692463874817,
0.5560116767883301,
0.2078443169593811,
1.314457654953003,
-1.4773260354995728,
0.22386835515499115,
-0.4444127082824707,
2.021446466445923,
0.16113786399364471,
1.1418051719665527,
-0.5093565583229065,
-2.2559878826141357,
0.5996187925338745,
-1.166420817375183,
-1.1678017377853394,
0.7708205580711365,
-0.822978138923645,
0.05873901769518852,
-1.2964282035827637,
-0.16190895438194275,
-0.9060505628585815,
-1.1746888160705566,
0.7328711152076721,
0.16900281608104706,
0.6463660001754761,
-0.6295246481895447,
0.33106908202171326,
-2.188994884490967,
-1.420825481414795,
-0.07774005830287933,
-0.8753867745399475,
0.5211893916130066,
-0.3554082214832306,
0.7022805213928223,
-0.17287571728229523,
0.09967035055160522,
0.34338435530662537,
1.4639477729797363,
3.246677875518799,
0.03007686510682106,
0.44022682309150696,
-0.17800459265708923,
-0.9927446246147156,
1.465100646018982,
0.9300230741500854,
-0.10572760552167892,
-0.6431007981300354,
-0.9796422719955444,
1.2296514511108398,
1.9461089372634888,
1.0271016359329224,
0.012963525019586086,
-0.8352264761924744,
-0.6935930848121643,
0.07737711071968079,
0.24863991141319275,
0.43361783027648926,
1.0615284442901611,
0.0008980697020888329,
0.139460489153862,
1.394651174545288,
1.1879489421844482,
-0.6373644471168518,
0.4698253870010376,
-0.9194464087486267,
-0.2876811623573303,
0.49595874547958374,
0.3534504473209381,
-0.022729676216840744,
0.2086421102285385,
-0.9474701285362244,
-0.19557982683181763,
-0.23839791119098663,
-0.9406902194023132,
-0.7936148643493652,
-0.5576896071434021,
-0.41332143545150757,
1.7583935260772705,
-0.03496287018060684,
-0.4091043472290039,
0.022947493940591812,
-0.8517589569091797,
-0.05536782741546631,
-1.0370678901672363,
0.13502365350723267,
-0.191731795668602,
-0.0789443776011467,
0.026180267333984375,
1.8285036087036133,
-1.0106525421142578,
-2.1926980018615723,
0.3469270169734955,
0.24125206470489502,
-0.4128185510635376,
0.02093660458922386,
1.744305968284607,
0.5978955626487732,
1.4036015272140503,
1.3742544651031494,
1.0730221271514893,
-0.6223695278167725,
-1.3496811389923096,
0.6980096101760864,
0.9207170009613037,
-1.2528437376022339,
0.9293254613876343,
-0.08679276704788208,
-0.437654584646225,
0.6355912685394287,
1.3091249465942383,
0.4461544454097748,
-1.9813463687896729,
0.7393338680267334,
-0.9323335289955139,
0.8514689803123474,
0.6979777812957764,
0.7590520977973938,
0.28670457005500793,
0.8421341776847839,
-1.2043299674987793,
-1.1397197246551514,
-0.7335157990455627,
-0.6998139023780823,
1.8207859992980957,
-0.011986518278717995,
0.44758695363998413,
-0.2227838784456253,
-1.2798045873641968,
-0.07037340849637985,
0.7252436280250549,
0.3483201265335083,
-0.3140176832675934,
0.685727596282959,
-0.7374184131622314,
-1.0927605628967285,
-1.506900668144226,
-0.4856572151184082,
-1.0266348123550415,
-0.916122317314148,
0.9862761497497559,
0.6188317537307739,
0.3245558738708496,
2.0306849479675293,
0.5966933965682983,
0.19236339628696442,
-2.6155827045440674,
0.8492876887321472,
0.29492542147636414,
-0.032311756163835526,
0.9434936046600342,
0.33761340379714966,
1.2080271244049072,
-0.02165551297366619,
0.46881282329559326,
-2.3584353923797607,
2.2902748584747314,
-0.2708912789821625,
0.6097121238708496,
0.05550386384129524,
-0.1193336620926857,
1.0955756902694702,
0.4964572787284851,
0.5471697449684143,
-1.100698471069336,
0.8442304134368896,
-0.8036311864852905,
1.1750465631484985,
1.011167049407959,
-0.8241923451423645,
0.12086204439401627,
1.2381967306137085,
0.43484991788864136,
-0.5209609270095825,
-0.8949509263038635,
-0.9548465609550476,
0.8112595081329346,
1.7671459913253784,
-0.029221024364233017,
0.0389796681702137,
0.6842823028564453,
0.6611624360084534,
-1.2238807678222656,
0.0066217584535479546,
-0.6899205446243286,
-0.7456150054931641,
1.7912025451660156,
2.0087127685546875,
-0.04229504615068436,
-0.13888153433799744,
-0.8551437258720398,
-1.1475553512573242,
0.8152207136154175,
0.11511387676000595,
0.0896596685051918,
0.6145130395889282,
-0.6896580457687378,
1.296836495399475,
0.8815767765045166,
0.7665146589279175,
0.2168000489473343,
0.2760535180568695,
0.46921423077583313,
-0.2229662537574768,
-1.0976974964141846,
-0.36543595790863037,
-1.2273061275482178,
-2.710858106613159,
0.4836547076702118,
-0.3159991502761841,
-1.4183458089828491,
0.004727410152554512,
-1.0339319705963135,
0.7872219085693359,
-0.4841459095478058,
-1.0477628707885742,
-1.495222806930542,
0.2096586376428604,
-0.2843282222747803,
0.8622167110443115,
-1.7048213481903076,
-0.06278270483016968,
1.2132346630096436,
1.0102622509002686,
-0.6929516196250916,
1.0018596649169922,
0.26445096731185913,
0.9817774891853333,
0.8520263433456421,
-0.5321166515350342,
0.4838368594646454,
0.16822361946105957,
-1.3499634265899658,
0.46479082107543945,
1.3802895545959473,
0.11294900625944138,
1.3240296840667725,
-0.5273058414459229,
0.04620233550667763,
0.4137255549430847,
-0.30478158593177795,
-0.6053764224052429,
-0.7189706563949585,
0.7906919121742249,
0.009736242704093456,
-0.9657207727432251,
0.035446006804704666,
-0.0430380254983902,
-0.15770436823368073,
0.24398928880691528,
-1.596710205078125,
-0.26515135169029236,
-0.4611998498439789,
-0.5635803937911987,
-1.3548237085342407,
0.022640448063611984,
1.268073558807373,
-0.7540091276168823,
-0.18121667206287384,
0.4785711169242859,
0.4299370050430298,
0.4833012819290161,
0.5925760269165039,
-0.7119953632354736,
-0.38066646456718445,
-0.26209405064582825,
-0.399367094039917,
0.2880151867866516,
1.2333985567092896,
-0.25023284554481506,
-1.007921576499939,
0.5850163102149963,
-0.3405918776988983,
0.08796679973602295,
1.8667653799057007,
-0.021612629294395447,
-0.8670860528945923,
0.22171173989772797,
-0.6157994866371155,
1.9931608438491821,
1.67947256565094,
1.2937159538269043,
-0.05767281353473663,
-0.8434656858444214,
0.5314880013465881,
-0.2462756484746933,
-0.3292992115020752,
0.9683753848075867,
0.40626251697540283,
-0.25761502981185913,
-1.3780956268310547,
0.4631910026073456,
1.348250389099121,
-0.7367647886276245,
-0.8202704787254333,
-0.09265760332345963,
-0.8940478563308716,
1.1156322956085205,
0.7524147629737854,
0.3783769905567169,
0.3811202049255371,
1.6675846576690674,
0.5937197804450989,
-0.5987012386322021,
0.5643926858901978,
0.27299991250038147,
-0.13818857073783875,
-2.1141726970672607,
-1.184094786643982,
0.28972792625427246,
-0.41959720849990845,
-1.461240530014038,
1.4968748092651367,
-1.1416465044021606,
-0.8292697072029114,
0.6370427012443542,
0.11625697463750839,
1.4156097173690796,
0.2530776560306549,
1.672668218612671,
1.9642548561096191,
0.9490728378295898,
0.28516265749931335,
1.236775279045105,
-0.29761940240859985,
-0.4297012984752655,
1.77977454662323,
-0.49249666929244995,
0.43855130672454834,
1.0163525342941284,
-0.35350939631462097,
-0.9806891083717346,
-0.7713655233383179,
-1.1066184043884277,
-0.665943443775177,
1.1538783311843872,
0.2536314129829407,
-1.2067010402679443,
0.2378941774368286,
1.666955828666687,
0.163866326212883,
-0.1851973831653595,
0.6148765087127686,
0.5006855726242065,
-0.6850351095199585,
-0.030873827636241913,
-1.0565440654754639,
0.572383463382721,
-0.23860123753547668,
-0.3260246217250824,
0.3120053708553314,
0.5949673056602478,
1.1939330101013184,
-0.03570382669568062,
0.14232328534126282,
1.3708012104034424,
-1.4195001125335693,
1.4674420356750488,
-0.6825747489929199,
0.33425137400627136,
-2.261016607284546,
1.4334501028060913,
-0.8804336190223694,
1.9055068492889404,
-2.63562273979187,
0.3277296721935272,
-0.5431944727897644,
-0.5215573310852051,
0.28532761335372925,
-0.33215203881263733,
0.23780281841754913,
-0.15079446136951447,
-1.0207833051681519,
-0.14645352959632874,
-0.8941391110420227,
0.3987255096435547,
1.2178194522857666,
1.2818777561187744,
-0.8611740469932556,
-0.25546127557754517,
-1.629664421081543,
-0.11317743360996246,
-0.4276633858680725,
0.2653689980506897,
-2.0616767406463623,
-0.20507681369781494,
-2.121006727218628,
-2.2831382751464844,
-1.467089056968689,
-0.8889614343643188,
1.1770213842391968,
0.10569661110639572,
-0.9540689587593079,
0.991091251373291,
-0.4382583796977997,
-1.7451832294464111,
1.1251020431518555,
-2.1486332416534424
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Ok the benchmark is great, not sure why it doesn't speed up the index in your case though. You can try running the benchmark with the same settings as your actual dataset
```
query set: 1e6
source dataset: 1e6
embedding size: 768
index: Flat
topk: 20
GPU: V100
```
Note that you can still pass a FAISS index you built yourself to a dataset using https://huggingface.co/docs/datasets/v2.4.0/en/package_reference/main_classes#datasets.Dataset.add_faiss_index_from_external_arrays | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 66 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Ok the benchmark is great, not sure why it doesn't speed up the index in your case though. You can try running the benchmark with the same settings as your actual dataset
```
query set: 1e6
source dataset: 1e6
embedding size: 768
index: Flat
topk: 20
GPU: V100
```
Note that you can still pass a FAISS index you built yourself to a dataset using https://huggingface.co/docs/datasets/v2.4.0/en/package_reference/main_classes#datasets.Dataset.add_faiss_index_from_external_arrays | [
-1.2120323181152344,
-0.8609454035758972,
-0.849497377872467,
1.4446351528167725,
-0.025784611701965332,
-1.301985502243042,
0.05343995988368988,
-1.1173661947250366,
1.667740821838379,
-0.7699247002601624,
0.19436688721179962,
-1.5629229545593262,
-0.014529956504702568,
-0.5639323592185974,
-0.7423970103263855,
-0.8967325687408447,
-0.33698031306266785,
-0.852683424949646,
0.8952006697654724,
2.53143310546875,
1.2329018115997314,
-1.3130477666854858,
2.7200214862823486,
0.7040001749992371,
-0.30622896552085876,
-1.048243761062622,
0.5632198452949524,
0.012874470092356205,
-1.2016898393630981,
-0.4710788130760193,
-0.897777795791626,
-0.03580817952752113,
-0.6452349424362183,
-0.48448488116264343,
0.03884907066822052,
0.4534620940685272,
-0.31617245078086853,
-0.276906818151474,
-0.47815096378326416,
-0.8451076149940491,
0.5204870104789734,
-0.3270394504070282,
0.9086330533027649,
-0.3572792410850525,
1.7499616146087646,
-0.5538979172706604,
0.3308635950088501,
0.7103939056396484,
1.3884698152542114,
0.1385284811258316,
-0.02929973229765892,
0.1946410983800888,
0.324989914894104,
0.0194198340177536,
0.4377712607383728,
1.120513677597046,
0.5628467798233032,
0.4807824194431305,
0.6487982273101807,
-2.266566276550293,
1.3528012037277222,
-0.9137614965438843,
0.19700311124324799,
1.381888747215271,
-0.9406218528747559,
0.3243095874786377,
-1.808644413948059,
-0.10512522608041763,
0.5413082838058472,
-2.3197152614593506,
0.21941640973091125,
-1.3229613304138184,
-0.5358909368515015,
1.004932165145874,
0.27908027172088623,
-1.2385451793670654,
0.20903411507606506,
-0.3788110911846161,
1.0955438613891602,
0.49628856778144836,
1.1211403608322144,
-1.7740378379821777,
-0.05201800540089607,
-0.22206301987171173,
0.06612201035022736,
-1.3880267143249512,
-1.5659399032592773,
0.5456101894378662,
0.5560561418533325,
0.6940304636955261,
-0.0635523572564125,
0.9797660112380981,
-0.9778972864151001,
0.7996068000793457,
-0.9622916579246521,
-1.6620275974273682,
-1.315491795539856,
-2.3638756275177,
-2.3491814136505127,
0.7439862489700317,
-0.5190671682357788,
-0.4431188106536865,
2.0091142654418945,
-1.092795968055725,
-1.846303105354309,
1.0757375955581665,
0.2871054708957672,
0.0723356157541275,
2.2736077308654785,
0.2633008360862732,
-0.7262922525405884,
0.4110430181026459,
-0.7169851064682007,
0.8242313861846924,
-0.29936105012893677,
1.343737006187439,
0.6163886785507202,
-0.970662534236908,
1.5820624828338623,
-0.5504022836685181,
0.5614374279975891,
-0.7234253287315369,
-0.4906984269618988,
-0.8377533555030823,
0.35637468099594116,
1.8540860414505005,
-0.3538694977760315,
1.6090797185897827,
-0.3466702699661255,
-1.5693739652633667,
-1.5253868103027344,
0.8442206382751465,
0.5067657828330994,
-0.7671147584915161,
0.07464738935232162,
-0.35731765627861023,
0.11019076406955719,
-0.00876789353787899,
1.1305885314941406,
1.174641728401184,
0.6930305361747742,
-0.3719101548194885,
-0.9202426075935364,
0.2872203290462494,
0.011105471290647984,
-0.7139067649841309,
-1.8789215087890625,
-0.3161889314651489,
0.2255559116601944,
0.6911706328392029,
-1.2221821546554565,
1.7126238346099854,
0.8455948829650879,
2.037950038909912,
0.9630479216575623,
-0.34818077087402344,
1.5325250625610352,
-0.06631416827440262,
1.9066683053970337,
-0.45238035917282104,
0.7218119502067566,
-0.33054351806640625,
-1.0664721727371216,
0.8507688045501709,
-0.3662230372428894,
-1.9577158689498901,
-0.7457554340362549,
-0.8814975619316101,
-0.20993629097938538,
-0.7776232957839966,
0.9640564918518066,
-0.2821848392486572,
-1.4241158962249756,
0.17791952192783356,
-0.7164952754974365,
0.14254306256771088,
-1.2188901901245117,
0.22185389697551727,
0.7688648700714111,
-0.5841989517211914,
0.002926986664533615,
-0.22701947391033173,
-1.2857967615127563,
-0.5092019438743591,
0.2538001239299774,
1.9529567956924438,
-0.6735602617263794,
0.9962112307548523,
1.000351071357727,
-0.7050508856773376,
0.07847954332828522,
0.3255777060985565,
-0.3410029709339142,
0.8095350861549377,
-1.1285765171051025,
-0.3701910972595215,
1.1545424461364746,
-0.1322547346353531,
-0.6722314357757568,
1.4596638679504395,
0.8724194765090942,
-1.0432701110839844,
-0.13727860152721405,
-0.1891333907842636,
-0.712718665599823,
0.05214514210820198,
-1.568756341934204,
-0.1774263232946396,
0.3027092218399048,
-1.3837611675262451,
-0.43438076972961426,
-0.19336387515068054,
1.3772562742233276,
-0.20153450965881348,
1.3617969751358032,
-0.3819116950035095,
-0.18188142776489258,
-0.34271132946014404,
-0.4718478322029114,
0.1498260796070099,
-0.21334490180015564,
-0.6247053742408752,
0.23138141632080078,
-0.7887663841247559,
0.27812308073043823,
1.3836512565612793,
0.40136265754699707,
0.05682935565710068,
0.42302560806274414,
1.1500072479248047,
0.34003353118896484,
-0.02282361313700676,
-0.9355019330978394,
-1.5865249633789062,
2.0632102489471436,
-1.4064323902130127,
1.97259521484375,
0.7816099524497986,
-0.042283397167921066,
-1.78885018825531,
-1.8041551113128662,
1.287186622619629,
1.1401885747909546,
2.3933770656585693,
0.6078985929489136,
0.31062984466552734,
-0.7523599863052368,
-0.7037995457649231,
0.3622475564479828,
-1.0380369424819946,
-0.680850625038147,
0.07496043294668198,
2.3654067516326904,
1.7684913873672485,
-0.467145174741745,
-0.2663290798664093,
-0.8813777565956116,
1.28611421585083,
-0.20939168334007263,
0.19048671424388885,
2.028585910797119,
-0.2592103183269501,
-1.0776442289352417,
1.283679723739624,
-2.3259475231170654,
0.18077485263347626,
2.0636613368988037,
0.3204631805419922,
0.08906842768192291,
-1.466025710105896,
-0.7483240962028503,
-0.2673109769821167,
-0.4328317642211914,
-1.2429959774017334,
0.5599479675292969,
-0.3703513741493225,
-0.8589811325073242,
-1.439176321029663,
0.14385196566581726,
-1.1317161321640015,
-1.815685749053955,
0.34601137042045593,
1.8447904586791992,
2.0728769302368164,
-0.7996061444282532,
1.4679687023162842,
-0.25221481919288635,
0.09365568310022354,
1.2565048933029175,
1.2866884469985962,
3.1461262702941895,
1.757440209388733,
-1.2811694145202637,
0.752467155456543,
-0.12159299105405807,
-0.5194318890571594,
1.2345614433288574,
-1.0254188776016235,
1.1903208494186401,
-0.28980082273483276,
-1.2339295148849487,
-1.2673977613449097,
0.9877586960792542,
0.48842883110046387,
0.08393330872058868,
-0.5507303476333618,
1.2719963788986206,
0.054785750806331635,
1.3369312286376953,
0.5626530647277832,
-0.37450456619262695,
0.6148738265037537,
-0.4005027115345001,
-0.5367252826690674,
1.500412940979004,
0.21429398655891418,
-1.4125643968582153,
-2.3738512992858887,
-0.19027629494667053,
-0.7482888102531433,
-0.16027501225471497,
-0.6635875701904297,
-1.0763835906982422,
1.5946468114852905,
0.44744065403938293,
-1.2825573682785034,
-0.33315160870552063,
-0.3730059862136841,
-0.6159337162971497,
2.596548080444336,
-1.4050025939941406,
-0.10880996286869049,
-1.0394394397735596,
-0.5294559001922607,
1.6414369344711304,
-1.2439366579055786,
-0.15570750832557678,
-1.0537651777267456,
-0.6800287365913391,
-1.40701162815094,
-0.5779144763946533,
0.023335769772529602,
-0.8896676301956177,
0.737178385257721,
0.18844227492809296,
-1.0913517475128174,
-0.2583949565887451,
-0.8931744694709778,
0.8917152881622314,
-0.12273643165826797,
0.30119624733924866,
1.8536490201950073,
0.41280198097229004,
-0.46367576718330383,
0.7023091316223145,
1.1288504600524902,
0.6099205613136292,
-0.7700400352478027,
0.1738528311252594,
-0.7348428964614868,
0.30392375588417053,
-1.3410496711730957,
0.30979934334754944,
-2.9678447246551514,
0.7539634108543396,
-0.07625886052846909,
-0.12201103568077087,
0.026645492762327194,
-1.3043290376663208,
1.1426496505737305,
2.6550726890563965,
-1.2316569089889526,
0.4985557496547699,
0.32962173223495483,
1.1839637756347656,
-1.6465277671813965,
0.2814262807369232,
-0.3694470226764679,
2.091809034347534,
0.1821180284023285,
1.307078242301941,
-0.467021107673645,
-2.2347376346588135,
0.6403984427452087,
-1.2457255125045776,
-1.126346230506897,
0.8388908505439758,
-0.8588906526565552,
0.07034595310688019,
-1.4306144714355469,
-0.18095074594020844,
-0.9466591477394104,
-1.2764019966125488,
0.8379687070846558,
0.18489830195903778,
0.5244096517562866,
-0.586874783039093,
0.30955278873443604,
-2.1490354537963867,
-1.3667670488357544,
-0.1316753327846527,
-0.9490523934364319,
0.5347170233726501,
-0.2916657626628876,
0.6746750473976135,
-0.13079288601875305,
0.04052899777889252,
0.39601922035217285,
1.3796653747558594,
3.4225194454193115,
0.2651462256908417,
0.35157230496406555,
-0.11469048261642456,
-0.958836019039154,
1.4031717777252197,
0.9331279397010803,
-0.06209515035152435,
-0.5416756272315979,
-0.9384998679161072,
1.2275283336639404,
1.9864012002944946,
1.0594935417175293,
0.043590985238552094,
-0.8832668662071228,
-0.7608662247657776,
0.05122798681259155,
0.19272677600383759,
0.5073996186256409,
0.9214112162590027,
0.049109406769275665,
0.056215740740299225,
1.437985897064209,
1.172204852104187,
-0.3814913332462311,
0.40099164843559265,
-0.9272969961166382,
-0.4152471125125885,
0.49692365527153015,
0.2679494321346283,
0.022176310420036316,
0.4453224539756775,
-1.003631353378296,
-0.2619886100292206,
-0.3189052641391754,
-0.9417600631713867,
-0.7537848949432373,
-0.5549027323722839,
-0.4129014015197754,
1.6275023221969604,
0.08016949146986008,
-0.37938690185546875,
-0.024589866399765015,
-0.7808365225791931,
-0.0868040919303894,
-1.0911290645599365,
0.23105572164058685,
-0.15534336864948273,
-0.08345236629247665,
-0.11147356033325195,
1.7546595335006714,
-0.9663981795310974,
-2.046213150024414,
0.3289433419704437,
0.23980043828487396,
-0.42813214659690857,
0.12302179634571075,
1.7065364122390747,
0.49672821164131165,
1.4208691120147705,
1.2817362546920776,
1.0418542623519897,
-0.6318441033363342,
-1.2397674322128296,
0.7219852209091187,
0.9303349256515503,
-1.411277174949646,
0.9477468132972717,
-0.07823583483695984,
-0.46289071440696716,
0.7310806512832642,
1.3318079710006714,
0.36949342489242554,
-1.9481393098831177,
0.7470687031745911,
-0.8324512243270874,
0.7735283970832825,
0.6807120442390442,
0.7799929976463318,
0.19968579709529877,
0.8629923462867737,
-1.2807499170303345,
-1.172013282775879,
-0.7443887591362,
-0.649757981300354,
1.8808531761169434,
-0.24503636360168457,
0.5317696332931519,
-0.19099165499210358,
-1.2321463823318481,
-0.13459253311157227,
0.8196699619293213,
0.32796648144721985,
-0.3807460069656372,
0.8502442240715027,
-0.6390225887298584,
-1.0015183687210083,
-1.364469289779663,
-0.4486435353755951,
-0.9377685189247131,
-0.8946303129196167,
0.9476408958435059,
0.7968805432319641,
0.3344155550003052,
1.9455727338790894,
0.5489899516105652,
0.23064133524894714,
-2.6189332008361816,
0.8860400319099426,
0.2607579231262207,
-0.014717008918523788,
0.9661523699760437,
0.29178428649902344,
1.131628394126892,
0.008762461133301258,
0.5320837497711182,
-2.364476442337036,
2.247138500213623,
-0.20644544064998627,
0.6213664412498474,
0.00808230135589838,
-0.26543834805488586,
1.102445363998413,
0.525556206703186,
0.5873706936836243,
-1.1971418857574463,
0.729556679725647,
-0.669804573059082,
1.1296287775039673,
0.9316806793212891,
-0.8741400241851807,
0.08888006210327148,
1.3771055936813354,
0.48346981406211853,
-0.46936163306236267,
-0.902596116065979,
-0.923970103263855,
0.9076778888702393,
1.6439396142959595,
-0.03670051693916321,
-0.030860111117362976,
0.9037727117538452,
0.6976355314254761,
-1.270003080368042,
0.08127491176128387,
-0.7086811661720276,
-0.7497653961181641,
1.6740323305130005,
2.064786911010742,
-0.07333353161811829,
-0.17713773250579834,
-0.833368182182312,
-1.0690394639968872,
0.7616691589355469,
0.05206645280122757,
0.11040668189525604,
0.5652158260345459,
-0.6526192426681519,
1.204538106918335,
0.7987034320831299,
0.8695835471153259,
0.04633721336722374,
0.4322197735309601,
0.4448285400867462,
-0.32288292050361633,
-1.1568747758865356,
-0.31031566858291626,
-1.1467036008834839,
-2.530345916748047,
0.5167484283447266,
-0.25305357575416565,
-1.4683773517608643,
0.05049172416329384,
-1.0407934188842773,
0.8726890087127686,
-0.6471447348594666,
-1.0425125360488892,
-1.5179611444473267,
0.31276461482048035,
-0.2201647311449051,
0.8716108202934265,
-1.5826283693313599,
-0.014827119186520576,
1.279197335243225,
0.9346759915351868,
-0.6098764538764954,
0.9930852055549622,
0.23353199660778046,
1.000784158706665,
0.8352845311164856,
-0.444454163312912,
0.5285165309906006,
0.20510850846767426,
-1.379740834236145,
0.41610997915267944,
1.2121368646621704,
0.18710960447788239,
1.4305543899536133,
-0.4145863354206085,
0.08221558481454849,
0.4559900164604187,
-0.5629504919052124,
-0.5353684425354004,
-0.5364405512809753,
0.8155819773674011,
0.14853867888450623,
-0.9267659783363342,
0.08623065799474716,
-0.11891063302755356,
-0.22167453169822693,
0.2460353821516037,
-1.5414936542510986,
-0.381388396024704,
-0.35221078991889954,
-0.44822409749031067,
-1.2978395223617554,
-0.048955533653497696,
1.3368912935256958,
-0.7561656832695007,
-0.2557331323623657,
0.49938902258872986,
0.44846296310424805,
0.4906156361103058,
0.5928937792778015,
-0.6056670546531677,
-0.36588114500045776,
-0.3526538908481598,
-0.32900214195251465,
0.2761804163455963,
1.2416932582855225,
-0.08154122531414032,
-0.9638490676879883,
0.7478540539741516,
-0.42706188559532166,
0.08186475187540054,
1.9375643730163574,
0.0170845165848732,
-0.7745660543441772,
0.2748520076274872,
-0.6500985026359558,
1.867716670036316,
1.6886956691741943,
1.2915509939193726,
-0.05698978155851364,
-0.9100918769836426,
0.5256763696670532,
-0.2496257871389389,
-0.34311994910240173,
0.9885134696960449,
0.4610872268676758,
-0.19639435410499573,
-1.3749144077301025,
0.5401267409324646,
1.2226606607437134,
-0.9020484685897827,
-0.8394957780838013,
0.021088436245918274,
-0.8633214235305786,
1.103037714958191,
0.6688731908798218,
0.33124321699142456,
0.2513987421989441,
1.6287598609924316,
0.6023187041282654,
-0.45056989789009094,
0.5161863565444946,
0.38112515211105347,
-0.1649456024169922,
-2.107516050338745,
-1.078124761581421,
0.32581260800361633,
-0.35959675908088684,
-1.5570664405822754,
1.4113603830337524,
-1.1690860986709595,
-0.9746753573417664,
0.5317707061767578,
0.12554070353507996,
1.3394215106964111,
0.2783403992652893,
1.6909469366073608,
2.154087543487549,
0.8584096431732178,
0.26009854674339294,
1.3266443014144897,
-0.13745343685150146,
-0.46548596024513245,
1.844139814376831,
-0.4666993021965027,
0.5800570249557495,
0.9645915031433105,
-0.35839346051216125,
-1.0610309839248657,
-0.8572970032691956,
-1.138580083847046,
-0.6240360736846924,
1.2455836534500122,
0.19205062091350555,
-1.1630480289459229,
0.18051661550998688,
1.653773307800293,
0.11420226842164993,
-0.19351497292518616,
0.65650874376297,
0.42273953557014465,
-0.7189626097679138,
-0.008678330108523369,
-0.9243261218070984,
0.517353355884552,
-0.13590221107006073,
-0.23958072066307068,
0.341047078371048,
0.5518527626991272,
1.2295597791671753,
-0.062276288866996765,
0.05598955601453781,
1.2062608003616333,
-1.3954411745071411,
1.5761802196502686,
-0.6000545024871826,
0.301025927066803,
-2.3873038291931152,
1.364453673362732,
-0.8179203271865845,
1.8810535669326782,
-2.571880340576172,
0.3259426951408386,
-0.5397488474845886,
-0.5043762922286987,
0.3166663646697998,
-0.4541073441505432,
0.21346713602542877,
-0.18826662003993988,
-1.000424861907959,
-0.04457918927073479,
-0.8278664946556091,
0.5536059737205505,
1.1802493333816528,
1.400030493736267,
-1.105676531791687,
-0.2757641673088074,
-1.7704724073410034,
-0.18441954255104065,
-0.7231360077857971,
0.4014689326286316,
-1.9742257595062256,
-0.17437101900577545,
-2.021151065826416,
-2.3139214515686035,
-1.3856483697891235,
-0.7785442471504211,
1.0027955770492554,
0.13626031577587128,
-0.9273862838745117,
1.0176090002059937,
-0.33861207962036133,
-1.7775152921676636,
1.0547963380813599,
-2.1277682781219482
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | > Here is a runnable script. Multi-GPU searching still does not work in my experiments.
>
> ```python
> import os
> from tqdm import tqdm
> import numpy as np
> import datasets
> from datasets import Dataset
>
> class DPRSelector:
>
> def __init__(self, source, target, index_name, gpu=None):
> self.source = source
> self.target = target
> self.index_name = index_name
>
> cache_path = 'embedding.faiss'
>
> if not os.path.exists(cache_path):
> self.source.add_faiss_index(
> column="embedding",
> index_name=index_name,
> device=gpu,
> )
> self.source.save_faiss_index(index_name, cache_path)
> else:
> self.source.load_faiss_index(
> index_name,
> cache_path,
> device=gpu
> )
> print('index builded!')
>
> def build_dataset(self, top_k, batch_size):
> print('start search')
>
> for i in tqdm(range(0, len(self.target), batch_size)):
> if i + batch_size >= len(self.target):
> batched_queries = self.target[i:]
> else:
> batched_queries = self.target[i:i+batch_size]
>
>
> batched_query_embeddings = np.stack([i for i in batched_queries['embedding']], axis=0)
> search_res = self.source.get_nearest_examples_batch(
> self.index_name,
> batched_query_embeddings,
> k=top_k
> )
>
> print('finish search')
>
>
> def get_pseudo_dataset():
> pseudo_dict = {"embedding": np.zeros((1000000, 768), dtype=np.float32)}
> print('generate pseudo data')
>
> dataset = Dataset.from_dict(pseudo_dict)
> def list_to_array(data):
> return {"embedding": [np.array(vector, dtype=np.float32) for vector in data["embedding"]]}
> dataset.set_transform(list_to_array, columns='embedding', output_all_columns=True)
>
> print('build dataset')
> return dataset
>
>
>
> if __name__=="__main__":
>
> np.random.seed(42)
>
>
> source_dataset = get_pseudo_dataset()
> target_dataset = get_pseudo_dataset()
>
> gpu = [0,1,2,3,4,5,6,7]
> selector = DPRSelector(source_dataset, target_dataset, "embedding", gpu=gpu)
>
> selector.build_dataset(top_k=20, batch_size=32)
> ```
By the way, have you run this toy example and replicated my experiment results? I think it is a more direct way to figure this out :) | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 270 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
> Here is a runnable script. Multi-GPU searching still does not work in my experiments.
>
> ```python
> import os
> from tqdm import tqdm
> import numpy as np
> import datasets
> from datasets import Dataset
>
> class DPRSelector:
>
> def __init__(self, source, target, index_name, gpu=None):
> self.source = source
> self.target = target
> self.index_name = index_name
>
> cache_path = 'embedding.faiss'
>
> if not os.path.exists(cache_path):
> self.source.add_faiss_index(
> column="embedding",
> index_name=index_name,
> device=gpu,
> )
> self.source.save_faiss_index(index_name, cache_path)
> else:
> self.source.load_faiss_index(
> index_name,
> cache_path,
> device=gpu
> )
> print('index builded!')
>
> def build_dataset(self, top_k, batch_size):
> print('start search')
>
> for i in tqdm(range(0, len(self.target), batch_size)):
> if i + batch_size >= len(self.target):
> batched_queries = self.target[i:]
> else:
> batched_queries = self.target[i:i+batch_size]
>
>
> batched_query_embeddings = np.stack([i for i in batched_queries['embedding']], axis=0)
> search_res = self.source.get_nearest_examples_batch(
> self.index_name,
> batched_query_embeddings,
> k=top_k
> )
>
> print('finish search')
>
>
> def get_pseudo_dataset():
> pseudo_dict = {"embedding": np.zeros((1000000, 768), dtype=np.float32)}
> print('generate pseudo data')
>
> dataset = Dataset.from_dict(pseudo_dict)
> def list_to_array(data):
> return {"embedding": [np.array(vector, dtype=np.float32) for vector in data["embedding"]]}
> dataset.set_transform(list_to_array, columns='embedding', output_all_columns=True)
>
> print('build dataset')
> return dataset
>
>
>
> if __name__=="__main__":
>
> np.random.seed(42)
>
>
> source_dataset = get_pseudo_dataset()
> target_dataset = get_pseudo_dataset()
>
> gpu = [0,1,2,3,4,5,6,7]
> selector = DPRSelector(source_dataset, target_dataset, "embedding", gpu=gpu)
>
> selector.build_dataset(top_k=20, batch_size=32)
> ```
By the way, have you run this toy example and replicated my experiment results? I think it is a more direct way to figure this out :) | [
-1.3283803462982178,
-0.9528599381446838,
-0.6635718941688538,
1.5102689266204834,
-0.13562923669815063,
-1.1801173686981201,
0.18752211332321167,
-1.1510980129241943,
1.6940988302230835,
-0.8397696614265442,
0.23669293522834778,
-1.497505784034729,
-0.03843734413385391,
-0.5275701284408569,
-0.6991875171661377,
-0.9387701153755188,
-0.359120637178421,
-0.9186510443687439,
1.0175014734268188,
2.4405763149261475,
1.2938787937164307,
-1.365432620048523,
2.7286229133605957,
0.7252196073532104,
-0.3156619369983673,
-1.0950396060943604,
0.548424482345581,
-0.03441799804568291,
-1.2571873664855957,
-0.5290101766586304,
-0.9280116558074951,
-0.03581596910953522,
-0.7940394282341003,
-0.3860284090042114,
0.0011866949498653412,
0.32941195368766785,
-0.25916045904159546,
-0.2439783811569214,
-0.5207198858261108,
-0.843003511428833,
0.4284513294696808,
-0.39596277475357056,
0.879978358745575,
-0.2557202875614166,
1.5427112579345703,
-0.6506097912788391,
0.47268974781036377,
0.6998206377029419,
1.2944746017456055,
0.25728678703308105,
-0.10435687750577927,
0.2126380056142807,
0.35526201128959656,
0.010147283785045147,
0.48263463377952576,
1.0838578939437866,
0.614271879196167,
0.4751792848110199,
0.5914914608001709,
-2.2432544231414795,
1.3605709075927734,
-0.9320480823516846,
0.24388350546360016,
1.269806146621704,
-0.7986189126968384,
0.3960312306880951,
-1.776901125907898,
-0.07242623716592789,
0.7063297033309937,
-2.3122785091400146,
0.29027390480041504,
-1.423041582107544,
-0.5620032548904419,
0.951244056224823,
0.4063480496406555,
-1.2629096508026123,
0.03328707069158554,
-0.40915676951408386,
1.0835225582122803,
0.42850062251091003,
1.0252054929733276,
-1.9042887687683105,
-0.015490886755287647,
-0.257383793592453,
0.21118134260177612,
-1.1354565620422363,
-1.5877833366394043,
0.6082926988601685,
0.6248753070831299,
0.6179198622703552,
-0.098365917801857,
1.0227512121200562,
-1.056692123413086,
0.762153148651123,
-0.9665682911872864,
-1.6125527620315552,
-1.3644492626190186,
-2.3835721015930176,
-2.2575747966766357,
0.5669822692871094,
-0.6380013823509216,
-0.4239237606525421,
2.126032829284668,
-1.0938054323196411,
-1.7758457660675049,
1.0800448656082153,
0.21484191715717316,
0.11773786693811417,
2.3832848072052,
0.2131902575492859,
-0.6706743836402893,
0.5112511515617371,
-0.8406615257263184,
0.8058905601501465,
-0.28959038853645325,
1.3167436122894287,
0.42626774311065674,
-0.8961130380630493,
1.6307828426361084,
-0.45816195011138916,
0.5280671715736389,
-0.6591452360153198,
-0.4930892586708069,
-0.7129889726638794,
0.2797509729862213,
1.8787437677383423,
-0.20588289201259613,
1.542690396308899,
-0.3218883275985718,
-1.5568386316299438,
-1.6199434995651245,
0.8939370512962341,
0.4872969686985016,
-0.9033492803573608,
0.23213911056518555,
-0.5799155831336975,
0.13217873871326447,
0.02967730537056923,
1.2417359352111816,
1.42750883102417,
0.8044394850730896,
-0.3992732763290405,
-0.9300838708877563,
0.15604594349861145,
0.0054583558812737465,
-0.7786800265312195,
-1.886867880821228,
-0.254332035779953,
0.004638690501451492,
0.8045346736907959,
-1.129621148109436,
1.6958694458007812,
0.9402123093605042,
2.0152981281280518,
1.0874643325805664,
-0.44922906160354614,
1.5130854845046997,
0.0598500519990921,
1.7396425008773804,
-0.542049765586853,
0.7396866083145142,
-0.40437835454940796,
-1.078627347946167,
0.8634437322616577,
-0.36641237139701843,
-1.8816877603530884,
-0.6854900121688843,
-0.7043227553367615,
-0.24228747189044952,
-0.9130022525787354,
0.9350827932357788,
-0.23121409118175507,
-1.4931875467300415,
0.29587239027023315,
-0.8856725692749023,
0.17344975471496582,
-1.1274203062057495,
0.3422720730304718,
0.7080415487289429,
-0.5185921788215637,
0.0915718674659729,
-0.3573414981365204,
-1.2702025175094604,
-0.5624409914016724,
0.2588418126106262,
1.9240387678146362,
-0.5815406441688538,
0.9005427360534668,
1.023024320602417,
-0.6206547617912292,
0.026825495064258575,
0.33558419346809387,
-0.20788463950157166,
0.7820091843605042,
-1.2138444185256958,
-0.39140239357948303,
1.197435975074768,
-0.25939133763313293,
-0.541641891002655,
1.3884278535842896,
0.6632420420646667,
-1.0373849868774414,
-0.19767090678215027,
-0.13317440450191498,
-0.7581576704978943,
0.1379617154598236,
-1.6768468618392944,
-0.1376582235097885,
0.4518701732158661,
-1.5771344900131226,
-0.4972262978553772,
-0.16966691613197327,
1.4285417795181274,
-0.0693504586815834,
1.3907502889633179,
-0.3347298800945282,
0.036355242133140564,
-0.33169230818748474,
-0.34359410405158997,
0.2316747009754181,
-0.24018926918506622,
-0.4641530215740204,
0.16618287563323975,
-0.8467157483100891,
0.2326633632183075,
1.5319355726242065,
0.290698766708374,
0.03765487298369408,
0.27257558703422546,
1.0361684560775757,
0.41382208466529846,
-0.13789550960063934,
-0.8928670287132263,
-1.5339696407318115,
2.0175228118896484,
-1.4894533157348633,
2.0337610244750977,
0.7178182601928711,
-0.14376500248908997,
-1.7615209817886353,
-1.9008057117462158,
1.185547113418579,
1.0122272968292236,
2.3413684368133545,
0.5857213735580444,
0.3474954068660736,
-0.8271893262863159,
-0.6738720536231995,
0.28838324546813965,
-0.9838190078735352,
-0.7988247871398926,
0.09669800847768784,
2.371915578842163,
1.6742115020751953,
-0.5143443942070007,
-0.14595484733581543,
-0.8078555464744568,
1.3102118968963623,
-0.19382666051387787,
0.26633164286613464,
1.9759914875030518,
-0.24371923506259918,
-1.1670714616775513,
1.353918194770813,
-2.320979356765747,
0.18878056108951569,
2.058452606201172,
0.25356486439704895,
0.24172405898571014,
-1.3844561576843262,
-0.6959929466247559,
-0.3366636037826538,
-0.44983020424842834,
-1.2775392532348633,
0.5510990619659424,
-0.2671785354614258,
-0.7946949601173401,
-1.4337620735168457,
0.2414604276418686,
-1.043095350265503,
-1.7759523391723633,
0.24611829221248627,
1.9233922958374023,
2.1875205039978027,
-0.8799005746841431,
1.5206470489501953,
-0.47072893381118774,
0.0318516343832016,
1.082427740097046,
1.2121082544326782,
3.0418665409088135,
1.8791097402572632,
-1.3052929639816284,
0.6301882266998291,
-0.18901784718036652,
-0.48917245864868164,
1.1969512701034546,
-1.1990127563476562,
1.1559199094772339,
-0.24928179383277893,
-1.2218945026397705,
-1.1799886226654053,
0.9945857524871826,
0.4193348288536072,
-0.06340577453374863,
-0.5024558305740356,
1.304107427597046,
-0.0355159193277359,
1.4502668380737305,
0.5144327878952026,
-0.3234085738658905,
0.6386535167694092,
-0.470657080411911,
-0.4516931176185608,
1.521163821220398,
0.21879248321056366,
-1.5041874647140503,
-2.2420997619628906,
-0.15811200439929962,
-0.9327396154403687,
0.10312154144048691,
-0.6138591766357422,
-1.1473387479782104,
1.6074069738388062,
0.37671107053756714,
-1.1199839115142822,
-0.4328993260860443,
-0.3290356397628784,
-0.478358656167984,
2.645242929458618,
-1.2318534851074219,
-0.14900900423526764,
-0.935775637626648,
-0.562876284122467,
1.5993552207946777,
-1.3402818441390991,
-0.18776154518127441,
-1.0377123355865479,
-0.5695801973342896,
-1.3171240091323853,
-0.40606316924095154,
0.09000173956155777,
-0.9896383881568909,
0.7004320025444031,
0.3190707862377167,
-1.2270925045013428,
-0.32675057649612427,
-0.833577573299408,
0.9204105138778687,
-0.06895679980516434,
0.33468198776245117,
1.831763505935669,
0.20793332159519196,
-0.3699130415916443,
0.8435404300689697,
1.1923998594284058,
0.5630759596824646,
-0.6661482453346252,
0.035383693873882294,
-0.6370404362678528,
0.46055376529693604,
-1.2886418104171753,
0.29269278049468994,
-2.986908435821533,
0.8588406443595886,
0.028857633471488953,
-0.0074727460741996765,
-0.027034524828195572,
-1.397779107093811,
1.1777193546295166,
2.671536684036255,
-1.1852487325668335,
0.5618188381195068,
0.39373260736465454,
1.156396746635437,
-1.549445390701294,
0.2774485647678375,
-0.4227260649204254,
2.286895513534546,
0.31346502900123596,
1.316798448562622,
-0.36270180344581604,
-2.6133105754852295,
0.6592363715171814,
-1.174059510231018,
-1.0909396409988403,
0.6905894875526428,
-0.9138721227645874,
-0.04995937645435333,
-1.457568645477295,
-0.22796286642551422,
-0.9670243263244629,
-1.0797208547592163,
0.730767011642456,
0.19352565705776215,
0.4503437280654907,
-0.6186779737472534,
0.3263753652572632,
-2.2526655197143555,
-1.2170926332473755,
-0.06906569749116898,
-0.9850547313690186,
0.49950703978538513,
-0.42968010902404785,
0.7460353374481201,
-0.1610601544380188,
0.06200803071260452,
0.47243747115135193,
1.4806408882141113,
3.4399635791778564,
0.11957693845033646,
0.30277881026268005,
-0.22287096083164215,
-0.9216333031654358,
1.3943482637405396,
0.8238260746002197,
-0.15805920958518982,
-0.5710601210594177,
-1.068723440170288,
1.3131325244903564,
2.060720682144165,
0.8468913435935974,
0.04718055948615074,
-0.9787163734436035,
-0.6640232801437378,
-0.045802436769008636,
0.33039021492004395,
0.49209460616111755,
0.9411804676055908,
0.1299656182527542,
0.0004558190703392029,
1.3788379430770874,
1.1464738845825195,
-0.27753785252571106,
0.42729973793029785,
-0.968470573425293,
-0.4023985266685486,
0.5547189712524414,
0.22705286741256714,
-0.021808423101902008,
0.3658967614173889,
-0.8959399461746216,
-0.19835442304611206,
-0.3150980770587921,
-0.8136010766029358,
-0.7559740543365479,
-0.34546196460723877,
-0.27436405420303345,
1.647041916847229,
0.08384603261947632,
-0.3950836658477783,
0.03375760093331337,
-0.7099677324295044,
-0.16417296230793,
-1.1625043153762817,
0.18451683223247528,
-0.13931645452976227,
-0.125210702419281,
-0.14382226765155792,
1.657478928565979,
-0.7921996712684631,
-1.989376187324524,
0.2599128782749176,
0.33155542612075806,
-0.40211811661720276,
0.24378828704357147,
1.7836970090866089,
0.5081288814544678,
1.4537107944488525,
1.276747465133667,
1.0707753896713257,
-0.547254741191864,
-1.168782114982605,
0.712233304977417,
0.910736620426178,
-1.33115816116333,
0.9991557598114014,
-0.10666244477033615,
-0.530078113079071,
0.567608654499054,
1.305148959159851,
0.5399247407913208,
-2.04659366607666,
0.9207172393798828,
-0.9379922747612,
0.9396001696586609,
0.6173097491264343,
0.7913989424705505,
0.19635404646396637,
0.8885491490364075,
-1.2966508865356445,
-1.0556695461273193,
-0.7039300203323364,
-0.7332437038421631,
1.9033048152923584,
-0.41923627257347107,
0.4766541123390198,
-0.22925011813640594,
-1.226699709892273,
-0.16081872582435608,
0.7008770704269409,
0.3188589811325073,
-0.4458838403224945,
0.8521167039871216,
-0.6605559587478638,
-1.1322895288467407,
-1.268747091293335,
-0.43345287442207336,
-1.0102368593215942,
-0.9675484299659729,
1.056272268295288,
0.7620011568069458,
0.38543006777763367,
1.9601478576660156,
0.4440339505672455,
0.22853583097457886,
-2.588381290435791,
0.8773638010025024,
0.25824809074401855,
-0.08003193885087967,
0.9666008353233337,
0.430489718914032,
1.1352741718292236,
0.05805228650569916,
0.5798811912536621,
-2.3793816566467285,
2.2961761951446533,
-0.17098619043827057,
0.7792345881462097,
0.05291537940502167,
-0.11137954145669937,
1.0037726163864136,
0.6341308951377869,
0.5462614297866821,
-1.1078518629074097,
0.7441554069519043,
-0.584985077381134,
1.1889785528182983,
0.8290521502494812,
-0.7851959466934204,
0.05796360224485397,
1.280299425125122,
0.4319606423377991,
-0.6385778784751892,
-0.9500893354415894,
-0.8783934712409973,
0.9066653251647949,
1.7434918880462646,
-0.07615458965301514,
-0.08351217955350876,
0.6152566075325012,
0.7209666967391968,
-1.2215908765792847,
-0.037746578454971313,
-0.6389554738998413,
-0.7822515368461609,
1.6225953102111816,
2.0418992042541504,
-0.094612717628479,
-0.15915289521217346,
-0.6583693623542786,
-1.3392947912216187,
0.8749937415122986,
-0.09259327501058578,
0.0855657085776329,
0.47489437460899353,
-0.5637909770011902,
1.0839416980743408,
0.6464926600456238,
0.9441421031951904,
0.16284361481666565,
0.4000491201877594,
0.5811609029769897,
-0.38248953223228455,
-1.0829875469207764,
-0.3752022385597229,
-1.2608625888824463,
-2.635011911392212,
0.4474097788333893,
-0.3487766981124878,
-1.3837792873382568,
-0.06646288186311722,
-0.9484657645225525,
0.9091964960098267,
-0.666100025177002,
-0.9349607229232788,
-1.3343786001205444,
0.15542729198932648,
-0.08951130509376526,
0.9112260937690735,
-1.5512125492095947,
-0.0994657427072525,
1.1761358976364136,
0.939791738986969,
-0.6819946765899658,
1.0592598915100098,
0.32821086049079895,
1.0052971839904785,
0.8255656957626343,
-0.44979897141456604,
0.5542300939559937,
0.11514582484960556,
-1.246983289718628,
0.4408884644508362,
1.2790859937667847,
0.28707730770111084,
1.3665162324905396,
-0.4757259488105774,
-0.08605323731899261,
0.39374974370002747,
-0.5541368722915649,
-0.44551894068717957,
-0.44153261184692383,
0.678038477897644,
0.035619691014289856,
-1.0372475385665894,
-0.15575601160526276,
-0.1189895048737526,
-0.21674899756908417,
0.24795527756214142,
-1.5349758863449097,
-0.2680386006832123,
-0.487888365983963,
-0.39064306020736694,
-1.2973203659057617,
-0.2167663723230362,
1.4448214769363403,
-0.7536789774894714,
-0.2192508429288864,
0.4337959885597229,
0.3943943977355957,
0.4815225899219513,
0.7035738229751587,
-0.690480649471283,
-0.4612627625465393,
-0.36899498105049133,
-0.38813138008117676,
0.3575604259967804,
1.2721461057662964,
-0.07704048603773117,
-0.926160991191864,
0.5582104325294495,
-0.3479643762111664,
0.15312783420085907,
1.8267086744308472,
0.07722105085849762,
-0.752573549747467,
0.2221786081790924,
-0.6441757082939148,
1.9297399520874023,
1.6489871740341187,
1.19785475730896,
-0.18774469196796417,
-0.8857480883598328,
0.6384006142616272,
-0.3887539505958557,
-0.40862318873405457,
0.710648238658905,
0.49873217940330505,
-0.2630322277545929,
-1.4607614278793335,
0.7182781100273132,
1.071555733680725,
-0.873359739780426,
-0.8873634934425354,
0.0064384108409285545,
-0.7146847248077393,
1.116241455078125,
0.7111530900001526,
0.374991238117218,
0.296321839094162,
1.7543282508850098,
0.716946005821228,
-0.5285400152206421,
0.6093196272850037,
0.3883574903011322,
-0.23438489437103271,
-2.122620105743408,
-1.2286938428878784,
0.22405411303043365,
-0.4529261887073517,
-1.518334984779358,
1.4585373401641846,
-1.168981671333313,
-1.0646308660507202,
0.498477965593338,
0.09695404767990112,
1.192915439605713,
0.29154789447784424,
1.7052357196807861,
2.09242582321167,
0.8102891445159912,
0.40092676877975464,
1.247605800628662,
-0.1766991913318634,
-0.4567280411720276,
1.816017508506775,
-0.36464542150497437,
0.5371936559677124,
1.2045247554779053,
-0.3862892985343933,
-0.9951288104057312,
-0.971191942691803,
-1.1673290729522705,
-0.8255024552345276,
1.1668822765350342,
0.12573765218257904,
-1.1059021949768066,
0.25228196382522583,
1.685068964958191,
0.14252659678459167,
-0.2654091417789459,
0.6514461636543274,
0.4464373290538788,
-0.7181492447853088,
-0.10093780606985092,
-1.0083619356155396,
0.5799091458320618,
-0.32423293590545654,
-0.4049863815307617,
0.3233763873577118,
0.40471774339675903,
1.3082736730575562,
-0.05168335139751434,
0.07756733149290085,
1.1128023862838745,
-1.3416763544082642,
1.439634919166565,
-0.5615471601486206,
0.3678470551967621,
-2.345858335494995,
1.3329014778137207,
-0.7182605862617493,
2.004596710205078,
-2.677248239517212,
0.43141838908195496,
-0.4686793088912964,
-0.46078595519065857,
0.29953432083129883,
-0.3003074526786804,
0.22920094430446625,
-0.25055035948753357,
-0.9994370341300964,
-0.07676681876182556,
-0.6474940776824951,
0.5171089172363281,
1.1112867593765259,
1.3552476167678833,
-1.1161178350448608,
-0.10424519330263138,
-1.6716628074645996,
-0.08373003453016281,
-0.7275730967521667,
0.2327134609222412,
-1.91627836227417,
-0.18316368758678436,
-2.018448829650879,
-2.307734251022339,
-1.1681632995605469,
-0.6874821782112122,
1.0456830263137817,
0.09828252345323563,
-0.8149454593658447,
1.2440401315689087,
-0.3077247440814972,
-1.7758605480194092,
1.1449856758117676,
-2.0878679752349854
] |
https://github.com/huggingface/datasets/issues/4761 | parallel searching in multi-gpu setting using faiss | Hi,
I have a similar question and would like to know if there's any progress in this issue.
`dataset.add_faiss_index(column="embedding")`, this takes around 5minutes to add the index.
`dataset.add_faiss_index(column="embedding", device=-1)`, this ran for more than 10minutes and still didn't complete execution.
Now, I don't understand why that's the case as I expected for GPU the indexing should be faster | While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360 | 598 | 58 | parallel searching in multi-gpu setting using faiss
While I notice that `add_faiss_index` has supported assigning multiple GPUs, I am still confused about how it works.
Does the `search-batch` function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Hi,
I have a similar question and would like to know if there's any progress in this issue.
`dataset.add_faiss_index(column="embedding")`, this takes around 5minutes to add the index.
`dataset.add_faiss_index(column="embedding", device=-1)`, this ran for more than 10minutes and still didn't complete execution.
Now, I don't understand why that's the case as I expected for GPU the indexing should be faster | [
-1.303670883178711,
-0.9163780808448792,
-0.8470797538757324,
1.4134559631347656,
-0.07431575655937195,
-1.2448949813842773,
0.04400057718157768,
-1.142134428024292,
1.6453726291656494,
-0.8541953563690186,
0.2714707851409912,
-1.5368614196777344,
0.06765545904636383,
-0.5655929446220398,
-0.6959090828895569,
-0.8923617005348206,
-0.3196283280849457,
-0.8141419291496277,
1.0108085870742798,
2.559978485107422,
1.1466209888458252,
-1.3382775783538818,
2.7598936557769775,
0.7082842588424683,
-0.31346404552459717,
-1.0219930410385132,
0.5812901854515076,
0.035137176513671875,
-1.1552879810333252,
-0.5311188697814941,
-0.9409183263778687,
-0.004952494520694017,
-0.6499971747398376,
-0.49869948625564575,
0.028570853173732758,
0.38121509552001953,
-0.34029874205589294,
-0.3482896685600281,
-0.42694801092147827,
-0.8193874955177307,
0.5606367588043213,
-0.3771989643573761,
0.934395432472229,
-0.34486982226371765,
1.7507388591766357,
-0.5347505211830139,
0.3633882701396942,
0.6859582662582397,
1.3806966543197632,
0.20860789716243744,
-0.032945699989795685,
0.21496793627738953,
0.37347179651260376,
-0.03303520008921623,
0.4487931728363037,
1.111000418663025,
0.5253932476043701,
0.5154982209205627,
0.677602231502533,
-2.1999356746673584,
1.3802525997161865,
-0.9894571304321289,
0.1745522916316986,
1.3443129062652588,
-0.8984856009483337,
0.4080847501754761,
-1.7392148971557617,
-0.11749691516160965,
0.541452169418335,
-2.3073134422302246,
0.24970704317092896,
-1.2710332870483398,
-0.5167236924171448,
0.9966047406196594,
0.36602476239204407,
-1.2713454961776733,
0.15273606777191162,
-0.40241366624832153,
1.0988777875900269,
0.42417415976524353,
1.1044286489486694,
-1.724000096321106,
-0.044048380106687546,
-0.3402424454689026,
0.09919941425323486,
-1.3391940593719482,
-1.5164644718170166,
0.5641419887542725,
0.5529302358627319,
0.6201890110969543,
0.009950813837349415,
0.9631648063659668,
-1.043263554573059,
0.8106030821800232,
-0.9550554752349854,
-1.584717869758606,
-1.339795470237732,
-2.4370148181915283,
-2.3272435665130615,
0.8425957560539246,
-0.47242581844329834,
-0.5510745644569397,
1.9650287628173828,
-1.0929089784622192,
-1.8549723625183105,
1.208518624305725,
0.25294777750968933,
0.034843288362026215,
2.3173365592956543,
0.2817099094390869,
-0.7641042470932007,
0.5159656405448914,
-0.7388320565223694,
0.8051480650901794,
-0.38768526911735535,
1.3849598169326782,
0.629004716873169,
-1.0067170858383179,
1.5810497999191284,
-0.5013962388038635,
0.5307095050811768,
-0.6356654763221741,
-0.5317786335945129,
-0.8553969860076904,
0.46982911229133606,
1.8917195796966553,
-0.2806064486503601,
1.5868370532989502,
-0.3260999321937561,
-1.572641134262085,
-1.5910073518753052,
0.9202364087104797,
0.5344098806381226,
-0.799211859703064,
0.19470643997192383,
-0.28504931926727295,
0.13818523287773132,
0.02154192328453064,
1.1346837282180786,
1.3153685331344604,
0.7085434794425964,
-0.3341786861419678,
-0.9301361441612244,
0.28011131286621094,
-0.06078874692320824,
-0.6697128415107727,
-1.8876279592514038,
-0.37317603826522827,
0.13284169137477875,
0.6870262622833252,
-1.2110298871994019,
1.6619765758514404,
0.9522431492805481,
1.9272139072418213,
1.0403696298599243,
-0.30195221304893494,
1.5287836790084839,
-0.0012530293315649033,
1.8569666147232056,
-0.502286434173584,
0.7553777694702148,
-0.3400333523750305,
-1.0713752508163452,
0.8475283980369568,
-0.41028133034706116,
-1.9904237985610962,
-0.7877816557884216,
-0.8928878903388977,
-0.2245224565267563,
-0.814953088760376,
0.9324779510498047,
-0.33032116293907166,
-1.4607300758361816,
0.2885829508304596,
-0.6916388869285583,
0.1255793571472168,
-1.1585451364517212,
0.31327423453330994,
0.7134444713592529,
-0.5791998505592346,
-0.010991843417286873,
-0.3164549171924591,
-1.2142988443374634,
-0.4934370219707489,
0.20856750011444092,
1.9455699920654297,
-0.7240540385246277,
0.9513866305351257,
1.007886528968811,
-0.7363653779029846,
0.0017652641981840134,
0.42211002111434937,
-0.2733747959136963,
0.7976766228675842,
-1.145608901977539,
-0.38974273204803467,
1.1560922861099243,
-0.1802927702665329,
-0.5912050008773804,
1.371055245399475,
0.8989382386207581,
-1.0351825952529907,
-0.09515330195426941,
-0.20413711667060852,
-0.7777634263038635,
0.08193952590227127,
-1.5093992948532104,
-0.21781207621097565,
0.27465835213661194,
-1.4295955896377563,
-0.45679569244384766,
-0.17843642830848694,
1.3466919660568237,
-0.19206281006336212,
1.3649662733078003,
-0.3774203658103943,
-0.2569759786128998,
-0.29570892453193665,
-0.5020492672920227,
0.19120080769062042,
-0.15014365315437317,
-0.5941832661628723,
0.2272559404373169,
-0.7351438999176025,
0.27982765436172485,
1.3883415460586548,
0.43359890580177307,
0.041919078677892685,
0.47006821632385254,
1.1085416078567505,
0.3687596619129181,
-0.007804454304277897,
-0.9399361610412598,
-1.5272669792175293,
1.9973928928375244,
-1.514927864074707,
1.9973161220550537,
0.7579026222229004,
-0.03983201086521149,
-1.7435779571533203,
-1.7819675207138062,
1.3428305387496948,
1.1627665758132935,
2.3757925033569336,
0.5896528363227844,
0.31398749351501465,
-0.7661417126655579,
-0.7374274134635925,
0.39381009340286255,
-1.1429132223129272,
-0.7153769135475159,
0.029602836817502975,
2.305030345916748,
1.7659372091293335,
-0.4609541893005371,
-0.2645501494407654,
-0.9542215466499329,
1.2738187313079834,
-0.1709592342376709,
0.1983465701341629,
2.0318422317504883,
-0.3540762662887573,
-1.1504710912704468,
1.30414617061615,
-2.316169500350952,
0.11084594577550888,
2.045908212661743,
0.3623271584510803,
0.05414307489991188,
-1.4968223571777344,
-0.7703242301940918,
-0.19177496433258057,
-0.44013652205467224,
-1.2816574573516846,
0.5702354907989502,
-0.3619035482406616,
-0.766103208065033,
-1.4675711393356323,
0.18687787652015686,
-1.195096492767334,
-1.7214716672897339,
0.316025048494339,
1.8423792123794556,
2.1259732246398926,
-0.7884178161621094,
1.5036818981170654,
-0.19592036306858063,
0.15420641005039215,
1.2269196510314941,
1.2202414274215698,
3.118533134460449,
1.8031851053237915,
-1.1920355558395386,
0.6920458078384399,
-0.17508280277252197,
-0.5735036134719849,
1.177635669708252,
-1.0199356079101562,
1.250413417816162,
-0.14117348194122314,
-1.141919732093811,
-1.1997612714767456,
0.8848705887794495,
0.4364086389541626,
0.044017087668180466,
-0.4652666449546814,
1.2608696222305298,
0.042985428124666214,
1.3196330070495605,
0.5005825757980347,
-0.31226876378059387,
0.6433483958244324,
-0.4423217177391052,
-0.5386990308761597,
1.4986813068389893,
0.2959711253643036,
-1.4223774671554565,
-2.3011269569396973,
-0.1700975000858307,
-0.7924097776412964,
-0.08733735233545303,
-0.621766209602356,
-1.0632131099700928,
1.5987954139709473,
0.4099186956882477,
-1.191977858543396,
-0.2567889392375946,
-0.34556421637535095,
-0.6834684014320374,
2.5931684970855713,
-1.3634960651397705,
-0.20637333393096924,
-0.973442792892456,
-0.6346806883811951,
1.557881236076355,
-1.230048418045044,
-0.12050695717334747,
-0.9910310506820679,
-0.6270100474357605,
-1.388984203338623,
-0.4965318739414215,
-0.046533118933439255,
-0.9424539804458618,
0.6994689702987671,
0.23821748793125153,
-1.117190957069397,
-0.26580461859703064,
-0.8704310655593872,
0.7553011775016785,
-0.08681962639093399,
0.4006945788860321,
1.8470994234085083,
0.3777031898498535,
-0.421664297580719,
0.7152766585350037,
1.19680655002594,
0.5846816301345825,
-0.7028958797454834,
0.15251222252845764,
-0.750583291053772,
0.28184595704078674,
-1.265730619430542,
0.41452693939208984,
-2.9598610401153564,
0.7522265315055847,
-0.06073395535349846,
-0.1188020259141922,
0.0007145404815673828,
-1.2775274515151978,
1.133908748626709,
2.6697487831115723,
-1.1247363090515137,
0.47213345766067505,
0.3242866098880768,
1.2575887441635132,
-1.5782192945480347,
0.3645034432411194,
-0.3247334063053131,
2.1134963035583496,
0.21675488352775574,
1.2920498847961426,
-0.4946543872356415,
-2.3612818717956543,
0.6830490827560425,
-1.2352386713027954,
-1.197524070739746,
0.7803620100021362,
-0.7963517308235168,
0.017583418637514114,
-1.4584801197052002,
-0.2438303530216217,
-0.9207939505577087,
-1.2514641284942627,
0.7787244915962219,
0.23413729667663574,
0.5600653290748596,
-0.5647488236427307,
0.34551385045051575,
-2.201404333114624,
-1.4327144622802734,
-0.049735166132450104,
-0.868516206741333,
0.5426451563835144,
-0.3424658477306366,
0.64101642370224,
-0.1945924311876297,
0.07040182501077652,
0.32544732093811035,
1.5070074796676636,
3.4310522079467773,
0.20709671080112457,
0.4503577947616577,
-0.1172548234462738,
-0.9403893351554871,
1.4508765935897827,
0.9116562604904175,
-0.09581474959850311,
-0.5833941698074341,
-1.0608999729156494,
1.271593689918518,
1.9444736242294312,
0.9937358498573303,
0.07915983349084854,
-0.8561372756958008,
-0.6846698522567749,
-0.003989074379205704,
0.16983629763126373,
0.4382461607456207,
0.9477961659431458,
0.09938891232013702,
0.028329022228717804,
1.459556221961975,
1.1958045959472656,
-0.5094982981681824,
0.38780808448791504,
-0.9114056825637817,
-0.3665871322154999,
0.5267002582550049,
0.25329601764678955,
0.022631879895925522,
0.3378768861293793,
-0.957561194896698,
-0.23667974770069122,
-0.2878686189651489,
-0.9861034154891968,
-0.7537379860877991,
-0.5385936498641968,
-0.3831303119659424,
1.6610063314437866,
0.13965004682540894,
-0.44432249665260315,
-0.05996578559279442,
-0.782063364982605,
-0.0979338064789772,
-1.089660882949829,
0.06005369499325752,
-0.09594922512769699,
-0.1950128823518753,
-0.08170808851718903,
1.7972350120544434,
-0.9418551921844482,
-2.111722469329834,
0.24173760414123535,
0.29216864705085754,
-0.30038967728614807,
0.15618175268173218,
1.6185288429260254,
0.4808087646961212,
1.4438425302505493,
1.2320597171783447,
1.0613936185836792,
-0.625469446182251,
-1.278747797012329,
0.7322708368301392,
0.943836510181427,
-1.3585221767425537,
0.9076926708221436,
-0.04744219034910202,
-0.4595121145248413,
0.6633270978927612,
1.328926682472229,
0.4428097903728485,
-1.9461115598678589,
0.7371883988380432,
-0.8557372093200684,
0.7691650390625,
0.6551869511604309,
0.7092379927635193,
0.24765154719352722,
0.8350136876106262,
-1.2729779481887817,
-1.177270770072937,
-0.758068859577179,
-0.7030150294303894,
1.8768025636672974,
-0.24564191699028015,
0.5240709185600281,
-0.23949214816093445,
-1.217779517173767,
-0.15234604477882385,
0.7521413564682007,
0.30113109946250916,
-0.3535928428173065,
0.7496169805526733,
-0.7457185983657837,
-1.0863641500473022,
-1.4771384000778198,
-0.432288259267807,
-0.9610692262649536,
-0.8567391037940979,
1.041860818862915,
0.7572994232177734,
0.3034520149230957,
2.00036358833313,
0.5891832113265991,
0.26076793670654297,
-2.612281322479248,
0.8683093190193176,
0.24353092908859253,
0.03769578039646149,
0.935595691204071,
0.26303279399871826,
1.1590029001235962,
-0.02556011453270912,
0.5316376090049744,
-2.331878900527954,
2.303694248199463,
-0.2693657875061035,
0.667294442653656,
-0.01437406800687313,
-0.16632747650146484,
1.1353654861450195,
0.507519006729126,
0.6655364632606506,
-1.2021836042404175,
0.6720630526542664,
-0.6480442881584167,
1.1790260076522827,
1.0112769603729248,
-0.8495680689811707,
0.09689155966043472,
1.3302761316299438,
0.45459792017936707,
-0.51618492603302,
-0.897807776927948,
-0.9308362007141113,
0.878911018371582,
1.6956546306610107,
-0.06374488025903702,
-0.022758066654205322,
0.7956974506378174,
0.6232444047927856,
-1.2967523336410522,
0.0744481086730957,
-0.688311755657196,
-0.7967495322227478,
1.7073389291763306,
2.0525012016296387,
-0.12460450828075409,
-0.23928898572921753,
-0.761650800704956,
-1.1725836992263794,
0.806502640247345,
0.09548670798540115,
0.17425334453582764,
0.535325288772583,
-0.6557983756065369,
1.1769702434539795,
0.8691454529762268,
0.9006150364875793,
0.18064433336257935,
0.3576337993144989,
0.47874611616134644,
-0.2856205105781555,
-1.1204026937484741,
-0.35004934668540955,
-1.1847549676895142,
-2.6745452880859375,
0.4218878149986267,
-0.31553635001182556,
-1.4278022050857544,
0.0026479894295334816,
-1.0107134580612183,
0.8336888551712036,
-0.5791143178939819,
-0.9772692918777466,
-1.5309027433395386,
0.25855201482772827,
-0.1820850819349289,
0.8436564207077026,
-1.6707170009613037,
-0.07826150953769684,
1.256473183631897,
0.9923773407936096,
-0.6006066203117371,
1.04095458984375,
0.2475774586200714,
0.9690662622451782,
0.8477957248687744,
-0.5377106666564941,
0.5704876780509949,
0.11572087556123734,
-1.3668867349624634,
0.48105505108833313,
1.2340941429138184,
0.19868174195289612,
1.3828022480010986,
-0.46341097354888916,
0.06044550612568855,
0.44434940814971924,
-0.5530877709388733,
-0.5230006575584412,
-0.5497311949729919,
0.7564897537231445,
0.13171237707138062,
-0.9162514209747314,
0.011163956485688686,
-0.06926801055669785,
-0.2743195593357086,
0.2034928947687149,
-1.498136281967163,
-0.3635105490684509,
-0.4308057129383087,
-0.5239984393119812,
-1.3503834009170532,
-0.08853460103273392,
1.3158468008041382,
-0.7524014711380005,
-0.2404930740594864,
0.45347923040390015,
0.48037776350975037,
0.47455382347106934,
0.6260533928871155,
-0.6506513953208923,
-0.40296992659568787,
-0.31614959239959717,
-0.31779056787490845,
0.2966049611568451,
1.2720191478729248,
-0.1526878923177719,
-1.0124542713165283,
0.690891444683075,
-0.3085005283355713,
0.0738762617111206,
1.871856689453125,
0.017556123435497284,
-0.7373319864273071,
0.2290242463350296,
-0.6511935591697693,
1.9408270120620728,
1.6569606065750122,
1.2380152940750122,
-0.10199642181396484,
-0.8364291787147522,
0.6202948093414307,
-0.22802507877349854,
-0.32102063298225403,
0.9610166549682617,
0.4360834062099457,
-0.2025681883096695,
-1.393931269645691,
0.6008715033531189,
1.2403254508972168,
-0.866506040096283,
-0.8163505792617798,
-0.04766455665230751,
-0.8363677263259888,
1.1229690313339233,
0.619179368019104,
0.4090879559516907,
0.28755423426628113,
1.728007197380066,
0.6760677099227905,
-0.5754445195198059,
0.49155721068382263,
0.43612122535705566,
-0.11313328891992569,
-2.1678683757781982,
-1.1378424167633057,
0.2680889070034027,
-0.4230988919734955,
-1.5651450157165527,
1.4066067934036255,
-1.1177523136138916,
-0.9042650461196899,
0.6371886730194092,
0.11044290661811829,
1.3281910419464111,
0.2826010584831238,
1.637245774269104,
2.080127477645874,
0.8319181203842163,
0.2701525092124939,
1.2262976169586182,
-0.23790812492370605,
-0.4179633855819702,
1.903814673423767,
-0.3775663673877716,
0.47123685479164124,
1.0569634437561035,
-0.35395383834838867,
-0.9998582005500793,
-0.8400949835777283,
-1.1064152717590332,
-0.6463555693626404,
1.1257531642913818,
0.1641772985458374,
-1.1856377124786377,
0.18089894950389862,
1.6354061365127563,
0.0676162838935852,
-0.2180815488100052,
0.5757741332054138,
0.5296726822853088,
-0.6964283585548401,
-0.027308732271194458,
-0.9602522253990173,
0.5720507502555847,
-0.2000378519296646,
-0.29845646023750305,
0.32661667466163635,
0.45382413268089294,
1.2564146518707275,
-0.10502892732620239,
0.14425256848335266,
1.2087938785552979,
-1.4382414817810059,
1.4939693212509155,
-0.6047690510749817,
0.3110755383968353,
-2.348630428314209,
1.3578221797943115,
-0.8406108021736145,
1.9268536567687988,
-2.5528714656829834,
0.3229215741157532,
-0.5850719213485718,
-0.4850260317325592,
0.3783828020095825,
-0.4477591812610626,
0.1654861569404602,
-0.18764203786849976,
-0.997500479221344,
-0.03451954945921898,
-0.7207492589950562,
0.47962257266044617,
1.1758408546447754,
1.3442226648330688,
-1.0419015884399414,
-0.19731946289539337,
-1.7053529024124146,
-0.13645170629024506,
-0.6335230469703674,
0.32672959566116333,
-2.0441317558288574,
-0.15122029185295105,
-2.05322527885437,
-2.2464988231658936,
-1.3793845176696777,
-0.7796313166618347,
1.0560798645019531,
0.12883791327476501,
-0.9308564066886902,
1.1049847602844238,
-0.3160555064678192,
-1.8641357421875,
1.157104253768921,
-2.085258722305298
] |
https://github.com/huggingface/datasets/issues/4760 | Issue with offline mode | Hi @SaulLu, thanks for reporting.
I think offline mode is not supported for datasets containing only data files (without any loading script). I'm having a look into this... | ## Describe the bug
I can't retrieve a cached dataset with offline mode enabled
## Steps to reproduce the bug
To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
## Expected results
I would have expected the 2nd snippet not to return any errors
## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
ds = datasets.load_dataset(ds_name)
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
builder_instance = load_dataset_builder(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
| 599 | 28 | Issue with offline mode
## Describe the bug
I can't retrieve a cached dataset with offline mode enabled
## Steps to reproduce the bug
To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
## Expected results
I would have expected the 2nd snippet not to return any errors
## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
ds = datasets.load_dataset(ds_name)
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
builder_instance = load_dataset_builder(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
Hi @SaulLu, thanks for reporting.
I think offline mode is not supported for datasets containing only data files (without any loading script). I'm having a look into this... | [
-1.1975088119506836,
-0.9421461820602417,
-0.6714862585067749,
1.399462103843689,
-0.1876961588859558,
-1.2683565616607666,
0.13709181547164917,
-1.010711431503296,
1.5941537618637085,
-0.7892849445343018,
0.24272462725639343,
-1.683117151260376,
-0.09335468709468842,
-0.5249136090278625,
-0.6604933142662048,
-0.8875664472579956,
-0.3578454554080963,
-0.800851583480835,
1.0886176824569702,
2.481929063796997,
1.2297477722167969,
-1.280896782875061,
2.7545764446258545,
0.6228272914886475,
-0.2442234754562378,
-1.0179308652877808,
0.574730396270752,
-0.014741357415914536,
-1.2106362581253052,
-0.4597242474555969,
-0.887400209903717,
0.010368958115577698,
-0.5845924019813538,
-0.453675240278244,
0.006358874961733818,
0.5464134812355042,
-0.3749767541885376,
-0.3476935029029846,
-0.6702963709831238,
-0.7376598119735718,
0.5380842685699463,
-0.35531705617904663,
0.9495711922645569,
-0.3807772099971771,
1.7775375843048096,
-0.5939674377441406,
0.4338926672935486,
0.7032417058944702,
1.2785667181015015,
0.17147281765937805,
0.10286067426204681,
0.2817348539829254,
0.31961554288864136,
0.005193778313696384,
0.6210839152336121,
1.2080532312393188,
0.5762404203414917,
0.545285701751709,
0.6590262055397034,
-2.218045949935913,
1.276863694190979,
-0.8917364478111267,
0.27874672412872314,
1.3209768533706665,
-0.7713264226913452,
0.3073417544364929,
-1.7346574068069458,
-0.042144857347011566,
0.6327236890792847,
-2.1879043579101562,
0.295928418636322,
-1.3606982231140137,
-0.5607237815856934,
0.9569411277770996,
0.46825239062309265,
-1.202886939048767,
0.2096044421195984,
-0.4690993130207062,
1.149583101272583,
0.4860113263130188,
1.1436920166015625,
-1.635736107826233,
-0.004098081961274147,
-0.17837002873420715,
0.07120301574468613,
-1.3024612665176392,
-1.5837492942810059,
0.5339256525039673,
0.5625849366188049,
0.7266213893890381,
-0.13010576367378235,
1.0615835189819336,
-1.09585702419281,
0.7326194047927856,
-0.9834456443786621,
-1.6260030269622803,
-1.4567667245864868,
-2.413517475128174,
-2.3458309173583984,
0.7642993927001953,
-0.47219139337539673,
-0.5363805890083313,
1.984981656074524,
-1.028009295463562,
-1.7949310541152954,
1.0556381940841675,
0.3222912847995758,
0.06854031980037689,
2.3814313411712646,
0.26138439774513245,
-0.7856469750404358,
0.49644091725349426,
-0.7231348156929016,
0.8181701302528381,
-0.23340687155723572,
1.2915623188018799,
0.5228486061096191,
-1.0327097177505493,
1.567652702331543,
-0.4357012212276459,
0.6933813095092773,
-0.5797604322433472,
-0.5545870661735535,
-0.8276268839836121,
0.15229296684265137,
1.856877326965332,
-0.34057727456092834,
1.6571013927459717,
-0.2930213510990143,
-1.5865222215652466,
-1.6178325414657593,
0.9163169264793396,
0.46534502506256104,
-0.839000403881073,
0.03031254932284355,
-0.504416823387146,
0.16528350114822388,
-0.0748416855931282,
1.1771091222763062,
1.198457956314087,
0.7107807397842407,
-0.40992096066474915,
-0.7821694612503052,
0.20511281490325928,
-0.06520679593086243,
-0.6648377180099487,
-1.8012104034423828,
-0.26221635937690735,
0.20969420671463013,
0.5744491815567017,
-1.1830480098724365,
1.7890616655349731,
0.9138297438621521,
1.9610391855239868,
1.009812831878662,
-0.3071472644805908,
1.3988425731658936,
0.007428361102938652,
1.864723801612854,
-0.49969446659088135,
0.5439194440841675,
-0.33128735423088074,
-1.1782925128936768,
0.8424766659736633,
-0.37330353260040283,
-2.0599820613861084,
-0.8846547603607178,
-0.7323335409164429,
-0.16427186131477356,
-0.8054156303405762,
0.8342344164848328,
-0.37411555647850037,
-1.4924306869506836,
0.10891297459602356,
-0.7227598428726196,
0.1778254210948944,
-1.1893131732940674,
0.20976772904396057,
0.6939269304275513,
-0.6976754069328308,
-0.037595734000205994,
-0.20321276783943176,
-1.1993352174758911,
-0.4121575951576233,
0.3571300208568573,
1.893801212310791,
-0.6402024030685425,
0.9431547522544861,
1.0388075113296509,
-0.745306670665741,
0.06728517264127731,
0.18633267283439636,
-0.2732369005680084,
0.7680261731147766,
-1.0504852533340454,
-0.4110727906227112,
1.206296443939209,
-0.22389504313468933,
-0.7270562052726746,
1.5033906698226929,
0.7660346627235413,
-1.06349515914917,
-0.19698601961135864,
-0.16750428080558777,
-0.8551308512687683,
-0.0327322781085968,
-1.5376986265182495,
-0.10660232603549957,
0.4122348725795746,
-1.501348614692688,
-0.3972345292568207,
-0.13148336112499237,
1.2787290811538696,
-0.25098302960395813,
1.42839515209198,
-0.3819853663444519,
-0.11736512184143066,
-0.25406450033187866,
-0.4731462001800537,
0.1469039022922516,
-0.13416171073913574,
-0.5993951559066772,
0.13158586621284485,
-0.7990207076072693,
0.3103315830230713,
1.4863126277923584,
0.33072468638420105,
0.0781705379486084,
0.44824427366256714,
1.1196337938308716,
0.41992461681365967,
-0.058294739574193954,
-0.7843668460845947,
-1.5451797246932983,
1.9050039052963257,
-1.384741187095642,
1.993693232536316,
0.7386168837547302,
-0.1689351201057434,
-1.8634828329086304,
-1.8929409980773926,
1.2352850437164307,
1.14680016040802,
2.3597946166992188,
0.4218083322048187,
0.36826497316360474,
-0.7587730288505554,
-0.8362926840782166,
0.3438255786895752,
-0.9553777575492859,
-0.5846901535987854,
0.12249650806188583,
2.3246824741363525,
1.8624310493469238,
-0.5101452469825745,
-0.2523721158504486,
-0.9419207572937012,
1.3448374271392822,
-0.2668597400188446,
0.2983649671077728,
2.0683887004852295,
-0.29935160279273987,
-1.0073957443237305,
1.41909921169281,
-2.313889980316162,
0.2790243625640869,
2.06477427482605,
0.23103955388069153,
0.13025137782096863,
-1.38627290725708,
-0.601625919342041,
-0.3902021050453186,
-0.40415892004966736,
-1.288826584815979,
0.5206813216209412,
-0.3162563145160675,
-0.7903269529342651,
-1.3773722648620605,
0.12047622352838516,
-1.1066582202911377,
-1.7207850217819214,
0.2602477967739105,
1.986208200454712,
2.032501459121704,
-0.7793517112731934,
1.4154108762741089,
-0.3254872262477875,
0.08529290556907654,
1.3052692413330078,
1.3110934495925903,
3.048391819000244,
1.863589882850647,
-1.3287957906723022,
0.7581010460853577,
-0.1702008843421936,
-0.4547298550605774,
1.2169305086135864,
-1.1954896450042725,
1.1636581420898438,
-0.18848779797554016,
-1.1969225406646729,
-1.211620807647705,
1.0245757102966309,
0.5790081024169922,
-0.011121980845928192,
-0.5102936029434204,
1.2523363828659058,
0.05239400267601013,
1.3599209785461426,
0.5851620435714722,
-0.5397260785102844,
0.5805130004882812,
-0.3683421015739441,
-0.6332867741584778,
1.5577208995819092,
0.18423089385032654,
-1.5109773874282837,
-2.2724993228912354,
-0.26554739475250244,
-0.9257183074951172,
-0.008974782191216946,
-0.6218454241752625,
-1.0400497913360596,
1.629875659942627,
0.34639474749565125,
-1.2468701601028442,
-0.22213393449783325,
-0.2789480686187744,
-0.44857680797576904,
2.717921257019043,
-1.2101914882659912,
-0.07227320969104767,
-1.008720874786377,
-0.5930659174919128,
1.645492434501648,
-1.2164394855499268,
-0.26932260394096375,
-1.0583072900772095,
-0.6546986699104309,
-1.2735178470611572,
-0.4657263457775116,
0.0683538168668747,
-0.990059494972229,
0.7960148453712463,
0.0904056653380394,
-1.1432263851165771,
-0.30703234672546387,
-0.895139217376709,
1.1418843269348145,
-0.1540183126926422,
0.1884543001651764,
1.8729990720748901,
0.3049606680870056,
-0.4212566018104553,
0.7272851467132568,
1.2250885963439941,
0.6163803935050964,
-0.7375375032424927,
0.06969992071390152,
-0.6964976191520691,
0.40251463651657104,
-1.4555845260620117,
0.21271634101867676,
-2.9354264736175537,
0.7352280020713806,
-0.17164519429206848,
-0.16889306902885437,
-0.037301115691661835,
-1.3420170545578003,
0.9471938610076904,
2.5201878547668457,
-1.2368253469467163,
0.4410579204559326,
0.4602420926094055,
1.085310697555542,
-1.6189178228378296,
0.27911609411239624,
-0.5540732741355896,
2.032364845275879,
0.19442838430404663,
1.1682261228561401,
-0.4736914038658142,
-2.1569340229034424,
0.6087519526481628,
-1.1934459209442139,
-1.0991545915603638,
0.8669343590736389,
-0.9813396334648132,
0.3165511190891266,
-1.4176949262619019,
-0.21824908256530762,
-0.9390142560005188,
-1.1943789720535278,
0.6887549161911011,
0.1495257019996643,
0.3370690941810608,
-0.554566502571106,
0.3587913513183594,
-2.2605772018432617,
-1.363283395767212,
-0.18724411725997925,
-1.0005879402160645,
0.6182023286819458,
-0.39013582468032837,
0.5571132302284241,
-0.08413439989089966,
0.06735122203826904,
0.3244730830192566,
1.461626410484314,
3.417060613632202,
0.1417044997215271,
0.11342272907495499,
-0.10543543845415115,
-1.030697226524353,
1.4732283353805542,
0.872087299823761,
-0.10941369086503983,
-0.5918816924095154,
-1.0633344650268555,
1.278605341911316,
1.980218768119812,
1.1649833917617798,
0.06551365554332733,
-0.8216617703437805,
-0.7720694541931152,
0.014882994815707207,
0.16523262858390808,
0.5256485342979431,
0.8867143392562866,
0.005968470126390457,
0.1445668637752533,
1.3540230989456177,
1.1050373315811157,
-0.25633159279823303,
0.3795255422592163,
-0.923660397529602,
-0.4519383907318115,
0.42412838339805603,
0.17937400937080383,
0.001402747817337513,
0.4581308364868164,
-1.0644052028656006,
-0.23539531230926514,
-0.442457377910614,
-0.8525866270065308,
-0.7907423973083496,
-0.440586119890213,
-0.4114609956741333,
1.5574973821640015,
0.06013725697994232,
-0.5152800679206848,
-0.008737578988075256,
-0.6769543290138245,
-0.19882699847221375,
-1.1284003257751465,
0.21867185831069946,
-0.0937885195016861,
-0.09941793978214264,
-0.17920276522636414,
1.5798301696777344,
-0.9649549722671509,
-2.1108078956604004,
0.1650780737400055,
0.30865421891212463,
-0.21510368585586548,
0.1854281723499298,
1.7063331604003906,
0.4796983003616333,
1.3450803756713867,
1.3153197765350342,
0.9366992115974426,
-0.6221520900726318,
-1.2030715942382812,
0.7222272157669067,
0.9593183994293213,
-1.3329931497573853,
0.9654607176780701,
-0.1446722447872162,
-0.5588973164558411,
0.7232576012611389,
1.3196760416030884,
0.4972423017024994,
-1.9948710203170776,
0.8979218006134033,
-0.9744874835014343,
0.7083884477615356,
0.7384878396987915,
0.7793387770652771,
0.25495389103889465,
0.937191903591156,
-1.1652454137802124,
-1.1951006650924683,
-0.6539385914802551,
-0.7065770626068115,
1.8718329668045044,
-0.2899780869483948,
0.6307945847511292,
-0.2292848527431488,
-1.172643780708313,
-0.11931814253330231,
0.83515465259552,
0.3980535864830017,
-0.490046888589859,
0.8943355679512024,
-0.599679172039032,
-0.9084121584892273,
-1.281580924987793,
-0.34314173460006714,
-1.099992036819458,
-0.8646041750907898,
1.0200382471084595,
0.7534617781639099,
0.40587812662124634,
1.9062138795852661,
0.6392002105712891,
0.3696783483028412,
-2.605600357055664,
0.8355574607849121,
0.24925565719604492,
-0.013653814792633057,
0.8266050219535828,
0.34462451934814453,
1.0961260795593262,
0.03959580883383751,
0.5724190473556519,
-2.309623956680298,
2.1792609691619873,
-0.20675396919250488,
0.59330153465271,
-0.09184949100017548,
-0.21381336450576782,
1.118592381477356,
0.6295156478881836,
0.5166578888893127,
-1.0597606897354126,
0.7395315170288086,
-0.49940869212150574,
1.0395362377166748,
0.9447660446166992,
-0.885984480381012,
0.06960894912481308,
1.4877177476882935,
0.449072003364563,
-0.47027283906936646,
-0.9586868286132812,
-0.8114114999771118,
0.942183792591095,
1.6846206188201904,
-0.03678574413061142,
-0.05166379734873772,
0.8402745723724365,
0.6881487965583801,
-1.2459858655929565,
0.10840491950511932,
-0.6960734724998474,
-0.6577731966972351,
1.726062536239624,
2.015505790710449,
-0.10790561884641647,
-0.1591717004776001,
-0.7259559035301208,
-1.2411019802093506,
0.7853128910064697,
-0.13338640332221985,
0.038680750876665115,
0.6645755171775818,
-0.7188231945037842,
1.056654453277588,
0.6411316990852356,
1.0180939435958862,
-0.035602737218141556,
0.23645028471946716,
0.42892980575561523,
-0.28089404106140137,
-1.2201422452926636,
-0.3067964017391205,
-1.0593376159667969,
-2.57546067237854,
0.3949872553348541,
-0.2785884439945221,
-1.483833909034729,
0.0462598018348217,
-1.0609291791915894,
0.9625883102416992,
-0.5559005737304688,
-1.0934206247329712,
-1.4754034280776978,
0.32107123732566833,
0.008665533736348152,
0.9520680904388428,
-1.6304888725280762,
-0.2506014108657837,
1.2104172706604004,
0.8474767804145813,
-0.6336447596549988,
0.987697422504425,
0.26627326011657715,
0.9571303129196167,
0.754094660282135,
-0.47270259261131287,
0.6181463003158569,
-0.03310036659240723,
-1.3850117921829224,
0.47970905900001526,
1.2170555591583252,
0.2026003897190094,
1.406059980392456,
-0.4163869619369507,
0.13037103414535522,
0.3919859230518341,
-0.695966362953186,
-0.4577373266220093,
-0.4318794310092926,
0.7241583466529846,
0.005033536814153194,
-0.9647008180618286,
-0.15211281180381775,
-0.0799194946885109,
-0.3503513038158417,
0.16450205445289612,
-1.458319902420044,
-0.2570593059062958,
-0.39237794280052185,
-0.5401518940925598,
-1.3431766033172607,
0.01869312673807144,
1.3870142698287964,
-0.8820052742958069,
-0.24117332696914673,
0.5141472220420837,
0.3980989456176758,
0.6094232797622681,
0.6087631583213806,
-0.7666493058204651,
-0.19673508405685425,
-0.34157827496528625,
-0.25668781995773315,
0.208767831325531,
1.3547585010528564,
-0.07771722227334976,
-1.001318335533142,
0.6726452112197876,
-0.34138786792755127,
0.15546011924743652,
2.0286004543304443,
0.08924678713083267,
-0.6356076002120972,
0.3470878601074219,
-0.7437776923179626,
1.7794257402420044,
1.7986136674880981,
1.3737945556640625,
-0.10251966118812561,
-0.8629888892173767,
0.5629163384437561,
-0.3175312578678131,
-0.36986827850341797,
0.9654229283332825,
0.3933655321598053,
-0.26378434896469116,
-1.3723050355911255,
0.8039413690567017,
1.2630928754806519,
-0.8154023885726929,
-0.7329009771347046,
0.10425908118486404,
-0.8846383690834045,
1.2202587127685547,
0.5363761186599731,
0.31169211864471436,
0.3064870238304138,
1.5362893342971802,
0.7063578367233276,
-0.44569337368011475,
0.4913279116153717,
0.599067211151123,
-0.18918153643608093,
-2.132183790206909,
-1.038861870765686,
0.4278933107852936,
-0.485442578792572,
-1.6183689832687378,
1.397020936012268,
-1.119321346282959,
-1.050525188446045,
0.5526781678199768,
0.08114354312419891,
1.279563069343567,
0.38867464661598206,
1.6793055534362793,
2.131131172180176,
0.9237205982208252,
0.4380454123020172,
1.2586987018585205,
-0.10510227829217911,
-0.380719393491745,
1.8022630214691162,
-0.4127398133277893,
0.5187031030654907,
0.9852336049079895,
-0.37484005093574524,
-1.1362391710281372,
-0.805509090423584,
-1.197040319442749,
-0.6700565814971924,
1.1818878650665283,
0.08175668865442276,
-1.0342673063278198,
0.18525248765945435,
1.5446404218673706,
0.14492973685264587,
-0.19611826539039612,
0.7387388944625854,
0.34802037477493286,
-0.8051825761795044,
-0.07131141424179077,
-0.8752223253250122,
0.500532329082489,
-0.1403050720691681,
-0.30807194113731384,
0.2263733148574829,
0.5382056832313538,
1.39177668094635,
-0.09100066125392914,
0.12162711471319199,
1.1791119575500488,
-1.3325389623641968,
1.4663792848587036,
-0.6328370571136475,
0.29693254828453064,
-2.4848310947418213,
1.4124668836593628,
-0.6911246180534363,
1.9167520999908447,
-2.5524232387542725,
0.5537441968917847,
-0.5858350396156311,
-0.4673752188682556,
0.27461308240890503,
-0.39853981137275696,
0.06151890009641647,
-0.07115325331687927,
-1.043375015258789,
0.020509421825408936,
-0.6609612703323364,
0.6973310708999634,
1.1346737146377563,
1.4222580194473267,
-1.2094991207122803,
-0.2837238311767578,
-1.705901026725769,
-0.19550564885139465,
-0.8431591987609863,
0.31245091557502747,
-2.0380208492279053,
-0.17917418479919434,
-1.9845576286315918,
-2.519408702850342,
-1.3134464025497437,
-0.7835023999214172,
1.0877972841262817,
0.23063358664512634,
-0.9480745792388916,
1.244401454925537,
-0.34862712025642395,
-1.903676152229309,
1.1443206071853638,
-2.1970906257629395
] |
https://github.com/huggingface/datasets/issues/4760 | Issue with offline mode | Thanks for your feedback!
To give you a little more info, if you don't set the offline mode flag, the script will load the cache. I first noticed this behavior with the `evaluate` library, and while trying to understand the downloading flow I realized that I had a similar error with datasets. | ## Describe the bug
I can't retrieve a cached dataset with offline mode enabled
## Steps to reproduce the bug
To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
## Expected results
I would have expected the 2nd snippet not to return any errors
## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
ds = datasets.load_dataset(ds_name)
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
builder_instance = load_dataset_builder(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
| 599 | 52 | Issue with offline mode
## Describe the bug
I can't retrieve a cached dataset with offline mode enabled
## Steps to reproduce the bug
To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
## Expected results
I would have expected the 2nd snippet not to return any errors
## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
ds = datasets.load_dataset(ds_name)
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
builder_instance = load_dataset_builder(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
Thanks for your feedback!
To give you a little more info, if you don't set the offline mode flag, the script will load the cache. I first noticed this behavior with the `evaluate` library, and while trying to understand the downloading flow I realized that I had a similar error with datasets. | [
-1.1975088119506836,
-0.9421461820602417,
-0.6714862585067749,
1.399462103843689,
-0.1876961588859558,
-1.2683565616607666,
0.13709181547164917,
-1.010711431503296,
1.5941537618637085,
-0.7892849445343018,
0.24272462725639343,
-1.683117151260376,
-0.09335468709468842,
-0.5249136090278625,
-0.6604933142662048,
-0.8875664472579956,
-0.3578454554080963,
-0.800851583480835,
1.0886176824569702,
2.481929063796997,
1.2297477722167969,
-1.280896782875061,
2.7545764446258545,
0.6228272914886475,
-0.2442234754562378,
-1.0179308652877808,
0.574730396270752,
-0.014741357415914536,
-1.2106362581253052,
-0.4597242474555969,
-0.887400209903717,
0.010368958115577698,
-0.5845924019813538,
-0.453675240278244,
0.006358874961733818,
0.5464134812355042,
-0.3749767541885376,
-0.3476935029029846,
-0.6702963709831238,
-0.7376598119735718,
0.5380842685699463,
-0.35531705617904663,
0.9495711922645569,
-0.3807772099971771,
1.7775375843048096,
-0.5939674377441406,
0.4338926672935486,
0.7032417058944702,
1.2785667181015015,
0.17147281765937805,
0.10286067426204681,
0.2817348539829254,
0.31961554288864136,
0.005193778313696384,
0.6210839152336121,
1.2080532312393188,
0.5762404203414917,
0.545285701751709,
0.6590262055397034,
-2.218045949935913,
1.276863694190979,
-0.8917364478111267,
0.27874672412872314,
1.3209768533706665,
-0.7713264226913452,
0.3073417544364929,
-1.7346574068069458,
-0.042144857347011566,
0.6327236890792847,
-2.1879043579101562,
0.295928418636322,
-1.3606982231140137,
-0.5607237815856934,
0.9569411277770996,
0.46825239062309265,
-1.202886939048767,
0.2096044421195984,
-0.4690993130207062,
1.149583101272583,
0.4860113263130188,
1.1436920166015625,
-1.635736107826233,
-0.004098081961274147,
-0.17837002873420715,
0.07120301574468613,
-1.3024612665176392,
-1.5837492942810059,
0.5339256525039673,
0.5625849366188049,
0.7266213893890381,
-0.13010576367378235,
1.0615835189819336,
-1.09585702419281,
0.7326194047927856,
-0.9834456443786621,
-1.6260030269622803,
-1.4567667245864868,
-2.413517475128174,
-2.3458309173583984,
0.7642993927001953,
-0.47219139337539673,
-0.5363805890083313,
1.984981656074524,
-1.028009295463562,
-1.7949310541152954,
1.0556381940841675,
0.3222912847995758,
0.06854031980037689,
2.3814313411712646,
0.26138439774513245,
-0.7856469750404358,
0.49644091725349426,
-0.7231348156929016,
0.8181701302528381,
-0.23340687155723572,
1.2915623188018799,
0.5228486061096191,
-1.0327097177505493,
1.567652702331543,
-0.4357012212276459,
0.6933813095092773,
-0.5797604322433472,
-0.5545870661735535,
-0.8276268839836121,
0.15229296684265137,
1.856877326965332,
-0.34057727456092834,
1.6571013927459717,
-0.2930213510990143,
-1.5865222215652466,
-1.6178325414657593,
0.9163169264793396,
0.46534502506256104,
-0.839000403881073,
0.03031254932284355,
-0.504416823387146,
0.16528350114822388,
-0.0748416855931282,
1.1771091222763062,
1.198457956314087,
0.7107807397842407,
-0.40992096066474915,
-0.7821694612503052,
0.20511281490325928,
-0.06520679593086243,
-0.6648377180099487,
-1.8012104034423828,
-0.26221635937690735,
0.20969420671463013,
0.5744491815567017,
-1.1830480098724365,
1.7890616655349731,
0.9138297438621521,
1.9610391855239868,
1.009812831878662,
-0.3071472644805908,
1.3988425731658936,
0.007428361102938652,
1.864723801612854,
-0.49969446659088135,
0.5439194440841675,
-0.33128735423088074,
-1.1782925128936768,
0.8424766659736633,
-0.37330353260040283,
-2.0599820613861084,
-0.8846547603607178,
-0.7323335409164429,
-0.16427186131477356,
-0.8054156303405762,
0.8342344164848328,
-0.37411555647850037,
-1.4924306869506836,
0.10891297459602356,
-0.7227598428726196,
0.1778254210948944,
-1.1893131732940674,
0.20976772904396057,
0.6939269304275513,
-0.6976754069328308,
-0.037595734000205994,
-0.20321276783943176,
-1.1993352174758911,
-0.4121575951576233,
0.3571300208568573,
1.893801212310791,
-0.6402024030685425,
0.9431547522544861,
1.0388075113296509,
-0.745306670665741,
0.06728517264127731,
0.18633267283439636,
-0.2732369005680084,
0.7680261731147766,
-1.0504852533340454,
-0.4110727906227112,
1.206296443939209,
-0.22389504313468933,
-0.7270562052726746,
1.5033906698226929,
0.7660346627235413,
-1.06349515914917,
-0.19698601961135864,
-0.16750428080558777,
-0.8551308512687683,
-0.0327322781085968,
-1.5376986265182495,
-0.10660232603549957,
0.4122348725795746,
-1.501348614692688,
-0.3972345292568207,
-0.13148336112499237,
1.2787290811538696,
-0.25098302960395813,
1.42839515209198,
-0.3819853663444519,
-0.11736512184143066,
-0.25406450033187866,
-0.4731462001800537,
0.1469039022922516,
-0.13416171073913574,
-0.5993951559066772,
0.13158586621284485,
-0.7990207076072693,
0.3103315830230713,
1.4863126277923584,
0.33072468638420105,
0.0781705379486084,
0.44824427366256714,
1.1196337938308716,
0.41992461681365967,
-0.058294739574193954,
-0.7843668460845947,
-1.5451797246932983,
1.9050039052963257,
-1.384741187095642,
1.993693232536316,
0.7386168837547302,
-0.1689351201057434,
-1.8634828329086304,
-1.8929409980773926,
1.2352850437164307,
1.14680016040802,
2.3597946166992188,
0.4218083322048187,
0.36826497316360474,
-0.7587730288505554,
-0.8362926840782166,
0.3438255786895752,
-0.9553777575492859,
-0.5846901535987854,
0.12249650806188583,
2.3246824741363525,
1.8624310493469238,
-0.5101452469825745,
-0.2523721158504486,
-0.9419207572937012,
1.3448374271392822,
-0.2668597400188446,
0.2983649671077728,
2.0683887004852295,
-0.29935160279273987,
-1.0073957443237305,
1.41909921169281,
-2.313889980316162,
0.2790243625640869,
2.06477427482605,
0.23103955388069153,
0.13025137782096863,
-1.38627290725708,
-0.601625919342041,
-0.3902021050453186,
-0.40415892004966736,
-1.288826584815979,
0.5206813216209412,
-0.3162563145160675,
-0.7903269529342651,
-1.3773722648620605,
0.12047622352838516,
-1.1066582202911377,
-1.7207850217819214,
0.2602477967739105,
1.986208200454712,
2.032501459121704,
-0.7793517112731934,
1.4154108762741089,
-0.3254872262477875,
0.08529290556907654,
1.3052692413330078,
1.3110934495925903,
3.048391819000244,
1.863589882850647,
-1.3287957906723022,
0.7581010460853577,
-0.1702008843421936,
-0.4547298550605774,
1.2169305086135864,
-1.1954896450042725,
1.1636581420898438,
-0.18848779797554016,
-1.1969225406646729,
-1.211620807647705,
1.0245757102966309,
0.5790081024169922,
-0.011121980845928192,
-0.5102936029434204,
1.2523363828659058,
0.05239400267601013,
1.3599209785461426,
0.5851620435714722,
-0.5397260785102844,
0.5805130004882812,
-0.3683421015739441,
-0.6332867741584778,
1.5577208995819092,
0.18423089385032654,
-1.5109773874282837,
-2.2724993228912354,
-0.26554739475250244,
-0.9257183074951172,
-0.008974782191216946,
-0.6218454241752625,
-1.0400497913360596,
1.629875659942627,
0.34639474749565125,
-1.2468701601028442,
-0.22213393449783325,
-0.2789480686187744,
-0.44857680797576904,
2.717921257019043,
-1.2101914882659912,
-0.07227320969104767,
-1.008720874786377,
-0.5930659174919128,
1.645492434501648,
-1.2164394855499268,
-0.26932260394096375,
-1.0583072900772095,
-0.6546986699104309,
-1.2735178470611572,
-0.4657263457775116,
0.0683538168668747,
-0.990059494972229,
0.7960148453712463,
0.0904056653380394,
-1.1432263851165771,
-0.30703234672546387,
-0.895139217376709,
1.1418843269348145,
-0.1540183126926422,
0.1884543001651764,
1.8729990720748901,
0.3049606680870056,
-0.4212566018104553,
0.7272851467132568,
1.2250885963439941,
0.6163803935050964,
-0.7375375032424927,
0.06969992071390152,
-0.6964976191520691,
0.40251463651657104,
-1.4555845260620117,
0.21271634101867676,
-2.9354264736175537,
0.7352280020713806,
-0.17164519429206848,
-0.16889306902885437,
-0.037301115691661835,
-1.3420170545578003,
0.9471938610076904,
2.5201878547668457,
-1.2368253469467163,
0.4410579204559326,
0.4602420926094055,
1.085310697555542,
-1.6189178228378296,
0.27911609411239624,
-0.5540732741355896,
2.032364845275879,
0.19442838430404663,
1.1682261228561401,
-0.4736914038658142,
-2.1569340229034424,
0.6087519526481628,
-1.1934459209442139,
-1.0991545915603638,
0.8669343590736389,
-0.9813396334648132,
0.3165511190891266,
-1.4176949262619019,
-0.21824908256530762,
-0.9390142560005188,
-1.1943789720535278,
0.6887549161911011,
0.1495257019996643,
0.3370690941810608,
-0.554566502571106,
0.3587913513183594,
-2.2605772018432617,
-1.363283395767212,
-0.18724411725997925,
-1.0005879402160645,
0.6182023286819458,
-0.39013582468032837,
0.5571132302284241,
-0.08413439989089966,
0.06735122203826904,
0.3244730830192566,
1.461626410484314,
3.417060613632202,
0.1417044997215271,
0.11342272907495499,
-0.10543543845415115,
-1.030697226524353,
1.4732283353805542,
0.872087299823761,
-0.10941369086503983,
-0.5918816924095154,
-1.0633344650268555,
1.278605341911316,
1.980218768119812,
1.1649833917617798,
0.06551365554332733,
-0.8216617703437805,
-0.7720694541931152,
0.014882994815707207,
0.16523262858390808,
0.5256485342979431,
0.8867143392562866,
0.005968470126390457,
0.1445668637752533,
1.3540230989456177,
1.1050373315811157,
-0.25633159279823303,
0.3795255422592163,
-0.923660397529602,
-0.4519383907318115,
0.42412838339805603,
0.17937400937080383,
0.001402747817337513,
0.4581308364868164,
-1.0644052028656006,
-0.23539531230926514,
-0.442457377910614,
-0.8525866270065308,
-0.7907423973083496,
-0.440586119890213,
-0.4114609956741333,
1.5574973821640015,
0.06013725697994232,
-0.5152800679206848,
-0.008737578988075256,
-0.6769543290138245,
-0.19882699847221375,
-1.1284003257751465,
0.21867185831069946,
-0.0937885195016861,
-0.09941793978214264,
-0.17920276522636414,
1.5798301696777344,
-0.9649549722671509,
-2.1108078956604004,
0.1650780737400055,
0.30865421891212463,
-0.21510368585586548,
0.1854281723499298,
1.7063331604003906,
0.4796983003616333,
1.3450803756713867,
1.3153197765350342,
0.9366992115974426,
-0.6221520900726318,
-1.2030715942382812,
0.7222272157669067,
0.9593183994293213,
-1.3329931497573853,
0.9654607176780701,
-0.1446722447872162,
-0.5588973164558411,
0.7232576012611389,
1.3196760416030884,
0.4972423017024994,
-1.9948710203170776,
0.8979218006134033,
-0.9744874835014343,
0.7083884477615356,
0.7384878396987915,
0.7793387770652771,
0.25495389103889465,
0.937191903591156,
-1.1652454137802124,
-1.1951006650924683,
-0.6539385914802551,
-0.7065770626068115,
1.8718329668045044,
-0.2899780869483948,
0.6307945847511292,
-0.2292848527431488,
-1.172643780708313,
-0.11931814253330231,
0.83515465259552,
0.3980535864830017,
-0.490046888589859,
0.8943355679512024,
-0.599679172039032,
-0.9084121584892273,
-1.281580924987793,
-0.34314173460006714,
-1.099992036819458,
-0.8646041750907898,
1.0200382471084595,
0.7534617781639099,
0.40587812662124634,
1.9062138795852661,
0.6392002105712891,
0.3696783483028412,
-2.605600357055664,
0.8355574607849121,
0.24925565719604492,
-0.013653814792633057,
0.8266050219535828,
0.34462451934814453,
1.0961260795593262,
0.03959580883383751,
0.5724190473556519,
-2.309623956680298,
2.1792609691619873,
-0.20675396919250488,
0.59330153465271,
-0.09184949100017548,
-0.21381336450576782,
1.118592381477356,
0.6295156478881836,
0.5166578888893127,
-1.0597606897354126,
0.7395315170288086,
-0.49940869212150574,
1.0395362377166748,
0.9447660446166992,
-0.885984480381012,
0.06960894912481308,
1.4877177476882935,
0.449072003364563,
-0.47027283906936646,
-0.9586868286132812,
-0.8114114999771118,
0.942183792591095,
1.6846206188201904,
-0.03678574413061142,
-0.05166379734873772,
0.8402745723724365,
0.6881487965583801,
-1.2459858655929565,
0.10840491950511932,
-0.6960734724998474,
-0.6577731966972351,
1.726062536239624,
2.015505790710449,
-0.10790561884641647,
-0.1591717004776001,
-0.7259559035301208,
-1.2411019802093506,
0.7853128910064697,
-0.13338640332221985,
0.038680750876665115,
0.6645755171775818,
-0.7188231945037842,
1.056654453277588,
0.6411316990852356,
1.0180939435958862,
-0.035602737218141556,
0.23645028471946716,
0.42892980575561523,
-0.28089404106140137,
-1.2201422452926636,
-0.3067964017391205,
-1.0593376159667969,
-2.57546067237854,
0.3949872553348541,
-0.2785884439945221,
-1.483833909034729,
0.0462598018348217,
-1.0609291791915894,
0.9625883102416992,
-0.5559005737304688,
-1.0934206247329712,
-1.4754034280776978,
0.32107123732566833,
0.008665533736348152,
0.9520680904388428,
-1.6304888725280762,
-0.2506014108657837,
1.2104172706604004,
0.8474767804145813,
-0.6336447596549988,
0.987697422504425,
0.26627326011657715,
0.9571303129196167,
0.754094660282135,
-0.47270259261131287,
0.6181463003158569,
-0.03310036659240723,
-1.3850117921829224,
0.47970905900001526,
1.2170555591583252,
0.2026003897190094,
1.406059980392456,
-0.4163869619369507,
0.13037103414535522,
0.3919859230518341,
-0.695966362953186,
-0.4577373266220093,
-0.4318794310092926,
0.7241583466529846,
0.005033536814153194,
-0.9647008180618286,
-0.15211281180381775,
-0.0799194946885109,
-0.3503513038158417,
0.16450205445289612,
-1.458319902420044,
-0.2570593059062958,
-0.39237794280052185,
-0.5401518940925598,
-1.3431766033172607,
0.01869312673807144,
1.3870142698287964,
-0.8820052742958069,
-0.24117332696914673,
0.5141472220420837,
0.3980989456176758,
0.6094232797622681,
0.6087631583213806,
-0.7666493058204651,
-0.19673508405685425,
-0.34157827496528625,
-0.25668781995773315,
0.208767831325531,
1.3547585010528564,
-0.07771722227334976,
-1.001318335533142,
0.6726452112197876,
-0.34138786792755127,
0.15546011924743652,
2.0286004543304443,
0.08924678713083267,
-0.6356076002120972,
0.3470878601074219,
-0.7437776923179626,
1.7794257402420044,
1.7986136674880981,
1.3737945556640625,
-0.10251966118812561,
-0.8629888892173767,
0.5629163384437561,
-0.3175312578678131,
-0.36986827850341797,
0.9654229283332825,
0.3933655321598053,
-0.26378434896469116,
-1.3723050355911255,
0.8039413690567017,
1.2630928754806519,
-0.8154023885726929,
-0.7329009771347046,
0.10425908118486404,
-0.8846383690834045,
1.2202587127685547,
0.5363761186599731,
0.31169211864471436,
0.3064870238304138,
1.5362893342971802,
0.7063578367233276,
-0.44569337368011475,
0.4913279116153717,
0.599067211151123,
-0.18918153643608093,
-2.132183790206909,
-1.038861870765686,
0.4278933107852936,
-0.485442578792572,
-1.6183689832687378,
1.397020936012268,
-1.119321346282959,
-1.050525188446045,
0.5526781678199768,
0.08114354312419891,
1.279563069343567,
0.38867464661598206,
1.6793055534362793,
2.131131172180176,
0.9237205982208252,
0.4380454123020172,
1.2586987018585205,
-0.10510227829217911,
-0.380719393491745,
1.8022630214691162,
-0.4127398133277893,
0.5187031030654907,
0.9852336049079895,
-0.37484005093574524,
-1.1362391710281372,
-0.805509090423584,
-1.197040319442749,
-0.6700565814971924,
1.1818878650665283,
0.08175668865442276,
-1.0342673063278198,
0.18525248765945435,
1.5446404218673706,
0.14492973685264587,
-0.19611826539039612,
0.7387388944625854,
0.34802037477493286,
-0.8051825761795044,
-0.07131141424179077,
-0.8752223253250122,
0.500532329082489,
-0.1403050720691681,
-0.30807194113731384,
0.2263733148574829,
0.5382056832313538,
1.39177668094635,
-0.09100066125392914,
0.12162711471319199,
1.1791119575500488,
-1.3325389623641968,
1.4663792848587036,
-0.6328370571136475,
0.29693254828453064,
-2.4848310947418213,
1.4124668836593628,
-0.6911246180534363,
1.9167520999908447,
-2.5524232387542725,
0.5537441968917847,
-0.5858350396156311,
-0.4673752188682556,
0.27461308240890503,
-0.39853981137275696,
0.06151890009641647,
-0.07115325331687927,
-1.043375015258789,
0.020509421825408936,
-0.6609612703323364,
0.6973310708999634,
1.1346737146377563,
1.4222580194473267,
-1.2094991207122803,
-0.2837238311767578,
-1.705901026725769,
-0.19550564885139465,
-0.8431591987609863,
0.31245091557502747,
-2.0380208492279053,
-0.17917418479919434,
-1.9845576286315918,
-2.519408702850342,
-1.3134464025497437,
-0.7835023999214172,
1.0877972841262817,
0.23063358664512634,
-0.9480745792388916,
1.244401454925537,
-0.34862712025642395,
-1.903676152229309,
1.1443206071853638,
-2.1970906257629395
] |
https://github.com/huggingface/datasets/issues/4760 | Issue with offline mode | #5331 will be helpful to fix this, as it updates the cache directory template to be aligned with the other datasets | ## Describe the bug
I can't retrieve a cached dataset with offline mode enabled
## Steps to reproduce the bug
To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
## Expected results
I would have expected the 2nd snippet not to return any errors
## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
ds = datasets.load_dataset(ds_name)
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
builder_instance = load_dataset_builder(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
| 599 | 21 | Issue with offline mode
## Describe the bug
I can't retrieve a cached dataset with offline mode enabled
## Steps to reproduce the bug
To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"
import datasets
datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
## Expected results
I would have expected the 2nd snippet not to return any errors
## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
ds = datasets.load_dataset(ds_name)
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
builder_instance = load_dataset_builder(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
#5331 will be helpful to fix this, as it updates the cache directory template to be aligned with the other datasets | [
-1.1975088119506836,
-0.9421461820602417,
-0.6714862585067749,
1.399462103843689,
-0.1876961588859558,
-1.2683565616607666,
0.13709181547164917,
-1.010711431503296,
1.5941537618637085,
-0.7892849445343018,
0.24272462725639343,
-1.683117151260376,
-0.09335468709468842,
-0.5249136090278625,
-0.6604933142662048,
-0.8875664472579956,
-0.3578454554080963,
-0.800851583480835,
1.0886176824569702,
2.481929063796997,
1.2297477722167969,
-1.280896782875061,
2.7545764446258545,
0.6228272914886475,
-0.2442234754562378,
-1.0179308652877808,
0.574730396270752,
-0.014741357415914536,
-1.2106362581253052,
-0.4597242474555969,
-0.887400209903717,
0.010368958115577698,
-0.5845924019813538,
-0.453675240278244,
0.006358874961733818,
0.5464134812355042,
-0.3749767541885376,
-0.3476935029029846,
-0.6702963709831238,
-0.7376598119735718,
0.5380842685699463,
-0.35531705617904663,
0.9495711922645569,
-0.3807772099971771,
1.7775375843048096,
-0.5939674377441406,
0.4338926672935486,
0.7032417058944702,
1.2785667181015015,
0.17147281765937805,
0.10286067426204681,
0.2817348539829254,
0.31961554288864136,
0.005193778313696384,
0.6210839152336121,
1.2080532312393188,
0.5762404203414917,
0.545285701751709,
0.6590262055397034,
-2.218045949935913,
1.276863694190979,
-0.8917364478111267,
0.27874672412872314,
1.3209768533706665,
-0.7713264226913452,
0.3073417544364929,
-1.7346574068069458,
-0.042144857347011566,
0.6327236890792847,
-2.1879043579101562,
0.295928418636322,
-1.3606982231140137,
-0.5607237815856934,
0.9569411277770996,
0.46825239062309265,
-1.202886939048767,
0.2096044421195984,
-0.4690993130207062,
1.149583101272583,
0.4860113263130188,
1.1436920166015625,
-1.635736107826233,
-0.004098081961274147,
-0.17837002873420715,
0.07120301574468613,
-1.3024612665176392,
-1.5837492942810059,
0.5339256525039673,
0.5625849366188049,
0.7266213893890381,
-0.13010576367378235,
1.0615835189819336,
-1.09585702419281,
0.7326194047927856,
-0.9834456443786621,
-1.6260030269622803,
-1.4567667245864868,
-2.413517475128174,
-2.3458309173583984,
0.7642993927001953,
-0.47219139337539673,
-0.5363805890083313,
1.984981656074524,
-1.028009295463562,
-1.7949310541152954,
1.0556381940841675,
0.3222912847995758,
0.06854031980037689,
2.3814313411712646,
0.26138439774513245,
-0.7856469750404358,
0.49644091725349426,
-0.7231348156929016,
0.8181701302528381,
-0.23340687155723572,
1.2915623188018799,
0.5228486061096191,
-1.0327097177505493,
1.567652702331543,
-0.4357012212276459,
0.6933813095092773,
-0.5797604322433472,
-0.5545870661735535,
-0.8276268839836121,
0.15229296684265137,
1.856877326965332,
-0.34057727456092834,
1.6571013927459717,
-0.2930213510990143,
-1.5865222215652466,
-1.6178325414657593,
0.9163169264793396,
0.46534502506256104,
-0.839000403881073,
0.03031254932284355,
-0.504416823387146,
0.16528350114822388,
-0.0748416855931282,
1.1771091222763062,
1.198457956314087,
0.7107807397842407,
-0.40992096066474915,
-0.7821694612503052,
0.20511281490325928,
-0.06520679593086243,
-0.6648377180099487,
-1.8012104034423828,
-0.26221635937690735,
0.20969420671463013,
0.5744491815567017,
-1.1830480098724365,
1.7890616655349731,
0.9138297438621521,
1.9610391855239868,
1.009812831878662,
-0.3071472644805908,
1.3988425731658936,
0.007428361102938652,
1.864723801612854,
-0.49969446659088135,
0.5439194440841675,
-0.33128735423088074,
-1.1782925128936768,
0.8424766659736633,
-0.37330353260040283,
-2.0599820613861084,
-0.8846547603607178,
-0.7323335409164429,
-0.16427186131477356,
-0.8054156303405762,
0.8342344164848328,
-0.37411555647850037,
-1.4924306869506836,
0.10891297459602356,
-0.7227598428726196,
0.1778254210948944,
-1.1893131732940674,
0.20976772904396057,
0.6939269304275513,
-0.6976754069328308,
-0.037595734000205994,
-0.20321276783943176,
-1.1993352174758911,
-0.4121575951576233,
0.3571300208568573,
1.893801212310791,
-0.6402024030685425,
0.9431547522544861,
1.0388075113296509,
-0.745306670665741,
0.06728517264127731,
0.18633267283439636,
-0.2732369005680084,
0.7680261731147766,
-1.0504852533340454,
-0.4110727906227112,
1.206296443939209,
-0.22389504313468933,
-0.7270562052726746,
1.5033906698226929,
0.7660346627235413,
-1.06349515914917,
-0.19698601961135864,
-0.16750428080558777,
-0.8551308512687683,
-0.0327322781085968,
-1.5376986265182495,
-0.10660232603549957,
0.4122348725795746,
-1.501348614692688,
-0.3972345292568207,
-0.13148336112499237,
1.2787290811538696,
-0.25098302960395813,
1.42839515209198,
-0.3819853663444519,
-0.11736512184143066,
-0.25406450033187866,
-0.4731462001800537,
0.1469039022922516,
-0.13416171073913574,
-0.5993951559066772,
0.13158586621284485,
-0.7990207076072693,
0.3103315830230713,
1.4863126277923584,
0.33072468638420105,
0.0781705379486084,
0.44824427366256714,
1.1196337938308716,
0.41992461681365967,
-0.058294739574193954,
-0.7843668460845947,
-1.5451797246932983,
1.9050039052963257,
-1.384741187095642,
1.993693232536316,
0.7386168837547302,
-0.1689351201057434,
-1.8634828329086304,
-1.8929409980773926,
1.2352850437164307,
1.14680016040802,
2.3597946166992188,
0.4218083322048187,
0.36826497316360474,
-0.7587730288505554,
-0.8362926840782166,
0.3438255786895752,
-0.9553777575492859,
-0.5846901535987854,
0.12249650806188583,
2.3246824741363525,
1.8624310493469238,
-0.5101452469825745,
-0.2523721158504486,
-0.9419207572937012,
1.3448374271392822,
-0.2668597400188446,
0.2983649671077728,
2.0683887004852295,
-0.29935160279273987,
-1.0073957443237305,
1.41909921169281,
-2.313889980316162,
0.2790243625640869,
2.06477427482605,
0.23103955388069153,
0.13025137782096863,
-1.38627290725708,
-0.601625919342041,
-0.3902021050453186,
-0.40415892004966736,
-1.288826584815979,
0.5206813216209412,
-0.3162563145160675,
-0.7903269529342651,
-1.3773722648620605,
0.12047622352838516,
-1.1066582202911377,
-1.7207850217819214,
0.2602477967739105,
1.986208200454712,
2.032501459121704,
-0.7793517112731934,
1.4154108762741089,
-0.3254872262477875,
0.08529290556907654,
1.3052692413330078,
1.3110934495925903,
3.048391819000244,
1.863589882850647,
-1.3287957906723022,
0.7581010460853577,
-0.1702008843421936,
-0.4547298550605774,
1.2169305086135864,
-1.1954896450042725,
1.1636581420898438,
-0.18848779797554016,
-1.1969225406646729,
-1.211620807647705,
1.0245757102966309,
0.5790081024169922,
-0.011121980845928192,
-0.5102936029434204,
1.2523363828659058,
0.05239400267601013,
1.3599209785461426,
0.5851620435714722,
-0.5397260785102844,
0.5805130004882812,
-0.3683421015739441,
-0.6332867741584778,
1.5577208995819092,
0.18423089385032654,
-1.5109773874282837,
-2.2724993228912354,
-0.26554739475250244,
-0.9257183074951172,
-0.008974782191216946,
-0.6218454241752625,
-1.0400497913360596,
1.629875659942627,
0.34639474749565125,
-1.2468701601028442,
-0.22213393449783325,
-0.2789480686187744,
-0.44857680797576904,
2.717921257019043,
-1.2101914882659912,
-0.07227320969104767,
-1.008720874786377,
-0.5930659174919128,
1.645492434501648,
-1.2164394855499268,
-0.26932260394096375,
-1.0583072900772095,
-0.6546986699104309,
-1.2735178470611572,
-0.4657263457775116,
0.0683538168668747,
-0.990059494972229,
0.7960148453712463,
0.0904056653380394,
-1.1432263851165771,
-0.30703234672546387,
-0.895139217376709,
1.1418843269348145,
-0.1540183126926422,
0.1884543001651764,
1.8729990720748901,
0.3049606680870056,
-0.4212566018104553,
0.7272851467132568,
1.2250885963439941,
0.6163803935050964,
-0.7375375032424927,
0.06969992071390152,
-0.6964976191520691,
0.40251463651657104,
-1.4555845260620117,
0.21271634101867676,
-2.9354264736175537,
0.7352280020713806,
-0.17164519429206848,
-0.16889306902885437,
-0.037301115691661835,
-1.3420170545578003,
0.9471938610076904,
2.5201878547668457,
-1.2368253469467163,
0.4410579204559326,
0.4602420926094055,
1.085310697555542,
-1.6189178228378296,
0.27911609411239624,
-0.5540732741355896,
2.032364845275879,
0.19442838430404663,
1.1682261228561401,
-0.4736914038658142,
-2.1569340229034424,
0.6087519526481628,
-1.1934459209442139,
-1.0991545915603638,
0.8669343590736389,
-0.9813396334648132,
0.3165511190891266,
-1.4176949262619019,
-0.21824908256530762,
-0.9390142560005188,
-1.1943789720535278,
0.6887549161911011,
0.1495257019996643,
0.3370690941810608,
-0.554566502571106,
0.3587913513183594,
-2.2605772018432617,
-1.363283395767212,
-0.18724411725997925,
-1.0005879402160645,
0.6182023286819458,
-0.39013582468032837,
0.5571132302284241,
-0.08413439989089966,
0.06735122203826904,
0.3244730830192566,
1.461626410484314,
3.417060613632202,
0.1417044997215271,
0.11342272907495499,
-0.10543543845415115,
-1.030697226524353,
1.4732283353805542,
0.872087299823761,
-0.10941369086503983,
-0.5918816924095154,
-1.0633344650268555,
1.278605341911316,
1.980218768119812,
1.1649833917617798,
0.06551365554332733,
-0.8216617703437805,
-0.7720694541931152,
0.014882994815707207,
0.16523262858390808,
0.5256485342979431,
0.8867143392562866,
0.005968470126390457,
0.1445668637752533,
1.3540230989456177,
1.1050373315811157,
-0.25633159279823303,
0.3795255422592163,
-0.923660397529602,
-0.4519383907318115,
0.42412838339805603,
0.17937400937080383,
0.001402747817337513,
0.4581308364868164,
-1.0644052028656006,
-0.23539531230926514,
-0.442457377910614,
-0.8525866270065308,
-0.7907423973083496,
-0.440586119890213,
-0.4114609956741333,
1.5574973821640015,
0.06013725697994232,
-0.5152800679206848,
-0.008737578988075256,
-0.6769543290138245,
-0.19882699847221375,
-1.1284003257751465,
0.21867185831069946,
-0.0937885195016861,
-0.09941793978214264,
-0.17920276522636414,
1.5798301696777344,
-0.9649549722671509,
-2.1108078956604004,
0.1650780737400055,
0.30865421891212463,
-0.21510368585586548,
0.1854281723499298,
1.7063331604003906,
0.4796983003616333,
1.3450803756713867,
1.3153197765350342,
0.9366992115974426,
-0.6221520900726318,
-1.2030715942382812,
0.7222272157669067,
0.9593183994293213,
-1.3329931497573853,
0.9654607176780701,
-0.1446722447872162,
-0.5588973164558411,
0.7232576012611389,
1.3196760416030884,
0.4972423017024994,
-1.9948710203170776,
0.8979218006134033,
-0.9744874835014343,
0.7083884477615356,
0.7384878396987915,
0.7793387770652771,
0.25495389103889465,
0.937191903591156,
-1.1652454137802124,
-1.1951006650924683,
-0.6539385914802551,
-0.7065770626068115,
1.8718329668045044,
-0.2899780869483948,
0.6307945847511292,
-0.2292848527431488,
-1.172643780708313,
-0.11931814253330231,
0.83515465259552,
0.3980535864830017,
-0.490046888589859,
0.8943355679512024,
-0.599679172039032,
-0.9084121584892273,
-1.281580924987793,
-0.34314173460006714,
-1.099992036819458,
-0.8646041750907898,
1.0200382471084595,
0.7534617781639099,
0.40587812662124634,
1.9062138795852661,
0.6392002105712891,
0.3696783483028412,
-2.605600357055664,
0.8355574607849121,
0.24925565719604492,
-0.013653814792633057,
0.8266050219535828,
0.34462451934814453,
1.0961260795593262,
0.03959580883383751,
0.5724190473556519,
-2.309623956680298,
2.1792609691619873,
-0.20675396919250488,
0.59330153465271,
-0.09184949100017548,
-0.21381336450576782,
1.118592381477356,
0.6295156478881836,
0.5166578888893127,
-1.0597606897354126,
0.7395315170288086,
-0.49940869212150574,
1.0395362377166748,
0.9447660446166992,
-0.885984480381012,
0.06960894912481308,
1.4877177476882935,
0.449072003364563,
-0.47027283906936646,
-0.9586868286132812,
-0.8114114999771118,
0.942183792591095,
1.6846206188201904,
-0.03678574413061142,
-0.05166379734873772,
0.8402745723724365,
0.6881487965583801,
-1.2459858655929565,
0.10840491950511932,
-0.6960734724998474,
-0.6577731966972351,
1.726062536239624,
2.015505790710449,
-0.10790561884641647,
-0.1591717004776001,
-0.7259559035301208,
-1.2411019802093506,
0.7853128910064697,
-0.13338640332221985,
0.038680750876665115,
0.6645755171775818,
-0.7188231945037842,
1.056654453277588,
0.6411316990852356,
1.0180939435958862,
-0.035602737218141556,
0.23645028471946716,
0.42892980575561523,
-0.28089404106140137,
-1.2201422452926636,
-0.3067964017391205,
-1.0593376159667969,
-2.57546067237854,
0.3949872553348541,
-0.2785884439945221,
-1.483833909034729,
0.0462598018348217,
-1.0609291791915894,
0.9625883102416992,
-0.5559005737304688,
-1.0934206247329712,
-1.4754034280776978,
0.32107123732566833,
0.008665533736348152,
0.9520680904388428,
-1.6304888725280762,
-0.2506014108657837,
1.2104172706604004,
0.8474767804145813,
-0.6336447596549988,
0.987697422504425,
0.26627326011657715,
0.9571303129196167,
0.754094660282135,
-0.47270259261131287,
0.6181463003158569,
-0.03310036659240723,
-1.3850117921829224,
0.47970905900001526,
1.2170555591583252,
0.2026003897190094,
1.406059980392456,
-0.4163869619369507,
0.13037103414535522,
0.3919859230518341,
-0.695966362953186,
-0.4577373266220093,
-0.4318794310092926,
0.7241583466529846,
0.005033536814153194,
-0.9647008180618286,
-0.15211281180381775,
-0.0799194946885109,
-0.3503513038158417,
0.16450205445289612,
-1.458319902420044,
-0.2570593059062958,
-0.39237794280052185,
-0.5401518940925598,
-1.3431766033172607,
0.01869312673807144,
1.3870142698287964,
-0.8820052742958069,
-0.24117332696914673,
0.5141472220420837,
0.3980989456176758,
0.6094232797622681,
0.6087631583213806,
-0.7666493058204651,
-0.19673508405685425,
-0.34157827496528625,
-0.25668781995773315,
0.208767831325531,
1.3547585010528564,
-0.07771722227334976,
-1.001318335533142,
0.6726452112197876,
-0.34138786792755127,
0.15546011924743652,
2.0286004543304443,
0.08924678713083267,
-0.6356076002120972,
0.3470878601074219,
-0.7437776923179626,
1.7794257402420044,
1.7986136674880981,
1.3737945556640625,
-0.10251966118812561,
-0.8629888892173767,
0.5629163384437561,
-0.3175312578678131,
-0.36986827850341797,
0.9654229283332825,
0.3933655321598053,
-0.26378434896469116,
-1.3723050355911255,
0.8039413690567017,
1.2630928754806519,
-0.8154023885726929,
-0.7329009771347046,
0.10425908118486404,
-0.8846383690834045,
1.2202587127685547,
0.5363761186599731,
0.31169211864471436,
0.3064870238304138,
1.5362893342971802,
0.7063578367233276,
-0.44569337368011475,
0.4913279116153717,
0.599067211151123,
-0.18918153643608093,
-2.132183790206909,
-1.038861870765686,
0.4278933107852936,
-0.485442578792572,
-1.6183689832687378,
1.397020936012268,
-1.119321346282959,
-1.050525188446045,
0.5526781678199768,
0.08114354312419891,
1.279563069343567,
0.38867464661598206,
1.6793055534362793,
2.131131172180176,
0.9237205982208252,
0.4380454123020172,
1.2586987018585205,
-0.10510227829217911,
-0.380719393491745,
1.8022630214691162,
-0.4127398133277893,
0.5187031030654907,
0.9852336049079895,
-0.37484005093574524,
-1.1362391710281372,
-0.805509090423584,
-1.197040319442749,
-0.6700565814971924,
1.1818878650665283,
0.08175668865442276,
-1.0342673063278198,
0.18525248765945435,
1.5446404218673706,
0.14492973685264587,
-0.19611826539039612,
0.7387388944625854,
0.34802037477493286,
-0.8051825761795044,
-0.07131141424179077,
-0.8752223253250122,
0.500532329082489,
-0.1403050720691681,
-0.30807194113731384,
0.2263733148574829,
0.5382056832313538,
1.39177668094635,
-0.09100066125392914,
0.12162711471319199,
1.1791119575500488,
-1.3325389623641968,
1.4663792848587036,
-0.6328370571136475,
0.29693254828453064,
-2.4848310947418213,
1.4124668836593628,
-0.6911246180534363,
1.9167520999908447,
-2.5524232387542725,
0.5537441968917847,
-0.5858350396156311,
-0.4673752188682556,
0.27461308240890503,
-0.39853981137275696,
0.06151890009641647,
-0.07115325331687927,
-1.043375015258789,
0.020509421825408936,
-0.6609612703323364,
0.6973310708999634,
1.1346737146377563,
1.4222580194473267,
-1.2094991207122803,
-0.2837238311767578,
-1.705901026725769,
-0.19550564885139465,
-0.8431591987609863,
0.31245091557502747,
-2.0380208492279053,
-0.17917418479919434,
-1.9845576286315918,
-2.519408702850342,
-1.3134464025497437,
-0.7835023999214172,
1.0877972841262817,
0.23063358664512634,
-0.9480745792388916,
1.244401454925537,
-0.34862712025642395,
-1.903676152229309,
1.1443206071853638,
-2.1970906257629395
] |
https://github.com/huggingface/datasets/issues/4759 | Dataset Viewer issue for Toygar/turkish-offensive-language-detection | I refreshed the dataset viewer manually, it's fixed now. Sorry for the inconvenience.
<img width="1557" alt="Capture d’écran 2022-07-28 à 09 17 39" src="https://user-images.githubusercontent.com/1676121/181514666-92d7f8e1-ddc1-4769-84f3-f1edfdb902e8.png">
| ### Link
https://huggingface.co/datasets/Toygar/turkish-offensive-language-detection
### Description
Status code: 400
Exception: Status400Error
Message: The dataset does not exist.
Hi, I provided train.csv, test.csv and valid.csv files. However, viewer says dataset does not exist.
Should I need to do anything else?
### Owner
Yes | 600 | 23 | Dataset Viewer issue for Toygar/turkish-offensive-language-detection
### Link
https://huggingface.co/datasets/Toygar/turkish-offensive-language-detection
### Description
Status code: 400
Exception: Status400Error
Message: The dataset does not exist.
Hi, I provided train.csv, test.csv and valid.csv files. However, viewer says dataset does not exist.
Should I need to do anything else?
### Owner
Yes
I refreshed the dataset viewer manually, it's fixed now. Sorry for the inconvenience.
<img width="1557" alt="Capture d’écran 2022-07-28 à 09 17 39" src="https://user-images.githubusercontent.com/1676121/181514666-92d7f8e1-ddc1-4769-84f3-f1edfdb902e8.png">
| [
-1.1841208934783936,
-0.8992452025413513,
-0.7992461919784546,
1.4489203691482544,
-0.1465451866388321,
-1.2272558212280273,
0.12526099383831024,
-1.0110387802124023,
1.5757602453231812,
-0.7842200398445129,
0.3304077386856079,
-1.7005462646484375,
0.011047938838601112,
-0.5012606382369995,
-0.6230284571647644,
-0.8792510032653809,
-0.3373112082481384,
-0.7851445078849792,
1.0941015481948853,
2.6187493801116943,
1.1600141525268555,
-1.3039648532867432,
2.713205337524414,
0.7094097137451172,
-0.20030848681926727,
-1.0128345489501953,
0.6091970205307007,
0.13021694123744965,
-1.4030917882919312,
-0.34804174304008484,
-1.0214195251464844,
-0.08542504906654358,
-0.5235567092895508,
-0.44277745485305786,
0.03764049708843231,
0.3983229100704193,
-0.12120497226715088,
-0.38586610555648804,
-0.4840293228626251,
-0.900998592376709,
0.43367359042167664,
-0.4602937400341034,
0.851894736289978,
-0.4003843069076538,
1.8120673894882202,
-0.5288379192352295,
0.4918855130672455,
0.6426748037338257,
1.2614575624465942,
0.12664930522441864,
-0.08665219694375992,
0.22128118574619293,
0.4138118326663971,
-0.03377652168273926,
0.4135192036628723,
1.098261833190918,
0.5771982073783875,
0.4711211025714874,
0.6763818264007568,
-2.211973190307617,
1.3034319877624512,
-0.7997649908065796,
0.265257328748703,
1.4540492296218872,
-1.1245012283325195,
0.3623749911785126,
-1.8817566633224487,
-0.07807376980781555,
0.45069214701652527,
-2.3060641288757324,
0.25932610034942627,
-1.3117022514343262,
-0.6407119035720825,
1.0239014625549316,
0.3380635976791382,
-1.31996750831604,
-0.015825750306248665,
-0.4697965085506439,
0.9899709820747375,
0.5293307900428772,
1.1665889024734497,
-1.709069013595581,
-0.05174946039915085,
-0.2807595133781433,
0.15052971243858337,
-1.3979696035385132,
-1.5179479122161865,
0.5209362506866455,
0.7099399566650391,
0.6607983112335205,
-0.06597795337438583,
0.8305875658988953,
-1.0564968585968018,
0.7919021844863892,
-0.8724891543388367,
-1.7558503150939941,
-1.3387736082077026,
-2.4031219482421875,
-2.393179178237915,
0.7715686559677124,
-0.3879769444465637,
-0.466964453458786,
2.009871006011963,
-1.0964887142181396,
-1.7164703607559204,
1.1597092151641846,
0.17850954830646515,
-0.004353772383183241,
2.4081978797912598,
0.339781790971756,
-0.7678489089012146,
0.49441632628440857,
-0.8494245409965515,
0.764130175113678,
-0.456272155046463,
1.3870277404785156,
0.5189390182495117,
-0.9756430387496948,
1.637351393699646,
-0.45012423396110535,
0.5272824764251709,
-0.7556859254837036,
-0.42528200149536133,
-0.7981449961662292,
0.2628580331802368,
1.9635976552963257,
-0.2981128394603729,
1.5422310829162598,
-0.2533150017261505,
-1.5797213315963745,
-1.5173017978668213,
0.7977536916732788,
0.45705220103263855,
-0.7376079559326172,
0.20495572686195374,
-0.3652927875518799,
0.12531065940856934,
0.041546598076820374,
0.9709353446960449,
1.3162258863449097,
0.7495583295822144,
-0.2772712707519531,
-0.9068255424499512,
0.25061091780662537,
-0.03026309795677662,
-0.6592577695846558,
-1.8258875608444214,
-0.3074265420436859,
0.05278828740119934,
0.7391110062599182,
-1.2599889039993286,
1.7955467700958252,
0.8430624604225159,
1.9737557172775269,
1.0255376100540161,
-0.3569530248641968,
1.485798954963684,
0.030286239460110664,
1.917402982711792,
-0.49647256731987,
0.716679036617279,
-0.3691883087158203,
-1.089149832725525,
0.707440972328186,
-0.2981071174144745,
-1.9753804206848145,
-0.6924960613250732,
-0.9193775057792664,
-0.15699142217636108,
-0.7720081210136414,
1.0358384847640991,
-0.24373485147953033,
-1.366479516029358,
0.25825414061546326,
-0.7128473520278931,
0.13214151561260223,
-1.3640086650848389,
0.30006298422813416,
0.7277402281761169,
-0.5837764143943787,
0.03745424747467041,
-0.3226756751537323,
-1.3087531328201294,
-0.4670044183731079,
0.28963130712509155,
1.8922854661941528,
-0.7114368081092834,
0.9823193550109863,
0.956298828125,
-0.7015281319618225,
0.022488268092274666,
0.4584310054779053,
-0.3062370717525482,
0.8754985332489014,
-1.1279700994491577,
-0.32605263590812683,
1.1162986755371094,
-0.1597157120704651,
-0.5815686583518982,
1.3989684581756592,
0.7402262687683105,
-1.023873209953308,
-0.1971658319234848,
-0.1517309993505478,
-0.7557011246681213,
0.06852573156356812,
-1.6973130702972412,
-0.09198474884033203,
0.2505709230899811,
-1.41273832321167,
-0.44555097818374634,
-0.20019760727882385,
1.3184882402420044,
-0.0505865141749382,
1.3857783079147339,
-0.2802654504776001,
-0.23347225785255432,
-0.4255901277065277,
-0.4479713439941406,
0.24091975390911102,
-0.21980087459087372,
-0.5423945188522339,
0.31522905826568604,
-0.8157167434692383,
0.22424457967281342,
1.4591517448425293,
0.4238797128200531,
0.10266022384166718,
0.5871202349662781,
1.0125946998596191,
0.3317437767982483,
-0.1717301458120346,
-0.8827473521232605,
-1.6479867696762085,
2.0436925888061523,
-1.5334569215774536,
1.9895882606506348,
0.8019995093345642,
-0.06948395818471909,
-1.8885364532470703,
-1.9565975666046143,
1.3436830043792725,
1.214178442955017,
2.4197945594787598,
0.6262560486793518,
0.4376682639122009,
-0.8277634978294373,
-0.6634181141853333,
0.33277153968811035,
-1.0294796228408813,
-0.8016397953033447,
0.17011648416519165,
2.3122775554656982,
1.6707056760787964,
-0.51267409324646,
-0.15297792851924896,
-1.0487293004989624,
1.2833552360534668,
-0.08588004857301712,
0.2638048231601715,
1.9892492294311523,
-0.2534216642379761,
-1.064825415611267,
1.1399911642074585,
-2.264991283416748,
0.16630733013153076,
2.0011038780212402,
0.24422819912433624,
0.14036540687084198,
-1.3961900472640991,
-0.7129554748535156,
-0.19237419962882996,
-0.41315722465515137,
-1.2183551788330078,
0.5909526944160461,
-0.3149208426475525,
-0.8236232399940491,
-1.4630987644195557,
0.08651239424943924,
-1.1278822422027588,
-1.7094523906707764,
0.32647252082824707,
1.778670310974121,
2.0492312908172607,
-0.8870630860328674,
1.3689711093902588,
-0.1945413202047348,
0.16779375076293945,
1.2424192428588867,
1.185998558998108,
3.125312328338623,
2.004591464996338,
-1.2310378551483154,
0.7979748249053955,
-0.10251543670892715,
-0.3462333381175995,
1.2048618793487549,
-1.0561810731887817,
1.2724577188491821,
-0.16039426624774933,
-1.2918717861175537,
-1.1927748918533325,
0.8938379883766174,
0.4640619158744812,
-0.02432921715080738,
-0.45358696579933167,
1.2336970567703247,
0.037951067090034485,
1.3617908954620361,
0.540783703327179,
-0.3060102164745331,
0.6720162034034729,
-0.44902604818344116,
-0.4235319495201111,
1.6057329177856445,
0.18182024359703064,
-1.5312694311141968,
-2.3530752658843994,
-0.22176119685173035,
-0.9349849820137024,
-0.050755374133586884,
-0.7051003575325012,
-1.0702898502349854,
1.59539794921875,
0.5254597067832947,
-1.0551490783691406,
-0.359790176153183,
-0.3900570571422577,
-0.6409077644348145,
2.6722331047058105,
-1.4428908824920654,
-0.23498715460300446,
-0.9865350127220154,
-0.5940412282943726,
1.6063852310180664,
-1.2456107139587402,
-0.1952563226222992,
-1.080679178237915,
-0.5639355182647705,
-1.2880533933639526,
-0.5598373413085938,
-0.05296667665243149,
-0.8998801112174988,
0.7069807648658752,
0.11618504673242569,
-1.1227750778198242,
-0.24935363233089447,
-0.9478119611740112,
0.8368074893951416,
0.022911271080374718,
0.23757101595401764,
1.8851646184921265,
0.3788643181324005,
-0.3441409170627594,
0.6991552710533142,
1.1651535034179688,
0.5782092213630676,
-0.6933748126029968,
0.21334971487522125,
-0.7612191438674927,
0.30300429463386536,
-1.2549312114715576,
0.26798808574676514,
-2.8827245235443115,
0.6829189658164978,
-0.013938049785792828,
-0.1104201152920723,
-0.01818767935037613,
-1.3696727752685547,
1.1626583337783813,
2.4725775718688965,
-1.1117411851882935,
0.5434123873710632,
0.26306721568107605,
1.185239553451538,
-1.4698123931884766,
0.26630136370658875,
-0.45773079991340637,
2.0855557918548584,
0.1306016594171524,
1.159021258354187,
-0.4991883635520935,
-2.212372303009033,
0.7000955939292908,
-1.1894217729568481,
-1.056691288948059,
0.7378366589546204,
-0.8548270463943481,
-0.006065346300601959,
-1.2875311374664307,
-0.15598689019680023,
-0.8542206287384033,
-1.2373125553131104,
0.6632106900215149,
0.11031661927700043,
0.575360119342804,
-0.5276790261268616,
0.3785814344882965,
-2.2233870029449463,
-1.3298122882843018,
-0.23395556211471558,
-0.9506067037582397,
0.4434381425380707,
-0.3328952193260193,
0.6614308953285217,
-0.19508260488510132,
0.10809395462274551,
0.3443182706832886,
1.3799779415130615,
3.422184705734253,
0.14384004473686218,
0.3999471664428711,
-0.11665505170822144,
-1.0701700448989868,
1.5513389110565186,
0.9754711985588074,
-0.03455865755677223,
-0.6456637978553772,
-1.0421833992004395,
1.2428754568099976,
1.94975745677948,
1.079322099685669,
0.06469513475894928,
-0.8398505449295044,
-0.691303014755249,
0.00871284306049347,
0.13789358735084534,
0.5042179226875305,
1.0069024562835693,
0.020498910918831825,
0.05980301648378372,
1.4599361419677734,
1.2105598449707031,
-0.4434528350830078,
0.3700541853904724,
-0.8889029622077942,
-0.3899798095226288,
0.576919436454773,
0.316653847694397,
0.03682854026556015,
0.3683231770992279,
-1.0411432981491089,
-0.19317857921123505,
-0.2541208267211914,
-1.0668222904205322,
-0.7348489761352539,
-0.41825374960899353,
-0.31862178444862366,
1.660403847694397,
0.08257662504911423,
-0.41715461015701294,
-0.015054591000080109,
-0.784087061882019,
-0.03682392090559006,
-1.1431965827941895,
0.28200897574424744,
-0.1861378252506256,
-0.039210133254528046,
-0.11670902371406555,
1.8372160196304321,
-1.0050116777420044,
-2.2268247604370117,
0.25850239396095276,
0.2157459706068039,
-0.40713778138160706,
0.13379710912704468,
1.6402047872543335,
0.4968803822994232,
1.4162447452545166,
1.3155163526535034,
1.0479164123535156,
-0.6959967613220215,
-1.2685972452163696,
0.6122615337371826,
0.8814211487770081,
-1.4050304889678955,
0.8565782904624939,
-0.05918671935796738,
-0.5629818439483643,
0.6253368258476257,
1.3150715827941895,
0.4457559585571289,
-1.898333191871643,
0.8169811964035034,
-0.8718764185905457,
0.8332129120826721,
0.759830892086029,
0.8567072153091431,
0.15343144536018372,
0.8225355744361877,
-1.2861018180847168,
-1.082804560661316,
-0.6858022809028625,
-0.5687685608863831,
1.834829568862915,
-0.15031391382217407,
0.4828420579433441,
-0.2340458184480667,
-1.2334482669830322,
0.01513868197798729,
0.6476207375526428,
0.291504442691803,
-0.2551532983779907,
0.7415030002593994,
-0.6552616357803345,
-1.1002970933914185,
-1.3960285186767578,
-0.4586368203163147,
-0.935705304145813,
-0.8866637945175171,
1.071427822113037,
0.7268304824829102,
0.32905009388923645,
1.9793263673782349,
0.6269850134849548,
0.1995842158794403,
-2.682827949523926,
0.8694069385528564,
0.34524136781692505,
0.10943841934204102,
0.9518902897834778,
0.26720401644706726,
1.191651463508606,
-0.11459910869598389,
0.4600967764854431,
-2.3403725624084473,
2.3103678226470947,
-0.30554425716400146,
0.5990408658981323,
0.037269555032253265,
0.012118075042963028,
1.07843816280365,
0.6280578970909119,
0.5650280714035034,
-1.0660431385040283,
0.7674246430397034,
-0.6421300768852234,
1.113669753074646,
0.8803145289421082,
-0.7885392308235168,
0.05857937037944794,
1.157888412475586,
0.5050029754638672,
-0.5017826557159424,
-0.9240221977233887,
-0.8996604084968567,
0.9033675789833069,
1.7699228525161743,
-0.02855859324336052,
0.03511572629213333,
0.791266679763794,
0.5745295882225037,
-1.326100468635559,
-0.059626542031764984,
-0.6730353236198425,
-0.6751616597175598,
1.7504205703735352,
2.0606448650360107,
-0.005746990442276001,
-0.21303687989711761,
-0.705589771270752,
-1.310931921005249,
0.7856938242912292,
-0.02372279390692711,
0.04420381784439087,
0.7714564204216003,
-0.6304187774658203,
1.1400443315505981,
0.7257295846939087,
0.9572042226791382,
0.20774376392364502,
0.24378527700901031,
0.34459495544433594,
-0.2842538356781006,
-1.2047526836395264,
-0.34140288829803467,
-1.1346977949142456,
-2.632357120513916,
0.49817851185798645,
-0.3682607412338257,
-1.517343282699585,
0.046182483434677124,
-0.9962491393089294,
0.9416933655738831,
-0.5437900424003601,
-1.0265616178512573,
-1.3963664770126343,
0.15909691154956818,
-0.2541070282459259,
0.8726619482040405,
-1.597283124923706,
-0.11862417310476303,
1.3226739168167114,
1.0318424701690674,
-0.6369830369949341,
1.0271540880203247,
0.2684192955493927,
1.0965936183929443,
0.8025467395782471,
-0.3928777873516083,
0.37089765071868896,
0.12892483174800873,
-1.3683147430419922,
0.500204861164093,
1.2329692840576172,
0.16612562537193298,
1.3854641914367676,
-0.5308123826980591,
0.004338603466749191,
0.4729737937450409,
-0.3639136254787445,
-0.5588434934616089,
-0.5515530705451965,
0.7589653730392456,
0.09092322736978531,
-0.999981701374054,
-0.014743861742317677,
-0.12195213884115219,
-0.1140429675579071,
0.24696891009807587,
-1.4714839458465576,
-0.1999714970588684,
-0.3573697507381439,
-0.5823330879211426,
-1.3770699501037598,
-0.08648587018251419,
1.2788692712783813,
-0.8393265604972839,
-0.11786772310733795,
0.5195184350013733,
0.3605441749095917,
0.5694480538368225,
0.6133993864059448,
-0.6980724334716797,
-0.3656887114048004,
-0.24644000828266144,
-0.30968335270881653,
0.34366169571876526,
1.2517666816711426,
-0.12631775438785553,
-1.0510362386703491,
0.6547458171844482,
-0.2509046196937561,
0.18644320964813232,
2.0120689868927,
0.04935853183269501,
-0.902681291103363,
0.26363638043403625,
-0.6631380915641785,
1.9350336790084839,
1.5978392362594604,
1.3381218910217285,
-0.13369451463222504,
-0.8497924208641052,
0.5174340605735779,
-0.22030681371688843,
-0.3438548445701599,
0.8413768410682678,
0.47777169942855835,
-0.17488932609558105,
-1.3279558420181274,
0.5891377329826355,
1.24817955493927,
-0.8956753015518188,
-0.8262135982513428,
0.07560385018587112,
-0.7957424521446228,
1.1384897232055664,
0.7330533862113953,
0.4337475597858429,
0.3226538896560669,
1.5388953685760498,
0.6949605941772461,
-0.5885031223297119,
0.49973854422569275,
0.39148467779159546,
-0.15613844990730286,
-2.0393688678741455,
-0.9687489867210388,
0.3268314003944397,
-0.48244932293891907,
-1.5770378112792969,
1.37116277217865,
-1.2325783967971802,
-0.9284306764602661,
0.5566586256027222,
0.17882506549358368,
1.4239578247070312,
0.3786579370498657,
1.6171447038650513,
2.0241003036499023,
0.9166181087493896,
0.32061681151390076,
1.2613310813903809,
-0.19400285184383392,
-0.45082932710647583,
1.733562707901001,
-0.3993762135505676,
0.566404402256012,
1.085198998451233,
-0.39020273089408875,
-1.0012717247009277,
-0.8382271528244019,
-1.1442238092422485,
-0.6875174641609192,
1.089499592781067,
0.14950841665267944,
-1.1759341955184937,
0.1768215000629425,
1.5989962816238403,
0.0784921869635582,
-0.22960814833641052,
0.6215055584907532,
0.3786666989326477,
-0.7736123204231262,
-0.0958297923207283,
-1.0136688947677612,
0.4880737066268921,
-0.20590496063232422,
-0.42409074306488037,
0.2660485506057739,
0.4973326623439789,
1.2154935598373413,
0.03237580507993698,
0.15010881423950195,
1.34067964553833,
-1.2827082872390747,
1.4831794500350952,
-0.7028910517692566,
0.23812884092330933,
-2.280958652496338,
1.4657918214797974,
-0.8424189686775208,
1.8517292737960815,
-2.6623106002807617,
0.3983791172504425,
-0.5095544457435608,
-0.5030813813209534,
0.18951719999313354,
-0.4153585135936737,
0.11953271180391312,
-0.12209419161081314,
-1.049124002456665,
-0.20923443138599396,
-0.8313188552856445,
0.549540638923645,
1.2119966745376587,
1.2839062213897705,
-0.9803022146224976,
-0.2657179534435272,
-1.776125431060791,
-0.1752106249332428,
-0.5913410782814026,
0.30277106165885925,
-1.9709585905075073,
-0.19269587099552155,
-1.9270949363708496,
-2.3950061798095703,
-1.3950449228286743,
-0.9433690905570984,
1.2035435438156128,
0.18710243701934814,
-0.8857941031455994,
1.013198733329773,
-0.3410380184650421,
-1.7566272020339966,
1.1099932193756104,
-2.1917173862457275
] |
https://github.com/huggingface/datasets/issues/4755 | Datasets.map causes incorrect overflow_to_sample_mapping when used with tokenizers and small batch size | I've built a minimal example that shows this bug without `n_proc`. It seems like it's a problem any way of using **tokenizers, `overflow_to_sample_mapping`, and Dataset.map, with a small batch size**:
```
import datasets
import transformers
pretrained = 'deepset/tinyroberta-squad2'
tokenizer = transformers.AutoTokenizer.from_pretrained(pretrained)
questions = ['Can you tell me why?', 'What time is it?']
contexts = ['This is context zero', 'Another paragraph goes here']
def tok(questions, contexts):
return tokenizer(text=questions,
text_pair=contexts,
truncation='only_second',
return_overflowing_tokens=True,
)
print(tok(questions, contexts)['overflow_to_sample_mapping'])
assert tok(questions, contexts)['overflow_to_sample_mapping'] == [0, 1] # PASSES
def tok2(d):
return tok(d['question'], d['context'])
def tok2(d):
return tok(d['question'], d['context'])
ds = datasets.Dataset.from_dict({'question': questions, 'context': contexts})
tokens = ds.map(tok2, batched=True, batch_size=1)
print(tokens['overflow_to_sample_mapping'])
assert tokens['overflow_to_sample_mapping'] == [0, 1] # FAILS produces [0,0]
```
Note that even if the batch size would be larger, there will be instances where we will not have a lot of data, and end up using small batches. This can occur e.g. if `n_proc` causes batches to be underfill. I imagine it can also occur in other ways, e.g. the final leftover batch at the end. | ## Describe the bug
When using `tokenizer`, we can retrieve the field `overflow_to_sample_mapping`, since long samples will be overflown into multiple token sequences.
However, when tokenizing is done via `Dataset.map`, with `n_proc > 1`, the `overflow_to_sample_mapping` field is wrong. This seems to be because each tokenizer only looks at its share of the samples, and maps to the index _within its share_, but then `Dataset.map` collates them together.
## Steps to reproduce the bug
1. Make a dataset of 3 strings.
2. Tokenize via Dataset.map with n_proc = 8
3. Inspect the `overflow_to_sample_mapping` field
## Expected results
`[0, 1, 2]`
## Actual results
`[0, 0, 0]`
Notes:
1. I have not yet extracted a minimal example, but the above works reliably
2. If the dataset is large, I've yet to determine if this bug still happens a. not at all b. always c. on the small, leftover batch at the end.
| 601 | 170 | Datasets.map causes incorrect overflow_to_sample_mapping when used with tokenizers and small batch size
## Describe the bug
When using `tokenizer`, we can retrieve the field `overflow_to_sample_mapping`, since long samples will be overflown into multiple token sequences.
However, when tokenizing is done via `Dataset.map`, with `n_proc > 1`, the `overflow_to_sample_mapping` field is wrong. This seems to be because each tokenizer only looks at its share of the samples, and maps to the index _within its share_, but then `Dataset.map` collates them together.
## Steps to reproduce the bug
1. Make a dataset of 3 strings.
2. Tokenize via Dataset.map with n_proc = 8
3. Inspect the `overflow_to_sample_mapping` field
## Expected results
`[0, 1, 2]`
## Actual results
`[0, 0, 0]`
Notes:
1. I have not yet extracted a minimal example, but the above works reliably
2. If the dataset is large, I've yet to determine if this bug still happens a. not at all b. always c. on the small, leftover batch at the end.
I've built a minimal example that shows this bug without `n_proc`. It seems like it's a problem any way of using **tokenizers, `overflow_to_sample_mapping`, and Dataset.map, with a small batch size**:
```
import datasets
import transformers
pretrained = 'deepset/tinyroberta-squad2'
tokenizer = transformers.AutoTokenizer.from_pretrained(pretrained)
questions = ['Can you tell me why?', 'What time is it?']
contexts = ['This is context zero', 'Another paragraph goes here']
def tok(questions, contexts):
return tokenizer(text=questions,
text_pair=contexts,
truncation='only_second',
return_overflowing_tokens=True,
)
print(tok(questions, contexts)['overflow_to_sample_mapping'])
assert tok(questions, contexts)['overflow_to_sample_mapping'] == [0, 1] # PASSES
def tok2(d):
return tok(d['question'], d['context'])
def tok2(d):
return tok(d['question'], d['context'])
ds = datasets.Dataset.from_dict({'question': questions, 'context': contexts})
tokens = ds.map(tok2, batched=True, batch_size=1)
print(tokens['overflow_to_sample_mapping'])
assert tokens['overflow_to_sample_mapping'] == [0, 1] # FAILS produces [0,0]
```
Note that even if the batch size would be larger, there will be instances where we will not have a lot of data, and end up using small batches. This can occur e.g. if `n_proc` causes batches to be underfill. I imagine it can also occur in other ways, e.g. the final leftover batch at the end. | [
-1.158322811126709,
-0.947620689868927,
-0.6996057629585266,
1.5156933069229126,
-0.134393572807312,
-1.195174217224121,
0.18699835240840912,
-1.1463499069213867,
1.6974788904190063,
-0.8015705943107605,
0.2519577443599701,
-1.607326626777649,
0.059623055160045624,
-0.6630176305770874,
-0.7338409423828125,
-0.7807511687278748,
-0.3513926863670349,
-0.7765541672706604,
1.1036568880081177,
2.4683175086975098,
1.095445990562439,
-1.439466953277588,
2.682892084121704,
0.6628159284591675,
-0.16605351865291595,
-1.0507020950317383,
0.5244787335395813,
-0.028793219476938248,
-1.2340080738067627,
-0.5332313179969788,
-0.9122165441513062,
-0.049859967082738876,
-0.6710087656974792,
-0.5007402896881104,
0.03084878996014595,
0.4498250484466553,
-0.3030088543891907,
-0.41026511788368225,
-0.5407822728157043,
-0.8818507790565491,
0.4060896039009094,
-0.43111276626586914,
0.9265731573104858,
-0.23042333126068115,
1.7475674152374268,
-0.5054553151130676,
0.4245496392250061,
0.7283903360366821,
1.3667614459991455,
0.19926512241363525,
-0.02426082268357277,
0.30798402428627014,
0.4274718761444092,
-0.059700362384319305,
0.5107707977294922,
1.1275064945220947,
0.6875377297401428,
0.5230907797813416,
0.7360434532165527,
-2.337559938430786,
1.3664547204971313,
-1.0736792087554932,
0.3079794645309448,
1.337573766708374,
-0.8533395528793335,
0.39642617106437683,
-1.822995662689209,
0.054857246577739716,
0.5332603454589844,
-2.252746105194092,
0.30383121967315674,
-1.3110568523406982,
-0.4719330072402954,
0.9685882329940796,
0.381290465593338,
-1.2622772455215454,
0.21738669276237488,
-0.46354782581329346,
1.0557557344436646,
0.42758437991142273,
0.9605266451835632,
-1.785502314567566,
-0.11577404290437698,
-0.25623178482055664,
0.22068701684474945,
-1.275514006614685,
-1.5373876094818115,
0.6375402212142944,
0.5661094188690186,
0.5469401478767395,
-0.1739189326763153,
1.0970772504806519,
-1.0870229005813599,
0.693211555480957,
-1.115289330482483,
-1.7880592346191406,
-1.429118275642395,
-2.238279104232788,
-2.213897705078125,
0.6918578147888184,
-0.4538978338241577,
-0.5167185664176941,
2.012298107147217,
-0.9613399505615234,
-1.6927484273910522,
1.1741141080856323,
0.30832788348197937,
0.001727893017232418,
2.432565212249756,
0.17966879904270172,
-0.69065260887146,
0.43928396701812744,
-0.8247712850570679,
0.8410318493843079,
-0.38655170798301697,
1.3666307926177979,
0.39793819189071655,
-1.0042482614517212,
1.5899580717086792,
-0.24672262370586395,
0.5980013608932495,
-0.7385877966880798,
-0.5103058218955994,
-0.72965407371521,
0.2823156714439392,
1.9215847253799438,
-0.2559274435043335,
1.4690407514572144,
-0.45585066080093384,
-1.5205985307693481,
-1.536753535270691,
1.0147241353988647,
0.46182164549827576,
-0.8683414459228516,
0.1622692197561264,
-0.44673192501068115,
0.18243832886219025,
-0.1514335572719574,
1.208511233329773,
1.3271187543869019,
0.6507464051246643,
-0.3462648391723633,
-0.8086803555488586,
0.13154006004333496,
-0.21258774399757385,
-0.7129392027854919,
-1.9054871797561646,
-0.39191874861717224,
0.07448195666074753,
0.7023158073425293,
-1.1815911531448364,
1.7257810831069946,
0.8901253342628479,
1.937953233718872,
1.0516889095306396,
-0.45400330424308777,
1.4221948385238647,
0.11191905289888382,
1.8157302141189575,
-0.5337522625923157,
0.6908204555511475,
-0.4283615052700043,
-1.1026263236999512,
0.9759532809257507,
-0.28859251737594604,
-1.9691613912582397,
-0.7571273446083069,
-0.7883597016334534,
-0.28273552656173706,
-0.7286863327026367,
0.8568815588951111,
-0.3650917708873749,
-1.454428791999817,
0.20450042188167572,
-0.6321390867233276,
0.23947110772132874,
-1.1436201333999634,
0.3100479245185852,
0.7532597184181213,
-0.5887318849563599,
0.15204909443855286,
-0.3335331678390503,
-1.2833044528961182,
-0.6091683506965637,
0.3770046532154083,
1.8339332342147827,
-0.723200798034668,
0.9205977916717529,
1.0802925825119019,
-0.6523891687393188,
-0.05716061219573021,
0.3241378664970398,
-0.23785749077796936,
0.8025005459785461,
-1.0287234783172607,
-0.5800910592079163,
1.24956476688385,
-0.3324425220489502,
-0.638125479221344,
1.5040539503097534,
0.6911193132400513,
-1.0261266231536865,
-0.21201467514038086,
-0.16787348687648773,
-0.8967404365539551,
0.1131732165813446,
-1.6453808546066284,
-0.1197480708360672,
0.5107081532478333,
-1.624534010887146,
-0.4131236672401428,
-0.2345251441001892,
1.2762858867645264,
-0.13895036280155182,
1.417158842086792,
-0.3849849998950958,
-0.1816420555114746,
-0.321647047996521,
-0.3835574686527252,
0.10642895102500916,
-0.277224600315094,
-0.6405494213104248,
0.19233880937099457,
-0.8242930769920349,
0.4359917640686035,
1.435512661933899,
0.2674906253814697,
-0.031392354518175125,
0.4482722282409668,
1.0708045959472656,
0.37778598070144653,
-0.022173602133989334,
-0.8993185758590698,
-1.4916080236434937,
2.011735200881958,
-1.47443425655365,
1.9791960716247559,
0.7213832139968872,
-0.026965424418449402,
-1.7110838890075684,
-1.741337537765503,
1.377721905708313,
1.1361470222473145,
2.2614476680755615,
0.5889260172843933,
0.32116588950157166,
-0.7795729041099548,
-0.6107648611068726,
0.2705770432949066,
-0.9549612402915955,
-0.7144854664802551,
0.13198837637901306,
2.416693687438965,
1.727776288986206,
-0.44741201400756836,
-0.2148301750421524,
-1.0085653066635132,
1.5019121170043945,
-0.23304912447929382,
0.33883538842201233,
2.006265640258789,
-0.26078465580940247,
-1.04958176612854,
1.2761449813842773,
-2.4432647228240967,
0.22831085324287415,
2.0429441928863525,
0.29124486446380615,
0.21419359743595123,
-1.3725559711456299,
-0.6166118383407593,
-0.2957824468612671,
-0.3937724232673645,
-1.2071534395217896,
0.4985598921775818,
-0.23119166493415833,
-0.7514981031417847,
-1.4932799339294434,
0.25488680601119995,
-1.173723578453064,
-1.5977760553359985,
0.2495468258857727,
1.9853121042251587,
2.1026906967163086,
-0.6410220265388489,
1.567439079284668,
-0.3125287592411041,
0.203351691365242,
1.2157217264175415,
1.247158408164978,
3.0313475131988525,
1.9472126960754395,
-1.2391177415847778,
0.6371666789054871,
-0.2070559859275818,
-0.5191524028778076,
1.118933081626892,
-1.1507447957992554,
1.2371729612350464,
-0.08214385062456131,
-1.1171875,
-1.2507506608963013,
0.9658191204071045,
0.5010197162628174,
0.07311196625232697,
-0.5436010956764221,
1.2069448232650757,
0.03357112780213356,
1.233506202697754,
0.5491189956665039,
-0.3727172911167145,
0.582470715045929,
-0.46182993054389954,
-0.5389233231544495,
1.5513889789581299,
0.18112951517105103,
-1.433573842048645,
-2.207951307296753,
-0.17474374175071716,
-0.7953433990478516,
0.1615404337644577,
-0.6646979451179504,
-1.0020102262496948,
1.6456667184829712,
0.3351958096027374,
-1.19338059425354,
-0.19562113285064697,
-0.3108648657798767,
-0.5747914910316467,
2.7196218967437744,
-1.3223414421081543,
-0.35010582208633423,
-0.9940892457962036,
-0.66269850730896,
1.647971510887146,
-1.1967071294784546,
-0.195985808968544,
-0.9482203125953674,
-0.46867287158966064,
-1.209882140159607,
-0.42505574226379395,
-0.02086465246975422,
-0.8714337348937988,
0.9401590824127197,
0.29599642753601074,
-1.2388620376586914,
-0.3757779896259308,
-0.859619140625,
0.9180130958557129,
-0.1389363408088684,
0.20871689915657043,
1.8812627792358398,
0.33002278208732605,
-0.34053269028663635,
0.8316448330879211,
1.092997431755066,
0.6124908924102783,
-0.6104350090026855,
0.12460949271917343,
-0.5279507637023926,
0.4361465573310852,
-1.2791818380355835,
0.35369810461997986,
-2.865072727203369,
0.657938539981842,
-0.054533232003450394,
-0.09446617215871811,
0.027745503932237625,
-1.299338936805725,
1.0591835975646973,
2.6182453632354736,
-1.2300384044647217,
0.5185976028442383,
0.3270184099674225,
1.2404921054840088,
-1.5282033681869507,
0.3398686349391937,
-0.4483005106449127,
2.0686001777648926,
0.2577765882015228,
1.2077805995941162,
-0.4750532805919647,
-2.448260545730591,
0.4821910858154297,
-1.2860071659088135,
-1.1452267169952393,
0.7154242396354675,
-0.8081955313682556,
0.02157464623451233,
-1.452074408531189,
-0.24041463434696198,
-0.9156386256217957,
-1.2077534198760986,
0.7385363578796387,
0.15430711209774017,
0.4352174401283264,
-0.671484112739563,
0.3815736770629883,
-2.2146639823913574,
-1.3937705755233765,
-0.246709942817688,
-0.911186933517456,
0.5233906507492065,
-0.46693509817123413,
0.6782654523849487,
-0.14309127628803253,
-0.03275055065751076,
0.2980859577655792,
1.5211831331253052,
3.445335626602173,
0.189204141497612,
0.35475361347198486,
-0.34717926383018494,
-0.8867337703704834,
1.3786972761154175,
0.9979256391525269,
-0.09582459926605225,
-0.5305241942405701,
-1.0856986045837402,
1.2807879447937012,
2.0332295894622803,
0.8826949000358582,
-0.0024972460232675076,
-0.831596314907074,
-0.6872143745422363,
-0.09262590110301971,
0.1525433361530304,
0.5027514696121216,
0.9191591143608093,
0.15523980557918549,
0.08910588175058365,
1.3924628496170044,
1.1396982669830322,
-0.4125930070877075,
0.35747048258781433,
-0.7792502045631409,
-0.3389136791229248,
0.4861677587032318,
0.3022543787956238,
-0.028304312378168106,
0.3547775149345398,
-0.9868685007095337,
-0.15744523704051971,
-0.4998805820941925,
-0.8910816311836243,
-0.7500177025794983,
-0.39501863718032837,
-0.3197760581970215,
1.6724573373794556,
0.2498144805431366,
-0.519469141960144,
-0.015246395021677017,
-0.7514492869377136,
-0.07468722760677338,
-1.0258225202560425,
0.2493775188922882,
-0.13489516079425812,
-0.11657389998435974,
-0.10212690383195877,
1.7623677253723145,
-0.9259506464004517,
-1.9949084520339966,
0.16596457362174988,
0.20603589713573456,
-0.25821453332901,
0.2886638045310974,
1.6604700088500977,
0.5023619532585144,
1.4643115997314453,
1.3450040817260742,
0.9360184073448181,
-0.6511596441268921,
-1.3304951190948486,
0.6757743954658508,
0.9840476512908936,
-1.479364275932312,
0.8465105295181274,
0.068055659532547,
-0.5534173250198364,
0.7362374067306519,
1.3477232456207275,
0.5102989673614502,
-2.0631487369537354,
0.701490581035614,
-1.1305053234100342,
0.873275637626648,
0.8308122754096985,
0.6474672555923462,
0.3047600984573364,
0.8570190072059631,
-1.212736964225769,
-1.128843903541565,
-0.722311794757843,
-0.7488325834274292,
1.988366961479187,
-0.3337903618812561,
0.592379629611969,
-0.10351657122373581,
-1.366256833076477,
-0.09330358356237411,
0.7883896231651306,
0.43821823596954346,
-0.49727392196655273,
0.7059398293495178,
-0.7226129174232483,
-1.122873306274414,
-1.3072905540466309,
-0.5053873658180237,
-1.1118700504302979,
-1.0379685163497925,
1.0346063375473022,
0.7577805519104004,
0.31068193912506104,
1.8176279067993164,
0.687028706073761,
0.24954500794410706,
-2.5883851051330566,
0.8669002056121826,
0.3223240077495575,
-0.13656751811504364,
0.8700103759765625,
0.42555269598960876,
1.0158982276916504,
0.10205116868019104,
0.6673223972320557,
-2.471618413925171,
2.390305757522583,
-0.20134471356868744,
0.7316530346870422,
0.02559579908847809,
-0.11727608740329742,
1.1199049949645996,
0.5989760756492615,
0.5087873935699463,
-1.0454423427581787,
0.6753866672515869,
-0.5594961047172546,
1.2829405069351196,
0.8209288716316223,
-0.7630261778831482,
-0.06441158056259155,
1.3578534126281738,
0.40832099318504333,
-0.62147456407547,
-0.9387830495834351,
-1.040927767753601,
0.9010846018791199,
1.7131831645965576,
-0.11742745339870453,
-0.08683095872402191,
0.7912428379058838,
0.6239436864852905,
-1.2856000661849976,
0.08976868540048599,
-0.6063515543937683,
-0.7306953072547913,
1.5114712715148926,
2.093981981277466,
-0.2164660543203354,
-0.0772068053483963,
-0.6918635368347168,
-1.2252888679504395,
0.6535306572914124,
0.07034318149089813,
-0.009739460423588753,
0.572266161441803,
-0.6034538149833679,
1.0322219133377075,
0.7837381362915039,
0.8991408348083496,
0.18989266455173492,
0.3033297657966614,
0.41099029779434204,
-0.4580415189266205,
-1.1534006595611572,
-0.3066962659358978,
-1.1294687986373901,
-2.5753307342529297,
0.34192225337028503,
-0.19525077939033508,
-1.4002103805541992,
0.06462258100509644,
-0.9904876351356506,
0.8420718312263489,
-0.5851619839668274,
-1.172839879989624,
-1.502370834350586,
0.18579602241516113,
-0.07840568572282791,
0.9262681603431702,
-1.7051441669464111,
-0.12498855590820312,
1.2008535861968994,
0.8679630756378174,
-0.7053722739219666,
1.0770838260650635,
0.2280644029378891,
0.9979190826416016,
0.8507487773895264,
-0.3296986520290375,
0.5187485218048096,
-0.032851580530405045,
-1.2836365699768066,
0.48569563031196594,
1.1758627891540527,
0.21755759418010712,
1.4117246866226196,
-0.5502085089683533,
-0.052166879177093506,
0.3630661964416504,
-0.5207329988479614,
-0.4036675989627838,
-0.4721118211746216,
0.6817169785499573,
0.07177229970693588,
-0.7480440735816956,
0.06311134248971939,
-0.0214083194732666,
-0.23942990601062775,
0.2048313468694687,
-1.5148916244506836,
-0.16761165857315063,
-0.4442481994628906,
-0.4790150225162506,
-1.267841100692749,
-0.05828819051384926,
1.431643009185791,
-0.663362443447113,
-0.2836705446243286,
0.49608075618743896,
0.432757705450058,
0.5284578800201416,
0.675845742225647,
-0.7073959708213806,
-0.40624842047691345,
-0.19832856953144073,
-0.27994877099990845,
0.373547226190567,
1.3618764877319336,
-0.1294255554676056,
-0.9509023427963257,
0.7174010872840881,
-0.41270527243614197,
0.06232736259698868,
1.8429393768310547,
0.0039906492456793785,
-0.7883883118629456,
0.2945181131362915,
-0.7613417506217957,
1.9647929668426514,
1.681973934173584,
1.202075481414795,
-0.17012199759483337,
-0.9632136821746826,
0.6794703602790833,
-0.3719500005245209,
-0.37169522047042847,
0.8549812436103821,
0.31082966923713684,
-0.23051302134990692,
-1.429932713508606,
0.7059489488601685,
1.3087676763534546,
-0.7754738926887512,
-0.9512389898300171,
0.16355067491531372,
-0.7787911295890808,
1.1618266105651855,
0.573436975479126,
0.39371636509895325,
0.23129014670848846,
1.6601976156234741,
0.7851965427398682,
-0.5068444609642029,
0.5856491923332214,
0.4717329740524292,
-0.2508751451969147,
-2.113386869430542,
-1.2688689231872559,
0.2982233762741089,
-0.5525672435760498,
-1.615587830543518,
1.361683964729309,
-1.100869059562683,
-0.9525935649871826,
0.6049379110336304,
0.0936763808131218,
1.3687825202941895,
0.35424989461898804,
1.4532725811004639,
2.1088147163391113,
0.7924010753631592,
0.47362902760505676,
1.225616693496704,
-0.2634519338607788,
-0.6379536986351013,
1.8086379766464233,
-0.42776528000831604,
0.43623101711273193,
1.1443078517913818,
-0.2814507782459259,
-0.986704409122467,
-0.7475088834762573,
-1.1656917333602905,
-0.6617635488510132,
1.1583242416381836,
0.06232965737581253,
-1.1932202577590942,
0.23425623774528503,
1.553750991821289,
0.10403063148260117,
-0.2716199457645416,
0.6547600030899048,
0.4389908015727997,
-0.788199245929718,
-0.02621927112340927,
-0.9069989919662476,
0.535605788230896,
-0.28867313265800476,
-0.32936736941337585,
0.43027767539024353,
0.45032522082328796,
1.2833460569381714,
-0.09542270004749298,
0.2206943929195404,
1.089495062828064,
-1.481711983680725,
1.4808897972106934,
-0.668147623538971,
0.35211181640625,
-2.406583070755005,
1.3287235498428345,
-0.6698223948478699,
2.0495471954345703,
-2.5605788230895996,
0.3627454340457916,
-0.7223559021949768,
-0.5348832607269287,
0.279196560382843,
-0.1989457607269287,
0.1516607403755188,
-0.1844395250082016,
-1.1400917768478394,
-0.028331775218248367,
-0.6475418210029602,
0.49724137783050537,
1.0847702026367188,
1.3583370447158813,
-1.075810194015503,
-0.22872722148895264,
-1.7711801528930664,
-0.0791194960474968,
-0.7224287390708923,
0.30293238162994385,
-2.0152807235717773,
-0.22079959511756897,
-1.9403115510940552,
-2.300771474838257,
-1.3714152574539185,
-0.7888407707214355,
1.076641321182251,
0.08009558171033859,
-0.8150880932807922,
1.3708529472351074,
-0.3374015688896179,
-1.8218764066696167,
1.023763656616211,
-2.0752551555633545
] |
https://github.com/huggingface/datasets/issues/4755 | Datasets.map causes incorrect overflow_to_sample_mapping when used with tokenizers and small batch size | A larger batch size does _not_ have this behavior:
```
def tok2(d):
return tok(d['question'], d['context'])
ds = datasets.Dataset.from_dict({'question': questions, 'context': contexts})
tokens = ds.map(tok2, batched=True, batch_size=2)
print(tokens['overflow_to_sample_mapping'])
assert tokens['overflow_to_sample_mapping'] == [0, 1] # PASSES
``` | ## Describe the bug
When using `tokenizer`, we can retrieve the field `overflow_to_sample_mapping`, since long samples will be overflown into multiple token sequences.
However, when tokenizing is done via `Dataset.map`, with `n_proc > 1`, the `overflow_to_sample_mapping` field is wrong. This seems to be because each tokenizer only looks at its share of the samples, and maps to the index _within its share_, but then `Dataset.map` collates them together.
## Steps to reproduce the bug
1. Make a dataset of 3 strings.
2. Tokenize via Dataset.map with n_proc = 8
3. Inspect the `overflow_to_sample_mapping` field
## Expected results
`[0, 1, 2]`
## Actual results
`[0, 0, 0]`
Notes:
1. I have not yet extracted a minimal example, but the above works reliably
2. If the dataset is large, I've yet to determine if this bug still happens a. not at all b. always c. on the small, leftover batch at the end.
| 601 | 35 | Datasets.map causes incorrect overflow_to_sample_mapping when used with tokenizers and small batch size
## Describe the bug
When using `tokenizer`, we can retrieve the field `overflow_to_sample_mapping`, since long samples will be overflown into multiple token sequences.
However, when tokenizing is done via `Dataset.map`, with `n_proc > 1`, the `overflow_to_sample_mapping` field is wrong. This seems to be because each tokenizer only looks at its share of the samples, and maps to the index _within its share_, but then `Dataset.map` collates them together.
## Steps to reproduce the bug
1. Make a dataset of 3 strings.
2. Tokenize via Dataset.map with n_proc = 8
3. Inspect the `overflow_to_sample_mapping` field
## Expected results
`[0, 1, 2]`
## Actual results
`[0, 0, 0]`
Notes:
1. I have not yet extracted a minimal example, but the above works reliably
2. If the dataset is large, I've yet to determine if this bug still happens a. not at all b. always c. on the small, leftover batch at the end.
A larger batch size does _not_ have this behavior:
```
def tok2(d):
return tok(d['question'], d['context'])
ds = datasets.Dataset.from_dict({'question': questions, 'context': contexts})
tokens = ds.map(tok2, batched=True, batch_size=2)
print(tokens['overflow_to_sample_mapping'])
assert tokens['overflow_to_sample_mapping'] == [0, 1] # PASSES
``` | [
-1.1124176979064941,
-0.9088025093078613,
-0.7575570344924927,
1.5667307376861572,
-0.10353461652994156,
-1.19142484664917,
0.19658683240413666,
-1.1508243083953857,
1.7247129678726196,
-0.7865994572639465,
0.27549561858177185,
-1.5936527252197266,
0.0657183900475502,
-0.6884195804595947,
-0.772620677947998,
-0.8305906057357788,
-0.35205212235450745,
-0.7174728512763977,
1.1012741327285767,
2.5048418045043945,
1.0849813222885132,
-1.4256869554519653,
2.6557865142822266,
0.6645489931106567,
-0.1483185738325119,
-1.0554277896881104,
0.5254971981048584,
-0.01984988898038864,
-1.2405815124511719,
-0.4965292811393738,
-0.8856307864189148,
-0.019825294613838196,
-0.7073215842247009,
-0.510557234287262,
0.01602749153971672,
0.42642971873283386,
-0.37185752391815186,
-0.4389509856700897,
-0.4941440522670746,
-0.9314844012260437,
0.3792911171913147,
-0.40099942684173584,
0.935243546962738,
-0.26637282967567444,
1.7902491092681885,
-0.5372029542922974,
0.40162715315818787,
0.7177881002426147,
1.3593074083328247,
0.20542629063129425,
-0.003375991713255644,
0.3217136561870575,
0.4261314868927002,
-0.051264554262161255,
0.4987684488296509,
1.0950360298156738,
0.6512904167175293,
0.5370610356330872,
0.7553848624229431,
-2.3496358394622803,
1.3632562160491943,
-1.0725349187850952,
0.2848612666130066,
1.321900486946106,
-0.8857050538063049,
0.3789041042327881,
-1.7870368957519531,
0.034675076603889465,
0.5583632588386536,
-2.2697460651397705,
0.32556095719337463,
-1.3263949155807495,
-0.45810291171073914,
1.0133439302444458,
0.42136818170547485,
-1.2249757051467896,
0.19745337963104248,
-0.4375471770763397,
1.0487970113754272,
0.4432348310947418,
0.9916931986808777,
-1.7902296781539917,
-0.07506205141544342,
-0.2810567021369934,
0.16467933356761932,
-1.3100364208221436,
-1.4969098567962646,
0.5891538262367249,
0.5579765439033508,
0.5298882722854614,
-0.11534423381090164,
1.094344973564148,
-1.066237211227417,
0.6579205989837646,
-1.0971062183380127,
-1.8193793296813965,
-1.4219553470611572,
-2.2495028972625732,
-2.3002355098724365,
0.6471260786056519,
-0.4242315888404846,
-0.5144273638725281,
2.017627477645874,
-0.9401445984840393,
-1.6783076524734497,
1.2037365436553955,
0.34099453687667847,
-0.03225494176149368,
2.4117088317871094,
0.16516375541687012,
-0.6905665993690491,
0.41031450033187866,
-0.8592981696128845,
0.8136168122291565,
-0.37226763367652893,
1.354035496711731,
0.4144022464752197,
-1.0429158210754395,
1.6243096590042114,
-0.2506646513938904,
0.6036179661750793,
-0.7651351690292358,
-0.47783592343330383,
-0.7201621532440186,
0.2950133681297302,
1.9264219999313354,
-0.2511357069015503,
1.505732536315918,
-0.43857067823410034,
-1.4671534299850464,
-1.530269980430603,
0.9967043995857239,
0.44498705863952637,
-0.8428019881248474,
0.15581060945987701,
-0.42995402216911316,
0.20495624840259552,
-0.18333762884140015,
1.2351425886154175,
1.3140063285827637,
0.60948646068573,
-0.3708544373512268,
-0.8594589829444885,
0.1282547116279602,
-0.18291395902633667,
-0.7316351532936096,
-1.8648781776428223,
-0.3803931772708893,
0.05769646540284157,
0.6848976016044617,
-1.1747431755065918,
1.7210724353790283,
0.8054348826408386,
1.9195746183395386,
1.0710889101028442,
-0.4459865987300873,
1.4404220581054688,
0.11360480636358261,
1.8339954614639282,
-0.5342743396759033,
0.7092024683952332,
-0.4024723768234253,
-1.1341896057128906,
0.9797675013542175,
-0.31020504236221313,
-1.9830714464187622,
-0.7807639837265015,
-0.7621530294418335,
-0.25385206937789917,
-0.712921679019928,
0.8870236873626709,
-0.32766538858413696,
-1.4832006692886353,
0.24078725278377533,
-0.6872665882110596,
0.21480675041675568,
-1.1788122653961182,
0.3134121894836426,
0.7839537858963013,
-0.5759864449501038,
0.16880281269550323,
-0.362749844789505,
-1.2872353792190552,
-0.5661247372627258,
0.3936123847961426,
1.8323203325271606,
-0.7503337264060974,
0.9224357008934021,
1.064703106880188,
-0.6508380770683289,
-0.08741968870162964,
0.30859512090682983,
-0.2767380177974701,
0.8283541202545166,
-1.01425302028656,
-0.5804792046546936,
1.228329062461853,
-0.3037559688091278,
-0.6402294039726257,
1.5138812065124512,
0.7083438634872437,
-0.9952733516693115,
-0.17901888489723206,
-0.15141743421554565,
-0.8700253963470459,
0.12750500440597534,
-1.6564089059829712,
-0.1370791345834732,
0.4946630597114563,
-1.6320092678070068,
-0.4393065869808197,
-0.20580728352069855,
1.2906696796417236,
-0.19825109839439392,
1.4261380434036255,
-0.36654576659202576,
-0.17702841758728027,
-0.34849533438682556,
-0.36606743931770325,
0.09911857545375824,
-0.2188156247138977,
-0.6568931341171265,
0.25963422656059265,
-0.8024232983589172,
0.45379361510276794,
1.3938162326812744,
0.2381085455417633,
0.03366614878177643,
0.44966188073158264,
1.0607402324676514,
0.3672596216201782,
-0.01793805882334709,
-0.9047629237174988,
-1.5474039316177368,
2.0288069248199463,
-1.4148131608963013,
1.9973247051239014,
0.6886363625526428,
-0.010410607792437077,
-1.7114218473434448,
-1.7408698797225952,
1.4466462135314941,
1.1132272481918335,
2.21956205368042,
0.5927707552909851,
0.3302837908267975,
-0.770977258682251,
-0.6080366969108582,
0.25317952036857605,
-0.9568024277687073,
-0.7012996077537537,
0.13774317502975464,
2.4200549125671387,
1.673101782798767,
-0.38738203048706055,
-0.18899811804294586,
-0.9930838346481323,
1.5075989961624146,
-0.25824302434921265,
0.283608615398407,
1.975987434387207,
-0.238210991024971,
-1.047178864479065,
1.2475615739822388,
-2.43363094329834,
0.19850677251815796,
2.033936023712158,
0.26651889085769653,
0.16563311219215393,
-1.3613704442977905,
-0.678620457649231,
-0.3041452169418335,
-0.3956632912158966,
-1.190105676651001,
0.4930703639984131,
-0.20373746752738953,
-0.7622250318527222,
-1.5000311136245728,
0.2532539963722229,
-1.1379077434539795,
-1.6080034971237183,
0.22093789279460907,
1.981791377067566,
2.057663679122925,
-0.6646807789802551,
1.5899189710617065,
-0.2864050269126892,
0.20760712027549744,
1.2360522747039795,
1.2120811939239502,
3.026789903640747,
1.9225982427597046,
-1.2235344648361206,
0.6070547103881836,
-0.13854411244392395,
-0.5439114570617676,
1.178808569908142,
-1.1944838762283325,
1.2763245105743408,
-0.10746674239635468,
-1.1318672895431519,
-1.3414839506149292,
0.9680231213569641,
0.516555905342102,
0.07845431566238403,
-0.5212995409965515,
1.2325783967971802,
0.00407728087157011,
1.2455533742904663,
0.5116742253303528,
-0.3247157335281372,
0.5800115466117859,
-0.46621522307395935,
-0.5273430347442627,
1.5680242776870728,
0.2118908166885376,
-1.4127360582351685,
-2.2643015384674072,
-0.1917608082294464,
-0.788926362991333,
0.11563349515199661,
-0.6589874625205994,
-1.006095051765442,
1.6666154861450195,
0.3430934250354767,
-1.2136284112930298,
-0.21428892016410828,
-0.30543288588523865,
-0.6136869192123413,
2.73663592338562,
-1.352163553237915,
-0.334526002407074,
-1.0245472192764282,
-0.684715211391449,
1.6367746591567993,
-1.1935033798217773,
-0.1866055577993393,
-0.962702751159668,
-0.4806695282459259,
-1.2247165441513062,
-0.44775304198265076,
-0.03994232416152954,
-0.8990509510040283,
0.9394116997718811,
0.2453356832265854,
-1.272533655166626,
-0.38042017817497253,
-0.8957316875457764,
0.8991016745567322,
-0.13158169388771057,
0.22977229952812195,
1.9138703346252441,
0.38023123145103455,
-0.36629268527030945,
0.8215550780296326,
1.105292797088623,
0.6581248641014099,
-0.6163555383682251,
0.19567319750785828,
-0.5309087634086609,
0.36318299174308777,
-1.295982837677002,
0.3219510614871979,
-2.839223623275757,
0.6419428586959839,
-0.047717660665512085,
-0.053242314606904984,
0.022683236747980118,
-1.25977623462677,
1.09945547580719,
2.6540701389312744,
-1.2360514402389526,
0.5240826606750488,
0.3235490620136261,
1.2055139541625977,
-1.5477510690689087,
0.33237117528915405,
-0.4051702618598938,
2.1269779205322266,
0.24832157790660858,
1.2003754377365112,
-0.4331319332122803,
-2.4288907051086426,
0.5495560169219971,
-1.2891767024993896,
-1.1799938678741455,
0.7746171951293945,
-0.794174313545227,
0.02628878504037857,
-1.4262964725494385,
-0.26280510425567627,
-0.9116090536117554,
-1.2346527576446533,
0.674711287021637,
0.11100848019123077,
0.44002071022987366,
-0.6267603635787964,
0.3870839476585388,
-2.227945566177368,
-1.3608101606369019,
-0.22391270101070404,
-0.9433609843254089,
0.5028719305992126,
-0.406011700630188,
0.673775315284729,
-0.18401318788528442,
-0.018246624618768692,
0.3105682134628296,
1.5365126132965088,
3.4883625507354736,
0.20724919438362122,
0.3431347906589508,
-0.31107327342033386,
-0.8631798028945923,
1.3758317232131958,
0.9996281266212463,
-0.10123948007822037,
-0.5301191806793213,
-1.0455327033996582,
1.2793734073638916,
2.052845001220703,
0.9141096472740173,
-0.02131602354347706,
-0.7805123925209045,
-0.6830152273178101,
-0.0767136886715889,
0.14083194732666016,
0.4754001200199127,
0.8685083389282227,
0.20108015835285187,
0.061207037419080734,
1.3913394212722778,
1.1567236185073853,
-0.40344107151031494,
0.347915917634964,
-0.8025889992713928,
-0.3130955994129181,
0.522819459438324,
0.30390694737434387,
0.0046540312469005585,
0.35169774293899536,
-0.971655547618866,
-0.1423264592885971,
-0.5188182592391968,
-0.8822261095046997,
-0.7536913156509399,
-0.406936913728714,
-0.32155841588974,
1.6626925468444824,
0.2443050891160965,
-0.5021888017654419,
-0.04936176910996437,
-0.7665649652481079,
-0.030755456537008286,
-1.019398808479309,
0.2524054944515228,
-0.1489783376455307,
-0.12489467859268188,
-0.10617011785507202,
1.7924572229385376,
-0.9426116943359375,
-2.0098910331726074,
0.176238015294075,
0.1788605898618698,
-0.28205007314682007,
0.28874221444129944,
1.6917986869812012,
0.48037412762641907,
1.4269230365753174,
1.3280996084213257,
0.9084841012954712,
-0.6633709669113159,
-1.3246959447860718,
0.6092690229415894,
1.0245003700256348,
-1.4486299753189087,
0.8286781311035156,
0.1277509480714798,
-0.5356878638267517,
0.7288568019866943,
1.316630244255066,
0.507766604423523,
-2.0342955589294434,
0.6759913563728333,
-1.0807337760925293,
0.8422157764434814,
0.7783210873603821,
0.6118420958518982,
0.24477945268154144,
0.8405761122703552,
-1.212203860282898,
-1.1145752668380737,
-0.7249011993408203,
-0.7101236581802368,
1.968664288520813,
-0.3318983018398285,
0.5801794528961182,
-0.1013224720954895,
-1.3757447004318237,
-0.08480779826641083,
0.7500337958335876,
0.4389961361885071,
-0.5171114206314087,
0.7315430641174316,
-0.6900447010993958,
-1.121407389640808,
-1.3284552097320557,
-0.49808570742607117,
-1.1049103736877441,
-1.0234386920928955,
1.077656626701355,
0.7540040016174316,
0.28404372930526733,
1.8015844821929932,
0.6585074663162231,
0.2280556708574295,
-2.5980324745178223,
0.848243236541748,
0.3503398895263672,
-0.1347445547580719,
0.8647133111953735,
0.41854310035705566,
1.0481541156768799,
0.06510773301124573,
0.6459197402000427,
-2.4421565532684326,
2.3841559886932373,
-0.19030286371707916,
0.7025864720344543,
0.020295429974794388,
-0.10469584912061691,
1.1101009845733643,
0.5855781435966492,
0.5009958148002625,
-1.0506795644760132,
0.7165131568908691,
-0.5720750689506531,
1.2870903015136719,
0.8447281122207642,
-0.7730121612548828,
-0.08910155296325684,
1.3912043571472168,
0.4320532977581024,
-0.5871614813804626,
-0.9116291999816895,
-1.0476484298706055,
0.909931480884552,
1.7088878154754639,
-0.07944059371948242,
-0.10084549337625504,
0.8265385627746582,
0.6121057271957397,
-1.2976431846618652,
0.09707500040531158,
-0.6706077456474304,
-0.7598470449447632,
1.5159502029418945,
2.0972235202789307,
-0.17669308185577393,
-0.11233851313591003,
-0.7413597702980042,
-1.1976324319839478,
0.6679868102073669,
0.047796864062547684,
-0.016161592677235603,
0.5791170597076416,
-0.608961284160614,
1.0059702396392822,
0.7979890704154968,
0.8760320544242859,
0.1990751326084137,
0.28301000595092773,
0.37184399366378784,
-0.4226817488670349,
-1.125241994857788,
-0.2931380867958069,
-1.0813392400741577,
-2.5173275470733643,
0.36649289727211,
-0.2170676738023758,
-1.4117956161499023,
0.028220508247613907,
-1.0754613876342773,
0.8764922618865967,
-0.5808027386665344,
-1.1717946529388428,
-1.50686514377594,
0.19310520589351654,
-0.035112444311380386,
0.9099284410476685,
-1.6505252122879028,
-0.11483736336231232,
1.2487916946411133,
0.8230382800102234,
-0.7117299437522888,
1.0949397087097168,
0.21326559782028198,
1.0091872215270996,
0.8594545125961304,
-0.3239489495754242,
0.49915045499801636,
0.009236856363713741,
-1.286264419555664,
0.4795384109020233,
1.1407169103622437,
0.1738649308681488,
1.4520905017852783,
-0.570509672164917,
-0.0486241914331913,
0.34730783104896545,
-0.4974815845489502,
-0.4214296042919159,
-0.5242387652397156,
0.689308762550354,
0.10211848467588425,
-0.7513207793235779,
0.07626303285360336,
-0.03476499766111374,
-0.20369435846805573,
0.22807903587818146,
-1.5041223764419556,
-0.14556612074375153,
-0.4020976424217224,
-0.5368067026138306,
-1.2339197397232056,
-0.07784278690814972,
1.4312628507614136,
-0.6640454530715942,
-0.2651577293872833,
0.4831216037273407,
0.4203421473503113,
0.4991629123687744,
0.6772763133049011,
-0.6579936742782593,
-0.43014898896217346,
-0.22554552555084229,
-0.2707749009132385,
0.36096951365470886,
1.3590368032455444,
-0.14930464327335358,
-0.9472704529762268,
0.7576924562454224,
-0.3788987696170807,
0.04242768883705139,
1.8505367040634155,
0.041847601532936096,
-0.8157570362091064,
0.29042956233024597,
-0.7110377550125122,
2.01780104637146,
1.7066715955734253,
1.2527319192886353,
-0.17236019670963287,
-1.0038377046585083,
0.689213752746582,
-0.3978460729122162,
-0.3789803087711334,
0.8656147718429565,
0.3210262954235077,
-0.22424915432929993,
-1.4127967357635498,
0.6945286989212036,
1.2985374927520752,
-0.7929243445396423,
-0.9740565419197083,
0.210564523935318,
-0.8033062219619751,
1.1082274913787842,
0.5876674056053162,
0.40577974915504456,
0.20978350937366486,
1.6310324668884277,
0.7655141353607178,
-0.516916811466217,
0.575193464756012,
0.4760710597038269,
-0.23798123002052307,
-2.0757620334625244,
-1.2444894313812256,
0.33334288001060486,
-0.5441797971725464,
-1.6323676109313965,
1.4080265760421753,
-1.1217262744903564,
-0.9433664083480835,
0.5878917574882507,
0.07490331679582596,
1.3595585823059082,
0.318673312664032,
1.5057398080825806,
2.0750644207000732,
0.783825695514679,
0.4632874131202698,
1.2443526983261108,
-0.25100064277648926,
-0.6243858337402344,
1.7743182182312012,
-0.4403221011161804,
0.46244803071022034,
1.1625750064849854,
-0.29766646027565,
-0.964774489402771,
-0.7608264684677124,
-1.1698567867279053,
-0.6775919198989868,
1.1420817375183105,
0.10405823588371277,
-1.1758230924606323,
0.217587411403656,
1.5489592552185059,
0.07340717315673828,
-0.23612554371356964,
0.6423144936561584,
0.43059012293815613,
-0.8536417484283447,
-0.018955452367663383,
-0.9069763422012329,
0.5588135719299316,
-0.25339317321777344,
-0.30351972579956055,
0.45191386342048645,
0.41994622349739075,
1.2991690635681152,
-0.10367578268051147,
0.24297498166561127,
1.095955729484558,
-1.4923512935638428,
1.4867815971374512,
-0.6669009327888489,
0.31488680839538574,
-2.3907785415649414,
1.277394413948059,
-0.6815174221992493,
2.021604061126709,
-2.567293882369995,
0.37098827958106995,
-0.7239397168159485,
-0.48818671703338623,
0.2671425938606262,
-0.23281092941761017,
0.186400905251503,
-0.2157684564590454,
-1.163348913192749,
-0.08133748918771744,
-0.7101051807403564,
0.4714726209640503,
1.0570992231369019,
1.3727319240570068,
-1.0769126415252686,
-0.25609132647514343,
-1.7390785217285156,
-0.10975196212530136,
-0.6690823435783386,
0.3324916660785675,
-1.9619476795196533,
-0.22269193828105927,
-1.9278595447540283,
-2.3589038848876953,
-1.3739453554153442,
-0.7662995457649231,
1.0386770963668823,
0.037235524505376816,
-0.8165203928947449,
1.3493056297302246,
-0.3651723265647888,
-1.7985280752182007,
1.069675326347351,
-2.0311479568481445
] |
https://github.com/huggingface/datasets/issues/4752 | DatasetInfo issue when testing multiple configs: mixed task_templates | I've narrowed down the issue to the `dataset_module_factory` which already creates a `dataset_infos.json` file down in the `.cache/modules/dataset_modules/..` folder. That JSON file already contains the wrong task_templates for `unfiltered`. | ## Describe the bug
When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel.
## Steps to reproduce the bug
In summary, what I want to do is create three configs:
- unfiltered: no classlabel, no tasks. Gets data from unfiltered.json.gz (I'd want this without splits, just one chunk of data, but that does not seem possible?)
- filtered_sentiment: `review_sentiment` as ClassLabel, TextClassification task with `review_sentiment` as label. Gets train/test split from respective json.gz files
- filtered_rating: `review_rating0` as ClassLabel, TextClassification task with `review_rating0` as label. Gets train/test split from respective json.gz files
This might be a bit tedious to reproduce, so I am sorry, but these are the steps:
- Clone datasets -> `datasets/` and install it
- Clone `https://huggingface.co/datasets/BramVanroy/hebban-reviews` into `datasets/datasets` so that you have a new folder `datasets/datasets/hebban-reviews/`.
- Replace the HebbanReviews class with this new one:
```python
class HebbanReviews(datasets.GeneratorBasedBuilder):
"""The Hebban book reviews dataset."""
BUILDER_CONFIGS = [
HebbanReviewsConfig(
name="unfiltered",
description=_HEBBAN_REVIEWS_UNFILTERED_DESCRIPTION,
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_sentiment",
description=f"This config has the negative, neutral, and positive sentiment scores as ClassLabel in the 'review_sentiment' column.\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_rating",
description=f"This config has the 5-class ratings as ClassLabel in the 'review_rating0' column (which is a variant of 'review_rating' that starts counting from 0 instead of 1).\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
)
]
DEFAULT_CONFIG_NAME = "filtered_sentiment"
_URLS = {
"train": "train.jsonl.gz",
"test": "test.jsonl.gz",
"unfiltered": "unfiltered.jsonl.gz",
}
def _info(self):
features = {
"review_title": datasets.Value("string"),
"review_text": datasets.Value("string"),
"review_text_without_quotes": datasets.Value("string"),
"review_n_quotes": datasets.Value("int32"),
"review_n_tokens": datasets.Value("int32"),
"review_rating": datasets.Value("int32"),
"review_rating0": datasets.Value("int32"),
"review_author_url": datasets.Value("string"),
"review_author_type": datasets.Value("string"),
"review_n_likes": datasets.Value("int32"),
"review_n_comments": datasets.Value("int32"),
"review_url": datasets.Value("string"),
"review_published_date": datasets.Value("string"),
"review_crawl_date": datasets.Value("string"),
"lid": datasets.Value("string"),
"lid_probability": datasets.Value("float32"),
"review_sentiment": datasets.features.ClassLabel(names=["negative", "neutral", "positive"]),
"review_sentiment_label": datasets.Value("string"),
"book_id": datasets.Value("int32"),
}
if self.config.name == "filtered_sentiment":
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_sentiment")]
elif self.config.name == "filtered_rating":
# For CrossEntropy, our classes need to start at index 0 -- not 1
features["review_rating0"] = datasets.features.ClassLabel(names=["1", "2", "3", "4", "5"])
features["review_sentiment"] = datasets.Value("int32")
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_rating0")]
elif self.config.name == "unfiltered": # no ClassLabels in unfiltered
features["review_sentiment"] = datasets.Value("int32")
task_templates = None
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
print("AT INFO", self.config.name, task_templates)
return datasets.DatasetInfo(
description=self.config.description,
features=datasets.Features(features),
homepage="https://huggingface.co/datasets/BramVanroy/hebban-reviews",
citation=_HEBBAN_REVIEWS_CITATION,
task_templates=task_templates,
license="cc-by-4.0"
)
def _split_generators(self, dl_manager):
if self.config.name.startswith("filtered"):
files = dl_manager.download_and_extract({"train": "train.jsonl.gz",
"test": "test.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"data_file": files["test"]
},
),
]
elif self.config.name == "unfiltered":
files = dl_manager.download_and_extract({"train": "unfiltered.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
]
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
def _generate_examples(self, data_file):
lines = Path(data_file).open(encoding="utf-8").readlines()
for line_idx, line in enumerate(lines):
row = json.loads(line)
yield line_idx, row
```
- finally, run `datasets-cli test ./datasets/hebban-reviews/ --save_infos --all_configs` from within the topmost `datasets` directory
## Expected results
Succeeding tests for three different configs.
## Actual results
I printed out the values that are given to `DatasetInfo` for config name and task_templates, as you can see. There, as expected, I get `unfiltered None`. I also modified datasets/info.py and added this line [at L.170](https://github.com/huggingface/datasets/blob/f5847a304aa1b38b3a3c54a8318b4df60f1299bc/src/datasets/info.py#L170):
```python
print("INTERNALLY AT INFO.PY", self.config_name, self.task_templates)
```
to my surprise, here I get `unfiltered [TextClassification(task='text-classification', text_column='review_text_without_quotes', label_column='review_sentiment')]`. So one way or another, here I suddenly see that `unfiltered` now does have a task_template -- even though that is not what is written in the data loading script, as the first print statement correctly shows.
I do not quite understand how, but it seems that the config name and task_templates get mixed.
This ultimately leads to the following error, but this trace may not be very useful in itself:
```
Traceback (most recent call last):
File "C:\Users\bramv\.virtualenvs\hebban-U6poXNQd\Scripts\datasets-cli-script.py", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "c:\dev\python\hebban\datasets\src\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\dev\python\hebban\datasets\src\datasets\commands\test.py", line 144, in run
builder.as_dataset()
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 899, in as_dataset
datasets = map_nested(
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 393, in map_nested
mapped = [
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 394, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 330, in _single_map_nested
return function(data_struct)
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 930, in _build_single_dataset
ds = self._as_dataset(
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 1006, in _as_dataset
return Dataset(fingerprint=fingerprint, **dataset_kwargs)
File "c:\dev\python\hebban\datasets\src\datasets\arrow_dataset.py", line 661, in __init__
info = info.copy() if info is not None else DatasetInfo()
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 286, in copy
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
File "<string>", line 20, in __init__
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 176, in __post_init__
self.task_templates = [
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 177, in <listcomp>
template.align_with_features(self.features) for template in (self.task_templates)
File "c:\dev\python\hebban\datasets\src\datasets\tasks\text_classification.py", line 22, in align_with_features
raise ValueError(f"Column {self.label_column} is not a ClassLabel.")
ValueError: Column review_sentiment is not a ClassLabel.
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3 | 602 | 29 | DatasetInfo issue when testing multiple configs: mixed task_templates
## Describe the bug
When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel.
## Steps to reproduce the bug
In summary, what I want to do is create three configs:
- unfiltered: no classlabel, no tasks. Gets data from unfiltered.json.gz (I'd want this without splits, just one chunk of data, but that does not seem possible?)
- filtered_sentiment: `review_sentiment` as ClassLabel, TextClassification task with `review_sentiment` as label. Gets train/test split from respective json.gz files
- filtered_rating: `review_rating0` as ClassLabel, TextClassification task with `review_rating0` as label. Gets train/test split from respective json.gz files
This might be a bit tedious to reproduce, so I am sorry, but these are the steps:
- Clone datasets -> `datasets/` and install it
- Clone `https://huggingface.co/datasets/BramVanroy/hebban-reviews` into `datasets/datasets` so that you have a new folder `datasets/datasets/hebban-reviews/`.
- Replace the HebbanReviews class with this new one:
```python
class HebbanReviews(datasets.GeneratorBasedBuilder):
"""The Hebban book reviews dataset."""
BUILDER_CONFIGS = [
HebbanReviewsConfig(
name="unfiltered",
description=_HEBBAN_REVIEWS_UNFILTERED_DESCRIPTION,
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_sentiment",
description=f"This config has the negative, neutral, and positive sentiment scores as ClassLabel in the 'review_sentiment' column.\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_rating",
description=f"This config has the 5-class ratings as ClassLabel in the 'review_rating0' column (which is a variant of 'review_rating' that starts counting from 0 instead of 1).\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
)
]
DEFAULT_CONFIG_NAME = "filtered_sentiment"
_URLS = {
"train": "train.jsonl.gz",
"test": "test.jsonl.gz",
"unfiltered": "unfiltered.jsonl.gz",
}
def _info(self):
features = {
"review_title": datasets.Value("string"),
"review_text": datasets.Value("string"),
"review_text_without_quotes": datasets.Value("string"),
"review_n_quotes": datasets.Value("int32"),
"review_n_tokens": datasets.Value("int32"),
"review_rating": datasets.Value("int32"),
"review_rating0": datasets.Value("int32"),
"review_author_url": datasets.Value("string"),
"review_author_type": datasets.Value("string"),
"review_n_likes": datasets.Value("int32"),
"review_n_comments": datasets.Value("int32"),
"review_url": datasets.Value("string"),
"review_published_date": datasets.Value("string"),
"review_crawl_date": datasets.Value("string"),
"lid": datasets.Value("string"),
"lid_probability": datasets.Value("float32"),
"review_sentiment": datasets.features.ClassLabel(names=["negative", "neutral", "positive"]),
"review_sentiment_label": datasets.Value("string"),
"book_id": datasets.Value("int32"),
}
if self.config.name == "filtered_sentiment":
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_sentiment")]
elif self.config.name == "filtered_rating":
# For CrossEntropy, our classes need to start at index 0 -- not 1
features["review_rating0"] = datasets.features.ClassLabel(names=["1", "2", "3", "4", "5"])
features["review_sentiment"] = datasets.Value("int32")
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_rating0")]
elif self.config.name == "unfiltered": # no ClassLabels in unfiltered
features["review_sentiment"] = datasets.Value("int32")
task_templates = None
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
print("AT INFO", self.config.name, task_templates)
return datasets.DatasetInfo(
description=self.config.description,
features=datasets.Features(features),
homepage="https://huggingface.co/datasets/BramVanroy/hebban-reviews",
citation=_HEBBAN_REVIEWS_CITATION,
task_templates=task_templates,
license="cc-by-4.0"
)
def _split_generators(self, dl_manager):
if self.config.name.startswith("filtered"):
files = dl_manager.download_and_extract({"train": "train.jsonl.gz",
"test": "test.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"data_file": files["test"]
},
),
]
elif self.config.name == "unfiltered":
files = dl_manager.download_and_extract({"train": "unfiltered.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
]
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
def _generate_examples(self, data_file):
lines = Path(data_file).open(encoding="utf-8").readlines()
for line_idx, line in enumerate(lines):
row = json.loads(line)
yield line_idx, row
```
- finally, run `datasets-cli test ./datasets/hebban-reviews/ --save_infos --all_configs` from within the topmost `datasets` directory
## Expected results
Succeeding tests for three different configs.
## Actual results
I printed out the values that are given to `DatasetInfo` for config name and task_templates, as you can see. There, as expected, I get `unfiltered None`. I also modified datasets/info.py and added this line [at L.170](https://github.com/huggingface/datasets/blob/f5847a304aa1b38b3a3c54a8318b4df60f1299bc/src/datasets/info.py#L170):
```python
print("INTERNALLY AT INFO.PY", self.config_name, self.task_templates)
```
to my surprise, here I get `unfiltered [TextClassification(task='text-classification', text_column='review_text_without_quotes', label_column='review_sentiment')]`. So one way or another, here I suddenly see that `unfiltered` now does have a task_template -- even though that is not what is written in the data loading script, as the first print statement correctly shows.
I do not quite understand how, but it seems that the config name and task_templates get mixed.
This ultimately leads to the following error, but this trace may not be very useful in itself:
```
Traceback (most recent call last):
File "C:\Users\bramv\.virtualenvs\hebban-U6poXNQd\Scripts\datasets-cli-script.py", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "c:\dev\python\hebban\datasets\src\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\dev\python\hebban\datasets\src\datasets\commands\test.py", line 144, in run
builder.as_dataset()
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 899, in as_dataset
datasets = map_nested(
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 393, in map_nested
mapped = [
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 394, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 330, in _single_map_nested
return function(data_struct)
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 930, in _build_single_dataset
ds = self._as_dataset(
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 1006, in _as_dataset
return Dataset(fingerprint=fingerprint, **dataset_kwargs)
File "c:\dev\python\hebban\datasets\src\datasets\arrow_dataset.py", line 661, in __init__
info = info.copy() if info is not None else DatasetInfo()
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 286, in copy
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
File "<string>", line 20, in __init__
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 176, in __post_init__
self.task_templates = [
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 177, in <listcomp>
template.align_with_features(self.features) for template in (self.task_templates)
File "c:\dev\python\hebban\datasets\src\datasets\tasks\text_classification.py", line 22, in align_with_features
raise ValueError(f"Column {self.label_column} is not a ClassLabel.")
ValueError: Column review_sentiment is not a ClassLabel.
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
I've narrowed down the issue to the `dataset_module_factory` which already creates a `dataset_infos.json` file down in the `.cache/modules/dataset_modules/..` folder. That JSON file already contains the wrong task_templates for `unfiltered`. | [
-1.1875088214874268,
-0.8990647196769714,
-0.7193581461906433,
1.4244009256362915,
-0.17340178787708282,
-1.2153222560882568,
0.18110860884189606,
-1.0735677480697632,
1.6232799291610718,
-0.8657732605934143,
0.32773104310035706,
-1.6187375783920288,
-0.04268748313188553,
-0.6905537843704224,
-0.6874874234199524,
-0.8033519387245178,
-0.516058087348938,
-0.7077409029006958,
1.0000214576721191,
2.44297194480896,
1.2883460521697998,
-1.311968207359314,
2.7665913105010986,
0.7349601984024048,
-0.12340773642063141,
-0.975683331489563,
0.542009711265564,
0.02941162697970867,
-1.2484734058380127,
-0.41999876499176025,
-0.9494938850402832,
-0.10681886225938797,
-0.6475833654403687,
-0.4803081750869751,
-0.061485737562179565,
0.43273013830184937,
-0.2606090009212494,
-0.3817671835422516,
-0.651492714881897,
-0.8134608268737793,
0.52153080701828,
-0.35935401916503906,
0.9577547907829285,
-0.36835870146751404,
1.7518517971038818,
-0.5369695425033569,
0.4322194755077362,
0.8338298797607422,
1.2445465326309204,
0.18764062225818634,
0.004866953939199448,
0.2404312640428543,
0.386738121509552,
-0.05583304911851883,
0.5395867824554443,
1.2112157344818115,
0.7289987802505493,
0.5436565279960632,
0.6782987117767334,
-2.2569611072540283,
1.3015069961547852,
-1.0630171298980713,
0.35615018010139465,
1.3372570276260376,
-0.948944628238678,
0.39481842517852783,
-1.826130986213684,
-0.0006310408934950829,
0.5570498704910278,
-2.2339510917663574,
0.21260404586791992,
-1.2612837553024292,
-0.46776214241981506,
0.9594521522521973,
0.2947084903717041,
-1.2001011371612549,
0.20647621154785156,
-0.3871215879917145,
1.0386431217193604,
0.4089086651802063,
1.152565598487854,
-1.7650526762008667,
0.014631399884819984,
-0.26292476058006287,
0.08946055918931961,
-1.2424031496047974,
-1.5139942169189453,
0.534876823425293,
0.621659517288208,
0.605876624584198,
-0.15699870884418488,
1.1118714809417725,
-1.011934757232666,
0.7368173003196716,
-1.0324450731277466,
-1.620011568069458,
-1.3542227745056152,
-2.2261011600494385,
-2.284648895263672,
0.7363659739494324,
-0.48654985427856445,
-0.4996442496776581,
2.0547406673431396,
-1.002848505973816,
-1.7698605060577393,
1.1567686796188354,
0.30523061752319336,
0.03343113511800766,
2.3581011295318604,
0.29233434796333313,
-0.7489170432090759,
0.44671913981437683,
-0.7190905809402466,
0.8244256377220154,
-0.3382642865180969,
1.3008981943130493,
0.46597862243652344,
-1.0257606506347656,
1.564780354499817,
-0.4375673532485962,
0.6582978367805481,
-0.5944579839706421,
-0.5087123513221741,
-0.7954970002174377,
0.28879058361053467,
1.8301076889038086,
-0.3054065406322479,
1.5329917669296265,
-0.3032412528991699,
-1.6172980070114136,
-1.5929341316223145,
0.8427479863166809,
0.3744724988937378,
-0.7677795886993408,
0.011736137792468071,
-0.38701292872428894,
0.14036960899829865,
-0.061370059847831726,
1.1168389320373535,
1.2885409593582153,
0.7235257029533386,
-0.3287832736968994,
-0.8126111030578613,
0.15392954647541046,
-0.02520834654569626,
-0.725877046585083,
-1.803449273109436,
-0.34261953830718994,
0.16086411476135254,
0.6360061764717102,
-1.1553384065628052,
1.8255422115325928,
0.9701754450798035,
1.894079566001892,
1.026881217956543,
-0.3951646685600281,
1.5331330299377441,
0.08999073505401611,
1.8321419954299927,
-0.46652573347091675,
0.5938104391098022,
-0.34638676047325134,
-1.126011610031128,
0.9275054931640625,
-0.3720484972000122,
-2.0696334838867188,
-0.7853406667709351,
-0.7873045206069946,
-0.14174993336200714,
-0.772780179977417,
0.9167732000350952,
-0.23699451982975006,
-1.4274113178253174,
0.17863066494464874,
-0.6582542061805725,
0.14352130889892578,
-1.201569676399231,
0.2606756389141083,
0.7402835488319397,
-0.6688711047172546,
0.026054522022604942,
-0.2474145144224167,
-1.2927528619766235,
-0.4218765199184418,
0.28842976689338684,
1.8516089916229248,
-0.7533569931983948,
0.8918127417564392,
1.0379302501678467,
-0.755850613117218,
0.0008866768330335617,
0.2874526381492615,
-0.25861623883247375,
0.8524607419967651,
-1.0526072978973389,
-0.40034112334251404,
1.18446683883667,
-0.15755073726177216,
-0.616123616695404,
1.465705156326294,
0.7627763152122498,
-1.0409913063049316,
-0.25500917434692383,
-0.17681890726089478,
-0.7910776734352112,
0.06140059232711792,
-1.5393511056900024,
-0.11121314018964767,
0.3581402003765106,
-1.5110974311828613,
-0.4543958902359009,
-0.25226670503616333,
1.3142483234405518,
-0.12478134781122208,
1.3770148754119873,
-0.33712613582611084,
-0.2077893614768982,
-0.324810266494751,
-0.4685915410518646,
0.20974445343017578,
-0.23961284756660461,
-0.5592002272605896,
0.19593381881713867,
-0.8403965830802917,
0.31556329131126404,
1.4231269359588623,
0.24761368334293365,
0.04543796926736832,
0.5311364531517029,
1.055389642715454,
0.33753153681755066,
-0.03746391460299492,
-0.9057127237319946,
-1.468087077140808,
2.0468802452087402,
-1.507427453994751,
1.9656063318252563,
0.685947835445404,
-0.028412796556949615,
-1.8261529207229614,
-1.9168866872787476,
1.4508354663848877,
1.1558406352996826,
2.324939727783203,
0.507247269153595,
0.4340974986553192,
-0.8825351595878601,
-0.7725614309310913,
0.31174901127815247,
-1.0363428592681885,
-0.7377228736877441,
0.21212036907672882,
2.358130931854248,
1.7502069473266602,
-0.5307925939559937,
-0.2844875454902649,
-0.9623125791549683,
1.3643447160720825,
-0.25301194190979004,
0.20139294862747192,
2.075507879257202,
-0.32600095868110657,
-1.022580623626709,
1.3796911239624023,
-2.4448184967041016,
0.16254934668540955,
1.9944982528686523,
0.3167244493961334,
0.11189763247966766,
-1.3664555549621582,
-0.6934844851493835,
-0.23476436734199524,
-0.48711100220680237,
-1.2767518758773804,
0.5358009338378906,
-0.2795117497444153,
-0.8003086447715759,
-1.3683676719665527,
0.18973445892333984,
-1.0720750093460083,
-1.6442139148712158,
0.2986580431461334,
1.8972951173782349,
2.0235326290130615,
-0.8254727125167847,
1.5439940690994263,
-0.40083929896354675,
0.18387483060359955,
1.2073564529418945,
1.2986568212509155,
3.1157565116882324,
1.9015212059020996,
-1.2539080381393433,
0.6245625615119934,
-0.14680874347686768,
-0.4655659794807434,
1.0620054006576538,
-1.2102882862091064,
1.3300559520721436,
-0.20590993762016296,
-1.1574524641036987,
-1.2211467027664185,
0.9216281175613403,
0.3918631076812744,
0.12127871066331863,
-0.5026941895484924,
1.2011653184890747,
0.044977881014347076,
1.3409137725830078,
0.6485875844955444,
-0.42381614446640015,
0.6400530934333801,
-0.35918715596199036,
-0.508996844291687,
1.5728137493133545,
0.1803407073020935,
-1.4689600467681885,
-2.2731401920318604,
-0.24044907093048096,
-0.8332654237747192,
0.03356722742319107,
-0.5913704633712769,
-0.9510459303855896,
1.6583236455917358,
0.3712776303291321,
-1.3257732391357422,
-0.24420611560344696,
-0.3333824872970581,
-0.4815502166748047,
2.7027575969696045,
-1.4017800092697144,
-0.18809781968593597,
-0.9690901637077332,
-0.6290074586868286,
1.6649147272109985,
-1.1467636823654175,
-0.20691043138504028,
-1.0044949054718018,
-0.5902933478355408,
-1.3642388582229614,
-0.4916402995586395,
0.06384038180112839,
-0.8928696513175964,
0.8210420608520508,
0.20016643404960632,
-1.19369637966156,
-0.30880430340766907,
-0.9158864617347717,
0.9137536287307739,
-0.16861732304096222,
0.2055056095123291,
1.875699520111084,
0.3553984761238098,
-0.32875755429267883,
0.7517325282096863,
1.1354011297225952,
0.7089880704879761,
-0.6902851462364197,
0.2314358502626419,
-0.7256016731262207,
0.355242520570755,
-1.3456230163574219,
0.18984830379486084,
-2.8826122283935547,
0.6876476407051086,
-0.032409362494945526,
-0.08378302305936813,
-0.10178873687982559,
-1.4059211015701294,
1.0899425745010376,
2.535972833633423,
-1.1300619840621948,
0.45501479506492615,
0.30995070934295654,
1.1712162494659424,
-1.5299878120422363,
0.2914876341819763,
-0.4684578776359558,
2.0669384002685547,
0.17444895207881927,
1.1764739751815796,
-0.45346537232398987,
-2.3472375869750977,
0.5944265127182007,
-1.383050560951233,
-1.1542176008224487,
0.8395423889160156,
-0.7668300271034241,
0.12303241342306137,
-1.3482234477996826,
-0.18329457938671112,
-0.9449349045753479,
-1.2224891185760498,
0.6739085912704468,
0.14703676104545593,
0.4814341962337494,
-0.5393610000610352,
0.3241037130355835,
-2.1708602905273438,
-1.3328436613082886,
-0.2630618214607239,
-0.9642976522445679,
0.4901186227798462,
-0.41329410672187805,
0.69489586353302,
-0.18704310059547424,
0.03023170866072178,
0.4081476628780365,
1.4160239696502686,
3.390413999557495,
0.10540630668401718,
0.3570041358470917,
-0.10822733491659164,
-1.019553780555725,
1.4993127584457397,
0.8624629378318787,
-0.08258164674043655,
-0.5766220688819885,
-1.0722630023956299,
1.1687833070755005,
2.011312484741211,
1.0733314752578735,
-0.01907103881239891,
-0.8868960738182068,
-0.7128877639770508,
0.021941864863038063,
0.11107181012630463,
0.45253658294677734,
0.9193682074546814,
0.10188667476177216,
0.03693868964910507,
1.368369460105896,
1.1154242753982544,
-0.27500131726264954,
0.33320483565330505,
-0.8498377799987793,
-0.39004966616630554,
0.591347336769104,
0.2913951873779297,
-0.015297742560505867,
0.3471128046512604,
-1.0265833139419556,
-0.24812424182891846,
-0.39782050251960754,
-0.8894616365432739,
-0.7287180423736572,
-0.48478585481643677,
-0.40296489000320435,
1.6703633069992065,
0.10368560254573822,
-0.5538970828056335,
-0.011234045960009098,
-0.7355666160583496,
-0.14385834336280823,
-1.110209584236145,
0.34892773628234863,
-0.1507353037595749,
-0.1470363587141037,
-0.13790582120418549,
1.7658079862594604,
-0.9232730865478516,
-2.0431902408599854,
0.20713433623313904,
0.28168463706970215,
-0.2468872219324112,
0.15244930982589722,
1.6500216722488403,
0.48767411708831787,
1.462293267250061,
1.364266276359558,
1.0076690912246704,
-0.6779863834381104,
-1.2484567165374756,
0.7437751293182373,
0.9751405715942383,
-1.3777505159378052,
0.8074356317520142,
-0.05255405604839325,
-0.5688247084617615,
0.6521740555763245,
1.3126176595687866,
0.4069078862667084,
-1.950236439704895,
0.8045671582221985,
-0.9947616457939148,
0.7422764301300049,
0.666642963886261,
0.7160442471504211,
0.2298121154308319,
0.7702236175537109,
-1.2076472043991089,
-1.140308141708374,
-0.66755610704422,
-0.6030184030532837,
1.9567691087722778,
-0.2988697588443756,
0.6894341111183167,
-0.27691081166267395,
-1.3182530403137207,
-0.11042878776788712,
0.8236079216003418,
0.38920682668685913,
-0.505687952041626,
0.7324812412261963,
-0.6378425359725952,
-1.0540395975112915,
-1.396262526512146,
-0.41598424315452576,
-1.1183111667633057,
-0.9322353601455688,
1.0565756559371948,
0.7515421509742737,
0.3011741042137146,
1.835060477256775,
0.6721643209457397,
0.3480258285999298,
-2.6105799674987793,
0.873940646648407,
0.310805082321167,
-0.09254265576601028,
0.8593631386756897,
0.3872164785861969,
1.0169012546539307,
-0.004486775025725365,
0.6217194199562073,
-2.4127449989318848,
2.3138372898101807,
-0.21390043199062347,
0.6776056885719299,
0.026475409045815468,
-0.2154119461774826,
1.070582389831543,
0.5713051557540894,
0.4951096773147583,
-1.0595662593841553,
0.6171148419380188,
-0.5397113561630249,
1.1937892436981201,
0.9206576347351074,
-0.8651859164237976,
0.0497969388961792,
1.3511722087860107,
0.5172394514083862,
-0.46475937962532043,
-0.9239769577980042,
-0.9891039729118347,
0.9860640168190002,
1.7636197805404663,
-0.09692425280809402,
-0.015155913308262825,
0.861110270023346,
0.6892750859260559,
-1.3121047019958496,
0.047748446464538574,
-0.7263175249099731,
-0.7124816179275513,
1.6829514503479004,
1.9962806701660156,
-0.06429228186607361,
-0.12566117942333221,
-0.8078601956367493,
-1.2526912689208984,
0.7812799215316772,
0.010077117010951042,
0.03836680203676224,
0.6307714581489563,
-0.6487854719161987,
1.0736544132232666,
0.8136353492736816,
0.8806431293487549,
0.23200921714305878,
0.2984873652458191,
0.42467206716537476,
-0.4347281754016876,
-1.161857008934021,
-0.24894070625305176,
-1.0151495933532715,
-2.570817232131958,
0.45714154839515686,
-0.23198914527893066,
-1.374294638633728,
0.016021545976400375,
-0.98853600025177,
0.9320299625396729,
-0.62400883436203,
-1.0920380353927612,
-1.5538287162780762,
0.28262993693351746,
-0.056960612535476685,
0.9106369614601135,
-1.6077728271484375,
-0.1298772394657135,
1.1855881214141846,
0.8874778747558594,
-0.7100297808647156,
0.9768998026847839,
0.1978398859500885,
0.9914964437484741,
0.7629793286323547,
-0.4098708927631378,
0.5386880040168762,
0.06145225465297699,
-1.3685556650161743,
0.4532202482223511,
1.2267719507217407,
0.155517578125,
1.412920594215393,
-0.5977145433425903,
0.022309022024273872,
0.37318307161331177,
-0.5818817019462585,
-0.5267221927642822,
-0.5167975425720215,
0.6454896330833435,
0.0615108460187912,
-0.9351032972335815,
-0.011105213314294815,
-0.08467230945825577,
-0.19063937664031982,
0.15194953978061676,
-1.4362200498580933,
-0.1616043746471405,
-0.4617099165916443,
-0.5643698573112488,
-1.2844171524047852,
-0.04017075151205063,
1.3877841234207153,
-0.6761138439178467,
-0.21702952682971954,
0.46364593505859375,
0.31896063685417175,
0.4661245346069336,
0.6034290194511414,
-0.7078132033348083,
-0.28097301721572876,
-0.3020891547203064,
-0.37474799156188965,
0.3817588686943054,
1.3823541402816772,
-0.15384404361248016,
-0.9879747033119202,
0.7159296870231628,
-0.38836053013801575,
0.09083453565835953,
2.0034120082855225,
0.1386825144290924,
-0.7833033204078674,
0.42090481519699097,
-0.745459258556366,
1.8656219244003296,
1.7893787622451782,
1.277376413345337,
-0.06356904655694962,
-0.9212831258773804,
0.6592398881912231,
-0.4219478666782379,
-0.3439844250679016,
0.9271894693374634,
0.3211253881454468,
-0.2151663601398468,
-1.5360037088394165,
0.7313193082809448,
1.3535946607589722,
-0.7927668690681458,
-0.793895959854126,
0.11943363398313522,
-0.7795659303665161,
1.0244492292404175,
0.6857880353927612,
0.4328773021697998,
0.31862854957580566,
1.5777640342712402,
0.7874249219894409,
-0.35107317566871643,
0.5118277668952942,
0.5051687359809875,
-0.20090368390083313,
-2.118997812271118,
-1.1807258129119873,
0.35102352499961853,
-0.5399866104125977,
-1.5438523292541504,
1.4553427696228027,
-1.1532793045043945,
-1.0478745698928833,
0.5359105467796326,
0.08203466236591339,
1.3686436414718628,
0.43932044506073,
1.514078974723816,
2.1078989505767822,
0.7594594955444336,
0.40112534165382385,
1.285801887512207,
-0.15380766987800598,
-0.4379895329475403,
1.8599694967269897,
-0.46145740151405334,
0.48911625146865845,
1.1495646238327026,
-0.30797672271728516,
-1.0060477256774902,
-0.8097045421600342,
-1.266892433166504,
-0.7415755391120911,
1.1832681894302368,
0.06463129073381424,
-1.0897616147994995,
0.23936313390731812,
1.5835139751434326,
0.14428463578224182,
-0.3123116195201874,
0.7047565579414368,
0.37926191091537476,
-0.7097444534301758,
-0.03750818595290184,
-0.9399615526199341,
0.5460676550865173,
-0.2894931733608246,
-0.2853456437587738,
0.3726385235786438,
0.4911037087440491,
1.3393259048461914,
-0.0012515615671873093,
0.0910845398902893,
1.0717697143554688,
-1.399981141090393,
1.4474749565124512,
-0.6385473608970642,
0.3026913106441498,
-2.3458824157714844,
1.422330379486084,
-0.7188771367073059,
1.9338622093200684,
-2.6658520698547363,
0.38078051805496216,
-0.4767272472381592,
-0.48217833042144775,
0.3042072057723999,
-0.37140220403671265,
0.08955564349889755,
-0.12160177528858185,
-1.0946706533432007,
-0.01601569354534149,
-0.6851242780685425,
0.6457803845405579,
1.0960772037506104,
1.4161677360534668,
-1.1263351440429688,
-0.3238256275653839,
-1.7251933813095093,
-0.15092802047729492,
-0.7131888270378113,
0.3390350341796875,
-1.9829492568969727,
-0.22722701728343964,
-1.9029831886291504,
-2.3616461753845215,
-1.2855701446533203,
-0.8934260010719299,
1.2270766496658325,
0.16826549172401428,
-0.923901379108429,
1.2367981672286987,
-0.4210737347602844,
-1.9233670234680176,
1.0666735172271729,
-2.176009178161621
] |
https://github.com/huggingface/datasets/issues/4752 | DatasetInfo issue when testing multiple configs: mixed task_templates | Ugh. Found the issue: apparently `datasets` was reusing the already existing `dataset_infos.json` that is inside `datasets/datasets/hebban-reviews`! Is this desired behavior?
Perhaps when `--save_infos` and `--all_configs` are given, an existing `dataset_infos.json` file should first be deleted before continuing with the test? Because that would assume that the user wants to create a new infos file for all configs anyway. | ## Describe the bug
When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel.
## Steps to reproduce the bug
In summary, what I want to do is create three configs:
- unfiltered: no classlabel, no tasks. Gets data from unfiltered.json.gz (I'd want this without splits, just one chunk of data, but that does not seem possible?)
- filtered_sentiment: `review_sentiment` as ClassLabel, TextClassification task with `review_sentiment` as label. Gets train/test split from respective json.gz files
- filtered_rating: `review_rating0` as ClassLabel, TextClassification task with `review_rating0` as label. Gets train/test split from respective json.gz files
This might be a bit tedious to reproduce, so I am sorry, but these are the steps:
- Clone datasets -> `datasets/` and install it
- Clone `https://huggingface.co/datasets/BramVanroy/hebban-reviews` into `datasets/datasets` so that you have a new folder `datasets/datasets/hebban-reviews/`.
- Replace the HebbanReviews class with this new one:
```python
class HebbanReviews(datasets.GeneratorBasedBuilder):
"""The Hebban book reviews dataset."""
BUILDER_CONFIGS = [
HebbanReviewsConfig(
name="unfiltered",
description=_HEBBAN_REVIEWS_UNFILTERED_DESCRIPTION,
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_sentiment",
description=f"This config has the negative, neutral, and positive sentiment scores as ClassLabel in the 'review_sentiment' column.\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_rating",
description=f"This config has the 5-class ratings as ClassLabel in the 'review_rating0' column (which is a variant of 'review_rating' that starts counting from 0 instead of 1).\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
)
]
DEFAULT_CONFIG_NAME = "filtered_sentiment"
_URLS = {
"train": "train.jsonl.gz",
"test": "test.jsonl.gz",
"unfiltered": "unfiltered.jsonl.gz",
}
def _info(self):
features = {
"review_title": datasets.Value("string"),
"review_text": datasets.Value("string"),
"review_text_without_quotes": datasets.Value("string"),
"review_n_quotes": datasets.Value("int32"),
"review_n_tokens": datasets.Value("int32"),
"review_rating": datasets.Value("int32"),
"review_rating0": datasets.Value("int32"),
"review_author_url": datasets.Value("string"),
"review_author_type": datasets.Value("string"),
"review_n_likes": datasets.Value("int32"),
"review_n_comments": datasets.Value("int32"),
"review_url": datasets.Value("string"),
"review_published_date": datasets.Value("string"),
"review_crawl_date": datasets.Value("string"),
"lid": datasets.Value("string"),
"lid_probability": datasets.Value("float32"),
"review_sentiment": datasets.features.ClassLabel(names=["negative", "neutral", "positive"]),
"review_sentiment_label": datasets.Value("string"),
"book_id": datasets.Value("int32"),
}
if self.config.name == "filtered_sentiment":
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_sentiment")]
elif self.config.name == "filtered_rating":
# For CrossEntropy, our classes need to start at index 0 -- not 1
features["review_rating0"] = datasets.features.ClassLabel(names=["1", "2", "3", "4", "5"])
features["review_sentiment"] = datasets.Value("int32")
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_rating0")]
elif self.config.name == "unfiltered": # no ClassLabels in unfiltered
features["review_sentiment"] = datasets.Value("int32")
task_templates = None
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
print("AT INFO", self.config.name, task_templates)
return datasets.DatasetInfo(
description=self.config.description,
features=datasets.Features(features),
homepage="https://huggingface.co/datasets/BramVanroy/hebban-reviews",
citation=_HEBBAN_REVIEWS_CITATION,
task_templates=task_templates,
license="cc-by-4.0"
)
def _split_generators(self, dl_manager):
if self.config.name.startswith("filtered"):
files = dl_manager.download_and_extract({"train": "train.jsonl.gz",
"test": "test.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"data_file": files["test"]
},
),
]
elif self.config.name == "unfiltered":
files = dl_manager.download_and_extract({"train": "unfiltered.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
]
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
def _generate_examples(self, data_file):
lines = Path(data_file).open(encoding="utf-8").readlines()
for line_idx, line in enumerate(lines):
row = json.loads(line)
yield line_idx, row
```
- finally, run `datasets-cli test ./datasets/hebban-reviews/ --save_infos --all_configs` from within the topmost `datasets` directory
## Expected results
Succeeding tests for three different configs.
## Actual results
I printed out the values that are given to `DatasetInfo` for config name and task_templates, as you can see. There, as expected, I get `unfiltered None`. I also modified datasets/info.py and added this line [at L.170](https://github.com/huggingface/datasets/blob/f5847a304aa1b38b3a3c54a8318b4df60f1299bc/src/datasets/info.py#L170):
```python
print("INTERNALLY AT INFO.PY", self.config_name, self.task_templates)
```
to my surprise, here I get `unfiltered [TextClassification(task='text-classification', text_column='review_text_without_quotes', label_column='review_sentiment')]`. So one way or another, here I suddenly see that `unfiltered` now does have a task_template -- even though that is not what is written in the data loading script, as the first print statement correctly shows.
I do not quite understand how, but it seems that the config name and task_templates get mixed.
This ultimately leads to the following error, but this trace may not be very useful in itself:
```
Traceback (most recent call last):
File "C:\Users\bramv\.virtualenvs\hebban-U6poXNQd\Scripts\datasets-cli-script.py", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "c:\dev\python\hebban\datasets\src\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\dev\python\hebban\datasets\src\datasets\commands\test.py", line 144, in run
builder.as_dataset()
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 899, in as_dataset
datasets = map_nested(
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 393, in map_nested
mapped = [
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 394, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 330, in _single_map_nested
return function(data_struct)
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 930, in _build_single_dataset
ds = self._as_dataset(
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 1006, in _as_dataset
return Dataset(fingerprint=fingerprint, **dataset_kwargs)
File "c:\dev\python\hebban\datasets\src\datasets\arrow_dataset.py", line 661, in __init__
info = info.copy() if info is not None else DatasetInfo()
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 286, in copy
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
File "<string>", line 20, in __init__
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 176, in __post_init__
self.task_templates = [
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 177, in <listcomp>
template.align_with_features(self.features) for template in (self.task_templates)
File "c:\dev\python\hebban\datasets\src\datasets\tasks\text_classification.py", line 22, in align_with_features
raise ValueError(f"Column {self.label_column} is not a ClassLabel.")
ValueError: Column review_sentiment is not a ClassLabel.
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3 | 602 | 58 | DatasetInfo issue when testing multiple configs: mixed task_templates
## Describe the bug
When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel.
## Steps to reproduce the bug
In summary, what I want to do is create three configs:
- unfiltered: no classlabel, no tasks. Gets data from unfiltered.json.gz (I'd want this without splits, just one chunk of data, but that does not seem possible?)
- filtered_sentiment: `review_sentiment` as ClassLabel, TextClassification task with `review_sentiment` as label. Gets train/test split from respective json.gz files
- filtered_rating: `review_rating0` as ClassLabel, TextClassification task with `review_rating0` as label. Gets train/test split from respective json.gz files
This might be a bit tedious to reproduce, so I am sorry, but these are the steps:
- Clone datasets -> `datasets/` and install it
- Clone `https://huggingface.co/datasets/BramVanroy/hebban-reviews` into `datasets/datasets` so that you have a new folder `datasets/datasets/hebban-reviews/`.
- Replace the HebbanReviews class with this new one:
```python
class HebbanReviews(datasets.GeneratorBasedBuilder):
"""The Hebban book reviews dataset."""
BUILDER_CONFIGS = [
HebbanReviewsConfig(
name="unfiltered",
description=_HEBBAN_REVIEWS_UNFILTERED_DESCRIPTION,
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_sentiment",
description=f"This config has the negative, neutral, and positive sentiment scores as ClassLabel in the 'review_sentiment' column.\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_rating",
description=f"This config has the 5-class ratings as ClassLabel in the 'review_rating0' column (which is a variant of 'review_rating' that starts counting from 0 instead of 1).\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
)
]
DEFAULT_CONFIG_NAME = "filtered_sentiment"
_URLS = {
"train": "train.jsonl.gz",
"test": "test.jsonl.gz",
"unfiltered": "unfiltered.jsonl.gz",
}
def _info(self):
features = {
"review_title": datasets.Value("string"),
"review_text": datasets.Value("string"),
"review_text_without_quotes": datasets.Value("string"),
"review_n_quotes": datasets.Value("int32"),
"review_n_tokens": datasets.Value("int32"),
"review_rating": datasets.Value("int32"),
"review_rating0": datasets.Value("int32"),
"review_author_url": datasets.Value("string"),
"review_author_type": datasets.Value("string"),
"review_n_likes": datasets.Value("int32"),
"review_n_comments": datasets.Value("int32"),
"review_url": datasets.Value("string"),
"review_published_date": datasets.Value("string"),
"review_crawl_date": datasets.Value("string"),
"lid": datasets.Value("string"),
"lid_probability": datasets.Value("float32"),
"review_sentiment": datasets.features.ClassLabel(names=["negative", "neutral", "positive"]),
"review_sentiment_label": datasets.Value("string"),
"book_id": datasets.Value("int32"),
}
if self.config.name == "filtered_sentiment":
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_sentiment")]
elif self.config.name == "filtered_rating":
# For CrossEntropy, our classes need to start at index 0 -- not 1
features["review_rating0"] = datasets.features.ClassLabel(names=["1", "2", "3", "4", "5"])
features["review_sentiment"] = datasets.Value("int32")
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_rating0")]
elif self.config.name == "unfiltered": # no ClassLabels in unfiltered
features["review_sentiment"] = datasets.Value("int32")
task_templates = None
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
print("AT INFO", self.config.name, task_templates)
return datasets.DatasetInfo(
description=self.config.description,
features=datasets.Features(features),
homepage="https://huggingface.co/datasets/BramVanroy/hebban-reviews",
citation=_HEBBAN_REVIEWS_CITATION,
task_templates=task_templates,
license="cc-by-4.0"
)
def _split_generators(self, dl_manager):
if self.config.name.startswith("filtered"):
files = dl_manager.download_and_extract({"train": "train.jsonl.gz",
"test": "test.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"data_file": files["test"]
},
),
]
elif self.config.name == "unfiltered":
files = dl_manager.download_and_extract({"train": "unfiltered.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
]
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
def _generate_examples(self, data_file):
lines = Path(data_file).open(encoding="utf-8").readlines()
for line_idx, line in enumerate(lines):
row = json.loads(line)
yield line_idx, row
```
- finally, run `datasets-cli test ./datasets/hebban-reviews/ --save_infos --all_configs` from within the topmost `datasets` directory
## Expected results
Succeeding tests for three different configs.
## Actual results
I printed out the values that are given to `DatasetInfo` for config name and task_templates, as you can see. There, as expected, I get `unfiltered None`. I also modified datasets/info.py and added this line [at L.170](https://github.com/huggingface/datasets/blob/f5847a304aa1b38b3a3c54a8318b4df60f1299bc/src/datasets/info.py#L170):
```python
print("INTERNALLY AT INFO.PY", self.config_name, self.task_templates)
```
to my surprise, here I get `unfiltered [TextClassification(task='text-classification', text_column='review_text_without_quotes', label_column='review_sentiment')]`. So one way or another, here I suddenly see that `unfiltered` now does have a task_template -- even though that is not what is written in the data loading script, as the first print statement correctly shows.
I do not quite understand how, but it seems that the config name and task_templates get mixed.
This ultimately leads to the following error, but this trace may not be very useful in itself:
```
Traceback (most recent call last):
File "C:\Users\bramv\.virtualenvs\hebban-U6poXNQd\Scripts\datasets-cli-script.py", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "c:\dev\python\hebban\datasets\src\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\dev\python\hebban\datasets\src\datasets\commands\test.py", line 144, in run
builder.as_dataset()
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 899, in as_dataset
datasets = map_nested(
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 393, in map_nested
mapped = [
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 394, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 330, in _single_map_nested
return function(data_struct)
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 930, in _build_single_dataset
ds = self._as_dataset(
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 1006, in _as_dataset
return Dataset(fingerprint=fingerprint, **dataset_kwargs)
File "c:\dev\python\hebban\datasets\src\datasets\arrow_dataset.py", line 661, in __init__
info = info.copy() if info is not None else DatasetInfo()
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 286, in copy
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
File "<string>", line 20, in __init__
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 176, in __post_init__
self.task_templates = [
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 177, in <listcomp>
template.align_with_features(self.features) for template in (self.task_templates)
File "c:\dev\python\hebban\datasets\src\datasets\tasks\text_classification.py", line 22, in align_with_features
raise ValueError(f"Column {self.label_column} is not a ClassLabel.")
ValueError: Column review_sentiment is not a ClassLabel.
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Ugh. Found the issue: apparently `datasets` was reusing the already existing `dataset_infos.json` that is inside `datasets/datasets/hebban-reviews`! Is this desired behavior?
Perhaps when `--save_infos` and `--all_configs` are given, an existing `dataset_infos.json` file should first be deleted before continuing with the test? Because that would assume that the user wants to create a new infos file for all configs anyway. | [
-1.1875088214874268,
-0.8990647196769714,
-0.7193581461906433,
1.4244009256362915,
-0.17340178787708282,
-1.2153222560882568,
0.18110860884189606,
-1.0735677480697632,
1.6232799291610718,
-0.8657732605934143,
0.32773104310035706,
-1.6187375783920288,
-0.04268748313188553,
-0.6905537843704224,
-0.6874874234199524,
-0.8033519387245178,
-0.516058087348938,
-0.7077409029006958,
1.0000214576721191,
2.44297194480896,
1.2883460521697998,
-1.311968207359314,
2.7665913105010986,
0.7349601984024048,
-0.12340773642063141,
-0.975683331489563,
0.542009711265564,
0.02941162697970867,
-1.2484734058380127,
-0.41999876499176025,
-0.9494938850402832,
-0.10681886225938797,
-0.6475833654403687,
-0.4803081750869751,
-0.061485737562179565,
0.43273013830184937,
-0.2606090009212494,
-0.3817671835422516,
-0.651492714881897,
-0.8134608268737793,
0.52153080701828,
-0.35935401916503906,
0.9577547907829285,
-0.36835870146751404,
1.7518517971038818,
-0.5369695425033569,
0.4322194755077362,
0.8338298797607422,
1.2445465326309204,
0.18764062225818634,
0.004866953939199448,
0.2404312640428543,
0.386738121509552,
-0.05583304911851883,
0.5395867824554443,
1.2112157344818115,
0.7289987802505493,
0.5436565279960632,
0.6782987117767334,
-2.2569611072540283,
1.3015069961547852,
-1.0630171298980713,
0.35615018010139465,
1.3372570276260376,
-0.948944628238678,
0.39481842517852783,
-1.826130986213684,
-0.0006310408934950829,
0.5570498704910278,
-2.2339510917663574,
0.21260404586791992,
-1.2612837553024292,
-0.46776214241981506,
0.9594521522521973,
0.2947084903717041,
-1.2001011371612549,
0.20647621154785156,
-0.3871215879917145,
1.0386431217193604,
0.4089086651802063,
1.152565598487854,
-1.7650526762008667,
0.014631399884819984,
-0.26292476058006287,
0.08946055918931961,
-1.2424031496047974,
-1.5139942169189453,
0.534876823425293,
0.621659517288208,
0.605876624584198,
-0.15699870884418488,
1.1118714809417725,
-1.011934757232666,
0.7368173003196716,
-1.0324450731277466,
-1.620011568069458,
-1.3542227745056152,
-2.2261011600494385,
-2.284648895263672,
0.7363659739494324,
-0.48654985427856445,
-0.4996442496776581,
2.0547406673431396,
-1.002848505973816,
-1.7698605060577393,
1.1567686796188354,
0.30523061752319336,
0.03343113511800766,
2.3581011295318604,
0.29233434796333313,
-0.7489170432090759,
0.44671913981437683,
-0.7190905809402466,
0.8244256377220154,
-0.3382642865180969,
1.3008981943130493,
0.46597862243652344,
-1.0257606506347656,
1.564780354499817,
-0.4375673532485962,
0.6582978367805481,
-0.5944579839706421,
-0.5087123513221741,
-0.7954970002174377,
0.28879058361053467,
1.8301076889038086,
-0.3054065406322479,
1.5329917669296265,
-0.3032412528991699,
-1.6172980070114136,
-1.5929341316223145,
0.8427479863166809,
0.3744724988937378,
-0.7677795886993408,
0.011736137792468071,
-0.38701292872428894,
0.14036960899829865,
-0.061370059847831726,
1.1168389320373535,
1.2885409593582153,
0.7235257029533386,
-0.3287832736968994,
-0.8126111030578613,
0.15392954647541046,
-0.02520834654569626,
-0.725877046585083,
-1.803449273109436,
-0.34261953830718994,
0.16086411476135254,
0.6360061764717102,
-1.1553384065628052,
1.8255422115325928,
0.9701754450798035,
1.894079566001892,
1.026881217956543,
-0.3951646685600281,
1.5331330299377441,
0.08999073505401611,
1.8321419954299927,
-0.46652573347091675,
0.5938104391098022,
-0.34638676047325134,
-1.126011610031128,
0.9275054931640625,
-0.3720484972000122,
-2.0696334838867188,
-0.7853406667709351,
-0.7873045206069946,
-0.14174993336200714,
-0.772780179977417,
0.9167732000350952,
-0.23699451982975006,
-1.4274113178253174,
0.17863066494464874,
-0.6582542061805725,
0.14352130889892578,
-1.201569676399231,
0.2606756389141083,
0.7402835488319397,
-0.6688711047172546,
0.026054522022604942,
-0.2474145144224167,
-1.2927528619766235,
-0.4218765199184418,
0.28842976689338684,
1.8516089916229248,
-0.7533569931983948,
0.8918127417564392,
1.0379302501678467,
-0.755850613117218,
0.0008866768330335617,
0.2874526381492615,
-0.25861623883247375,
0.8524607419967651,
-1.0526072978973389,
-0.40034112334251404,
1.18446683883667,
-0.15755073726177216,
-0.616123616695404,
1.465705156326294,
0.7627763152122498,
-1.0409913063049316,
-0.25500917434692383,
-0.17681890726089478,
-0.7910776734352112,
0.06140059232711792,
-1.5393511056900024,
-0.11121314018964767,
0.3581402003765106,
-1.5110974311828613,
-0.4543958902359009,
-0.25226670503616333,
1.3142483234405518,
-0.12478134781122208,
1.3770148754119873,
-0.33712613582611084,
-0.2077893614768982,
-0.324810266494751,
-0.4685915410518646,
0.20974445343017578,
-0.23961284756660461,
-0.5592002272605896,
0.19593381881713867,
-0.8403965830802917,
0.31556329131126404,
1.4231269359588623,
0.24761368334293365,
0.04543796926736832,
0.5311364531517029,
1.055389642715454,
0.33753153681755066,
-0.03746391460299492,
-0.9057127237319946,
-1.468087077140808,
2.0468802452087402,
-1.507427453994751,
1.9656063318252563,
0.685947835445404,
-0.028412796556949615,
-1.8261529207229614,
-1.9168866872787476,
1.4508354663848877,
1.1558406352996826,
2.324939727783203,
0.507247269153595,
0.4340974986553192,
-0.8825351595878601,
-0.7725614309310913,
0.31174901127815247,
-1.0363428592681885,
-0.7377228736877441,
0.21212036907672882,
2.358130931854248,
1.7502069473266602,
-0.5307925939559937,
-0.2844875454902649,
-0.9623125791549683,
1.3643447160720825,
-0.25301194190979004,
0.20139294862747192,
2.075507879257202,
-0.32600095868110657,
-1.022580623626709,
1.3796911239624023,
-2.4448184967041016,
0.16254934668540955,
1.9944982528686523,
0.3167244493961334,
0.11189763247966766,
-1.3664555549621582,
-0.6934844851493835,
-0.23476436734199524,
-0.48711100220680237,
-1.2767518758773804,
0.5358009338378906,
-0.2795117497444153,
-0.8003086447715759,
-1.3683676719665527,
0.18973445892333984,
-1.0720750093460083,
-1.6442139148712158,
0.2986580431461334,
1.8972951173782349,
2.0235326290130615,
-0.8254727125167847,
1.5439940690994263,
-0.40083929896354675,
0.18387483060359955,
1.2073564529418945,
1.2986568212509155,
3.1157565116882324,
1.9015212059020996,
-1.2539080381393433,
0.6245625615119934,
-0.14680874347686768,
-0.4655659794807434,
1.0620054006576538,
-1.2102882862091064,
1.3300559520721436,
-0.20590993762016296,
-1.1574524641036987,
-1.2211467027664185,
0.9216281175613403,
0.3918631076812744,
0.12127871066331863,
-0.5026941895484924,
1.2011653184890747,
0.044977881014347076,
1.3409137725830078,
0.6485875844955444,
-0.42381614446640015,
0.6400530934333801,
-0.35918715596199036,
-0.508996844291687,
1.5728137493133545,
0.1803407073020935,
-1.4689600467681885,
-2.2731401920318604,
-0.24044907093048096,
-0.8332654237747192,
0.03356722742319107,
-0.5913704633712769,
-0.9510459303855896,
1.6583236455917358,
0.3712776303291321,
-1.3257732391357422,
-0.24420611560344696,
-0.3333824872970581,
-0.4815502166748047,
2.7027575969696045,
-1.4017800092697144,
-0.18809781968593597,
-0.9690901637077332,
-0.6290074586868286,
1.6649147272109985,
-1.1467636823654175,
-0.20691043138504028,
-1.0044949054718018,
-0.5902933478355408,
-1.3642388582229614,
-0.4916402995586395,
0.06384038180112839,
-0.8928696513175964,
0.8210420608520508,
0.20016643404960632,
-1.19369637966156,
-0.30880430340766907,
-0.9158864617347717,
0.9137536287307739,
-0.16861732304096222,
0.2055056095123291,
1.875699520111084,
0.3553984761238098,
-0.32875755429267883,
0.7517325282096863,
1.1354011297225952,
0.7089880704879761,
-0.6902851462364197,
0.2314358502626419,
-0.7256016731262207,
0.355242520570755,
-1.3456230163574219,
0.18984830379486084,
-2.8826122283935547,
0.6876476407051086,
-0.032409362494945526,
-0.08378302305936813,
-0.10178873687982559,
-1.4059211015701294,
1.0899425745010376,
2.535972833633423,
-1.1300619840621948,
0.45501479506492615,
0.30995070934295654,
1.1712162494659424,
-1.5299878120422363,
0.2914876341819763,
-0.4684578776359558,
2.0669384002685547,
0.17444895207881927,
1.1764739751815796,
-0.45346537232398987,
-2.3472375869750977,
0.5944265127182007,
-1.383050560951233,
-1.1542176008224487,
0.8395423889160156,
-0.7668300271034241,
0.12303241342306137,
-1.3482234477996826,
-0.18329457938671112,
-0.9449349045753479,
-1.2224891185760498,
0.6739085912704468,
0.14703676104545593,
0.4814341962337494,
-0.5393610000610352,
0.3241037130355835,
-2.1708602905273438,
-1.3328436613082886,
-0.2630618214607239,
-0.9642976522445679,
0.4901186227798462,
-0.41329410672187805,
0.69489586353302,
-0.18704310059547424,
0.03023170866072178,
0.4081476628780365,
1.4160239696502686,
3.390413999557495,
0.10540630668401718,
0.3570041358470917,
-0.10822733491659164,
-1.019553780555725,
1.4993127584457397,
0.8624629378318787,
-0.08258164674043655,
-0.5766220688819885,
-1.0722630023956299,
1.1687833070755005,
2.011312484741211,
1.0733314752578735,
-0.01907103881239891,
-0.8868960738182068,
-0.7128877639770508,
0.021941864863038063,
0.11107181012630463,
0.45253658294677734,
0.9193682074546814,
0.10188667476177216,
0.03693868964910507,
1.368369460105896,
1.1154242753982544,
-0.27500131726264954,
0.33320483565330505,
-0.8498377799987793,
-0.39004966616630554,
0.591347336769104,
0.2913951873779297,
-0.015297742560505867,
0.3471128046512604,
-1.0265833139419556,
-0.24812424182891846,
-0.39782050251960754,
-0.8894616365432739,
-0.7287180423736572,
-0.48478585481643677,
-0.40296489000320435,
1.6703633069992065,
0.10368560254573822,
-0.5538970828056335,
-0.011234045960009098,
-0.7355666160583496,
-0.14385834336280823,
-1.110209584236145,
0.34892773628234863,
-0.1507353037595749,
-0.1470363587141037,
-0.13790582120418549,
1.7658079862594604,
-0.9232730865478516,
-2.0431902408599854,
0.20713433623313904,
0.28168463706970215,
-0.2468872219324112,
0.15244930982589722,
1.6500216722488403,
0.48767411708831787,
1.462293267250061,
1.364266276359558,
1.0076690912246704,
-0.6779863834381104,
-1.2484567165374756,
0.7437751293182373,
0.9751405715942383,
-1.3777505159378052,
0.8074356317520142,
-0.05255405604839325,
-0.5688247084617615,
0.6521740555763245,
1.3126176595687866,
0.4069078862667084,
-1.950236439704895,
0.8045671582221985,
-0.9947616457939148,
0.7422764301300049,
0.666642963886261,
0.7160442471504211,
0.2298121154308319,
0.7702236175537109,
-1.2076472043991089,
-1.140308141708374,
-0.66755610704422,
-0.6030184030532837,
1.9567691087722778,
-0.2988697588443756,
0.6894341111183167,
-0.27691081166267395,
-1.3182530403137207,
-0.11042878776788712,
0.8236079216003418,
0.38920682668685913,
-0.505687952041626,
0.7324812412261963,
-0.6378425359725952,
-1.0540395975112915,
-1.396262526512146,
-0.41598424315452576,
-1.1183111667633057,
-0.9322353601455688,
1.0565756559371948,
0.7515421509742737,
0.3011741042137146,
1.835060477256775,
0.6721643209457397,
0.3480258285999298,
-2.6105799674987793,
0.873940646648407,
0.310805082321167,
-0.09254265576601028,
0.8593631386756897,
0.3872164785861969,
1.0169012546539307,
-0.004486775025725365,
0.6217194199562073,
-2.4127449989318848,
2.3138372898101807,
-0.21390043199062347,
0.6776056885719299,
0.026475409045815468,
-0.2154119461774826,
1.070582389831543,
0.5713051557540894,
0.4951096773147583,
-1.0595662593841553,
0.6171148419380188,
-0.5397113561630249,
1.1937892436981201,
0.9206576347351074,
-0.8651859164237976,
0.0497969388961792,
1.3511722087860107,
0.5172394514083862,
-0.46475937962532043,
-0.9239769577980042,
-0.9891039729118347,
0.9860640168190002,
1.7636197805404663,
-0.09692425280809402,
-0.015155913308262825,
0.861110270023346,
0.6892750859260559,
-1.3121047019958496,
0.047748446464538574,
-0.7263175249099731,
-0.7124816179275513,
1.6829514503479004,
1.9962806701660156,
-0.06429228186607361,
-0.12566117942333221,
-0.8078601956367493,
-1.2526912689208984,
0.7812799215316772,
0.010077117010951042,
0.03836680203676224,
0.6307714581489563,
-0.6487854719161987,
1.0736544132232666,
0.8136353492736816,
0.8806431293487549,
0.23200921714305878,
0.2984873652458191,
0.42467206716537476,
-0.4347281754016876,
-1.161857008934021,
-0.24894070625305176,
-1.0151495933532715,
-2.570817232131958,
0.45714154839515686,
-0.23198914527893066,
-1.374294638633728,
0.016021545976400375,
-0.98853600025177,
0.9320299625396729,
-0.62400883436203,
-1.0920380353927612,
-1.5538287162780762,
0.28262993693351746,
-0.056960612535476685,
0.9106369614601135,
-1.6077728271484375,
-0.1298772394657135,
1.1855881214141846,
0.8874778747558594,
-0.7100297808647156,
0.9768998026847839,
0.1978398859500885,
0.9914964437484741,
0.7629793286323547,
-0.4098708927631378,
0.5386880040168762,
0.06145225465297699,
-1.3685556650161743,
0.4532202482223511,
1.2267719507217407,
0.155517578125,
1.412920594215393,
-0.5977145433425903,
0.022309022024273872,
0.37318307161331177,
-0.5818817019462585,
-0.5267221927642822,
-0.5167975425720215,
0.6454896330833435,
0.0615108460187912,
-0.9351032972335815,
-0.011105213314294815,
-0.08467230945825577,
-0.19063937664031982,
0.15194953978061676,
-1.4362200498580933,
-0.1616043746471405,
-0.4617099165916443,
-0.5643698573112488,
-1.2844171524047852,
-0.04017075151205063,
1.3877841234207153,
-0.6761138439178467,
-0.21702952682971954,
0.46364593505859375,
0.31896063685417175,
0.4661245346069336,
0.6034290194511414,
-0.7078132033348083,
-0.28097301721572876,
-0.3020891547203064,
-0.37474799156188965,
0.3817588686943054,
1.3823541402816772,
-0.15384404361248016,
-0.9879747033119202,
0.7159296870231628,
-0.38836053013801575,
0.09083453565835953,
2.0034120082855225,
0.1386825144290924,
-0.7833033204078674,
0.42090481519699097,
-0.745459258556366,
1.8656219244003296,
1.7893787622451782,
1.277376413345337,
-0.06356904655694962,
-0.9212831258773804,
0.6592398881912231,
-0.4219478666782379,
-0.3439844250679016,
0.9271894693374634,
0.3211253881454468,
-0.2151663601398468,
-1.5360037088394165,
0.7313193082809448,
1.3535946607589722,
-0.7927668690681458,
-0.793895959854126,
0.11943363398313522,
-0.7795659303665161,
1.0244492292404175,
0.6857880353927612,
0.4328773021697998,
0.31862854957580566,
1.5777640342712402,
0.7874249219894409,
-0.35107317566871643,
0.5118277668952942,
0.5051687359809875,
-0.20090368390083313,
-2.118997812271118,
-1.1807258129119873,
0.35102352499961853,
-0.5399866104125977,
-1.5438523292541504,
1.4553427696228027,
-1.1532793045043945,
-1.0478745698928833,
0.5359105467796326,
0.08203466236591339,
1.3686436414718628,
0.43932044506073,
1.514078974723816,
2.1078989505767822,
0.7594594955444336,
0.40112534165382385,
1.285801887512207,
-0.15380766987800598,
-0.4379895329475403,
1.8599694967269897,
-0.46145740151405334,
0.48911625146865845,
1.1495646238327026,
-0.30797672271728516,
-1.0060477256774902,
-0.8097045421600342,
-1.266892433166504,
-0.7415755391120911,
1.1832681894302368,
0.06463129073381424,
-1.0897616147994995,
0.23936313390731812,
1.5835139751434326,
0.14428463578224182,
-0.3123116195201874,
0.7047565579414368,
0.37926191091537476,
-0.7097444534301758,
-0.03750818595290184,
-0.9399615526199341,
0.5460676550865173,
-0.2894931733608246,
-0.2853456437587738,
0.3726385235786438,
0.4911037087440491,
1.3393259048461914,
-0.0012515615671873093,
0.0910845398902893,
1.0717697143554688,
-1.399981141090393,
1.4474749565124512,
-0.6385473608970642,
0.3026913106441498,
-2.3458824157714844,
1.422330379486084,
-0.7188771367073059,
1.9338622093200684,
-2.6658520698547363,
0.38078051805496216,
-0.4767272472381592,
-0.48217833042144775,
0.3042072057723999,
-0.37140220403671265,
0.08955564349889755,
-0.12160177528858185,
-1.0946706533432007,
-0.01601569354534149,
-0.6851242780685425,
0.6457803845405579,
1.0960772037506104,
1.4161677360534668,
-1.1263351440429688,
-0.3238256275653839,
-1.7251933813095093,
-0.15092802047729492,
-0.7131888270378113,
0.3390350341796875,
-1.9829492568969727,
-0.22722701728343964,
-1.9029831886291504,
-2.3616461753845215,
-1.2855701446533203,
-0.8934260010719299,
1.2270766496658325,
0.16826549172401428,
-0.923901379108429,
1.2367981672286987,
-0.4210737347602844,
-1.9233670234680176,
1.0666735172271729,
-2.176009178161621
] |
https://github.com/huggingface/datasets/issues/4752 | DatasetInfo issue when testing multiple configs: mixed task_templates | Hi! I think this is a reasonable solution. Would you be interested in submitting a PR? | ## Describe the bug
When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel.
## Steps to reproduce the bug
In summary, what I want to do is create three configs:
- unfiltered: no classlabel, no tasks. Gets data from unfiltered.json.gz (I'd want this without splits, just one chunk of data, but that does not seem possible?)
- filtered_sentiment: `review_sentiment` as ClassLabel, TextClassification task with `review_sentiment` as label. Gets train/test split from respective json.gz files
- filtered_rating: `review_rating0` as ClassLabel, TextClassification task with `review_rating0` as label. Gets train/test split from respective json.gz files
This might be a bit tedious to reproduce, so I am sorry, but these are the steps:
- Clone datasets -> `datasets/` and install it
- Clone `https://huggingface.co/datasets/BramVanroy/hebban-reviews` into `datasets/datasets` so that you have a new folder `datasets/datasets/hebban-reviews/`.
- Replace the HebbanReviews class with this new one:
```python
class HebbanReviews(datasets.GeneratorBasedBuilder):
"""The Hebban book reviews dataset."""
BUILDER_CONFIGS = [
HebbanReviewsConfig(
name="unfiltered",
description=_HEBBAN_REVIEWS_UNFILTERED_DESCRIPTION,
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_sentiment",
description=f"This config has the negative, neutral, and positive sentiment scores as ClassLabel in the 'review_sentiment' column.\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_rating",
description=f"This config has the 5-class ratings as ClassLabel in the 'review_rating0' column (which is a variant of 'review_rating' that starts counting from 0 instead of 1).\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
)
]
DEFAULT_CONFIG_NAME = "filtered_sentiment"
_URLS = {
"train": "train.jsonl.gz",
"test": "test.jsonl.gz",
"unfiltered": "unfiltered.jsonl.gz",
}
def _info(self):
features = {
"review_title": datasets.Value("string"),
"review_text": datasets.Value("string"),
"review_text_without_quotes": datasets.Value("string"),
"review_n_quotes": datasets.Value("int32"),
"review_n_tokens": datasets.Value("int32"),
"review_rating": datasets.Value("int32"),
"review_rating0": datasets.Value("int32"),
"review_author_url": datasets.Value("string"),
"review_author_type": datasets.Value("string"),
"review_n_likes": datasets.Value("int32"),
"review_n_comments": datasets.Value("int32"),
"review_url": datasets.Value("string"),
"review_published_date": datasets.Value("string"),
"review_crawl_date": datasets.Value("string"),
"lid": datasets.Value("string"),
"lid_probability": datasets.Value("float32"),
"review_sentiment": datasets.features.ClassLabel(names=["negative", "neutral", "positive"]),
"review_sentiment_label": datasets.Value("string"),
"book_id": datasets.Value("int32"),
}
if self.config.name == "filtered_sentiment":
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_sentiment")]
elif self.config.name == "filtered_rating":
# For CrossEntropy, our classes need to start at index 0 -- not 1
features["review_rating0"] = datasets.features.ClassLabel(names=["1", "2", "3", "4", "5"])
features["review_sentiment"] = datasets.Value("int32")
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_rating0")]
elif self.config.name == "unfiltered": # no ClassLabels in unfiltered
features["review_sentiment"] = datasets.Value("int32")
task_templates = None
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
print("AT INFO", self.config.name, task_templates)
return datasets.DatasetInfo(
description=self.config.description,
features=datasets.Features(features),
homepage="https://huggingface.co/datasets/BramVanroy/hebban-reviews",
citation=_HEBBAN_REVIEWS_CITATION,
task_templates=task_templates,
license="cc-by-4.0"
)
def _split_generators(self, dl_manager):
if self.config.name.startswith("filtered"):
files = dl_manager.download_and_extract({"train": "train.jsonl.gz",
"test": "test.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"data_file": files["test"]
},
),
]
elif self.config.name == "unfiltered":
files = dl_manager.download_and_extract({"train": "unfiltered.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
]
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
def _generate_examples(self, data_file):
lines = Path(data_file).open(encoding="utf-8").readlines()
for line_idx, line in enumerate(lines):
row = json.loads(line)
yield line_idx, row
```
- finally, run `datasets-cli test ./datasets/hebban-reviews/ --save_infos --all_configs` from within the topmost `datasets` directory
## Expected results
Succeeding tests for three different configs.
## Actual results
I printed out the values that are given to `DatasetInfo` for config name and task_templates, as you can see. There, as expected, I get `unfiltered None`. I also modified datasets/info.py and added this line [at L.170](https://github.com/huggingface/datasets/blob/f5847a304aa1b38b3a3c54a8318b4df60f1299bc/src/datasets/info.py#L170):
```python
print("INTERNALLY AT INFO.PY", self.config_name, self.task_templates)
```
to my surprise, here I get `unfiltered [TextClassification(task='text-classification', text_column='review_text_without_quotes', label_column='review_sentiment')]`. So one way or another, here I suddenly see that `unfiltered` now does have a task_template -- even though that is not what is written in the data loading script, as the first print statement correctly shows.
I do not quite understand how, but it seems that the config name and task_templates get mixed.
This ultimately leads to the following error, but this trace may not be very useful in itself:
```
Traceback (most recent call last):
File "C:\Users\bramv\.virtualenvs\hebban-U6poXNQd\Scripts\datasets-cli-script.py", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "c:\dev\python\hebban\datasets\src\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\dev\python\hebban\datasets\src\datasets\commands\test.py", line 144, in run
builder.as_dataset()
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 899, in as_dataset
datasets = map_nested(
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 393, in map_nested
mapped = [
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 394, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 330, in _single_map_nested
return function(data_struct)
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 930, in _build_single_dataset
ds = self._as_dataset(
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 1006, in _as_dataset
return Dataset(fingerprint=fingerprint, **dataset_kwargs)
File "c:\dev\python\hebban\datasets\src\datasets\arrow_dataset.py", line 661, in __init__
info = info.copy() if info is not None else DatasetInfo()
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 286, in copy
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
File "<string>", line 20, in __init__
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 176, in __post_init__
self.task_templates = [
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 177, in <listcomp>
template.align_with_features(self.features) for template in (self.task_templates)
File "c:\dev\python\hebban\datasets\src\datasets\tasks\text_classification.py", line 22, in align_with_features
raise ValueError(f"Column {self.label_column} is not a ClassLabel.")
ValueError: Column review_sentiment is not a ClassLabel.
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3 | 602 | 16 | DatasetInfo issue when testing multiple configs: mixed task_templates
## Describe the bug
When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel.
## Steps to reproduce the bug
In summary, what I want to do is create three configs:
- unfiltered: no classlabel, no tasks. Gets data from unfiltered.json.gz (I'd want this without splits, just one chunk of data, but that does not seem possible?)
- filtered_sentiment: `review_sentiment` as ClassLabel, TextClassification task with `review_sentiment` as label. Gets train/test split from respective json.gz files
- filtered_rating: `review_rating0` as ClassLabel, TextClassification task with `review_rating0` as label. Gets train/test split from respective json.gz files
This might be a bit tedious to reproduce, so I am sorry, but these are the steps:
- Clone datasets -> `datasets/` and install it
- Clone `https://huggingface.co/datasets/BramVanroy/hebban-reviews` into `datasets/datasets` so that you have a new folder `datasets/datasets/hebban-reviews/`.
- Replace the HebbanReviews class with this new one:
```python
class HebbanReviews(datasets.GeneratorBasedBuilder):
"""The Hebban book reviews dataset."""
BUILDER_CONFIGS = [
HebbanReviewsConfig(
name="unfiltered",
description=_HEBBAN_REVIEWS_UNFILTERED_DESCRIPTION,
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_sentiment",
description=f"This config has the negative, neutral, and positive sentiment scores as ClassLabel in the 'review_sentiment' column.\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
),
HebbanReviewsConfig(
name="filtered_rating",
description=f"This config has the 5-class ratings as ClassLabel in the 'review_rating0' column (which is a variant of 'review_rating' that starts counting from 0 instead of 1).\n{_HEBBAN_REVIEWS_FILTERED_DESCRIPTION}",
version=datasets.Version(_HEBBAN_VERSION)
)
]
DEFAULT_CONFIG_NAME = "filtered_sentiment"
_URLS = {
"train": "train.jsonl.gz",
"test": "test.jsonl.gz",
"unfiltered": "unfiltered.jsonl.gz",
}
def _info(self):
features = {
"review_title": datasets.Value("string"),
"review_text": datasets.Value("string"),
"review_text_without_quotes": datasets.Value("string"),
"review_n_quotes": datasets.Value("int32"),
"review_n_tokens": datasets.Value("int32"),
"review_rating": datasets.Value("int32"),
"review_rating0": datasets.Value("int32"),
"review_author_url": datasets.Value("string"),
"review_author_type": datasets.Value("string"),
"review_n_likes": datasets.Value("int32"),
"review_n_comments": datasets.Value("int32"),
"review_url": datasets.Value("string"),
"review_published_date": datasets.Value("string"),
"review_crawl_date": datasets.Value("string"),
"lid": datasets.Value("string"),
"lid_probability": datasets.Value("float32"),
"review_sentiment": datasets.features.ClassLabel(names=["negative", "neutral", "positive"]),
"review_sentiment_label": datasets.Value("string"),
"book_id": datasets.Value("int32"),
}
if self.config.name == "filtered_sentiment":
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_sentiment")]
elif self.config.name == "filtered_rating":
# For CrossEntropy, our classes need to start at index 0 -- not 1
features["review_rating0"] = datasets.features.ClassLabel(names=["1", "2", "3", "4", "5"])
features["review_sentiment"] = datasets.Value("int32")
task_templates = [datasets.TextClassification(text_column="review_text_without_quotes", label_column="review_rating0")]
elif self.config.name == "unfiltered": # no ClassLabels in unfiltered
features["review_sentiment"] = datasets.Value("int32")
task_templates = None
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
print("AT INFO", self.config.name, task_templates)
return datasets.DatasetInfo(
description=self.config.description,
features=datasets.Features(features),
homepage="https://huggingface.co/datasets/BramVanroy/hebban-reviews",
citation=_HEBBAN_REVIEWS_CITATION,
task_templates=task_templates,
license="cc-by-4.0"
)
def _split_generators(self, dl_manager):
if self.config.name.startswith("filtered"):
files = dl_manager.download_and_extract({"train": "train.jsonl.gz",
"test": "test.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"data_file": files["test"]
},
),
]
elif self.config.name == "unfiltered":
files = dl_manager.download_and_extract({"train": "unfiltered.jsonl.gz"})
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"data_file": files["train"]
},
),
]
else:
raise ValueError(f"Unsupported config {self.config.name}. Expected one of 'filtered_sentiment' (default),"
f" 'filtered_rating', or 'unfiltered'")
def _generate_examples(self, data_file):
lines = Path(data_file).open(encoding="utf-8").readlines()
for line_idx, line in enumerate(lines):
row = json.loads(line)
yield line_idx, row
```
- finally, run `datasets-cli test ./datasets/hebban-reviews/ --save_infos --all_configs` from within the topmost `datasets` directory
## Expected results
Succeeding tests for three different configs.
## Actual results
I printed out the values that are given to `DatasetInfo` for config name and task_templates, as you can see. There, as expected, I get `unfiltered None`. I also modified datasets/info.py and added this line [at L.170](https://github.com/huggingface/datasets/blob/f5847a304aa1b38b3a3c54a8318b4df60f1299bc/src/datasets/info.py#L170):
```python
print("INTERNALLY AT INFO.PY", self.config_name, self.task_templates)
```
to my surprise, here I get `unfiltered [TextClassification(task='text-classification', text_column='review_text_without_quotes', label_column='review_sentiment')]`. So one way or another, here I suddenly see that `unfiltered` now does have a task_template -- even though that is not what is written in the data loading script, as the first print statement correctly shows.
I do not quite understand how, but it seems that the config name and task_templates get mixed.
This ultimately leads to the following error, but this trace may not be very useful in itself:
```
Traceback (most recent call last):
File "C:\Users\bramv\.virtualenvs\hebban-U6poXNQd\Scripts\datasets-cli-script.py", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "c:\dev\python\hebban\datasets\src\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\dev\python\hebban\datasets\src\datasets\commands\test.py", line 144, in run
builder.as_dataset()
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 899, in as_dataset
datasets = map_nested(
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 393, in map_nested
mapped = [
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 394, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "c:\dev\python\hebban\datasets\src\datasets\utils\py_utils.py", line 330, in _single_map_nested
return function(data_struct)
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 930, in _build_single_dataset
ds = self._as_dataset(
File "c:\dev\python\hebban\datasets\src\datasets\builder.py", line 1006, in _as_dataset
return Dataset(fingerprint=fingerprint, **dataset_kwargs)
File "c:\dev\python\hebban\datasets\src\datasets\arrow_dataset.py", line 661, in __init__
info = info.copy() if info is not None else DatasetInfo()
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 286, in copy
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
File "<string>", line 20, in __init__
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 176, in __post_init__
self.task_templates = [
File "c:\dev\python\hebban\datasets\src\datasets\info.py", line 177, in <listcomp>
template.align_with_features(self.features) for template in (self.task_templates)
File "c:\dev\python\hebban\datasets\src\datasets\tasks\text_classification.py", line 22, in align_with_features
raise ValueError(f"Column {self.label_column} is not a ClassLabel.")
ValueError: Column review_sentiment is not a ClassLabel.
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi! I think this is a reasonable solution. Would you be interested in submitting a PR? | [
-1.1875088214874268,
-0.8990647196769714,
-0.7193581461906433,
1.4244009256362915,
-0.17340178787708282,
-1.2153222560882568,
0.18110860884189606,
-1.0735677480697632,
1.6232799291610718,
-0.8657732605934143,
0.32773104310035706,
-1.6187375783920288,
-0.04268748313188553,
-0.6905537843704224,
-0.6874874234199524,
-0.8033519387245178,
-0.516058087348938,
-0.7077409029006958,
1.0000214576721191,
2.44297194480896,
1.2883460521697998,
-1.311968207359314,
2.7665913105010986,
0.7349601984024048,
-0.12340773642063141,
-0.975683331489563,
0.542009711265564,
0.02941162697970867,
-1.2484734058380127,
-0.41999876499176025,
-0.9494938850402832,
-0.10681886225938797,
-0.6475833654403687,
-0.4803081750869751,
-0.061485737562179565,
0.43273013830184937,
-0.2606090009212494,
-0.3817671835422516,
-0.651492714881897,
-0.8134608268737793,
0.52153080701828,
-0.35935401916503906,
0.9577547907829285,
-0.36835870146751404,
1.7518517971038818,
-0.5369695425033569,
0.4322194755077362,
0.8338298797607422,
1.2445465326309204,
0.18764062225818634,
0.004866953939199448,
0.2404312640428543,
0.386738121509552,
-0.05583304911851883,
0.5395867824554443,
1.2112157344818115,
0.7289987802505493,
0.5436565279960632,
0.6782987117767334,
-2.2569611072540283,
1.3015069961547852,
-1.0630171298980713,
0.35615018010139465,
1.3372570276260376,
-0.948944628238678,
0.39481842517852783,
-1.826130986213684,
-0.0006310408934950829,
0.5570498704910278,
-2.2339510917663574,
0.21260404586791992,
-1.2612837553024292,
-0.46776214241981506,
0.9594521522521973,
0.2947084903717041,
-1.2001011371612549,
0.20647621154785156,
-0.3871215879917145,
1.0386431217193604,
0.4089086651802063,
1.152565598487854,
-1.7650526762008667,
0.014631399884819984,
-0.26292476058006287,
0.08946055918931961,
-1.2424031496047974,
-1.5139942169189453,
0.534876823425293,
0.621659517288208,
0.605876624584198,
-0.15699870884418488,
1.1118714809417725,
-1.011934757232666,
0.7368173003196716,
-1.0324450731277466,
-1.620011568069458,
-1.3542227745056152,
-2.2261011600494385,
-2.284648895263672,
0.7363659739494324,
-0.48654985427856445,
-0.4996442496776581,
2.0547406673431396,
-1.002848505973816,
-1.7698605060577393,
1.1567686796188354,
0.30523061752319336,
0.03343113511800766,
2.3581011295318604,
0.29233434796333313,
-0.7489170432090759,
0.44671913981437683,
-0.7190905809402466,
0.8244256377220154,
-0.3382642865180969,
1.3008981943130493,
0.46597862243652344,
-1.0257606506347656,
1.564780354499817,
-0.4375673532485962,
0.6582978367805481,
-0.5944579839706421,
-0.5087123513221741,
-0.7954970002174377,
0.28879058361053467,
1.8301076889038086,
-0.3054065406322479,
1.5329917669296265,
-0.3032412528991699,
-1.6172980070114136,
-1.5929341316223145,
0.8427479863166809,
0.3744724988937378,
-0.7677795886993408,
0.011736137792468071,
-0.38701292872428894,
0.14036960899829865,
-0.061370059847831726,
1.1168389320373535,
1.2885409593582153,
0.7235257029533386,
-0.3287832736968994,
-0.8126111030578613,
0.15392954647541046,
-0.02520834654569626,
-0.725877046585083,
-1.803449273109436,
-0.34261953830718994,
0.16086411476135254,
0.6360061764717102,
-1.1553384065628052,
1.8255422115325928,
0.9701754450798035,
1.894079566001892,
1.026881217956543,
-0.3951646685600281,
1.5331330299377441,
0.08999073505401611,
1.8321419954299927,
-0.46652573347091675,
0.5938104391098022,
-0.34638676047325134,
-1.126011610031128,
0.9275054931640625,
-0.3720484972000122,
-2.0696334838867188,
-0.7853406667709351,
-0.7873045206069946,
-0.14174993336200714,
-0.772780179977417,
0.9167732000350952,
-0.23699451982975006,
-1.4274113178253174,
0.17863066494464874,
-0.6582542061805725,
0.14352130889892578,
-1.201569676399231,
0.2606756389141083,
0.7402835488319397,
-0.6688711047172546,
0.026054522022604942,
-0.2474145144224167,
-1.2927528619766235,
-0.4218765199184418,
0.28842976689338684,
1.8516089916229248,
-0.7533569931983948,
0.8918127417564392,
1.0379302501678467,
-0.755850613117218,
0.0008866768330335617,
0.2874526381492615,
-0.25861623883247375,
0.8524607419967651,
-1.0526072978973389,
-0.40034112334251404,
1.18446683883667,
-0.15755073726177216,
-0.616123616695404,
1.465705156326294,
0.7627763152122498,
-1.0409913063049316,
-0.25500917434692383,
-0.17681890726089478,
-0.7910776734352112,
0.06140059232711792,
-1.5393511056900024,
-0.11121314018964767,
0.3581402003765106,
-1.5110974311828613,
-0.4543958902359009,
-0.25226670503616333,
1.3142483234405518,
-0.12478134781122208,
1.3770148754119873,
-0.33712613582611084,
-0.2077893614768982,
-0.324810266494751,
-0.4685915410518646,
0.20974445343017578,
-0.23961284756660461,
-0.5592002272605896,
0.19593381881713867,
-0.8403965830802917,
0.31556329131126404,
1.4231269359588623,
0.24761368334293365,
0.04543796926736832,
0.5311364531517029,
1.055389642715454,
0.33753153681755066,
-0.03746391460299492,
-0.9057127237319946,
-1.468087077140808,
2.0468802452087402,
-1.507427453994751,
1.9656063318252563,
0.685947835445404,
-0.028412796556949615,
-1.8261529207229614,
-1.9168866872787476,
1.4508354663848877,
1.1558406352996826,
2.324939727783203,
0.507247269153595,
0.4340974986553192,
-0.8825351595878601,
-0.7725614309310913,
0.31174901127815247,
-1.0363428592681885,
-0.7377228736877441,
0.21212036907672882,
2.358130931854248,
1.7502069473266602,
-0.5307925939559937,
-0.2844875454902649,
-0.9623125791549683,
1.3643447160720825,
-0.25301194190979004,
0.20139294862747192,
2.075507879257202,
-0.32600095868110657,
-1.022580623626709,
1.3796911239624023,
-2.4448184967041016,
0.16254934668540955,
1.9944982528686523,
0.3167244493961334,
0.11189763247966766,
-1.3664555549621582,
-0.6934844851493835,
-0.23476436734199524,
-0.48711100220680237,
-1.2767518758773804,
0.5358009338378906,
-0.2795117497444153,
-0.8003086447715759,
-1.3683676719665527,
0.18973445892333984,
-1.0720750093460083,
-1.6442139148712158,
0.2986580431461334,
1.8972951173782349,
2.0235326290130615,
-0.8254727125167847,
1.5439940690994263,
-0.40083929896354675,
0.18387483060359955,
1.2073564529418945,
1.2986568212509155,
3.1157565116882324,
1.9015212059020996,
-1.2539080381393433,
0.6245625615119934,
-0.14680874347686768,
-0.4655659794807434,
1.0620054006576538,
-1.2102882862091064,
1.3300559520721436,
-0.20590993762016296,
-1.1574524641036987,
-1.2211467027664185,
0.9216281175613403,
0.3918631076812744,
0.12127871066331863,
-0.5026941895484924,
1.2011653184890747,
0.044977881014347076,
1.3409137725830078,
0.6485875844955444,
-0.42381614446640015,
0.6400530934333801,
-0.35918715596199036,
-0.508996844291687,
1.5728137493133545,
0.1803407073020935,
-1.4689600467681885,
-2.2731401920318604,
-0.24044907093048096,
-0.8332654237747192,
0.03356722742319107,
-0.5913704633712769,
-0.9510459303855896,
1.6583236455917358,
0.3712776303291321,
-1.3257732391357422,
-0.24420611560344696,
-0.3333824872970581,
-0.4815502166748047,
2.7027575969696045,
-1.4017800092697144,
-0.18809781968593597,
-0.9690901637077332,
-0.6290074586868286,
1.6649147272109985,
-1.1467636823654175,
-0.20691043138504028,
-1.0044949054718018,
-0.5902933478355408,
-1.3642388582229614,
-0.4916402995586395,
0.06384038180112839,
-0.8928696513175964,
0.8210420608520508,
0.20016643404960632,
-1.19369637966156,
-0.30880430340766907,
-0.9158864617347717,
0.9137536287307739,
-0.16861732304096222,
0.2055056095123291,
1.875699520111084,
0.3553984761238098,
-0.32875755429267883,
0.7517325282096863,
1.1354011297225952,
0.7089880704879761,
-0.6902851462364197,
0.2314358502626419,
-0.7256016731262207,
0.355242520570755,
-1.3456230163574219,
0.18984830379486084,
-2.8826122283935547,
0.6876476407051086,
-0.032409362494945526,
-0.08378302305936813,
-0.10178873687982559,
-1.4059211015701294,
1.0899425745010376,
2.535972833633423,
-1.1300619840621948,
0.45501479506492615,
0.30995070934295654,
1.1712162494659424,
-1.5299878120422363,
0.2914876341819763,
-0.4684578776359558,
2.0669384002685547,
0.17444895207881927,
1.1764739751815796,
-0.45346537232398987,
-2.3472375869750977,
0.5944265127182007,
-1.383050560951233,
-1.1542176008224487,
0.8395423889160156,
-0.7668300271034241,
0.12303241342306137,
-1.3482234477996826,
-0.18329457938671112,
-0.9449349045753479,
-1.2224891185760498,
0.6739085912704468,
0.14703676104545593,
0.4814341962337494,
-0.5393610000610352,
0.3241037130355835,
-2.1708602905273438,
-1.3328436613082886,
-0.2630618214607239,
-0.9642976522445679,
0.4901186227798462,
-0.41329410672187805,
0.69489586353302,
-0.18704310059547424,
0.03023170866072178,
0.4081476628780365,
1.4160239696502686,
3.390413999557495,
0.10540630668401718,
0.3570041358470917,
-0.10822733491659164,
-1.019553780555725,
1.4993127584457397,
0.8624629378318787,
-0.08258164674043655,
-0.5766220688819885,
-1.0722630023956299,
1.1687833070755005,
2.011312484741211,
1.0733314752578735,
-0.01907103881239891,
-0.8868960738182068,
-0.7128877639770508,
0.021941864863038063,
0.11107181012630463,
0.45253658294677734,
0.9193682074546814,
0.10188667476177216,
0.03693868964910507,
1.368369460105896,
1.1154242753982544,
-0.27500131726264954,
0.33320483565330505,
-0.8498377799987793,
-0.39004966616630554,
0.591347336769104,
0.2913951873779297,
-0.015297742560505867,
0.3471128046512604,
-1.0265833139419556,
-0.24812424182891846,
-0.39782050251960754,
-0.8894616365432739,
-0.7287180423736572,
-0.48478585481643677,
-0.40296489000320435,
1.6703633069992065,
0.10368560254573822,
-0.5538970828056335,
-0.011234045960009098,
-0.7355666160583496,
-0.14385834336280823,
-1.110209584236145,
0.34892773628234863,
-0.1507353037595749,
-0.1470363587141037,
-0.13790582120418549,
1.7658079862594604,
-0.9232730865478516,
-2.0431902408599854,
0.20713433623313904,
0.28168463706970215,
-0.2468872219324112,
0.15244930982589722,
1.6500216722488403,
0.48767411708831787,
1.462293267250061,
1.364266276359558,
1.0076690912246704,
-0.6779863834381104,
-1.2484567165374756,
0.7437751293182373,
0.9751405715942383,
-1.3777505159378052,
0.8074356317520142,
-0.05255405604839325,
-0.5688247084617615,
0.6521740555763245,
1.3126176595687866,
0.4069078862667084,
-1.950236439704895,
0.8045671582221985,
-0.9947616457939148,
0.7422764301300049,
0.666642963886261,
0.7160442471504211,
0.2298121154308319,
0.7702236175537109,
-1.2076472043991089,
-1.140308141708374,
-0.66755610704422,
-0.6030184030532837,
1.9567691087722778,
-0.2988697588443756,
0.6894341111183167,
-0.27691081166267395,
-1.3182530403137207,
-0.11042878776788712,
0.8236079216003418,
0.38920682668685913,
-0.505687952041626,
0.7324812412261963,
-0.6378425359725952,
-1.0540395975112915,
-1.396262526512146,
-0.41598424315452576,
-1.1183111667633057,
-0.9322353601455688,
1.0565756559371948,
0.7515421509742737,
0.3011741042137146,
1.835060477256775,
0.6721643209457397,
0.3480258285999298,
-2.6105799674987793,
0.873940646648407,
0.310805082321167,
-0.09254265576601028,
0.8593631386756897,
0.3872164785861969,
1.0169012546539307,
-0.004486775025725365,
0.6217194199562073,
-2.4127449989318848,
2.3138372898101807,
-0.21390043199062347,
0.6776056885719299,
0.026475409045815468,
-0.2154119461774826,
1.070582389831543,
0.5713051557540894,
0.4951096773147583,
-1.0595662593841553,
0.6171148419380188,
-0.5397113561630249,
1.1937892436981201,
0.9206576347351074,
-0.8651859164237976,
0.0497969388961792,
1.3511722087860107,
0.5172394514083862,
-0.46475937962532043,
-0.9239769577980042,
-0.9891039729118347,
0.9860640168190002,
1.7636197805404663,
-0.09692425280809402,
-0.015155913308262825,
0.861110270023346,
0.6892750859260559,
-1.3121047019958496,
0.047748446464538574,
-0.7263175249099731,
-0.7124816179275513,
1.6829514503479004,
1.9962806701660156,
-0.06429228186607361,
-0.12566117942333221,
-0.8078601956367493,
-1.2526912689208984,
0.7812799215316772,
0.010077117010951042,
0.03836680203676224,
0.6307714581489563,
-0.6487854719161987,
1.0736544132232666,
0.8136353492736816,
0.8806431293487549,
0.23200921714305878,
0.2984873652458191,
0.42467206716537476,
-0.4347281754016876,
-1.161857008934021,
-0.24894070625305176,
-1.0151495933532715,
-2.570817232131958,
0.45714154839515686,
-0.23198914527893066,
-1.374294638633728,
0.016021545976400375,
-0.98853600025177,
0.9320299625396729,
-0.62400883436203,
-1.0920380353927612,
-1.5538287162780762,
0.28262993693351746,
-0.056960612535476685,
0.9106369614601135,
-1.6077728271484375,
-0.1298772394657135,
1.1855881214141846,
0.8874778747558594,
-0.7100297808647156,
0.9768998026847839,
0.1978398859500885,
0.9914964437484741,
0.7629793286323547,
-0.4098708927631378,
0.5386880040168762,
0.06145225465297699,
-1.3685556650161743,
0.4532202482223511,
1.2267719507217407,
0.155517578125,
1.412920594215393,
-0.5977145433425903,
0.022309022024273872,
0.37318307161331177,
-0.5818817019462585,
-0.5267221927642822,
-0.5167975425720215,
0.6454896330833435,
0.0615108460187912,
-0.9351032972335815,
-0.011105213314294815,
-0.08467230945825577,
-0.19063937664031982,
0.15194953978061676,
-1.4362200498580933,
-0.1616043746471405,
-0.4617099165916443,
-0.5643698573112488,
-1.2844171524047852,
-0.04017075151205063,
1.3877841234207153,
-0.6761138439178467,
-0.21702952682971954,
0.46364593505859375,
0.31896063685417175,
0.4661245346069336,
0.6034290194511414,
-0.7078132033348083,
-0.28097301721572876,
-0.3020891547203064,
-0.37474799156188965,
0.3817588686943054,
1.3823541402816772,
-0.15384404361248016,
-0.9879747033119202,
0.7159296870231628,
-0.38836053013801575,
0.09083453565835953,
2.0034120082855225,
0.1386825144290924,
-0.7833033204078674,
0.42090481519699097,
-0.745459258556366,
1.8656219244003296,
1.7893787622451782,
1.277376413345337,
-0.06356904655694962,
-0.9212831258773804,
0.6592398881912231,
-0.4219478666782379,
-0.3439844250679016,
0.9271894693374634,
0.3211253881454468,
-0.2151663601398468,
-1.5360037088394165,
0.7313193082809448,
1.3535946607589722,
-0.7927668690681458,
-0.793895959854126,
0.11943363398313522,
-0.7795659303665161,
1.0244492292404175,
0.6857880353927612,
0.4328773021697998,
0.31862854957580566,
1.5777640342712402,
0.7874249219894409,
-0.35107317566871643,
0.5118277668952942,
0.5051687359809875,
-0.20090368390083313,
-2.118997812271118,
-1.1807258129119873,
0.35102352499961853,
-0.5399866104125977,
-1.5438523292541504,
1.4553427696228027,
-1.1532793045043945,
-1.0478745698928833,
0.5359105467796326,
0.08203466236591339,
1.3686436414718628,
0.43932044506073,
1.514078974723816,
2.1078989505767822,
0.7594594955444336,
0.40112534165382385,
1.285801887512207,
-0.15380766987800598,
-0.4379895329475403,
1.8599694967269897,
-0.46145740151405334,
0.48911625146865845,
1.1495646238327026,
-0.30797672271728516,
-1.0060477256774902,
-0.8097045421600342,
-1.266892433166504,
-0.7415755391120911,
1.1832681894302368,
0.06463129073381424,
-1.0897616147994995,
0.23936313390731812,
1.5835139751434326,
0.14428463578224182,
-0.3123116195201874,
0.7047565579414368,
0.37926191091537476,
-0.7097444534301758,
-0.03750818595290184,
-0.9399615526199341,
0.5460676550865173,
-0.2894931733608246,
-0.2853456437587738,
0.3726385235786438,
0.4911037087440491,
1.3393259048461914,
-0.0012515615671873093,
0.0910845398902893,
1.0717697143554688,
-1.399981141090393,
1.4474749565124512,
-0.6385473608970642,
0.3026913106441498,
-2.3458824157714844,
1.422330379486084,
-0.7188771367073059,
1.9338622093200684,
-2.6658520698547363,
0.38078051805496216,
-0.4767272472381592,
-0.48217833042144775,
0.3042072057723999,
-0.37140220403671265,
0.08955564349889755,
-0.12160177528858185,
-1.0946706533432007,
-0.01601569354534149,
-0.6851242780685425,
0.6457803845405579,
1.0960772037506104,
1.4161677360534668,
-1.1263351440429688,
-0.3238256275653839,
-1.7251933813095093,
-0.15092802047729492,
-0.7131888270378113,
0.3390350341796875,
-1.9829492568969727,
-0.22722701728343964,
-1.9029831886291504,
-2.3616461753845215,
-1.2855701446533203,
-0.8934260010719299,
1.2270766496658325,
0.16826549172401428,
-0.923901379108429,
1.2367981672286987,
-0.4210737347602844,
-1.9233670234680176,
1.0666735172271729,
-2.176009178161621
] |
https://github.com/huggingface/datasets/issues/4750 | Easily create loading script for benchmark comprising multiple huggingface datasets | Hi ! I think the simplest is to copy paste the `_split_generators` code from the other datasets and do a bunch of if-else, as in the glue dataset: https://huggingface.co/datasets/glue/blob/main/glue.py#L467 | Hi,
I would like to create a loading script for a benchmark comprising multiple huggingface datasets.
The function _split_generators needs to return the files for the respective dataset. However, the files are not always in the same location for each dataset. I want to just make a wrapper dataset that provides a single interface to all the underlying datasets.
I thought about downloading the files with the load_dataset function and then providing the link to the cached file. But this seems a bit inelegant to me. What approach would you propose to do this?
Please let me know if you have any questions.
Cheers,
Joel | 603 | 29 | Easily create loading script for benchmark comprising multiple huggingface datasets
Hi,
I would like to create a loading script for a benchmark comprising multiple huggingface datasets.
The function _split_generators needs to return the files for the respective dataset. However, the files are not always in the same location for each dataset. I want to just make a wrapper dataset that provides a single interface to all the underlying datasets.
I thought about downloading the files with the load_dataset function and then providing the link to the cached file. But this seems a bit inelegant to me. What approach would you propose to do this?
Please let me know if you have any questions.
Cheers,
Joel
Hi ! I think the simplest is to copy paste the `_split_generators` code from the other datasets and do a bunch of if-else, as in the glue dataset: https://huggingface.co/datasets/glue/blob/main/glue.py#L467 | [
-1.2367959022521973,
-0.9534598588943481,
-0.8312610983848572,
1.352487564086914,
-0.13447336852550507,
-1.3945790529251099,
-0.0017363419756293297,
-1.1420116424560547,
1.7085736989974976,
-0.870600163936615,
0.24238047003746033,
-1.7115944623947144,
0.15163235366344452,
-0.5237727761268616,
-0.7272542715072632,
-1.0693141222000122,
-0.41100814938545227,
-0.8371278643608093,
0.9227094054222107,
2.5460171699523926,
1.0990135669708252,
-1.4205985069274902,
2.727353096008301,
0.6676226258277893,
-0.11538909375667572,
-1.0873099565505981,
0.6452058553695679,
0.030223608016967773,
-1.1849298477172852,
-0.47018730640411377,
-0.9431921243667603,
-0.010235571302473545,
-0.5497311353683472,
-0.514661431312561,
-0.007872974500060081,
0.2999463379383087,
-0.18623226881027222,
-0.2189849466085434,
-0.5490140914916992,
-0.7570463418960571,
0.4563803970813751,
-0.35186877846717834,
0.9761488437652588,
-0.4610024690628052,
1.8765885829925537,
-0.43300095200538635,
0.3228226602077484,
0.7308445572853088,
1.42607581615448,
0.1162199079990387,
0.04428284242749214,
0.13242773711681366,
0.42736735939979553,
-0.019467227160930634,
0.27107536792755127,
1.0574679374694824,
0.5747123956680298,
0.606447696685791,
0.6360419988632202,
-2.2217648029327393,
1.4070963859558105,
-1.0298786163330078,
0.3168692886829376,
1.3925105333328247,
-0.9285916090011597,
0.3964400589466095,
-1.7425273656845093,
-0.10870955884456635,
0.46209967136383057,
-2.3229403495788574,
0.11597287654876709,
-1.2427140474319458,
-0.5105649828910828,
0.9312223196029663,
0.2608165740966797,
-1.252554178237915,
0.23309092223644257,
-0.4925069510936737,
1.0509732961654663,
0.6474827527999878,
1.1100139617919922,
-1.710444688796997,
0.04687628149986267,
-0.3260771334171295,
0.03670910373330116,
-1.4187006950378418,
-1.4774121046066284,
0.5365734100341797,
0.6383757591247559,
0.5545477271080017,
0.021054863929748535,
0.9076721668243408,
-0.9840778708457947,
0.8182754516601562,
-0.8196920156478882,
-1.5426291227340698,
-1.3456255197525024,
-2.363103151321411,
-2.4018850326538086,
0.7860749363899231,
-0.5650189518928528,
-0.4810902774333954,
2.020545482635498,
-1.180836796760559,
-1.693164348602295,
1.1648905277252197,
0.2016085982322693,
0.07848910242319107,
2.358419895172119,
0.12758488953113556,
-0.6359652280807495,
0.2786200940608978,
-0.6719727516174316,
0.8731589317321777,
-0.42133158445358276,
1.3137198686599731,
0.6335322260856628,
-1.0150177478790283,
1.6048710346221924,
-0.438480943441391,
0.5445010662078857,
-0.6273881196975708,
-0.5560352206230164,
-0.9632261395454407,
0.4028514623641968,
1.7714078426361084,
-0.3513205945491791,
1.6661633253097534,
-0.3880428671836853,
-1.5235402584075928,
-1.6276662349700928,
0.876379668712616,
0.5204468369483948,
-0.848223865032196,
0.08127876371145248,
-0.3454994261264801,
0.054226357489824295,
-0.03864472731947899,
1.1149191856384277,
1.1478898525238037,
0.6730493903160095,
-0.411091148853302,
-0.8268933892250061,
0.2014511227607727,
-0.10996591299772263,
-0.6203731298446655,
-1.876847267150879,
-0.31803929805755615,
0.22872619330883026,
0.7168235182762146,
-1.0842633247375488,
1.6930581331253052,
0.9484958648681641,
1.9151259660720825,
1.0339972972869873,
-0.26944398880004883,
1.4132804870605469,
-0.027076784521341324,
1.8842109441757202,
-0.6455775499343872,
0.686660647392273,
-0.20870040357112885,
-1.127338171005249,
0.8625998497009277,
-0.35193943977355957,
-2.041323661804199,
-0.8203369975090027,
-0.8875604867935181,
-0.2072773277759552,
-0.6956080794334412,
0.9860674142837524,
-0.432455450296402,
-1.3275485038757324,
0.21962375938892365,
-0.5253350138664246,
0.09175951778888702,
-1.1978912353515625,
0.25442665815353394,
0.7540553212165833,
-0.6193444728851318,
-0.09630543738603592,
-0.2816261947154999,
-1.3367122411727905,
-0.4905554950237274,
0.27385038137435913,
1.9210623502731323,
-0.7285810112953186,
0.9972216486930847,
0.9824020266532898,
-0.7308591604232788,
-0.016765190288424492,
0.37441760301589966,
-0.26455554366111755,
0.9343546032905579,
-1.0580730438232422,
-0.3801515996456146,
1.15074622631073,
-0.21630333364009857,
-0.6128621101379395,
1.5240070819854736,
0.7207304835319519,
-0.9892253279685974,
-0.08669467270374298,
-0.25871652364730835,
-0.8581742644309998,
-0.0639813020825386,
-1.5648415088653564,
-0.13703157007694244,
0.13840898871421814,
-1.511498212814331,
-0.37122049927711487,
-0.15785498917102814,
1.2631933689117432,
-0.18483829498291016,
1.4088164567947388,
-0.3869422674179077,
-0.3283539116382599,
-0.4082351326942444,
-0.4735727310180664,
0.2458224892616272,
-0.19172391295433044,
-0.4926404058933258,
0.31083211302757263,
-0.858069658279419,
0.30901089310646057,
1.429323434829712,
0.34490394592285156,
0.1505144089460373,
0.5602250099182129,
0.9819750785827637,
0.26710599660873413,
-0.07158239185810089,
-0.8698818683624268,
-1.5839124917984009,
2.043940544128418,
-1.4852814674377441,
1.916403889656067,
0.7182691097259521,
-0.07192329317331314,
-1.8643908500671387,
-1.7809505462646484,
1.394016981124878,
1.2166286706924438,
2.2667295932769775,
0.48720166087150574,
0.2718590497970581,
-0.8162260055541992,
-0.7310651540756226,
0.40911152958869934,
-1.059531807899475,
-0.6206090450286865,
0.03143198788166046,
2.275452136993408,
1.7449620962142944,
-0.5707220435142517,
-0.1863168329000473,
-1.0142998695373535,
1.284743070602417,
-0.07499004155397415,
0.216679647564888,
1.9813458919525146,
-0.3684540390968323,
-1.1264240741729736,
1.2871630191802979,
-2.3405284881591797,
0.06615377217531204,
2.0107948780059814,
0.2751006484031677,
0.05983903631567955,
-1.4062625169754028,
-0.6153669357299805,
-0.23524519801139832,
-0.5155619382858276,
-1.3475408554077148,
0.6066664457321167,
-0.4314868748188019,
-0.7509171366691589,
-1.5128456354141235,
0.0691450908780098,
-1.1592873334884644,
-1.7206377983093262,
0.4016989469528198,
1.7023016214370728,
1.9981540441513062,
-0.6288471817970276,
1.5363469123840332,
-0.27202436327934265,
0.26732566952705383,
1.2821842432022095,
1.1277306079864502,
3.143000364303589,
1.893027663230896,
-1.2983477115631104,
0.7311979532241821,
-0.12217526137828827,
-0.4263732135295868,
1.1995576620101929,
-0.965338408946991,
1.3315001726150513,
-0.20530462265014648,
-1.1907228231430054,
-1.323779582977295,
1.0543683767318726,
0.42519453167915344,
0.14752188324928284,
-0.5174830555915833,
1.375539779663086,
0.027196604758501053,
1.2312284708023071,
0.5301819443702698,
-0.48619315028190613,
0.5857054591178894,
-0.426816463470459,
-0.6960209012031555,
1.579825758934021,
0.2448902130126953,
-1.4168708324432373,
-2.3567798137664795,
-0.37044304609298706,
-0.7652897834777832,
-0.08279486000537872,
-0.5793426036834717,
-1.0240405797958374,
1.7092094421386719,
0.4385834038257599,
-1.3219105005264282,
-0.2908066511154175,
-0.42693936824798584,
-0.6183255910873413,
2.5557284355163574,
-1.4064617156982422,
-0.14842303097248077,
-0.9815980195999146,
-0.5543853044509888,
1.516308307647705,
-1.3123787641525269,
-0.08687862753868103,
-1.045997977256775,
-0.6580553650856018,
-1.3927875757217407,
-0.4880540072917938,
-0.062453996390104294,
-0.9514714479446411,
0.7667667269706726,
0.11071989685297012,
-1.0102421045303345,
-0.23534733057022095,
-0.7960123419761658,
0.884084939956665,
-0.06721948087215424,
0.3710747957229614,
1.9451417922973633,
0.474283367395401,
-0.39989936351776123,
0.6657427549362183,
1.1651787757873535,
0.6831347346305847,
-0.689587414264679,
0.13735747337341309,
-0.7519165873527527,
0.2642895579338074,
-1.2690256834030151,
0.25902774930000305,
-2.9286911487579346,
0.660295844078064,
-0.06517520546913147,
-0.13526445627212524,
0.021727759391069412,
-1.2836544513702393,
0.9423127770423889,
2.5935983657836914,
-1.207504153251648,
0.388209730386734,
0.25597140192985535,
1.153443694114685,
-1.5027759075164795,
0.45936691761016846,
-0.40718701481819153,
2.129620313644409,
0.22793914377689362,
1.1511024236679077,
-0.5583579540252686,
-2.1681807041168213,
0.6052775382995605,
-1.2014418840408325,
-1.1811538934707642,
0.8360347151756287,
-0.7361581325531006,
0.06493423879146576,
-1.4354119300842285,
-0.06697077304124832,
-0.8986428380012512,
-1.332806944847107,
0.815192699432373,
0.14482155442237854,
0.44643718004226685,
-0.6602412462234497,
0.31430479884147644,
-2.1389496326446533,
-1.2873200178146362,
-0.210317000746727,
-0.8655678629875183,
0.4822622537612915,
-0.24116136133670807,
0.6896283626556396,
-0.13898740708827972,
0.22154191136360168,
0.3030644655227661,
1.3845337629318237,
3.569587230682373,
0.22703811526298523,
0.45708075165748596,
-0.10402825474739075,
-1.005399465560913,
1.4835246801376343,
0.9845560789108276,
-0.01553897000849247,
-0.6471201181411743,
-1.0058114528656006,
1.259016990661621,
2.019345283508301,
0.9579325914382935,
0.07982030510902405,
-0.7869773507118225,
-0.5732199549674988,
0.054544124752283096,
0.24330726265907288,
0.5093383193016052,
0.887744665145874,
-0.09983249753713608,
0.10889141261577606,
1.5046309232711792,
1.280202865600586,
-0.36713871359825134,
0.3561570644378662,
-0.8819485306739807,
-0.442432165145874,
0.5495777726173401,
0.3923782408237457,
-0.027185015380382538,
0.46722519397735596,
-0.9190194606781006,
-0.23364344239234924,
-0.475320041179657,
-1.0807298421859741,
-0.604108452796936,
-0.5091915726661682,
-0.4616193473339081,
1.5981111526489258,
0.09694020450115204,
-0.459737092256546,
-0.06558751314878464,
-0.8383193612098694,
-0.22378528118133545,
-1.1316287517547607,
0.3140780031681061,
-0.08526774495840073,
-0.09298323094844818,
-0.09437184780836105,
1.8784406185150146,
-1.0559853315353394,
-2.100639820098877,
0.26158928871154785,
0.25974512100219727,
-0.34784606099128723,
0.15430863201618195,
1.5602539777755737,
0.4317780137062073,
1.4047210216522217,
1.3143773078918457,
0.9630664587020874,
-0.6067602038383484,
-1.3532273769378662,
0.7002847790718079,
0.8693515062332153,
-1.463927984237671,
0.9771552085876465,
0.02163200080394745,
-0.5850556492805481,
0.900582492351532,
1.2615128755569458,
0.35405510663986206,
-1.9722270965576172,
0.7825382351875305,
-0.8419528603553772,
0.711432158946991,
0.6623785495758057,
0.7624263167381287,
0.14737941324710846,
0.8824024796485901,
-1.2158678770065308,
-1.2144603729248047,
-0.8088564276695251,
-0.5578082799911499,
1.9360605478286743,
-0.20078177750110626,
0.6458265781402588,
-0.1390310823917389,
-1.253257155418396,
-0.12088088691234589,
0.7351503968238831,
0.33114883303642273,
-0.32314568758010864,
0.9043568968772888,
-0.684611439704895,
-1.102925419807434,
-1.49973464012146,
-0.3818094730377197,
-1.0535701513290405,
-0.9071751832962036,
1.0710235834121704,
0.7217301726341248,
0.22718828916549683,
1.9379802942276,
0.5282455086708069,
0.3237614929676056,
-2.672541856765747,
0.8180340528488159,
0.24448749423027039,
0.08776714652776718,
0.9646611213684082,
0.22783200442790985,
1.0304707288742065,
0.04794520139694214,
0.5143507719039917,
-2.2599918842315674,
2.1647510528564453,
-0.3055034577846527,
0.6771790385246277,
-0.11811933666467667,
-0.31388428807258606,
1.1245110034942627,
0.5791202187538147,
0.6342782974243164,
-1.1402533054351807,
0.7694602012634277,
-0.5740582942962646,
1.124592900276184,
1.0525903701782227,
-0.817203164100647,
-0.11223698407411575,
1.3936436176300049,
0.6004644632339478,
-0.4339793622493744,
-0.8563187122344971,
-0.9644041061401367,
0.8314595222473145,
1.8227765560150146,
-0.034470442682504654,
-0.03679550439119339,
0.7333567142486572,
0.6574020385742188,
-1.1600648164749146,
0.2091851681470871,
-0.8246033191680908,
-0.7484120726585388,
1.6101319789886475,
1.9604628086090088,
0.002208605408668518,
-0.0645858645439148,
-0.7206887006759644,
-1.1513285636901855,
0.7114412784576416,
-0.023884054273366928,
0.15239375829696655,
0.6416714787483215,
-0.6642018556594849,
1.0901986360549927,
0.8739111423492432,
0.9514234662055969,
0.029078882187604904,
0.4275706112384796,
0.47144269943237305,
-0.23150838911533356,
-1.0993860960006714,
-0.3205864131450653,
-1.05907142162323,
-2.544801712036133,
0.5133504867553711,
-0.3413003385066986,
-1.515760898590088,
-0.0458744615316391,
-0.9665760397911072,
0.9389044046401978,
-0.5163247585296631,
-1.1203174591064453,
-1.4831180572509766,
0.22284428775310516,
-0.1476259082555771,
0.9087482690811157,
-1.5304690599441528,
-0.021154530346393585,
1.2975475788116455,
0.8865097165107727,
-0.5870764851570129,
1.150766134262085,
0.2718305289745331,
1.0066956281661987,
0.7390092015266418,
-0.4809432625770569,
0.4002963602542877,
0.18301911652088165,
-1.3510708808898926,
0.4439842998981476,
1.0222467184066772,
0.2290351390838623,
1.340887188911438,
-0.5378305912017822,
0.13728539645671844,
0.45873117446899414,
-0.586982011795044,
-0.4756353497505188,
-0.5214942693710327,
0.8221192955970764,
0.08724676072597504,
-0.7843144536018372,
0.15337438881397247,
-0.22158369421958923,
-0.3259929120540619,
0.2249092310667038,
-1.406335711479187,
-0.3717327415943146,
-0.5236029624938965,
-0.5180076956748962,
-1.370727777481079,
-0.02480318397283554,
1.4405754804611206,
-0.7467309236526489,
-0.18304240703582764,
0.5421114563941956,
0.5485661029815674,
0.4794209897518158,
0.6494207978248596,
-0.5126667618751526,
-0.34584006667137146,
-0.40074244141578674,
-0.3572424352169037,
0.2279735654592514,
1.1735131740570068,
-0.2104313224554062,
-0.9210233092308044,
0.8054946660995483,
-0.38020068407058716,
0.0032402509823441505,
1.9653407335281372,
0.12761829793453217,
-0.7659133076667786,
0.36360666155815125,
-0.6400217413902283,
1.827135443687439,
1.7499973773956299,
1.3936082124710083,
-0.06385135650634766,
-0.8708323836326599,
0.5680906772613525,
-0.1305224746465683,
-0.2978378236293793,
1.0290915966033936,
0.6096053123474121,
-0.10743454098701477,
-1.417158842086792,
0.574914813041687,
1.2282328605651855,
-0.9047298431396484,
-0.7146590948104858,
0.008361541666090488,
-0.8172256350517273,
1.035762906074524,
0.7297843098640442,
0.5807008147239685,
0.22972571849822998,
1.6212717294692993,
0.6602976322174072,
-0.5759530067443848,
0.4946551024913788,
0.46655675768852234,
-0.1794666051864624,
-2.066599130630493,
-1.0066087245941162,
0.33716219663619995,
-0.45355939865112305,
-1.5839420557022095,
1.321374535560608,
-1.2188801765441895,
-0.9292342066764832,
0.5026423931121826,
0.07614777237176895,
1.3603332042694092,
0.2923387587070465,
1.6687943935394287,
2.106666326522827,
0.8657044172286987,
0.27037671208381653,
1.4493987560272217,
0.02497481182217598,
-0.37337031960487366,
1.8052253723144531,
-0.3850301504135132,
0.5155826210975647,
1.1611559391021729,
-0.39176592230796814,
-1.001438021659851,
-0.6757307052612305,
-0.9572924375534058,
-0.5494880080223083,
1.152215600013733,
0.1913057416677475,
-1.0902705192565918,
0.22174809873104095,
1.5270990133285522,
0.17168384790420532,
-0.2286866009235382,
0.5414456129074097,
0.4946475923061371,
-0.6613112688064575,
-0.1121932864189148,
-1.0066198110580444,
0.4785371422767639,
-0.2530844509601593,
-0.36996766924858093,
0.331180214881897,
0.44866251945495605,
1.2664008140563965,
-0.06942039728164673,
0.16672730445861816,
1.3437902927398682,
-1.3812263011932373,
1.3522318601608276,
-0.4857881963253021,
0.19552110135555267,
-2.446582555770874,
1.4596225023269653,
-0.7074398994445801,
1.8907030820846558,
-2.6297554969787598,
0.3738303482532501,
-0.6410961747169495,
-0.4743864834308624,
0.3943638503551483,
-0.3835793137550354,
0.08166546374559402,
-0.2321118265390396,
-1.0135265588760376,
-0.04359370470046997,
-0.779595136642456,
0.581698477268219,
1.182027816772461,
1.2935123443603516,
-1.1158143281936646,
-0.28348293900489807,
-1.7030036449432373,
-0.2549366056919098,
-0.7423412203788757,
0.3384825885295868,
-2.112997055053711,
-0.12672939896583557,
-1.973314881324768,
-2.488306760787964,
-1.486889123916626,
-0.8693931698799133,
1.1120387315750122,
0.23117181658744812,
-0.8795536160469055,
1.065601110458374,
-0.3672136962413788,
-1.8739628791809082,
1.0689685344696045,
-2.147409439086914
] |
https://github.com/huggingface/datasets/issues/4746 | Dataset Viewer issue for yanekyuk/wikikey | The dataset is empty, as far as I can tell: there are no files in the repository at https://huggingface.co/datasets/yanekyuk/wikikey/tree/main
Maybe the viewer can display a better message for empty datasets | ### Link
_No response_
### Description
_No response_
### Owner
_No response_ | 604 | 30 | Dataset Viewer issue for yanekyuk/wikikey
### Link
_No response_
### Description
_No response_
### Owner
_No response_
The dataset is empty, as far as I can tell: there are no files in the repository at https://huggingface.co/datasets/yanekyuk/wikikey/tree/main
Maybe the viewer can display a better message for empty datasets | [
-1.0419037342071533,
-0.9384644627571106,
-0.8733411431312561,
1.392208218574524,
-0.1511540710926056,
-1.5126551389694214,
0.15347737073898315,
-0.9191557765007019,
1.483690619468689,
-0.8390153050422668,
0.20160147547721863,
-1.8315038681030273,
-0.18928982317447662,
-0.5274051427841187,
-0.5965902209281921,
-0.9218189120292664,
-0.3479161262512207,
-0.7937247157096863,
1.0838013887405396,
2.558842658996582,
1.3439581394195557,
-1.2524124383926392,
2.8301994800567627,
0.6694473624229431,
-0.30992618203163147,
-0.9632124304771423,
0.6543813943862915,
0.04802048206329346,
-1.1847671270370483,
-0.5289255976676941,
-0.9433112740516663,
0.02875578962266445,
-0.40546342730522156,
-0.3363347053527832,
0.033993251621723175,
0.5576834678649902,
-0.08870133012533188,
-0.4574146568775177,
-0.4705345332622528,
-0.7987815737724304,
0.33744576573371887,
-0.2774348855018616,
1.0107191801071167,
-0.3567361533641815,
1.898247480392456,
-0.5766501426696777,
0.25848495960235596,
0.6620436906814575,
1.1694287061691284,
0.07122964411973953,
0.03425513207912445,
0.08229146897792816,
0.3781707286834717,
-0.26017263531684875,
0.4682861268520355,
1.1519650220870972,
0.44032835960388184,
0.6579522490501404,
0.5899609923362732,
-2.0030245780944824,
1.3968719244003296,
-0.7629455924034119,
0.26034101843833923,
1.4300400018692017,
-1.1053378582000732,
0.5394214987754822,
-1.6686674356460571,
-0.06306225806474686,
0.6098073124885559,
-2.1447720527648926,
0.2726335823535919,
-1.2482149600982666,
-0.6328821182250977,
0.7907494902610779,
0.2812405824661255,
-1.3160971403121948,
0.10760654509067535,
-0.5336729884147644,
1.086862564086914,
0.5804007053375244,
1.173373818397522,
-1.6709909439086914,
0.09969662129878998,
-0.18102173507213593,
-0.1989586353302002,
-1.3999100923538208,
-1.539924144744873,
0.6231005787849426,
0.6704055666923523,
0.8058883547782898,
-0.06950894743204117,
0.9391184449195862,
-0.9737613201141357,
0.7092223763465881,
-0.7135471701622009,
-1.5934756994247437,
-1.426649570465088,
-2.4044229984283447,
-2.3296749591827393,
0.806523859500885,
-0.45870089530944824,
-0.5545917749404907,
2.015075922012329,
-0.9580243229866028,
-1.8106679916381836,
1.2326133251190186,
0.005704028531908989,
0.009396243840456009,
2.4554355144500732,
0.4391270577907562,
-0.6371085047721863,
0.1613834649324417,
-0.7421641945838928,
0.9872424006462097,
-0.5407333374023438,
1.2452276945114136,
0.4980489909648895,
-0.996868371963501,
1.6378298997879028,
-0.625830888748169,
0.6767563223838806,
-0.6402777433395386,
-0.5004369020462036,
-0.8554791808128357,
0.36187663674354553,
1.8227671384811401,
-0.3954610526561737,
1.5520641803741455,
-0.4976414740085602,
-1.5433791875839233,
-1.5910263061523438,
0.8364114165306091,
0.4343578517436981,
-1.0506999492645264,
0.2577824592590332,
-0.344463050365448,
0.03282761573791504,
-0.0036171316169202328,
1.125166416168213,
1.2456932067871094,
0.4924427568912506,
-0.3987801969051361,
-0.7329853177070618,
0.34470582008361816,
-0.0729624480009079,
-0.6705346703529358,
-1.8585243225097656,
-0.2922949492931366,
0.1277366727590561,
0.6073962450027466,
-1.1545588970184326,
1.6637779474258423,
0.8903456926345825,
2.038102388381958,
0.8405775427818298,
-0.4431641101837158,
1.2463595867156982,
-0.07818379998207092,
1.87045156955719,
-0.44794318079948425,
0.6321009993553162,
-0.33010461926460266,
-1.3016163110733032,
0.9454655051231384,
-0.4597797393798828,
-1.9141801595687866,
-1.0710047483444214,
-0.7632998824119568,
-0.125343918800354,
-0.7043768167495728,
0.9053549766540527,
-0.28314208984375,
-1.4171167612075806,
0.1338118016719818,
-0.6765626072883606,
0.298495352268219,
-1.3884161710739136,
0.07429719716310501,
0.7342472076416016,
-0.6017613410949707,
-0.11914511770009995,
-0.16791653633117676,
-1.335325837135315,
-0.41198888421058655,
0.4421636164188385,
1.9854949712753296,
-0.6499357223510742,
0.9962809681892395,
0.8536299467086792,
-0.6391416192054749,
0.09317785501480103,
0.033205799758434296,
-0.2573956549167633,
0.8375041484832764,
-1.3411983251571655,
-0.3332282602787018,
1.197155237197876,
-0.35478368401527405,
-0.7339510917663574,
1.4033679962158203,
0.8962722420692444,
-1.0325158834457397,
-0.1588934063911438,
-0.2817007303237915,
-0.8025696277618408,
-0.1834033727645874,
-1.5516459941864014,
-0.19073809683322906,
0.20103587210178375,
-1.3230112791061401,
-0.5758803486824036,
-0.35765939950942993,
1.4621129035949707,
-0.07427922636270523,
1.4254062175750732,
-0.3983381986618042,
-0.15111808478832245,
-0.5449413061141968,
-0.4303751587867737,
0.31362035870552063,
-0.3517792224884033,
-0.5586776733398438,
0.21341688930988312,
-0.8475096821784973,
0.17536869645118713,
1.559143304824829,
0.2681367099285126,
0.252105712890625,
0.4561446011066437,
1.0956838130950928,
0.31151679158210754,
-0.1671134978532791,
-0.8083115220069885,
-1.4985114336013794,
1.9860825538635254,
-1.4095568656921387,
1.8191252946853638,
0.811197817325592,
-0.032847270369529724,
-1.8956464529037476,
-1.9477646350860596,
1.1774256229400635,
1.3694521188735962,
2.228163957595825,
0.4904594123363495,
0.31876254081726074,
-0.8191013336181641,
-0.859672486782074,
0.1295831948518753,
-1.1436519622802734,
-0.6702407002449036,
0.23286066949367523,
2.2003605365753174,
1.79141104221344,
-0.5183530449867249,
-0.12732894718647003,
-0.9733261466026306,
1.0454540252685547,
-0.1446022093296051,
0.12760522961616516,
1.9862364530563354,
-0.3932853043079376,
-0.8616795539855957,
1.1020721197128296,
-2.2904136180877686,
0.24170000851154327,
1.9601620435714722,
0.17230868339538574,
0.21912439167499542,
-1.4998278617858887,
-0.7576169967651367,
-0.2663058042526245,
-0.3005361258983612,
-1.1977577209472656,
0.6985712051391602,
-0.3337784707546234,
-0.8582015633583069,
-1.5638928413391113,
0.12450964003801346,
-1.0116015672683716,
-1.7127363681793213,
0.33908864855766296,
1.9526623487472534,
2.0460963249206543,
-0.94157475233078,
1.5876930952072144,
-0.20404058694839478,
-0.015255637466907501,
1.4110077619552612,
1.2649351358413696,
3.0543878078460693,
2.0022053718566895,
-1.2004220485687256,
0.7939270734786987,
-0.042328670620918274,
-0.3883475959300995,
1.1484720706939697,
-1.0267244577407837,
1.1942832469940186,
-0.4572620391845703,
-1.2514182329177856,
-1.3303637504577637,
1.0178722143173218,
0.49880269169807434,
0.05212610214948654,
-0.43988874554634094,
1.4831112623214722,
0.012092461809515953,
1.5150415897369385,
0.6694352030754089,
-0.5230767130851746,
0.535352349281311,
-0.4981638491153717,
-0.31678134202957153,
1.5190833806991577,
0.20960097014904022,
-1.564289927482605,
-2.2395436763763428,
-0.3017992675304413,
-0.862396776676178,
-0.09013386070728302,
-0.6681420803070068,
-1.1483087539672852,
1.5477548837661743,
0.6382703185081482,
-1.1366719007492065,
-0.5018600225448608,
-0.3018926978111267,
-0.5253024101257324,
2.675563335418701,
-1.390756607055664,
-0.1620720773935318,
-0.852766215801239,
-0.4947236478328705,
1.811216115951538,
-1.2866734266281128,
-0.22331660985946655,
-1.0407017469406128,
-0.7378920316696167,
-1.3207134008407593,
-0.4347609281539917,
0.04054330289363861,
-0.9426387548446655,
0.8504480123519897,
-0.026415834203362465,
-1.0795732736587524,
-0.19533903896808624,
-0.7745800018310547,
1.0389814376831055,
-0.19101178646087646,
0.40147700905799866,
1.9153378009796143,
0.35205450654029846,
-0.5059998631477356,
0.7618197798728943,
1.1699353456497192,
0.5312800407409668,
-0.7611441016197205,
0.040729351341724396,
-0.6548740863800049,
0.27646395564079285,
-1.3790931701660156,
0.2157035619020462,
-2.9884815216064453,
0.5473312139511108,
-0.2850690484046936,
-0.2144758701324463,
-0.024690257385373116,
-1.4184402227401733,
1.028008222579956,
2.4989049434661865,
-1.1904269456863403,
0.48052915930747986,
0.3265681266784668,
1.2896407842636108,
-1.615483283996582,
0.36715444922447205,
-0.48647579550743103,
2.047983407974243,
0.09703938663005829,
1.275858759880066,
-0.331426203250885,
-1.9924496412277222,
0.6343222260475159,
-1.209075927734375,
-0.9429646730422974,
0.9917799830436707,
-0.9989118576049805,
-0.07548782229423523,
-1.4763041734695435,
-0.13652409613132477,
-0.8326976895332336,
-1.3640860319137573,
0.6981316804885864,
0.06731054931879044,
0.34628596901893616,
-0.4853399097919464,
0.3488284647464752,
-2.135026693344116,
-1.235744595527649,
-0.2978972792625427,
-0.9292296171188354,
0.3764607012271881,
-0.4400070607662201,
0.6524851322174072,
-0.11601334065198898,
0.1973101645708084,
0.24139942228794098,
1.3333823680877686,
3.3363893032073975,
0.13596311211585999,
0.2882988750934601,
-0.12105940282344818,
-0.9093868732452393,
1.3709795475006104,
1.063598394393921,
-0.059978656470775604,
-0.7334820032119751,
-0.803783655166626,
1.3235466480255127,
1.9405289888381958,
1.0517654418945312,
0.11279929429292679,
-0.8065007925033569,
-0.4309675693511963,
-0.12279083579778671,
0.19687598943710327,
0.49000564217567444,
0.9395895004272461,
-0.0635739266872406,
0.18456225097179413,
1.430477261543274,
1.21059250831604,
-0.4137527644634247,
0.5962167382240295,
-0.9926228523254395,
-0.4080808758735657,
0.38894981145858765,
0.3162226974964142,
0.05173385143280029,
0.28419703245162964,
-1.0312434434890747,
-0.37787169218063354,
-0.2740795612335205,
-0.8768450617790222,
-0.7407636642456055,
-0.38430601358413696,
-0.38651758432388306,
1.5008490085601807,
0.06931379437446594,
-0.49010035395622253,
0.005356179550290108,
-0.5671579837799072,
-0.13682830333709717,
-1.0657879114151,
0.1684085875749588,
-0.21193893253803253,
-0.0388028509914875,
0.03821507841348648,
1.7519690990447998,
-1.1060307025909424,
-2.3474466800689697,
0.18819661438465118,
0.26155269145965576,
-0.32493874430656433,
0.01362612284719944,
1.7776758670806885,
0.35813042521476746,
1.4271801710128784,
1.229427695274353,
1.0275243520736694,
-0.8315194249153137,
-1.307332992553711,
0.676821231842041,
1.0661650896072388,
-1.4201405048370361,
0.9235613346099854,
-0.27909088134765625,
-0.36039525270462036,
0.7201107740402222,
1.257248878479004,
0.3830055296421051,
-1.8972469568252563,
0.9095216989517212,
-0.953674852848053,
0.8231761455535889,
0.8467627167701721,
0.9461525082588196,
0.2934962809085846,
0.8650168776512146,
-1.2811989784240723,
-1.247882604598999,
-0.8038211464881897,
-0.5215429067611694,
2.032562017440796,
-0.29446694254875183,
0.6375738382339478,
-0.10428357124328613,
-1.1244771480560303,
0.02388295717537403,
0.7752072215080261,
0.2684728503227234,
-0.3429025113582611,
0.7747544646263123,
-0.43672919273376465,
-0.7838115692138672,
-1.365479826927185,
-0.4061097204685211,
-1.0283715724945068,
-1.111889362335205,
1.1009483337402344,
0.7227974534034729,
0.30654671788215637,
1.9236819744110107,
0.4682762026786804,
0.408205509185791,
-2.6010634899139404,
0.9647260904312134,
0.2366437166929245,
0.13647176325321198,
0.9361823797225952,
0.27669161558151245,
1.1655099391937256,
0.0038756513968110085,
0.34770363569259644,
-2.383951187133789,
2.189628839492798,
-0.28411775827407837,
0.5312964916229248,
0.04871274530887604,
-0.111531563103199,
1.1616181135177612,
0.51019287109375,
0.5798167586326599,
-1.1278024911880493,
0.7921286225318909,
-0.32043448090553284,
1.0277997255325317,
0.9771965146064758,
-0.871312141418457,
0.16507945954799652,
1.443252682685852,
0.5853491425514221,
-0.4778902232646942,
-0.8688357472419739,
-0.8422667980194092,
0.9427750706672668,
1.631697416305542,
0.05823061615228653,
0.17642292380332947,
0.8466487526893616,
0.4899527132511139,
-1.1646937131881714,
-0.02194000780582428,
-0.7349168658256531,
-0.5564847588539124,
1.5464730262756348,
1.9450068473815918,
-0.06977151334285736,
-0.03505538031458855,
-0.8057950139045715,
-1.182314157485962,
0.7182415723800659,
-0.21759358048439026,
0.09377279877662659,
0.8697030544281006,
-0.7881661653518677,
1.0802085399627686,
0.3244688808917999,
0.7977988123893738,
0.018227625638246536,
0.25831183791160583,
0.6467316150665283,
-0.18081972002983093,
-1.1279308795928955,
-0.28217029571533203,
-1.1519814729690552,
-2.4184834957122803,
0.4338904917240143,
-0.48661065101623535,
-1.5192726850509644,
-0.049513332545757294,
-1.1081042289733887,
1.0526151657104492,
-0.6546949148178101,
-1.176730751991272,
-1.6401721239089966,
0.28006216883659363,
-0.20401214063167572,
0.855800986289978,
-1.5632188320159912,
-0.21853123605251312,
1.228568196296692,
0.8281271457672119,
-0.6487219929695129,
1.096099853515625,
0.1731291562318802,
1.1464976072311401,
0.6457706689834595,
-0.2414463460445404,
0.46006259322166443,
-0.0745415985584259,
-1.2514774799346924,
0.5546420812606812,
1.2390196323394775,
0.11902918666601181,
1.3848968744277954,
-0.6068921685218811,
-0.019237928092479706,
0.5661994814872742,
-0.47401127219200134,
-0.6473481059074402,
-0.3277278244495392,
0.758226752281189,
0.09749334305524826,
-0.8585233092308044,
-0.06292152404785156,
-0.26700401306152344,
-0.2363525778055191,
0.341001957654953,
-1.4488773345947266,
-0.3624767065048218,
-0.3873077929019928,
-0.45885005593299866,
-1.2172596454620361,
0.113650381565094,
1.4032926559448242,
-0.5931559801101685,
-0.3349887430667877,
0.614454448223114,
0.4353123903274536,
0.48034223914146423,
0.5746323466300964,
-0.7693500518798828,
0.0028900466859340668,
-0.3401680886745453,
-0.22526350617408752,
0.3417084813117981,
1.2990702390670776,
-0.18599967658519745,
-1.0468776226043701,
0.7177634835243225,
-0.4849684536457062,
0.1612437665462494,
2.2134783267974854,
0.24690614640712738,
-0.8952839374542236,
0.4052247703075409,
-0.7780558466911316,
1.9654356241226196,
1.5411343574523926,
1.38701593875885,
-0.027623727917671204,
-0.7827285528182983,
0.6121067404747009,
-0.037143006920814514,
-0.3043808341026306,
0.8610159158706665,
0.34952184557914734,
-0.2711948752403259,
-1.5571297407150269,
0.6590256094932556,
1.2492048740386963,
-0.9528214335441589,
-0.8947668671607971,
0.14336572587490082,
-0.8199560046195984,
1.098236083984375,
0.7438801527023315,
0.511343240737915,
0.20534704625606537,
1.5426831245422363,
0.6529558300971985,
-0.4791167676448822,
0.4086555242538452,
0.4820614159107208,
0.09359617531299591,
-2.014758348464966,
-0.8055614829063416,
0.3796809911727905,
-0.43488675355911255,
-1.4536030292510986,
1.3526028394699097,
-1.0433270931243896,
-1.1498005390167236,
0.5597946047782898,
0.15832112729549408,
1.4157283306121826,
0.4214061498641968,
1.6447526216506958,
2.063170909881592,
0.9499704241752625,
0.17316864430904388,
1.3298254013061523,
-0.1798005998134613,
-0.3930602967739105,
1.9244824647903442,
-0.40809401869773865,
0.35400262475013733,
1.0010390281677246,
-0.5390005707740784,
-1.0070526599884033,
-0.6706786155700684,
-1.0795173645019531,
-0.5839225649833679,
1.1112114191055298,
0.3758031725883484,
-1.013984203338623,
0.1263445019721985,
1.4022800922393799,
0.1450929045677185,
-0.31207871437072754,
0.6535707712173462,
0.5556477308273315,
-0.836753785610199,
0.022735508158802986,
-0.7869589924812317,
0.4927091896533966,
-0.12423103302717209,
-0.3527677357196808,
0.43986979126930237,
0.6380172371864319,
1.3122963905334473,
0.007998635992407799,
0.26095595955848694,
1.1281770467758179,
-1.4039039611816406,
1.4814947843551636,
-0.616789698600769,
0.0016721198335289955,
-2.5507612228393555,
1.5420656204223633,
-0.6405481696128845,
1.7746787071228027,
-2.805511474609375,
0.4373844265937805,
-0.5535447001457214,
-0.48954838514328003,
0.33636683225631714,
-0.3287779986858368,
0.06320089101791382,
-0.208180770277977,
-1.1046421527862549,
0.055476561188697815,
-0.6536944508552551,
0.7047817707061768,
1.0977543592453003,
1.260861873626709,
-1.1721409559249878,
-0.2523820102214813,
-1.7691094875335693,
-0.10528264194726944,
-0.9327660799026489,
0.3565015494823456,
-2.0076565742492676,
-0.1378059983253479,
-1.7464988231658936,
-2.355285882949829,
-1.4715949296951294,
-0.6491051912307739,
1.0036596059799194,
0.41562727093696594,
-0.9891265034675598,
1.2056421041488647,
-0.46419787406921387,
-1.7491297721862793,
1.1749272346496582,
-2.1559510231018066
] |
https://github.com/huggingface/datasets/issues/4746 | Dataset Viewer issue for yanekyuk/wikikey | OK. Closing as it's not an error. We will work on making the error message a lot clearer. | ### Link
_No response_
### Description
_No response_
### Owner
_No response_ | 604 | 18 | Dataset Viewer issue for yanekyuk/wikikey
### Link
_No response_
### Description
_No response_
### Owner
_No response_
OK. Closing as it's not an error. We will work on making the error message a lot clearer. | [
-1.1557531356811523,
-1.1909937858581543,
-0.6736268401145935,
1.5584737062454224,
-0.05800952389836311,
-1.334784984588623,
0.18734638392925262,
-0.8669753670692444,
1.5078800916671753,
-0.8436412811279297,
0.291523814201355,
-1.7560635805130005,
-0.10017033666372299,
-0.6532946825027466,
-0.43249255418777466,
-0.9985894560813904,
-0.2841944694519043,
-0.5264207720756531,
1.3930188417434692,
2.560549020767212,
1.306910753250122,
-1.2795381546020508,
2.988919734954834,
0.6476587653160095,
-0.32567480206489563,
-0.8994014859199524,
0.4881817102432251,
-0.13690154254436493,
-1.2564444541931152,
-0.6679068207740784,
-0.9286781549453735,
-0.010554899461567402,
-0.42736363410949707,
-0.21583011746406555,
-0.052713390439748764,
0.5211682915687561,
-0.19523759186267853,
-0.6957994699478149,
-0.5293905735015869,
-0.8891581296920776,
0.2623034119606018,
-0.4122411906719208,
0.8444129228591919,
-0.3999021649360657,
1.8885228633880615,
-0.6021687984466553,
0.4407646656036377,
0.6280257701873779,
1.2734946012496948,
0.2977428734302521,
0.05736104026436806,
0.14240236580371857,
0.46404749155044556,
-0.20556345582008362,
0.33337312936782837,
1.0307748317718506,
0.466449499130249,
0.6178818345069885,
0.46999576687812805,
-1.9836760759353638,
1.4750195741653442,
-0.8425288200378418,
0.058938827365636826,
1.4597506523132324,
-1.1742420196533203,
0.5338726043701172,
-1.492469072341919,
-0.08459729701280594,
0.6988474130630493,
-2.0226635932922363,
0.29433608055114746,
-1.369766116142273,
-0.6855056881904602,
0.7942932844161987,
0.48369595408439636,
-1.2845877408981323,
-0.10378046333789825,
-0.4560772180557251,
1.11690354347229,
0.574823796749115,
1.0682965517044067,
-1.6924700736999512,
-0.0021355748176574707,
-0.11132139712572098,
-0.0875452309846878,
-1.379675030708313,
-1.4928052425384521,
0.750074028968811,
0.6616155505180359,
0.8332496881484985,
0.06595863401889801,
0.8927434086799622,
-0.8854506611824036,
0.7336167693138123,
-0.8412395715713501,
-1.5633021593093872,
-1.4333800077438354,
-2.490678310394287,
-2.461963176727295,
0.8167898058891296,
-0.41498470306396484,
-0.5260784029960632,
1.9599264860153198,
-0.9614216685295105,
-1.8084725141525269,
1.2928292751312256,
-0.08873603492975235,
-0.13785985112190247,
2.5376102924346924,
0.45363929867744446,
-0.7207061052322388,
0.2096962034702301,
-0.9175373911857605,
0.8085243701934814,
-0.8664441108703613,
1.2101489305496216,
0.2938222289085388,
-1.0445234775543213,
1.3877891302108765,
-0.4458114504814148,
0.7235315442085266,
-0.7168373465538025,
-0.4537239074707031,
-0.822925329208374,
0.2775086760520935,
1.900794267654419,
-0.22039921581745148,
1.6099853515625,
-0.4498959481716156,
-1.4853696823120117,
-1.7264692783355713,
0.809066116809845,
0.27240633964538574,
-0.9121087789535522,
0.41289815306663513,
-0.2798609435558319,
0.12461931258440018,
-0.0875910297036171,
1.0464167594909668,
1.4937838315963745,
0.5590978264808655,
-0.3102906346321106,
-0.6507478356361389,
0.19812999665737152,
-0.023943081498146057,
-0.8163357377052307,
-1.7507963180541992,
-0.32864701747894287,
-0.00007030833512544632,
0.5512614846229553,
-1.2181774377822876,
1.5552667379379272,
0.8424420356750488,
2.0395355224609375,
0.9218161702156067,
-0.3542529344558716,
1.3141417503356934,
0.16303332149982452,
1.8985129594802856,
-0.48475024104118347,
0.6159610152244568,
-0.4533991813659668,
-1.120833396911621,
0.7237568497657776,
-0.4062768220901489,
-1.6960184574127197,
-0.8930751085281372,
-0.7603589296340942,
-0.17912499606609344,
-0.6907238960266113,
0.9268050789833069,
-0.2580043077468872,
-1.3175225257873535,
0.34708172082901,
-0.8183571100234985,
0.39955830574035645,
-1.4259371757507324,
0.20841723680496216,
0.7772793173789978,
-0.48661503195762634,
0.19248242676258087,
-0.16760371625423431,
-1.3350411653518677,
-0.40336838364601135,
0.5880181193351746,
1.914595127105713,
-0.7102298736572266,
0.9140909314155579,
0.8419557213783264,
-0.5311221480369568,
-0.08876605331897736,
0.32519248127937317,
-0.21820394694805145,
0.6903639435768127,
-1.2498345375061035,
-0.22698238492012024,
1.3076345920562744,
-0.5761468410491943,
-0.6053125262260437,
1.3671507835388184,
0.7658716440200806,
-1.1414456367492676,
-0.11056798696517944,
-0.13242687284946442,
-0.8809224367141724,
-0.030692484229803085,
-1.6564141511917114,
-0.12322112917900085,
0.41722559928894043,
-1.5180155038833618,
-0.6719074845314026,
-0.3654763102531433,
1.4419033527374268,
0.052236538380384445,
1.451265573501587,
-0.48986077308654785,
-0.10572589933872223,
-0.42017245292663574,
-0.2873326241970062,
0.25055912137031555,
-0.6495945453643799,
-0.4194677174091339,
0.032927289605140686,
-0.6409177780151367,
0.17824579775333405,
1.5973960161209106,
0.14930802583694458,
0.22266355156898499,
0.3993586003780365,
1.0002355575561523,
0.2435552179813385,
-0.29576781392097473,
-0.7930080890655518,
-1.4726701974868774,
1.9013817310333252,
-1.3055176734924316,
1.967420220375061,
0.9804162383079529,
-0.06126129627227783,
-1.7810624837875366,
-2.0073933601379395,
0.9625934958457947,
1.1627331972122192,
2.1457724571228027,
0.49252408742904663,
0.3772790729999542,
-0.9451112151145935,
-0.7165313959121704,
0.06723616272211075,
-1.1518609523773193,
-0.6649146676063538,
0.21491144597530365,
2.256005048751831,
1.68852961063385,
-0.40936312079429626,
-0.11076746135950089,
-1.1365435123443604,
1.2285884618759155,
-0.20572248101234436,
0.1129651740193367,
1.8272032737731934,
-0.3345933258533478,
-0.9308409690856934,
0.9565210938453674,
-2.159323215484619,
0.19957557320594788,
2.061044216156006,
0.1754278838634491,
0.2515755891799927,
-1.460038423538208,
-0.8614197969436646,
-0.3902226686477661,
-0.00992235355079174,
-1.0803942680358887,
0.6453263163566589,
-0.35079455375671387,
-0.6846634149551392,
-1.4376152753829956,
0.19436092674732208,
-0.7775501608848572,
-1.6546289920806885,
0.09713668376207352,
2.042997121810913,
1.9286315441131592,
-0.856874942779541,
1.5455260276794434,
-0.16319511830806732,
-0.1302558034658432,
1.360182762145996,
0.995341956615448,
3.1512269973754883,
2.0372159481048584,
-1.2649543285369873,
0.9122137427330017,
0.1277628093957901,
-0.18478016555309296,
1.077428936958313,
-1.1710689067840576,
1.353177547454834,
-0.26971158385276794,
-1.2423382997512817,
-1.409303903579712,
0.8756337761878967,
0.48851844668388367,
-0.06740743666887283,
-0.32450035214424133,
1.5448846817016602,
-0.03418312594294548,
1.6014485359191895,
0.6334324479103088,
-0.4341469705104828,
0.6086413860321045,
-0.408783882856369,
-0.28240835666656494,
1.4333635568618774,
0.49082499742507935,
-1.6590256690979004,
-2.083470582962036,
-0.19394303858280182,
-0.8237470388412476,
0.06056927517056465,
-0.7919139266014099,
-1.1715244054794312,
1.581864595413208,
0.73516845703125,
-1.1030423641204834,
-0.46261170506477356,
-0.32850781083106995,
-0.6298822164535522,
2.801147937774658,
-1.4677400588989258,
-0.4330389201641083,
-0.8409764766693115,
-0.6513309478759766,
1.7955468893051147,
-1.3105391263961792,
-0.1947079449892044,
-1.0595651865005493,
-0.6227356195449829,
-0.9836739301681519,
-0.37265950441360474,
0.010644624941051006,
-0.8299672603607178,
0.955258846282959,
-0.016157226637005806,
-1.2329537868499756,
-0.21009263396263123,
-0.8157678842544556,
0.9670992493629456,
-0.07477272301912308,
0.39159348607063293,
1.867366909980774,
0.25928059220314026,
-0.5755530595779419,
0.699766993522644,
1.1286430358886719,
0.3776962161064148,
-0.7826665043830872,
-0.0012607858516275883,
-0.5037823915481567,
0.4353856146335602,
-1.1347200870513916,
0.28548189997673035,
-2.928567409515381,
0.390103816986084,
-0.2801534831523895,
-0.2836655378341675,
-0.08248303085565567,
-1.3795833587646484,
1.1421387195587158,
2.485501289367676,
-1.2177740335464478,
0.7042281627655029,
0.30761009454727173,
1.4052913188934326,
-1.694014310836792,
0.5314239859580994,
-0.4151921272277832,
2.0880587100982666,
0.17976295948028564,
1.1072090864181519,
-0.36174270510673523,
-2.209245204925537,
0.6705161333084106,
-1.1919896602630615,
-1.0245710611343384,
0.9349545836448669,
-1.0788805484771729,
-0.2606559097766876,
-1.306822657585144,
-0.22777649760246277,
-0.49881404638290405,
-1.385725975036621,
0.5066500306129456,
0.07642117887735367,
0.49231088161468506,
-0.6333004832267761,
0.3307162821292877,
-2.2409613132476807,
-1.373099446296692,
-0.2828437387943268,
-0.7561558485031128,
0.2906646132469177,
-0.6517572402954102,
0.673307478427887,
-0.3435225486755371,
0.04427608475089073,
0.1915396749973297,
1.5610859394073486,
3.257063388824463,
0.08050592243671417,
0.2824471592903137,
-0.2732495665550232,
-0.6969837546348572,
1.237663745880127,
0.9363034963607788,
-0.3021027147769928,
-0.5542181134223938,
-0.7954633235931396,
1.4203816652297974,
2.059527635574341,
0.888782799243927,
0.028550323098897934,
-0.7033224701881409,
-0.6560118198394775,
-0.2434057593345642,
0.13750550150871277,
0.30290114879608154,
0.9009751081466675,
0.03923195227980614,
0.11304952949285507,
1.5321439504623413,
1.1237218379974365,
-0.5515812039375305,
0.4726400077342987,
-0.9562017321586609,
-0.5370240211486816,
0.4617937505245209,
0.4791361689567566,
-0.1545179933309555,
0.11808284372091293,
-0.853878915309906,
-0.23142945766448975,
-0.3588140606880188,
-0.7523819804191589,
-0.860952615737915,
-0.2775329351425171,
-0.36751601099967957,
1.618514895439148,
0.1774348020553589,
-0.6186608672142029,
-0.015971209853887558,
-0.5634526014328003,
-0.12179268151521683,
-1.0638035535812378,
0.19400373101234436,
-0.16729635000228882,
-0.0883815810084343,
0.12984421849250793,
1.7137224674224854,
-1.3044594526290894,
-2.3866965770721436,
0.1270943135023117,
0.08114544302225113,
-0.11305088549852371,
0.014439820311963558,
1.7976326942443848,
0.4024048447608948,
1.4771783351898193,
1.4073646068572998,
0.9284634590148926,
-1.037929654121399,
-1.3006969690322876,
0.696560263633728,
1.0007163286209106,
-1.4235141277313232,
0.740706205368042,
-0.1511920690536499,
-0.4532698690891266,
0.5400026440620422,
1.2361931800842285,
0.5443403720855713,
-1.7979189157485962,
0.8559026122093201,
-1.2395012378692627,
0.9135726094245911,
0.975983738899231,
0.9309074878692627,
0.39362412691116333,
0.6631125807762146,
-1.0685837268829346,
-1.1841766834259033,
-0.7011995315551758,
-0.7138875126838684,
1.937986135482788,
-0.4392424523830414,
0.5294557213783264,
-0.0737040564417839,
-1.1827027797698975,
0.065619096159935,
0.7179917097091675,
0.3089350759983063,
-0.30306118726730347,
0.5282199382781982,
-0.6664044857025146,
-0.9337264895439148,
-1.3449976444244385,
-0.5925696492195129,
-1.081719994544983,
-1.180321216583252,
1.238806128501892,
0.7852059006690979,
0.35665878653526306,
1.885013461112976,
0.5638896226882935,
0.4310400187969208,
-2.38771653175354,
0.9430261850357056,
0.3039087653160095,
0.09975719451904297,
0.9044433832168579,
0.3901263177394867,
0.9751326441764832,
0.08624691516160965,
0.1572045087814331,
-2.353074550628662,
2.341679811477661,
-0.36731207370758057,
0.5045319199562073,
-0.11671964824199677,
0.07650450617074966,
1.1968305110931396,
0.5961253046989441,
0.4856066107749939,
-1.0856455564498901,
0.8784140944480896,
-0.23771481215953827,
1.1473407745361328,
0.7059829235076904,
-0.8081129193305969,
0.0014340933412313461,
1.3752708435058594,
0.45088621973991394,
-0.7600419521331787,
-0.9297556281089783,
-1.0432230234146118,
0.7462117671966553,
1.5382945537567139,
0.012417619116604328,
0.12547369301319122,
0.8735540509223938,
0.3594975173473358,
-1.0840435028076172,
-0.08679068833589554,
-0.7163145542144775,
-0.6603655815124512,
1.558707594871521,
2.036069631576538,
-0.08491700887680054,
-0.04718698933720589,
-0.7552276253700256,
-1.2564246654510498,
0.6097061038017273,
-0.09663230925798416,
-0.08233574777841568,
0.7238411903381348,
-0.5803064107894897,
0.9309185743331909,
0.4405478239059448,
0.8319921493530273,
0.26293042302131653,
0.14179627597332,
0.6513510346412659,
-0.2151816487312317,
-1.2359400987625122,
-0.1675434708595276,
-1.2088472843170166,
-2.2882330417633057,
0.31889164447784424,
-0.2835424542427063,
-1.5504230260849,
0.08396805077791214,
-1.233014464378357,
1.100968360900879,
-0.5468896627426147,
-1.1385247707366943,
-1.5134162902832031,
0.15585267543792725,
-0.2666145861148834,
0.8693397641181946,
-1.5987552404403687,
-0.1879725605249405,
1.144551157951355,
0.8453643918037415,
-0.6946309208869934,
1.1505868434906006,
0.16472242772579193,
1.2900532484054565,
0.7026929259300232,
-0.20152080059051514,
0.48120710253715515,
-0.15002544224262238,
-1.402002215385437,
0.6613368391990662,
1.2917449474334717,
0.21099191904067993,
1.5869570970535278,
-0.7426634430885315,
-0.09952405095100403,
0.5313469171524048,
-0.34287241101264954,
-0.4648694694042206,
-0.3688473105430603,
0.75067538022995,
0.05564111843705177,
-0.7230382561683655,
-0.0026521077379584312,
-0.30213579535484314,
-0.21235544979572296,
0.19218194484710693,
-1.5313576459884644,
-0.0688214972615242,
-0.38334861397743225,
-0.816169798374176,
-1.2230534553527832,
0.030776850879192352,
1.4498741626739502,
-0.610144853591919,
-0.3424590229988098,
0.5204541087150574,
0.5237454175949097,
0.46146291494369507,
0.7126551866531372,
-0.7977923154830933,
0.024974845349788666,
-0.2135244905948639,
-0.20364926755428314,
0.4074677526950836,
1.5069462060928345,
-0.12783759832382202,
-1.049720048904419,
0.7557790875434875,
-0.5212817192077637,
0.2401803582906723,
2.05999493598938,
0.34844598174095154,
-0.8826220631599426,
0.17228449881076813,
-0.8976320028305054,
2.2997026443481445,
1.5531480312347412,
1.2765196561813354,
0.03909166529774666,
-1.0504862070083618,
0.7061745524406433,
0.01715841516852379,
-0.33956149220466614,
0.7457446455955505,
0.39417529106140137,
-0.42570820450782776,
-1.4341306686401367,
0.7448663711547852,
0.8960453271865845,
-0.8266399502754211,
-0.9931635856628418,
-0.014864271506667137,
-0.7361741662025452,
1.078987717628479,
0.8124682903289795,
0.5154717564582825,
0.29442131519317627,
1.7377947568893433,
0.878516435623169,
-0.6311258673667908,
0.5027088522911072,
0.4659114480018616,
-0.028226878494024277,
-2.026634454727173,
-0.8251873850822449,
0.5178176164627075,
-0.4077836871147156,
-1.4791887998580933,
1.2815475463867188,
-0.9491323828697205,
-1.2653124332427979,
0.6282407641410828,
0.23201903700828552,
1.5063239336013794,
0.2555559575557709,
1.4117454290390015,
2.1001620292663574,
1.1664443016052246,
0.42465972900390625,
1.3999369144439697,
-0.49098819494247437,
-0.5707042813301086,
1.7663099765777588,
-0.351833313703537,
0.2832753658294678,
1.1096347570419312,
-0.5675077438354492,
-1.0143672227859497,
-0.5519652962684631,
-1.0784180164337158,
-0.646008312702179,
0.9662356376647949,
0.24558579921722412,
-1.012264370918274,
0.2686322331428528,
1.3222706317901611,
0.19479213654994965,
-0.2964477837085724,
0.6107577085494995,
0.6108309626579285,
-0.7478347420692444,
0.09418148547410965,
-0.853181779384613,
0.5369592905044556,
-0.3027383089065552,
-0.4886460602283478,
0.5569942593574524,
0.4031844139099121,
1.4291632175445557,
-0.03175155445933342,
0.23371702432632446,
1.1073161363601685,
-1.3841612339019775,
1.3624316453933716,
-0.6275617480278015,
-0.023953329771757126,
-2.4457461833953857,
1.4893978834152222,
-0.7183799743652344,
1.6708396673202515,
-2.8653476238250732,
0.5742420554161072,
-0.5951023101806641,
-0.5092977285385132,
0.3852441608905792,
-0.3576529324054718,
0.07919161021709442,
-0.1286882609128952,
-1.2929736375808716,
0.06046539917588234,
-0.5565940141677856,
0.7097866535186768,
1.0133103132247925,
1.2676836252212524,
-1.0127878189086914,
0.07046427577733994,
-1.6854139566421509,
0.0671975165605545,
-0.8976457118988037,
0.33648568391799927,
-1.9515438079833984,
-0.19548523426055908,
-1.6935560703277588,
-2.241246461868286,
-1.3152624368667603,
-0.5320955514907837,
0.9913446307182312,
0.39770543575286865,
-0.910477876663208,
1.4574286937713623,
-0.374982088804245,
-1.8390547037124634,
1.2038402557373047,
-2.118901252746582
] |
https://github.com/huggingface/datasets/issues/4745 | Allow `list_datasets` to include private datasets | Thanks for opening this issue :)
If it can help, I think you can already use `huggingface_hub` to achieve this:
```python
>>> from huggingface_hub import HfApi
>>> [ds_info.id for ds_info in HfApi().list_datasets(use_auth_token=token) if ds_info.private]
['bigscience/xxxx', 'bigscience-catalogue-data/xxxxxxx', ... ]
```
---------
Though the latest versions of `huggingface_hub` that contain this feature are not available on python 3.6, so maybe we should first drop support for python 3.6 (see #4460) to update `list_datasets` in `datasets` as well (or we would have to copy/paste some `huggingface_hub` code) | I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually. | 605 | 84 | Allow `list_datasets` to include private datasets
I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually.
Thanks for opening this issue :)
If it can help, I think you can already use `huggingface_hub` to achieve this:
```python
>>> from huggingface_hub import HfApi
>>> [ds_info.id for ds_info in HfApi().list_datasets(use_auth_token=token) if ds_info.private]
['bigscience/xxxx', 'bigscience-catalogue-data/xxxxxxx', ... ]
```
---------
Though the latest versions of `huggingface_hub` that contain this feature are not available on python 3.6, so maybe we should first drop support for python 3.6 (see #4460) to update `list_datasets` in `datasets` as well (or we would have to copy/paste some `huggingface_hub` code) | [
-1.1037018299102783,
-0.84059077501297,
-0.680528461933136,
1.5731191635131836,
-0.11298666149377823,
-1.2905795574188232,
0.2050311118364334,
-1.0279583930969238,
1.7176964282989502,
-0.8708783984184265,
0.41174137592315674,
-1.6663538217544556,
0.0015177521854639053,
-0.6780994534492493,
-0.7412992119789124,
-0.8763189315795898,
-0.4208003878593445,
-0.70614093542099,
0.9900352358818054,
2.514800786972046,
1.1046178340911865,
-1.3592156171798706,
2.6640443801879883,
0.6039861440658569,
-0.17088769376277924,
-1.0391242504119873,
0.49402916431427,
-0.01178891770541668,
-1.273626446723938,
-0.43973857164382935,
-0.8428807854652405,
-0.08973278105258942,
-0.713545024394989,
-0.5594001412391663,
0.03924327343702316,
0.5690943598747253,
-0.2978459596633911,
-0.40944623947143555,
-0.4591785669326782,
-0.7883118391036987,
0.5135580897331238,
-0.312558650970459,
0.9262210130691528,
-0.3657835125923157,
1.8544620275497437,
-0.5912029147148132,
0.4226554036140442,
0.6938635110855103,
1.3824105262756348,
0.19814692437648773,
-0.0847695842385292,
0.24034897983074188,
0.32916414737701416,
-0.009051458910107613,
0.5405895113945007,
1.1101900339126587,
0.5587706565856934,
0.5221515893936157,
0.6657267808914185,
-2.2835612297058105,
1.3836559057235718,
-1.0458533763885498,
0.3281105160713196,
1.3373247385025024,
-0.9095092415809631,
0.3083904981613159,
-1.7773652076721191,
-0.02555927075445652,
0.5266798138618469,
-2.1912314891815186,
0.18039672076702118,
-1.2862647771835327,
-0.41975700855255127,
1.0601588487625122,
0.35129469633102417,
-1.318832278251648,
0.1633588820695877,
-0.36192452907562256,
1.0367037057876587,
0.5182585716247559,
1.1321321725845337,
-1.7767853736877441,
0.05683387070894241,
-0.3054286241531372,
0.15174682438373566,
-1.2421704530715942,
-1.458046793937683,
0.558503270149231,
0.6299766898155212,
0.6008683443069458,
-0.11666137725114822,
0.974728524684906,
-1.0471454858779907,
0.7704353928565979,
-0.9472126364707947,
-1.7026665210723877,
-1.3367027044296265,
-2.238990306854248,
-2.434093713760376,
0.7124112248420715,
-0.47642070055007935,
-0.47428417205810547,
1.9685570001602173,
-1.0308655500411987,
-1.7327685356140137,
1.1470071077346802,
0.35358184576034546,
-0.030772261321544647,
2.3458807468414307,
0.23963375389575958,
-0.7161044478416443,
0.45907431840896606,
-0.7506906986236572,
0.7392938137054443,
-0.4058070182800293,
1.3091528415679932,
0.4881148934364319,
-1.1904571056365967,
1.5864083766937256,
-0.37381529808044434,
0.5676396489143372,
-0.7112586498260498,
-0.5255082249641418,
-0.7470095157623291,
0.2921243906021118,
1.8806320428848267,
-0.264098584651947,
1.5465409755706787,
-0.31433433294296265,
-1.5092248916625977,
-1.550294280052185,
0.9543966054916382,
0.4305883049964905,
-0.7804553508758545,
0.10549603402614594,
-0.4419398903846741,
0.07034202665090561,
-0.05036336928606033,
1.1919636726379395,
1.2356066703796387,
0.6805123090744019,
-0.31328821182250977,
-0.7425683736801147,
0.19497084617614746,
-0.01249783206731081,
-0.6673325896263123,
-1.823272705078125,
-0.3269856572151184,
0.1715543270111084,
0.6501321196556091,
-1.050563931465149,
1.8218978643417358,
0.906159520149231,
1.8642948865890503,
1.0805033445358276,
-0.2792431116104126,
1.4635595083236694,
0.02076639235019684,
1.856914758682251,
-0.4545774459838867,
0.610480546951294,
-0.3938975930213928,
-1.2077734470367432,
0.8337554335594177,
-0.32673823833465576,
-1.9873632192611694,
-0.7301808595657349,
-0.749462366104126,
-0.17817534506320953,
-0.7552028298377991,
1.0290149450302124,
-0.21831445395946503,
-1.4562338590621948,
0.21785855293273926,
-0.6532924175262451,
0.21671529114246368,
-1.1719093322753906,
0.3698968291282654,
0.7611669301986694,
-0.7266063094139099,
0.09218405932188034,
-0.28914451599121094,
-1.3169150352478027,
-0.5423898100852966,
0.310666024684906,
1.815008282661438,
-0.7292577028274536,
0.9639614224433899,
0.993270754814148,
-0.6792263984680176,
-0.05228017643094063,
0.33942556381225586,
-0.40423154830932617,
0.8527097105979919,
-1.0043792724609375,
-0.43090546131134033,
1.2502045631408691,
-0.26008790731430054,
-0.6095950603485107,
1.4811033010482788,
0.7096344828605652,
-0.95502769947052,
-0.1347704827785492,
-0.2795252203941345,
-0.896754264831543,
0.06206035614013672,
-1.6023868322372437,
-0.060734182596206665,
0.43305736780166626,
-1.5330325365066528,
-0.45177698135375977,
-0.11830875277519226,
1.322818398475647,
-0.19547347724437714,
1.3701469898223877,
-0.28176409006118774,
-0.12156832963228226,
-0.34641116857528687,
-0.4341607689857483,
0.1613549143075943,
-0.1405877321958542,
-0.637932300567627,
0.24602048099040985,
-0.6886484026908875,
0.37432312965393066,
1.3826111555099487,
0.2706044316291809,
0.027194757014513016,
0.4624326825141907,
1.1528804302215576,
0.32802456617355347,
-0.0343828946352005,
-0.8598774075508118,
-1.5896176099777222,
2.0195224285125732,
-1.4582960605621338,
2.062685012817383,
0.7414824962615967,
-0.040350183844566345,
-1.7272241115570068,
-1.822597622871399,
1.4780409336090088,
1.1577080488204956,
2.3456759452819824,
0.5252759456634521,
0.42607587575912476,
-0.8337944746017456,
-0.6628949046134949,
0.39240598678588867,
-0.9675590395927429,
-0.7210432291030884,
0.11447827517986298,
2.358783483505249,
1.7404495477676392,
-0.528542697429657,
-0.19883938133716583,
-1.051249623298645,
1.4032166004180908,
-0.2272902876138687,
0.23446813225746155,
2.011888027191162,
-0.2742038369178772,
-1.1218165159225464,
1.3371176719665527,
-2.393535614013672,
0.1577945202589035,
2.0199034214019775,
0.19348379969596863,
0.03846663236618042,
-1.3568819761276245,
-0.6332356333732605,
-0.21140745282173157,
-0.39660781621932983,
-1.2952654361724854,
0.566067636013031,
-0.22583654522895813,
-0.7379512190818787,
-1.3850289583206177,
0.19090096652507782,
-1.158539056777954,
-1.6018575429916382,
0.29493266344070435,
1.844007968902588,
2.083526372909546,
-0.6494428515434265,
1.610501766204834,
-0.3016965985298157,
0.23562556505203247,
1.2216302156448364,
1.2981096506118774,
3.143728256225586,
1.81016206741333,
-1.2765443325042725,
0.6162741184234619,
-0.1305895447731018,
-0.5769597291946411,
1.2385528087615967,
-1.0751817226409912,
1.2957216501235962,
-0.24166344106197357,
-1.251836895942688,
-1.3464412689208984,
0.9265087842941284,
0.5225687026977539,
0.07504883408546448,
-0.548798680305481,
1.1373134851455688,
0.029684558510780334,
1.2835502624511719,
0.5603534579277039,
-0.35850250720977783,
0.6076180338859558,
-0.5107994675636292,
-0.4883188009262085,
1.5573887825012207,
0.18715830147266388,
-1.3881489038467407,
-2.310124635696411,
-0.1663372963666916,
-0.867348313331604,
0.017609765753149986,
-0.6653900146484375,
-0.9667150974273682,
1.539288878440857,
0.42795222997665405,
-1.2880775928497314,
-0.2530409097671509,
-0.32910728454589844,
-0.5800288319587708,
2.6695168018341064,
-1.300916075706482,
-0.23628512024879456,
-1.023313283920288,
-0.714297354221344,
1.6760340929031372,
-1.206498622894287,
-0.1690557599067688,
-1.0023611783981323,
-0.5754629373550415,
-1.355244755744934,
-0.5860933661460876,
-0.018631745129823685,
-0.9064769744873047,
0.8251640200614929,
0.1468757688999176,
-1.243904709815979,
-0.32763588428497314,
-0.870280921459198,
0.8967694044113159,
-0.227638378739357,
0.24161173403263092,
1.8402637243270874,
0.34966230392456055,
-0.42987316846847534,
0.7483593821525574,
1.1695455312728882,
0.6613897681236267,
-0.5276585221290588,
0.23300206661224365,
-0.6744456887245178,
0.31312984228134155,
-1.3366544246673584,
0.2911376357078552,
-2.917332172393799,
0.686611533164978,
0.03192080929875374,
-0.05914493277668953,
-0.017531856894493103,
-1.3763868808746338,
0.9823216795921326,
2.5542235374450684,
-1.2346278429031372,
0.41817551851272583,
0.3581475615501404,
1.1249656677246094,
-1.608165979385376,
0.1789996474981308,
-0.46900618076324463,
2.161156177520752,
0.12401920557022095,
1.198447585105896,
-0.4386999011039734,
-2.3796775341033936,
0.4997563362121582,
-1.349179983139038,
-1.1627511978149414,
0.893193244934082,
-0.8376617431640625,
0.001909368671476841,
-1.362449288368225,
-0.17093078792095184,
-0.9216331243515015,
-1.2153520584106445,
0.806240975856781,
0.14070840179920197,
0.5071654319763184,
-0.5936852097511292,
0.28348809480667114,
-2.213658571243286,
-1.3566882610321045,
-0.24109555780887604,
-0.9657766819000244,
0.4539419412612915,
-0.3147338628768921,
0.6797396540641785,
-0.19380222260951996,
0.061029039323329926,
0.3198409080505371,
1.4503207206726074,
3.3973753452301025,
0.19970273971557617,
0.34855926036834717,
-0.2594074308872223,
-0.8735745549201965,
1.4032554626464844,
0.9631677269935608,
-0.17886795103549957,
-0.5822569131851196,
-0.9550583958625793,
1.2584137916564941,
1.9446957111358643,
0.9973684549331665,
0.11115902662277222,
-0.8329340219497681,
-0.7153319120407104,
-0.06469575315713882,
0.1095236986875534,
0.4895755648612976,
0.8132723569869995,
0.11089526861906052,
0.14954698085784912,
1.305996060371399,
1.1688348054885864,
-0.4191392660140991,
0.3742169737815857,
-0.7545716166496277,
-0.35198020935058594,
0.5423229336738586,
0.30258870124816895,
-0.0008683940395712852,
0.3600192666053772,
-0.9108182787895203,
-0.15875674784183502,
-0.4016197919845581,
-0.9440448880195618,
-0.7320736050605774,
-0.4818059206008911,
-0.372306227684021,
1.6453192234039307,
-0.06295430660247803,
-0.5388302206993103,
0.0035067545250058174,
-0.7672503590583801,
-0.15794362127780914,
-1.0520492792129517,
0.2215457260608673,
-0.12234527617692947,
-0.08673186600208282,
-0.1672721654176712,
1.7425521612167358,
-0.9375594854354858,
-2.1016552448272705,
0.16449092328548431,
0.2125358134508133,
-0.3451690077781677,
0.12286506593227386,
1.710553765296936,
0.47507959604263306,
1.3887320756912231,
1.4253795146942139,
1.0423365831375122,
-0.6756226420402527,
-1.25336492061615,
0.7085857391357422,
1.005661964416504,
-1.412757158279419,
0.9675098657608032,
-0.005829220172017813,
-0.4978295564651489,
0.6712276935577393,
1.2870694398880005,
0.5267195105552673,
-1.9905039072036743,
0.6924295425415039,
-1.0322726964950562,
0.8047541379928589,
0.6696023941040039,
0.698127269744873,
0.2308376580476761,
0.8404797315597534,
-1.2065367698669434,
-1.1820799112319946,
-0.6539950370788574,
-0.7357053160667419,
1.9425294399261475,
-0.25129610300064087,
0.5537465214729309,
-0.15385152399539948,
-1.4033684730529785,
-0.1424010843038559,
0.8065642714500427,
0.42653656005859375,
-0.4521118998527527,
0.7770488858222961,
-0.6647842526435852,
-0.94343501329422,
-1.3364458084106445,
-0.39545077085494995,
-1.0788710117340088,
-0.9168031215667725,
1.0667015314102173,
0.8375809788703918,
0.33853262662887573,
1.8257185220718384,
0.6792131066322327,
0.2633984684944153,
-2.579343557357788,
0.795303225517273,
0.3290563225746155,
-0.16438277065753937,
0.8698785305023193,
0.3864706754684448,
1.1290881633758545,
-0.03043024055659771,
0.6518316864967346,
-2.429471254348755,
2.279808521270752,
-0.18474078178405762,
0.6810972690582275,
0.0370674654841423,
-0.14854520559310913,
1.0681073665618896,
0.47989600896835327,
0.49607980251312256,
-1.1770304441452026,
0.7422763109207153,
-0.5757914185523987,
1.193353533744812,
0.8931976556777954,
-0.8803294897079468,
-0.03444383293390274,
1.3579527139663696,
0.460330069065094,
-0.5201382040977478,
-0.9834108948707581,
-0.9772214889526367,
0.8795846104621887,
1.7128393650054932,
0.0006582336500287056,
-0.1011003851890564,
0.8484780788421631,
0.7146798372268677,
-1.300052523612976,
0.14806367456912994,
-0.6222677826881409,
-0.8119983077049255,
1.6637495756149292,
2.0563220977783203,
-0.17983578145503998,
-0.10293447971343994,
-0.767166793346405,
-1.19817054271698,
0.7845420241355896,
0.05423826724290848,
-0.006143647711724043,
0.5792208313941956,
-0.6420993208885193,
1.1366132497787476,
0.9556018710136414,
0.8831865191459656,
0.20467537641525269,
0.23717951774597168,
0.37127798795700073,
-0.24332794547080994,
-1.1505544185638428,
-0.26575571298599243,
-1.1038620471954346,
-2.6084647178649902,
0.4772917628288269,
-0.2652086019515991,
-1.4321012496948242,
0.02059486322104931,
-0.9912689924240112,
0.8222213387489319,
-0.6157263517379761,
-1.1755496263504028,
-1.5299367904663086,
0.23758751153945923,
-0.029257802292704582,
0.8964500427246094,
-1.6170217990875244,
-0.0320369228720665,
1.1945500373840332,
0.8793811798095703,
-0.7233816981315613,
1.0562801361083984,
0.2630917429924011,
0.9448551535606384,
0.8819208741188049,
-0.42889636754989624,
0.5826142430305481,
0.14526750147342682,
-1.395614504814148,
0.511570930480957,
1.1450974941253662,
0.1096961498260498,
1.3059026002883911,
-0.5397363305091858,
-0.015333780087530613,
0.3652852177619934,
-0.5003595352172852,
-0.514893114566803,
-0.583251953125,
0.6275246143341064,
0.08069056272506714,
-0.843639075756073,
0.08804058283567429,
-0.08781496435403824,
-0.29356348514556885,
0.21467220783233643,
-1.5854817628860474,
-0.13634663820266724,
-0.3722527027130127,
-0.5992945432662964,
-1.2520087957382202,
-0.1191612258553505,
1.433916449546814,
-0.6679808497428894,
-0.250641793012619,
0.5226755738258362,
0.42320430278778076,
0.5379000902175903,
0.5765396952629089,
-0.6414566040039062,
-0.3228111267089844,
-0.27588385343551636,
-0.39296674728393555,
0.331234335899353,
1.3220930099487305,
-0.1607988178730011,
-0.9040446281433105,
0.7430611848831177,
-0.4318198561668396,
0.09308894723653793,
1.980281114578247,
0.0777941346168518,
-0.9172310829162598,
0.31085026264190674,
-0.7017174959182739,
1.9732004404067993,
1.8165143728256226,
1.321895718574524,
-0.11501692980527878,
-1.0568941831588745,
0.6719971895217896,
-0.4082605838775635,
-0.39507514238357544,
0.9575122594833374,
0.33853864669799805,
-0.21681126952171326,
-1.4358373880386353,
0.6969302892684937,
1.2458378076553345,
-0.7402414679527283,
-0.8125964999198914,
0.16866537928581238,
-0.8600264191627502,
1.0530953407287598,
0.667341411113739,
0.368988573551178,
0.2753726840019226,
1.5914249420166016,
0.6683745384216309,
-0.4015151858329773,
0.5376683473587036,
0.4829491376876831,
-0.214827299118042,
-2.042301654815674,
-1.23908531665802,
0.39279210567474365,
-0.5473992228507996,
-1.6534734964370728,
1.3666489124298096,
-1.1829679012298584,
-0.9939402937889099,
0.5918492674827576,
-0.026245106011629105,
1.4093413352966309,
0.3395344614982605,
1.6330212354660034,
2.0182077884674072,
0.8683499097824097,
0.3857213854789734,
1.3153132200241089,
-0.2213081270456314,
-0.4180062413215637,
1.7672642469406128,
-0.5148311257362366,
0.5189018845558167,
1.174700140953064,
-0.38124674558639526,
-1.080735206604004,
-0.8228537440299988,
-1.172064185142517,
-0.695641815662384,
1.155497670173645,
0.12005560100078583,
-1.0863580703735352,
0.3386695384979248,
1.6231776475906372,
0.05145888775587082,
-0.21524031460285187,
0.7220495939254761,
0.3585362434387207,
-0.7968977689743042,
0.03596429154276848,
-0.9317864775657654,
0.5576575994491577,
-0.2339111566543579,
-0.3304430842399597,
0.3868444561958313,
0.46529901027679443,
1.2641515731811523,
-0.016530800610780716,
0.16094531118869781,
1.1677672863006592,
-1.4336025714874268,
1.33706796169281,
-0.7600276470184326,
0.30056750774383545,
-2.3765130043029785,
1.46425199508667,
-0.7386438250541687,
1.9223225116729736,
-2.6217339038848877,
0.38327568769454956,
-0.6032575368881226,
-0.5105897784233093,
0.28285378217697144,
-0.24819821119308472,
0.15575315058231354,
-0.17602945864200592,
-1.1316615343093872,
-0.08679948002099991,
-0.6920627951622009,
0.5860698819160461,
1.1157981157302856,
1.3158578872680664,
-1.1020119190216064,
-0.33415907621383667,
-1.6617425680160522,
-0.11993856728076935,
-0.6043124794960022,
0.2245759516954422,
-1.913036823272705,
-0.16842904686927795,
-1.9210439920425415,
-2.4613707065582275,
-1.3300299644470215,
-0.7436618208885193,
1.096807837486267,
0.15886694192886353,
-0.9116257429122925,
1.2042951583862305,
-0.38187962770462036,
-1.790297269821167,
1.0958428382873535,
-2.1211326122283936
] |
https://github.com/huggingface/datasets/issues/4745 | Allow `list_datasets` to include private datasets | Great, thanks @lhoestq the workaround works! I think it would be intuitive to have the support directly in `datasets` but it makes sense to wait given that the workaround exists :) | I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually. | 605 | 31 | Allow `list_datasets` to include private datasets
I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually.
Great, thanks @lhoestq the workaround works! I think it would be intuitive to have the support directly in `datasets` but it makes sense to wait given that the workaround exists :) | [
-1.1019972562789917,
-0.8644056916236877,
-0.8601914048194885,
1.44269597530365,
-0.1413186937570572,
-1.2624977827072144,
0.1694732904434204,
-1.1466926336288452,
1.791619896888733,
-0.914015531539917,
0.3714328110218048,
-1.6381365060806274,
0.03080621175467968,
-0.6792781352996826,
-0.762265682220459,
-0.9036936163902283,
-0.4440683424472809,
-0.7914055585861206,
0.9688180685043335,
2.524656295776367,
1.0313609838485718,
-1.3371042013168335,
2.6927969455718994,
0.6166574954986572,
-0.08200923353433609,
-1.005858302116394,
0.5984598398208618,
0.03987882286310196,
-1.242217779159546,
-0.5126784443855286,
-0.9077327251434326,
-0.13246184587478638,
-0.6426575779914856,
-0.6015349626541138,
-0.022280892357230186,
0.5604708790779114,
-0.3308893144130707,
-0.3615613281726837,
-0.5170774459838867,
-0.8140947818756104,
0.4961245357990265,
-0.35362860560417175,
1.0292755365371704,
-0.45036306977272034,
1.980359673500061,
-0.45879361033439636,
0.3253476619720459,
0.7663431763648987,
1.4597653150558472,
0.10015613585710526,
-0.09283701330423355,
0.15403085947036743,
0.33752748370170593,
-0.009586980566382408,
0.4336244463920593,
1.0420899391174316,
0.5382372140884399,
0.6111480593681335,
0.6882625222206116,
-2.2189698219299316,
1.4141038656234741,
-1.0466896295547485,
0.3765914738178253,
1.3949273824691772,
-0.9468294978141785,
0.32860347628593445,
-1.7668662071228027,
-0.032332584261894226,
0.5149120092391968,
-2.223177671432495,
0.22010736167430878,
-1.2311979532241821,
-0.5061349868774414,
1.0633454322814941,
0.2766774594783783,
-1.2862424850463867,
0.22563278675079346,
-0.42726948857307434,
0.9867115616798401,
0.5948675870895386,
1.1887214183807373,
-1.7881091833114624,
0.1373194307088852,
-0.35230204463005066,
-0.0042555988766252995,
-1.3787155151367188,
-1.4170997142791748,
0.5893046259880066,
0.5634556412696838,
0.519100546836853,
-0.08049900084733963,
0.9678325653076172,
-0.961162269115448,
0.7382187247276306,
-0.8547806143760681,
-1.657507061958313,
-1.2845293283462524,
-2.146756887435913,
-2.4058849811553955,
0.7026626467704773,
-0.45441311597824097,
-0.4786081314086914,
1.9719552993774414,
-1.020726203918457,
-1.7046858072280884,
1.1687250137329102,
0.31228572130203247,
-0.01695232093334198,
2.331284284591675,
0.2545280456542969,
-0.5698493123054504,
0.3163941502571106,
-0.6783267259597778,
0.8657202124595642,
-0.36092835664749146,
1.333674669265747,
0.5367509126663208,
-1.1848583221435547,
1.6335417032241821,
-0.336620956659317,
0.5852044820785522,
-0.665179967880249,
-0.5311625003814697,
-0.8539214730262756,
0.33193621039390564,
1.8600568771362305,
-0.3184959590435028,
1.5785733461380005,
-0.40494561195373535,
-1.6090924739837646,
-1.5928142070770264,
0.9955483078956604,
0.3983147442340851,
-0.765588641166687,
0.08218198269605637,
-0.440673291683197,
0.0106456708163023,
-0.10185723006725311,
1.317387580871582,
1.1656129360198975,
0.6070635318756104,
-0.27739742398262024,
-0.7980630993843079,
0.18904924392700195,
0.01586184836924076,
-0.6647002696990967,
-1.8426094055175781,
-0.4095569849014282,
0.19462737441062927,
0.6484943628311157,
-1.015235185623169,
1.7698960304260254,
0.9525634050369263,
1.8371305465698242,
1.0164161920547485,
-0.2670876085758209,
1.4153474569320679,
-0.03133007511496544,
1.8556398153305054,
-0.49953213334083557,
0.5888491272926331,
-0.3141382932662964,
-1.148628830909729,
0.9581652879714966,
-0.32090625166893005,
-1.9780752658843994,
-0.8701151609420776,
-0.8259574770927429,
-0.2143750935792923,
-0.6632633805274963,
1.0577855110168457,
-0.3624885380268097,
-1.3579316139221191,
0.20017679035663605,
-0.5678043961524963,
0.10015761852264404,
-1.141787052154541,
0.39131981134414673,
0.7364205718040466,
-0.7598236799240112,
0.08453676104545593,
-0.27281618118286133,
-1.3013315200805664,
-0.5658583641052246,
0.27639228105545044,
1.9124937057495117,
-0.732223391532898,
0.9789959788322449,
0.961647093296051,
-0.7800808548927307,
-0.050142668187618256,
0.32368171215057373,
-0.4167488217353821,
0.8126795291900635,
-1.0834357738494873,
-0.36953291296958923,
1.2690244913101196,
-0.26836007833480835,
-0.6270771026611328,
1.544836163520813,
0.6972496509552002,
-0.9647524952888489,
-0.1119898334145546,
-0.3286987841129303,
-0.9199779033660889,
0.08134078234434128,
-1.5277990102767944,
-0.1168731227517128,
0.3735058605670929,
-1.5020109415054321,
-0.5265251398086548,
-0.10909134149551392,
1.2577487230300903,
-0.22790935635566711,
1.3419487476348877,
-0.2974977195262909,
-0.2835037112236023,
-0.37079110741615295,
-0.42489275336265564,
0.17373451590538025,
-0.05238838493824005,
-0.6704063415527344,
0.26772141456604004,
-0.7700908780097961,
0.4315888583660126,
1.3663606643676758,
0.3699774444103241,
0.037130653858184814,
0.5631839036941528,
1.0863970518112183,
0.3439294397830963,
0.0433783158659935,
-0.9158250689506531,
-1.5470397472381592,
1.9560643434524536,
-1.4425748586654663,
1.9218511581420898,
0.7071133852005005,
-0.05561090260744095,
-1.73028564453125,
-1.7433539628982544,
1.4875327348709106,
1.203434705734253,
2.213592052459717,
0.5815139412879944,
0.39236578345298767,
-0.7634743452072144,
-0.6589897871017456,
0.4783727526664734,
-1.100447416305542,
-0.7065016627311707,
0.15011166036128998,
2.3154542446136475,
1.746032476425171,
-0.5784781575202942,
-0.2639465630054474,
-1.0188387632369995,
1.3229801654815674,
-0.17939941585063934,
0.19534669816493988,
2.0421528816223145,
-0.4188689887523651,
-1.156599760055542,
1.2420427799224854,
-2.405729055404663,
0.14524142444133759,
1.9291672706604004,
0.25915661454200745,
0.07703994959592819,
-1.423782467842102,
-0.6081438064575195,
-0.1510177105665207,
-0.3941774368286133,
-1.2802717685699463,
0.6885804533958435,
-0.23689450323581696,
-0.7643359303474426,
-1.4406825304031372,
0.30524125695228577,
-1.2215156555175781,
-1.585225224494934,
0.34103262424468994,
1.8987317085266113,
2.088776111602783,
-0.5587853193283081,
1.6450852155685425,
-0.2822290062904358,
0.2640625834465027,
1.2084823846817017,
1.298772931098938,
3.143582820892334,
1.806176781654358,
-1.190365195274353,
0.5757889151573181,
-0.003671223297715187,
-0.5720404386520386,
1.2044931650161743,
-0.9965773224830627,
1.3331351280212402,
-0.23351584374904633,
-1.1439204216003418,
-1.3829725980758667,
0.8740188479423523,
0.4891805052757263,
0.12659813463687897,
-0.5213251113891602,
1.2275168895721436,
-0.045425496995449066,
1.2654781341552734,
0.5547826886177063,
-0.4646807909011841,
0.6296557784080505,
-0.5283181667327881,
-0.4412572979927063,
1.606933355331421,
0.1619417816400528,
-1.4052022695541382,
-2.280442476272583,
-0.20754222571849823,
-0.6737092733383179,
0.055361732840538025,
-0.6161143779754639,
-0.9169492125511169,
1.5720417499542236,
0.417741984128952,
-1.354135513305664,
-0.31291621923446655,
-0.372694194316864,
-0.6445984840393066,
2.6419763565063477,
-1.3102041482925415,
-0.25099900364875793,
-0.9539512991905212,
-0.6641718149185181,
1.7107561826705933,
-1.2671107053756714,
-0.15197762846946716,
-1.0080816745758057,
-0.6222283244132996,
-1.3886710405349731,
-0.5620465874671936,
0.0024701477959752083,
-0.9424576759338379,
0.9095178842544556,
0.08510704338550568,
-1.0960549116134644,
-0.28413036465644836,
-0.8579210638999939,
0.8375837802886963,
-0.24185754358768463,
0.34455186128616333,
1.8688056468963623,
0.5006662011146545,
-0.42986002564430237,
0.6708547472953796,
1.1762317419052124,
0.690199613571167,
-0.6046376824378967,
0.30109843611717224,
-0.7227787375450134,
0.21919603645801544,
-1.3280950784683228,
0.34426966309547424,
-2.9682931900024414,
0.6431186199188232,
-0.03985647112131119,
-0.11521016061306,
0.07929498702287674,
-1.3272349834442139,
1.0189541578292847,
2.564663887023926,
-1.316505789756775,
0.27374592423439026,
0.2854480445384979,
1.1194305419921875,
-1.5742489099502563,
0.30065199732780457,
-0.3979055881500244,
2.0267906188964844,
0.17538176476955414,
1.179962396621704,
-0.44093990325927734,
-2.281716823577881,
0.5317873954772949,
-1.3652194738388062,
-1.2876498699188232,
0.8922227025032043,
-0.7540468573570251,
-0.0214092917740345,
-1.460279941558838,
-0.14266885817050934,
-0.9199720025062561,
-1.2720564603805542,
0.9341609477996826,
0.22526027262210846,
0.45382675528526306,
-0.5385717153549194,
0.295828253030777,
-2.1517574787139893,
-1.3837822675704956,
-0.2507297396659851,
-0.8701123595237732,
0.45988407731056213,
-0.29490622878074646,
0.6718430519104004,
-0.25420162081718445,
0.1365528255701065,
0.353458434343338,
1.4480712413787842,
3.446558952331543,
0.2052794247865677,
0.3487212359905243,
-0.24411161243915558,
-0.8064244389533997,
1.4905548095703125,
1.0273423194885254,
-0.03855361044406891,
-0.5585614442825317,
-0.9836352467536926,
1.1823142766952515,
2.0002787113189697,
0.950425386428833,
0.08424466103315353,
-0.8107267618179321,
-0.5721135139465332,
-0.16229590773582458,
0.12793061137199402,
0.4218052625656128,
0.7622653245925903,
0.09521539509296417,
0.09995727986097336,
1.3404792547225952,
1.2062969207763672,
-0.4226340651512146,
0.28921541571617126,
-0.6715871691703796,
-0.37077218294143677,
0.5831758379936218,
0.3466051518917084,
0.0011030873283743858,
0.3498920500278473,
-0.8404781222343445,
-0.1281544417142868,
-0.4735787808895111,
-1.0670756101608276,
-0.6630058288574219,
-0.4665140211582184,
-0.3350676894187927,
1.6403679847717285,
-0.02130725234746933,
-0.6228771209716797,
-0.042806804180145264,
-0.8506397008895874,
-0.13373546302318573,
-1.1376348733901978,
0.17224179208278656,
-0.1585695892572403,
-0.1939614862203598,
-0.13867157697677612,
1.7752912044525146,
-1.0816344022750854,
-2.0723254680633545,
0.20721401274204254,
0.18172523379325867,
-0.34567806124687195,
0.18341678380966187,
1.6033774614334106,
0.4536021053791046,
1.3967519998550415,
1.3743975162506104,
0.9801919460296631,
-0.6842730641365051,
-1.282913088798523,
0.7050384283065796,
0.9353316426277161,
-1.5082672834396362,
0.9451813697814941,
0.023155009374022484,
-0.5498329401016235,
0.8186911940574646,
1.2376368045806885,
0.5117435455322266,
-1.9279296398162842,
0.6293566823005676,
-0.9527028799057007,
0.7793064713478088,
0.6331347227096558,
0.6613159775733948,
0.2741018235683441,
0.8909556865692139,
-1.15297269821167,
-1.2390108108520508,
-0.6699075102806091,
-0.6366312503814697,
2.027550220489502,
-0.2187267392873764,
0.567893385887146,
-0.09865517169237137,
-1.3528645038604736,
-0.12757594883441925,
0.7852306365966797,
0.448701411485672,
-0.42940133810043335,
0.7503789663314819,
-0.7126303315162659,
-0.9705278873443604,
-1.4102237224578857,
-0.3716857433319092,
-1.1068644523620605,
-0.9748848676681519,
1.114742636680603,
0.7891114354133606,
0.2766755223274231,
1.8492169380187988,
0.6962713003158569,
0.2754833996295929,
-2.566206455230713,
0.7240193486213684,
0.37815922498703003,
-0.10375097393989563,
0.9070872664451599,
0.41003111004829407,
1.0846195220947266,
-0.00998462364077568,
0.6249819397926331,
-2.363007068634033,
2.3199663162231445,
-0.23901589214801788,
0.5768029093742371,
0.02514824829995632,
-0.20832636952400208,
1.1575840711593628,
0.5278072953224182,
0.5078699588775635,
-1.234977126121521,
0.6808752417564392,
-0.5301748514175415,
1.1666263341903687,
0.9917455315589905,
-0.8618802428245544,
-0.02632877789437771,
1.4493324756622314,
0.6101012229919434,
-0.5422856211662292,
-0.8827207088470459,
-1.011198878288269,
0.9157888889312744,
1.6883656978607178,
-0.018760133534669876,
-0.1005721241235733,
0.8025227785110474,
0.6781306266784668,
-1.2347522974014282,
0.20143306255340576,
-0.6617842316627502,
-0.8327469825744629,
1.5512139797210693,
2.0082476139068604,
-0.1494143009185791,
-0.09757392108440399,
-0.788429856300354,
-1.1470317840576172,
0.8096315264701843,
0.07653993368148804,
0.02741125039756298,
0.5029305815696716,
-0.7138195633888245,
1.085970163345337,
1.0383332967758179,
0.8335771560668945,
0.13254550099372864,
0.3602575957775116,
0.43670496344566345,
-0.1687091439962387,
-1.0850892066955566,
-0.2731544077396393,
-1.0613319873809814,
-2.606818437576294,
0.513145387172699,
-0.3568495810031891,
-1.416029691696167,
-0.1023872122168541,
-1.076145052909851,
0.873936116695404,
-0.5320104360580444,
-1.1038113832473755,
-1.6670945882797241,
0.1894407421350479,
-0.00017954129725694656,
0.956889808177948,
-1.587416410446167,
-0.044298551976680756,
1.192959189414978,
0.8517387509346008,
-0.8048990368843079,
1.085497260093689,
0.14848145842552185,
0.9991843104362488,
0.7871366739273071,
-0.500609278678894,
0.5355962514877319,
0.10316610336303711,
-1.4125747680664062,
0.492014080286026,
1.0507142543792725,
0.05170861631631851,
1.3196641206741333,
-0.5266395211219788,
0.04764293134212494,
0.4211488664150238,
-0.5246580243110657,
-0.5169874429702759,
-0.5470331311225891,
0.6573191285133362,
0.11267953366041183,
-0.7260255813598633,
0.15658852458000183,
-0.12249226123094559,
-0.33306998014450073,
0.20984995365142822,
-1.5552247762680054,
-0.30115658044815063,
-0.42941632866859436,
-0.582159698009491,
-1.2572976350784302,
-0.0849912241101265,
1.444853663444519,
-0.5965050458908081,
-0.24954336881637573,
0.4732194244861603,
0.5765201449394226,
0.4897783398628235,
0.5121666193008423,
-0.6878148317337036,
-0.35204920172691345,
-0.28796541690826416,
-0.33132338523864746,
0.2905851900577545,
1.3723795413970947,
-0.26961496472358704,
-0.915463387966156,
0.7735627293586731,
-0.34627649188041687,
0.07019726932048798,
2.0162837505340576,
0.1031312644481659,
-0.9646307826042175,
0.2984843850135803,
-0.7338867783546448,
2.0084545612335205,
1.7719786167144775,
1.3066399097442627,
-0.13201364874839783,
-0.909582257270813,
0.6270242929458618,
-0.34583696722984314,
-0.3242894113063812,
1.0230714082717896,
0.3499273359775543,
-0.15523271262645721,
-1.4893583059310913,
0.708314836025238,
1.2620854377746582,
-0.7646945118904114,
-0.7961054444313049,
0.11336638778448105,
-0.8801112771034241,
0.8979462385177612,
0.633263349533081,
0.4673320949077606,
0.2621704936027527,
1.5391924381256104,
0.6062280535697937,
-0.42351284623146057,
0.50011146068573,
0.49943599104881287,
-0.08701863884925842,
-2.080871343612671,
-1.2313419580459595,
0.4094427227973938,
-0.558212399482727,
-1.614742636680603,
1.3766584396362305,
-1.1121058464050293,
-0.9525308609008789,
0.6284540891647339,
0.0019682627171278,
1.4744709730148315,
0.34785759449005127,
1.597119927406311,
2.024348020553589,
0.7947234511375427,
0.3153688609600067,
1.3918819427490234,
-0.1586998552083969,
-0.4004754424095154,
1.8004357814788818,
-0.5111199617385864,
0.43607065081596375,
1.18388032913208,
-0.3666656017303467,
-1.0410393476486206,
-0.7350144982337952,
-1.104515552520752,
-0.6290135979652405,
1.1701892614364624,
0.13034237921237946,
-1.186655879020691,
0.2652212679386139,
1.574141263961792,
0.10060061514377594,
-0.20376746356487274,
0.6209921836853027,
0.346915602684021,
-0.8099692463874817,
0.05392394959926605,
-0.9180335402488708,
0.6015916466712952,
-0.2559397220611572,
-0.38023725152015686,
0.44712287187576294,
0.4614585041999817,
1.3052303791046143,
-0.10503195226192474,
0.15292631089687347,
1.1917866468429565,
-1.4097399711608887,
1.368023157119751,
-0.6106022596359253,
0.2502649128437042,
-2.3851897716522217,
1.484126329421997,
-0.6680526733398438,
1.9750678539276123,
-2.6347382068634033,
0.3045886754989624,
-0.6309468746185303,
-0.506259024143219,
0.3152611553668976,
-0.23273226618766785,
0.14199768006801605,
-0.22669804096221924,
-1.0692020654678345,
-0.09414944052696228,
-0.6220214366912842,
0.6171611547470093,
1.2029110193252563,
1.2888078689575195,
-1.1066783666610718,
-0.3948676288127899,
-1.6731915473937988,
-0.17056597769260406,
-0.6348053216934204,
0.28891894221305847,
-2.042897939682007,
-0.24445940554141998,
-1.8801381587982178,
-2.4951326847076416,
-1.4054304361343384,
-0.6620867848396301,
1.148630142211914,
0.18620088696479797,
-0.9313507676124573,
1.2291545867919922,
-0.35805976390838623,
-1.798789143562317,
1.0481541156768799,
-2.1016852855682373
] |
https://github.com/huggingface/datasets/issues/4745 | Allow `list_datasets` to include private datasets | i also think that going forward we should replace more and more implementations inside datasets with the corresponding ones from `huggingface_hub` (same as we're doing in `transformers`) | I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually. | 605 | 27 | Allow `list_datasets` to include private datasets
I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually.
i also think that going forward we should replace more and more implementations inside datasets with the corresponding ones from `huggingface_hub` (same as we're doing in `transformers`) | [
-1.1494624614715576,
-0.9247153401374817,
-0.8394404053688049,
1.4244548082351685,
-0.10155466943979263,
-1.2941319942474365,
0.2308090329170227,
-1.163558840751648,
1.8128504753112793,
-0.9724843502044678,
0.39570513367652893,
-1.6157399415969849,
-0.01449967734515667,
-0.6709303259849548,
-0.7481321096420288,
-0.8704845309257507,
-0.38817429542541504,
-0.7774030566215515,
0.9196228981018066,
2.505638360977173,
1.0867407321929932,
-1.3067631721496582,
2.706709861755371,
0.6462087631225586,
-0.11381208896636963,
-1.02056086063385,
0.5472845435142517,
0.04109811782836914,
-1.226022481918335,
-0.47838738560676575,
-0.9180917739868164,
-0.043370120227336884,
-0.6081711053848267,
-0.5533270239830017,
0.008372834883630276,
0.5560274720191956,
-0.3418675363063812,
-0.3924030363559723,
-0.5016087293624878,
-0.8373962044715881,
0.4845266342163086,
-0.3442462682723999,
1.0399463176727295,
-0.478208988904953,
1.9027221202850342,
-0.48722729086875916,
0.29645973443984985,
0.7632967829704285,
1.4444143772125244,
0.08587966859340668,
-0.09537797421216965,
0.16556227207183838,
0.3550502061843872,
0.00031625479459762573,
0.44553375244140625,
1.09147310256958,
0.4662003815174103,
0.6027408838272095,
0.7107559442520142,
-2.274182081222534,
1.3677328824996948,
-1.047050952911377,
0.3416181802749634,
1.380922555923462,
-0.8869332671165466,
0.34358909726142883,
-1.779238224029541,
-0.05912886932492256,
0.5061203837394714,
-2.261382818222046,
0.2459309995174408,
-1.268690824508667,
-0.4888658821582794,
1.0165506601333618,
0.3008769154548645,
-1.2497284412384033,
0.18590480089187622,
-0.44008558988571167,
1.0109152793884277,
0.5943065285682678,
1.1810967922210693,
-1.74689781665802,
0.0885375514626503,
-0.3615866005420685,
-0.002135929651558399,
-1.3776936531066895,
-1.384013295173645,
0.5577865242958069,
0.5851840972900391,
0.5417932271957397,
-0.08695467561483383,
1.0471611022949219,
-0.9857503771781921,
0.7363036274909973,
-0.8842726945877075,
-1.655413031578064,
-1.3161022663116455,
-2.180882453918457,
-2.379110097885132,
0.6977949738502502,
-0.47450482845306396,
-0.5387887954711914,
1.9846378564834595,
-1.0151506662368774,
-1.7609117031097412,
1.168962001800537,
0.3172462582588196,
-0.0372607596218586,
2.339046001434326,
0.2547691762447357,
-0.612827479839325,
0.3257591128349304,
-0.6796175837516785,
0.8510220050811768,
-0.3937130570411682,
1.3178300857543945,
0.5083529353141785,
-1.203861117362976,
1.6095601320266724,
-0.37046703696250916,
0.5694789886474609,
-0.6560492515563965,
-0.537631630897522,
-0.8638607859611511,
0.3392638564109802,
1.8315411806106567,
-0.2965507209300995,
1.525569200515747,
-0.42074742913246155,
-1.5531271696090698,
-1.5737227201461792,
0.9482429027557373,
0.39791589975357056,
-0.695127546787262,
0.04205334559082985,
-0.44592124223709106,
0.03341808542609215,
-0.09714485704898834,
1.3004968166351318,
1.1576719284057617,
0.6267064809799194,
-0.28679075837135315,
-0.730819046497345,
0.24232551455497742,
0.035757116973400116,
-0.6612776517868042,
-1.8751115798950195,
-0.3379518687725067,
0.23945653438568115,
0.6048403382301331,
-1.0023298263549805,
1.758421540260315,
0.9646664261817932,
1.8840217590332031,
1.0127818584442139,
-0.20350633561611176,
1.418372392654419,
-0.020221132785081863,
1.8134671449661255,
-0.4612569510936737,
0.6040437817573547,
-0.3130543828010559,
-1.16675865650177,
0.9465814828872681,
-0.34035730361938477,
-1.9867682456970215,
-0.8202135562896729,
-0.8266671895980835,
-0.22552523016929626,
-0.693954586982727,
1.0747592449188232,
-0.36370059847831726,
-1.3965030908584595,
0.17789988219738007,
-0.5603886246681213,
0.11643116921186447,
-1.1339086294174194,
0.35365864634513855,
0.7231022119522095,
-0.747772216796875,
0.07733210921287537,
-0.2936451733112335,
-1.3007614612579346,
-0.5876695513725281,
0.311541348695755,
1.8424932956695557,
-0.735042154788971,
0.9308679699897766,
0.9911006689071655,
-0.786918580532074,
0.01716967299580574,
0.26597797870635986,
-0.434060275554657,
0.7884048223495483,
-1.0163739919662476,
-0.3757822811603546,
1.294116497039795,
-0.2751461863517761,
-0.6363493204116821,
1.5513625144958496,
0.6935110688209534,
-0.9351738691329956,
-0.07929958403110504,
-0.3363754153251648,
-0.91510009765625,
0.04871544614434242,
-1.5026627779006958,
-0.11979109793901443,
0.36471763253211975,
-1.5019173622131348,
-0.4547063112258911,
-0.09783688932657242,
1.2997806072235107,
-0.21522261202335358,
1.3466026782989502,
-0.3176027238368988,
-0.21187329292297363,
-0.3228321671485901,
-0.4504116177558899,
0.1830645054578781,
-0.042047224938869476,
-0.6580718755722046,
0.23653408885002136,
-0.7685370445251465,
0.3760117292404175,
1.343863844871521,
0.3835504651069641,
0.007478819228708744,
0.5563783049583435,
1.0611093044281006,
0.3269294798374176,
-0.014273889362812042,
-0.8954930305480957,
-1.560320496559143,
1.9776724576950073,
-1.4585139751434326,
1.951772928237915,
0.6956470012664795,
-0.03049910068511963,
-1.7266336679458618,
-1.7861247062683105,
1.4566208124160767,
1.1519304513931274,
2.2224886417388916,
0.5481141805648804,
0.36293962597846985,
-0.7727508544921875,
-0.6777068376541138,
0.4595198631286621,
-1.1070820093154907,
-0.6628151535987854,
0.11790493875741959,
2.2981364727020264,
1.7591829299926758,
-0.6068904995918274,
-0.2038542926311493,
-1.0295960903167725,
1.3391691446304321,
-0.19366435706615448,
0.2020997703075409,
2.047071695327759,
-0.40893447399139404,
-1.1014245748519897,
1.3100934028625488,
-2.392563581466675,
0.15037928521633148,
1.943264365196228,
0.2106616348028183,
0.06287240236997604,
-1.3780103921890259,
-0.6095520257949829,
-0.18737325072288513,
-0.3515140116214752,
-1.2675533294677734,
0.6849744319915771,
-0.2501184940338135,
-0.7563003897666931,
-1.4634429216384888,
0.3151237666606903,
-1.2021167278289795,
-1.5988671779632568,
0.37651246786117554,
1.9427860975265503,
2.102447032928467,
-0.5896180272102356,
1.6668051481246948,
-0.31860047578811646,
0.21465739607810974,
1.2088515758514404,
1.2980129718780518,
3.119168519973755,
1.755757451057434,
-1.2220652103424072,
0.5851706266403198,
-0.0022107968106865883,
-0.5886019468307495,
1.2490252256393433,
-0.9949991703033447,
1.353149652481079,
-0.19411054253578186,
-1.1307114362716675,
-1.396000623703003,
0.886483371257782,
0.51788330078125,
0.14703941345214844,
-0.5270963907241821,
1.200268268585205,
-0.0748395323753357,
1.2854275703430176,
0.5563347935676575,
-0.4890660047531128,
0.6487035155296326,
-0.48330792784690857,
-0.41026127338409424,
1.553609848022461,
0.18882234394550323,
-1.4443355798721313,
-2.3323936462402344,
-0.23104719817638397,
-0.6861832737922668,
0.07354217767715454,
-0.6163015365600586,
-0.9020745754241943,
1.6237388849258423,
0.40415114164352417,
-1.327528953552246,
-0.33915045857429504,
-0.3491639196872711,
-0.5861725807189941,
2.6451616287231445,
-1.295412302017212,
-0.24466776847839355,
-0.9640172719955444,
-0.664018988609314,
1.725386619567871,
-1.2676360607147217,
-0.14638632535934448,
-0.984504222869873,
-0.6040230393409729,
-1.4373501539230347,
-0.5841395258903503,
0.015681196004152298,
-0.9705976247787476,
0.8947552442550659,
0.1127004325389862,
-1.1108553409576416,
-0.3308691382408142,
-0.8683072328567505,
0.9033112525939941,
-0.24802400171756744,
0.31796902418136597,
1.8651460409164429,
0.4213639795780182,
-0.45694079995155334,
0.7111613154411316,
1.1533470153808594,
0.682958722114563,
-0.558566153049469,
0.2442316710948944,
-0.7223244905471802,
0.24333029985427856,
-1.3698887825012207,
0.3659631609916687,
-3.0300235748291016,
0.6236419081687927,
-0.07026372849941254,
-0.0864865630865097,
0.04943736642599106,
-1.3676527738571167,
1.0408220291137695,
2.5511856079101562,
-1.3074753284454346,
0.2567484676837921,
0.30862680077552795,
1.109800934791565,
-1.5479135513305664,
0.3092249929904938,
-0.37992897629737854,
2.0019431114196777,
0.12354125827550888,
1.1951225996017456,
-0.4622558355331421,
-2.2214646339416504,
0.5652053952217102,
-1.3536030054092407,
-1.293757677078247,
0.9166267514228821,
-0.7941218018531799,
-0.00016115233302116394,
-1.4661519527435303,
-0.1838708370923996,
-0.9168115258216858,
-1.245556116104126,
0.8628687858581543,
0.24648112058639526,
0.4451887011528015,
-0.5737074613571167,
0.2935214936733246,
-2.184983730316162,
-1.3837265968322754,
-0.2522258758544922,
-0.907133162021637,
0.4802347421646118,
-0.2995469868183136,
0.645183801651001,
-0.2765028774738312,
0.12185151129961014,
0.3504829704761505,
1.4665005207061768,
3.445493459701538,
0.22634336352348328,
0.3815440237522125,
-0.22568699717521667,
-0.8131179809570312,
1.5151677131652832,
1.0261536836624146,
-0.006375371478497982,
-0.4947180151939392,
-0.9659504890441895,
1.2273976802825928,
2.0053532123565674,
0.9146036505699158,
0.08129759132862091,
-0.8309661149978638,
-0.6044793128967285,
-0.15141452848911285,
0.09766227006912231,
0.48081740736961365,
0.8038737773895264,
0.1158977821469307,
0.07687506079673767,
1.377285361289978,
1.179821252822876,
-0.4844941198825836,
0.342990517616272,
-0.6862732172012329,
-0.3875739872455597,
0.5481361746788025,
0.32853543758392334,
-0.04539724811911583,
0.347598135471344,
-0.8223967552185059,
-0.15330809354782104,
-0.4644617438316345,
-1.0110455751419067,
-0.6720903515815735,
-0.45813947916030884,
-0.3827587962150574,
1.6170222759246826,
0.0058566490188241005,
-0.5554420948028564,
-0.06049327924847603,
-0.8176360726356506,
-0.1547214537858963,
-1.1225942373275757,
0.21700191497802734,
-0.1336248219013214,
-0.14689816534519196,
-0.16034984588623047,
1.712378978729248,
-0.9932257533073425,
-2.0385825634002686,
0.19475476443767548,
0.16222503781318665,
-0.3522244095802307,
0.1962583214044571,
1.6649619340896606,
0.44779831171035767,
1.394809603691101,
1.3675105571746826,
0.980767011642456,
-0.6314677000045776,
-1.2271180152893066,
0.7224388122558594,
0.944076657295227,
-1.5355312824249268,
0.9634996652603149,
0.023881033062934875,
-0.5673633813858032,
0.8293123245239258,
1.2312647104263306,
0.5553209185600281,
-1.9381005764007568,
0.657950758934021,
-0.9679194688796997,
0.791893482208252,
0.6613002419471741,
0.6850491166114807,
0.2890035808086395,
0.8822948336601257,
-1.0995880365371704,
-1.2366199493408203,
-0.7167778611183167,
-0.6737442016601562,
1.9778071641921997,
-0.22650395333766937,
0.5806817412376404,
-0.13713720440864563,
-1.3692353963851929,
-0.14547105133533478,
0.7613868713378906,
0.44178470969200134,
-0.4281224012374878,
0.7106800675392151,
-0.6876599192619324,
-0.9570282101631165,
-1.3826627731323242,
-0.31973233819007874,
-1.137029767036438,
-0.9784920811653137,
1.0703662633895874,
0.8089197278022766,
0.2654365599155426,
1.8235329389572144,
0.6975857615470886,
0.3202199935913086,
-2.557213544845581,
0.7670878171920776,
0.3429030478000641,
-0.10797996819019318,
0.8787627816200256,
0.3889034390449524,
1.1401689052581787,
0.013550945557653904,
0.6252968311309814,
-2.3703954219818115,
2.2665700912475586,
-0.17777232825756073,
0.6169198751449585,
-0.004831093363463879,
-0.18984957039356232,
1.1702709197998047,
0.494429349899292,
0.5049514770507812,
-1.219929575920105,
0.712304949760437,
-0.5399554967880249,
1.1726998090744019,
1.0121474266052246,
-0.8541806936264038,
-0.03723125904798508,
1.4546761512756348,
0.6058666110038757,
-0.5177398324012756,
-0.8643414378166199,
-1.0253430604934692,
0.8991051316261292,
1.6357049942016602,
0.007502173073589802,
-0.10764989256858826,
0.7982903718948364,
0.6861387491226196,
-1.2365442514419556,
0.19440670311450958,
-0.6481249332427979,
-0.7852618098258972,
1.5926971435546875,
2.0058698654174805,
-0.1364843100309372,
-0.1050664559006691,
-0.7780140042304993,
-1.172351598739624,
0.7954025268554688,
0.02105598896741867,
0.014993761666119099,
0.53305584192276,
-0.6960943937301636,
1.062105655670166,
1.0262274742126465,
0.8121287822723389,
0.13875074684619904,
0.37462741136550903,
0.42877236008644104,
-0.17985813319683075,
-1.1108860969543457,
-0.26585087180137634,
-1.108673095703125,
-2.583418607711792,
0.5330466032028198,
-0.37616246938705444,
-1.4317519664764404,
-0.08241348713636398,
-1.0969398021697998,
0.8817835450172424,
-0.5983847975730896,
-1.1125657558441162,
-1.6442506313323975,
0.19077563285827637,
0.00626938883215189,
0.9057347774505615,
-1.5347979068756104,
-0.03831992298364639,
1.2147505283355713,
0.8336976170539856,
-0.8205397129058838,
1.083037257194519,
0.15713219344615936,
1.03876793384552,
0.7837255001068115,
-0.504624605178833,
0.5448057055473328,
0.09930720925331116,
-1.4113645553588867,
0.4983742833137512,
1.084421157836914,
0.07478795945644379,
1.3119107484817505,
-0.5048298239707947,
0.05163244903087616,
0.4274052083492279,
-0.5258244276046753,
-0.5100826621055603,
-0.4960617423057556,
0.6378214955329895,
0.046476345509290695,
-0.7501376867294312,
0.1608113944530487,
-0.12039633095264435,
-0.3560957908630371,
0.24546301364898682,
-1.5874263048171997,
-0.2609247863292694,
-0.4391089975833893,
-0.5773606300354004,
-1.2762565612792969,
-0.007746155373752117,
1.4821999073028564,
-0.6050212979316711,
-0.2657037675380707,
0.4910857677459717,
0.560724675655365,
0.5123109221458435,
0.5376344323158264,
-0.6524477005004883,
-0.298748254776001,
-0.3521304428577423,
-0.31760936975479126,
0.3216581642627716,
1.3811755180358887,
-0.22781527042388916,
-0.9298262000083923,
0.742175281047821,
-0.42189499735832214,
0.04939533770084381,
2.0243287086486816,
0.060389194637537,
-0.921090304851532,
0.27553367614746094,
-0.7180505990982056,
1.999374508857727,
1.8128275871276855,
1.3218165636062622,
-0.0856279656291008,
-0.9035990834236145,
0.6227158308029175,
-0.3462083637714386,
-0.32389721274375916,
1.0003974437713623,
0.4035263955593109,
-0.1439366191625595,
-1.475403070449829,
0.722512423992157,
1.2499055862426758,
-0.771329402923584,
-0.8104919791221619,
0.11623645573854446,
-0.8457869291305542,
0.9530657529830933,
0.6947682499885559,
0.4249221682548523,
0.2662617266178131,
1.5394870042800903,
0.6198947429656982,
-0.41144195199012756,
0.46356818079948425,
0.48641255497932434,
-0.10309761017560959,
-2.1059653759002686,
-1.2244035005569458,
0.3871493339538574,
-0.5306599736213684,
-1.6092770099639893,
1.3935843706130981,
-1.1028977632522583,
-0.9651329517364502,
0.577221155166626,
0.009452405385673046,
1.451578974723816,
0.38992369174957275,
1.5848058462142944,
2.0050673484802246,
0.8612253665924072,
0.3030327260494232,
1.39168119430542,
-0.21744774281978607,
-0.4057543873786926,
1.7864516973495483,
-0.46444472670555115,
0.4496380090713501,
1.1943440437316895,
-0.4000827968120575,
-1.039614200592041,
-0.765910267829895,
-1.1102466583251953,
-0.6132704019546509,
1.2129604816436768,
0.14026252925395966,
-1.1921137571334839,
0.27597305178642273,
1.5534108877182007,
0.1280018836259842,
-0.1956830471754074,
0.6621161699295044,
0.38044002652168274,
-0.8300695419311523,
0.06713427603244781,
-0.8951022028923035,
0.6178833246231079,
-0.2798122763633728,
-0.39840948581695557,
0.45876091718673706,
0.44846075773239136,
1.2817306518554688,
-0.1244153305888176,
0.1699824035167694,
1.1595001220703125,
-1.4043859243392944,
1.3323955535888672,
-0.6623906493186951,
0.27532386779785156,
-2.378546714782715,
1.4810974597930908,
-0.7134540677070618,
1.9845306873321533,
-2.682800054550171,
0.3212308883666992,
-0.6360931396484375,
-0.4935283064842224,
0.29081714153289795,
-0.3041500449180603,
0.1164981797337532,
-0.2176727056503296,
-1.1057041883468628,
-0.07559812813997269,
-0.6078051924705505,
0.6213892698287964,
1.1633105278015137,
1.3254985809326172,
-1.1284338235855103,
-0.42722079157829285,
-1.6493251323699951,
-0.21576055884361267,
-0.6734982132911682,
0.2981153130531311,
-2.0538973808288574,
-0.21833623945713043,
-1.912538766860962,
-2.4814093112945557,
-1.3666224479675293,
-0.6690078377723694,
1.1362875699996948,
0.17032043635845184,
-0.9262173771858215,
1.2421318292617798,
-0.36592280864715576,
-1.7853667736053467,
1.0864455699920654,
-2.114516258239746
] |
https://github.com/huggingface/datasets/issues/4745 | Allow `list_datasets` to include private datasets | `datasets.list_datasets` is now deprecated in favor of `huggingface_hub.list_datasets` (returns private datasets when `token` is present), so I'm closing this issue. | I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually. | 605 | 20 | Allow `list_datasets` to include private datasets
I am working with a large collection of private datasets, it would be convenient for me to be able to list them.
I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:
```
list_datasets(use_auth_token="my_token")
```
would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually.
`datasets.list_datasets` is now deprecated in favor of `huggingface_hub.list_datasets` (returns private datasets when `token` is present), so I'm closing this issue. | [
-1.1199259757995605,
-0.8988598585128784,
-0.7760964632034302,
1.4325313568115234,
-0.13063301146030426,
-1.2901618480682373,
0.21538932621479034,
-1.138301134109497,
1.84318208694458,
-0.9551765322685242,
0.3976384103298187,
-1.673288106918335,
-0.020295249298214912,
-0.6918630003929138,
-0.7471323013305664,
-0.9176905155181885,
-0.3711182773113251,
-0.8051234483718872,
0.9095323085784912,
2.5538172721862793,
1.0639046430587769,
-1.293578863143921,
2.7010159492492676,
0.5895670652389526,
-0.080035001039505,
-1.0063304901123047,
0.5949789881706238,
0.039754778146743774,
-1.2039848566055298,
-0.4324454963207245,
-0.9330558776855469,
-0.11232890188694,
-0.63166743516922,
-0.5794358253479004,
-0.003025379963219166,
0.5754112601280212,
-0.3597109019756317,
-0.3504989445209503,
-0.4897301495075226,
-0.8503692150115967,
0.4894459545612335,
-0.3680798411369324,
1.0418565273284912,
-0.49681878089904785,
1.9366790056228638,
-0.5136140584945679,
0.31723153591156006,
0.7433053851127625,
1.372527003288269,
0.11091745644807816,
-0.09908600151538849,
0.1284484714269638,
0.328177273273468,
0.026760345324873924,
0.46057188510894775,
1.0432554483413696,
0.4931243658065796,
0.5975745916366577,
0.7062094807624817,
-2.267714738845825,
1.3957282304763794,
-1.0174177885055542,
0.3156205713748932,
1.3857557773590088,
-0.8976138234138489,
0.3072147071361542,
-1.7455512285232544,
-0.035482071340084076,
0.5826302766799927,
-2.1849582195281982,
0.2218559831380844,
-1.2993006706237793,
-0.4513942003250122,
1.054002285003662,
0.30984237790107727,
-1.2545121908187866,
0.2396843135356903,
-0.411948025226593,
1.0255943536758423,
0.5810138583183289,
1.1645631790161133,
-1.8065975904464722,
0.08365948498249054,
-0.3664778769016266,
-0.02864338830113411,
-1.3488346338272095,
-1.4087198972702026,
0.5790534019470215,
0.5919493436813354,
0.5600885152816772,
-0.108060821890831,
0.9872615933418274,
-0.9652403593063354,
0.7006955146789551,
-0.9118552803993225,
-1.66812264919281,
-1.2905348539352417,
-2.200406789779663,
-2.4284887313842773,
0.699420690536499,
-0.44081586599349976,
-0.4723217785358429,
1.9577746391296387,
-1.0193326473236084,
-1.7512520551681519,
1.1214823722839355,
0.35976505279541016,
-0.04334017634391785,
2.3086233139038086,
0.2794627547264099,
-0.6243263483047485,
0.3519969582557678,
-0.7060258984565735,
0.7805635333061218,
-0.31084465980529785,
1.332018256187439,
0.5804198384284973,
-1.2410718202590942,
1.6288245916366577,
-0.39804789423942566,
0.5969341993331909,
-0.6630641222000122,
-0.5429282784461975,
-0.85898756980896,
0.3239918351173401,
1.8147684335708618,
-0.3001123070716858,
1.5837026834487915,
-0.43949320912361145,
-1.5740675926208496,
-1.6106148958206177,
0.9093032479286194,
0.3841845989227295,
-0.717247724533081,
0.02772565372288227,
-0.4553677439689636,
-0.017920225858688354,
-0.0925881639122963,
1.3107582330703735,
1.1449638605117798,
0.6499990820884705,
-0.2862905263900757,
-0.7214834094047546,
0.1961544007062912,
0.06277316063642502,
-0.7101194858551025,
-1.8800482749938965,
-0.3530046343803406,
0.21582400798797607,
0.6492255926132202,
-0.959147036075592,
1.771032452583313,
0.9638861417770386,
1.8664608001708984,
1.0406489372253418,
-0.23955820500850677,
1.371322751045227,
-0.027904661372303963,
1.8565016984939575,
-0.49651074409484863,
0.6120828986167908,
-0.25079596042633057,
-1.1555010080337524,
0.9412577152252197,
-0.32516777515411377,
-1.97266685962677,
-0.8511876463890076,
-0.7917449474334717,
-0.17523671686649323,
-0.6620941758155823,
1.0783343315124512,
-0.3083840608596802,
-1.3960837125778198,
0.16959483921527863,
-0.617603063583374,
0.09785691648721695,
-1.1199873685836792,
0.3431888520717621,
0.730819821357727,
-0.7455987930297852,
0.074294812977314,
-0.29729214310646057,
-1.3246779441833496,
-0.5559247136116028,
0.2814462184906006,
1.909430980682373,
-0.773269772529602,
0.9576658010482788,
0.9985381364822388,
-0.7664920687675476,
0.025038564577698708,
0.2605411112308502,
-0.4584789276123047,
0.8226100206375122,
-1.0581854581832886,
-0.34691980481147766,
1.3008290529251099,
-0.2535396218299866,
-0.6606665253639221,
1.5307830572128296,
0.6949936151504517,
-0.9732837677001953,
-0.013271220028400421,
-0.35651910305023193,
-0.900820255279541,
0.05963876098394394,
-1.5475218296051025,
-0.12513430416584015,
0.36156710982322693,
-1.4526119232177734,
-0.49150219559669495,
-0.09931127727031708,
1.319512128829956,
-0.17185981571674347,
1.2904891967773438,
-0.30175670981407166,
-0.2666195034980774,
-0.3742813467979431,
-0.3896978199481964,
0.18574786186218262,
-0.08375994861125946,
-0.6695950031280518,
0.23699966073036194,
-0.7740964889526367,
0.37777644395828247,
1.349481463432312,
0.3607119023799896,
0.0350966602563858,
0.5664840936660767,
1.0682002305984497,
0.31225383281707764,
0.034355029463768005,
-0.8905013799667358,
-1.596664547920227,
1.966176152229309,
-1.3976293802261353,
1.9416183233261108,
0.6567685604095459,
-0.02870398387312889,
-1.7613928318023682,
-1.7751777172088623,
1.4821507930755615,
1.1414260864257812,
2.228731155395508,
0.5368754267692566,
0.37793371081352234,
-0.7794182896614075,
-0.6618205308914185,
0.4629664421081543,
-1.0652140378952026,
-0.6481143832206726,
0.13557472825050354,
2.305424928665161,
1.71251380443573,
-0.6649761199951172,
-0.2147367298603058,
-1.0177892446517944,
1.300679087638855,
-0.2086854875087738,
0.18377412855625153,
2.08986759185791,
-0.4144912660121918,
-1.0974184274673462,
1.340265154838562,
-2.3890140056610107,
0.16954419016838074,
1.9426350593566895,
0.18432685732841492,
0.09010907262563705,
-1.4176347255706787,
-0.6400031447410583,
-0.17326636612415314,
-0.3732660412788391,
-1.322175145149231,
0.660787045955658,
-0.2541360557079315,
-0.7569882869720459,
-1.455030918121338,
0.27556467056274414,
-1.169864296913147,
-1.5914912223815918,
0.3564563989639282,
1.8972299098968506,
2.0923359394073486,
-0.5865856409072876,
1.6394977569580078,
-0.2500428259372711,
0.2067999243736267,
1.2550814151763916,
1.319831132888794,
3.11356782913208,
1.7506617307662964,
-1.2109464406967163,
0.6121857166290283,
0.008735675364732742,
-0.5652760863304138,
1.2487176656723022,
-1.0353419780731201,
1.3383866548538208,
-0.2672252357006073,
-1.1754214763641357,
-1.4227102994918823,
0.888725757598877,
0.4964671730995178,
0.15655699372291565,
-0.5194945931434631,
1.2615838050842285,
-0.10624416917562485,
1.2762573957443237,
0.5639073848724365,
-0.48927608132362366,
0.661311686038971,
-0.517678439617157,
-0.42937734723091125,
1.5299696922302246,
0.2183985859155655,
-1.43247389793396,
-2.2890586853027344,
-0.20008862018585205,
-0.6888854503631592,
0.021098818629980087,
-0.6236431002616882,
-0.9259540438652039,
1.6109310388565063,
0.4472404718399048,
-1.3308604955673218,
-0.3144882619380951,
-0.3304196000099182,
-0.5959113836288452,
2.6395440101623535,
-1.2299991846084595,
-0.22021225094795227,
-1.0119413137435913,
-0.6229453682899475,
1.724320650100708,
-1.2663685083389282,
-0.1308218389749527,
-0.9955580234527588,
-0.6434372067451477,
-1.4316010475158691,
-0.5398634672164917,
0.01796063408255577,
-0.9441601634025574,
0.9492076635360718,
0.1052977666258812,
-1.139522910118103,
-0.27615514397621155,
-0.8578172922134399,
0.878863513469696,
-0.22646355628967285,
0.3180044889450073,
1.8892396688461304,
0.4541127383708954,
-0.4441288411617279,
0.6770213842391968,
1.1452728509902954,
0.7205749750137329,
-0.5797141194343567,
0.2557990849018097,
-0.7292754054069519,
0.21283869445323944,
-1.3712706565856934,
0.3275618255138397,
-3.051783800125122,
0.6325821280479431,
-0.010956957936286926,
-0.08991500735282898,
0.04243980348110199,
-1.350105881690979,
1.0109895467758179,
2.541426420211792,
-1.3379294872283936,
0.30924710631370544,
0.278492271900177,
1.1149126291275024,
-1.5620439052581787,
0.3005390465259552,
-0.39398714900016785,
1.9742509126663208,
0.1496819257736206,
1.160089373588562,
-0.43933770060539246,
-2.1818392276763916,
0.5900639891624451,
-1.369222640991211,
-1.2252014875411987,
0.8969849348068237,
-0.795836329460144,
0.007607370615005493,
-1.4220716953277588,
-0.13935156166553497,
-0.9418890476226807,
-1.2978179454803467,
0.907806932926178,
0.23038136959075928,
0.4389176666736603,
-0.47246286273002625,
0.2886897325515747,
-2.1870155334472656,
-1.3687059879302979,
-0.30173006653785706,
-0.9105411767959595,
0.49450647830963135,
-0.2621322274208069,
0.6763591170310974,
-0.2433922290802002,
0.11959612369537354,
0.35295701026916504,
1.4423811435699463,
3.4340274333953857,
0.1982903778553009,
0.3386302888393402,
-0.2261858731508255,
-0.8400968909263611,
1.4690580368041992,
1.0145446062088013,
-0.05018690973520279,
-0.5123291015625,
-0.9650520086288452,
1.2198703289031982,
2.035270929336548,
0.957756757736206,
0.09579958021640778,
-0.912451446056366,
-0.6074475049972534,
-0.09914036095142365,
0.12956467270851135,
0.4961763024330139,
0.7806366682052612,
0.10653714835643768,
0.05684443563222885,
1.3829556703567505,
1.150775671005249,
-0.4335317611694336,
0.2954656779766083,
-0.7253507971763611,
-0.35383298993110657,
0.6169973611831665,
0.28126224875450134,
0.022442394867539406,
0.41514626145362854,
-0.8932408690452576,
-0.12588921189308167,
-0.42855706810951233,
-1.0247479677200317,
-0.6877121925354004,
-0.5375043749809265,
-0.36564579606056213,
1.5942527055740356,
-0.025517743080854416,
-0.5990508198738098,
-0.04336289316415787,
-0.8310999274253845,
-0.1624135673046112,
-1.084140419960022,
0.23292644321918488,
-0.11547309160232544,
-0.18381045758724213,
-0.16318246722221375,
1.7068263292312622,
-1.0478301048278809,
-2.028935670852661,
0.19251292943954468,
0.20110291242599487,
-0.3417172133922577,
0.1686740517616272,
1.6202353239059448,
0.49218958616256714,
1.386745572090149,
1.3308523893356323,
0.9952902793884277,
-0.643717348575592,
-1.2829374074935913,
0.6349676251411438,
0.9363623261451721,
-1.526685118675232,
0.9995543956756592,
-0.0015239249914884567,
-0.5851679444313049,
0.8228804469108582,
1.2872209548950195,
0.5598865151405334,
-1.9051421880722046,
0.6288257241249084,
-0.9597001075744629,
0.809426486492157,
0.6151599884033203,
0.6956102252006531,
0.23154409229755402,
0.8610216975212097,
-1.1449191570281982,
-1.2453011274337769,
-0.6449019908905029,
-0.6696102619171143,
1.959059476852417,
-0.17145588994026184,
0.5929129719734192,
-0.1622549146413803,
-1.3580210208892822,
-0.12483322620391846,
0.79420006275177,
0.46872997283935547,
-0.436598002910614,
0.7390289306640625,
-0.6539306640625,
-0.9177581667900085,
-1.382158637046814,
-0.334482342004776,
-1.1395390033721924,
-0.9313004612922668,
1.1339813470840454,
0.7733706831932068,
0.3096930980682373,
1.7879647016525269,
0.6644571423530579,
0.32847094535827637,
-2.543882131576538,
0.7522868514060974,
0.3309381902217865,
-0.10811454057693481,
0.8504129648208618,
0.3806055188179016,
1.1132442951202393,
-0.024887483566999435,
0.6982978582382202,
-2.397745370864868,
2.3242294788360596,
-0.21179164946079254,
0.5481230616569519,
0.013584762811660767,
-0.1894022822380066,
1.1551519632339478,
0.4849049746990204,
0.46877622604370117,
-1.228308081626892,
0.6984220743179321,
-0.506685733795166,
1.140753984451294,
0.9628735780715942,
-0.86599200963974,
-0.04509209096431732,
1.423071026802063,
0.6192129850387573,
-0.5248787999153137,
-0.8802416920661926,
-1.0454649925231934,
0.9096438884735107,
1.6504019498825073,
-0.03537158668041229,
-0.14966478943824768,
0.8268797993659973,
0.6459470987319946,
-1.2806872129440308,
0.2050086259841919,
-0.6365586519241333,
-0.7405030131340027,
1.622227668762207,
2.0184404850006104,
-0.14649489521980286,
-0.10277243703603745,
-0.7690695524215698,
-1.0961365699768066,
0.7737220525741577,
0.0762011706829071,
-0.04632823169231415,
0.49961650371551514,
-0.6781174540519714,
1.1189191341400146,
1.0073513984680176,
0.8417600393295288,
0.13205407559871674,
0.42206498980522156,
0.42229050397872925,
-0.18550993502140045,
-1.1025017499923706,
-0.2876913845539093,
-1.0810563564300537,
-2.6115081310272217,
0.5252967476844788,
-0.38270342350006104,
-1.4606688022613525,
-0.08358166366815567,
-1.0575230121612549,
0.8423932194709778,
-0.5635353922843933,
-1.1192907094955444,
-1.61807119846344,
0.20184548199176788,
0.022060921415686607,
0.9327815175056458,
-1.5860533714294434,
0.031175771728157997,
1.2836436033248901,
0.8316324353218079,
-0.8352178931236267,
1.083119511604309,
0.19271361827850342,
1.026573657989502,
0.7653182744979858,
-0.4580463767051697,
0.5154932737350464,
0.07888156920671463,
-1.3921257257461548,
0.5020396709442139,
1.1018997430801392,
0.08949218690395355,
1.3316572904586792,
-0.48219120502471924,
0.06712177395820618,
0.45645445585250854,
-0.5403735041618347,
-0.5466023087501526,
-0.48906248807907104,
0.6354286074638367,
0.14402152597904205,
-0.7094089984893799,
0.1466066539287567,
-0.11277969926595688,
-0.34361448884010315,
0.23981565237045288,
-1.578955054283142,
-0.28496864438056946,
-0.42717334628105164,
-0.5935437679290771,
-1.2411375045776367,
-0.10238973051309586,
1.463409185409546,
-0.6013162732124329,
-0.23412925004959106,
0.4761151373386383,
0.5048767328262329,
0.5237427353858948,
0.5275459289550781,
-0.6655115485191345,
-0.33946728706359863,
-0.34259533882141113,
-0.3049137592315674,
0.27612340450286865,
1.3715877532958984,
-0.21897171437740326,
-0.9699220657348633,
0.8117894530296326,
-0.43083280324935913,
0.06650850921869278,
2.003847122192383,
0.06955152004957199,
-0.9909186959266663,
0.2758145332336426,
-0.7248272895812988,
1.9974886178970337,
1.7957274913787842,
1.3197765350341797,
-0.07188187539577484,
-0.9169217944145203,
0.6075740456581116,
-0.32104769349098206,
-0.3648751378059387,
1.0557740926742554,
0.38909581303596497,
-0.17646309733390808,
-1.4148578643798828,
0.7333856225013733,
1.2655647993087769,
-0.7618682980537415,
-0.7536222338676453,
0.12227554619312286,
-0.8621103763580322,
0.9262195229530334,
0.6844329833984375,
0.4423493444919586,
0.33999747037887573,
1.5029956102371216,
0.589531660079956,
-0.40618059039115906,
0.4797218441963196,
0.43882378935813904,
-0.13025261461734772,
-2.0341131687164307,
-1.2179126739501953,
0.45159345865249634,
-0.584113597869873,
-1.6645146608352661,
1.3648204803466797,
-1.1372071504592896,
-0.9669687151908875,
0.595716118812561,
0.0009792866185307503,
1.447579026222229,
0.3640953004360199,
1.5926241874694824,
2.0122406482696533,
0.8414783477783203,
0.2995820939540863,
1.385789155960083,
-0.1726420372724533,
-0.41424673795700073,
1.776048183441162,
-0.4481932520866394,
0.4782593846321106,
1.1709221601486206,
-0.3629166781902313,
-1.0539442300796509,
-0.7504615187644958,
-1.1034997701644897,
-0.5864483714103699,
1.1803678274154663,
0.1793358325958252,
-1.2276486158370972,
0.257036030292511,
1.5529571771621704,
0.10963567346334457,
-0.19714239239692688,
0.6871002912521362,
0.34504082798957825,
-0.8479000926017761,
0.05262923985719681,
-0.925125002861023,
0.6064684987068176,
-0.2954728603363037,
-0.3778950572013855,
0.3809790015220642,
0.46796947717666626,
1.3121987581253052,
-0.10024785250425339,
0.21043181419372559,
1.1962333917617798,
-1.3612821102142334,
1.37200129032135,
-0.6494101881980896,
0.29628053307533264,
-2.392760753631592,
1.4660812616348267,
-0.6618578433990479,
1.976688027381897,
-2.648618459701538,
0.2954193651676178,
-0.6091651320457458,
-0.47403615713119507,
0.2806144952774048,
-0.24147196114063263,
0.12236125767230988,
-0.20782941579818726,
-1.1037981510162354,
-0.06460733711719513,
-0.6345133185386658,
0.6328590512275696,
1.2275545597076416,
1.2762361764907837,
-1.1337294578552246,
-0.38991135358810425,
-1.6543679237365723,
-0.21319164335727692,
-0.7006746530532837,
0.2727425694465637,
-2.023634672164917,
-0.20611293613910675,
-1.8970558643341064,
-2.5282881259918213,
-1.3786391019821167,
-0.7263720631599426,
1.1388216018676758,
0.17176304757595062,
-0.992729902267456,
1.2292118072509766,
-0.37360113859176636,
-1.8056613206863403,
1.0516828298568726,
-2.1381566524505615
] |
https://github.com/huggingface/datasets/issues/4744 | Remove instructions to generate dummy data from our docs | Note that for me personally, conceptually all the dummy data (even for "canonical" datasets) should be superseded by `datasets-server`, which performs some kind of CI/CD of datasets (including the canonical ones) | In our docs, we indicate to generate the dummy data: https://huggingface.co/docs/datasets/dataset_script#testing-data-and-checksum-metadata
However:
- dummy data makes sense only for datasets in our GitHub repo: so that we can test their loading with our CI
- for datasets on the Hub:
- they do not pass any CI test requiring dummy data
- there are no instructions on how they can test their dataset locally using the dummy data
- the generation of the dummy data assumes our GitHub directory structure:
- the dummy data will be generated under `./datasets/<dataset_name>/dummy` even if locally there is no `./datasets` directory (which is the usual case). See issue:
- #4742
CC: @stevhliu | 606 | 31 | Remove instructions to generate dummy data from our docs
In our docs, we indicate to generate the dummy data: https://huggingface.co/docs/datasets/dataset_script#testing-data-and-checksum-metadata
However:
- dummy data makes sense only for datasets in our GitHub repo: so that we can test their loading with our CI
- for datasets on the Hub:
- they do not pass any CI test requiring dummy data
- there are no instructions on how they can test their dataset locally using the dummy data
- the generation of the dummy data assumes our GitHub directory structure:
- the dummy data will be generated under `./datasets/<dataset_name>/dummy` even if locally there is no `./datasets` directory (which is the usual case). See issue:
- #4742
CC: @stevhliu
Note that for me personally, conceptually all the dummy data (even for "canonical" datasets) should be superseded by `datasets-server`, which performs some kind of CI/CD of datasets (including the canonical ones) | [
-1.2075856924057007,
-0.9332361817359924,
-0.7203264236450195,
1.355921745300293,
-0.09088779240846634,
-1.3207558393478394,
-0.000113719142973423,
-1.042475938796997,
1.6799298524856567,
-0.8583576083183289,
0.2975948452949524,
-1.790631651878357,
-0.0019695046357810497,
-0.5004012584686279,
-0.7637220621109009,
-0.9148194789886475,
-0.41731753945350647,
-0.8089370727539062,
0.9726364016532898,
2.542224645614624,
1.1639471054077148,
-1.3084076642990112,
2.6912245750427246,
0.6497129201889038,
-0.23144692182540894,
-0.9247851371765137,
0.5830237865447998,
0.0615568608045578,
-1.3224092721939087,
-0.2654073238372803,
-1.0048010349273682,
-0.06284437328577042,
-0.5606011152267456,
-0.5318013429641724,
0.07440312206745148,
0.42711126804351807,
-0.26987287402153015,
-0.31731319427490234,
-0.5376387238502502,
-0.7489091753959656,
0.5130494832992554,
-0.25848931074142456,
1.07114839553833,
-0.462209016084671,
1.9124809503555298,
-0.4906007647514343,
0.3076396882534027,
0.5843592286109924,
1.262423038482666,
0.19946998357772827,
-0.15560558438301086,
0.20719954371452332,
0.22692422568798065,
-0.018295658752322197,
0.42781803011894226,
1.1033635139465332,
0.633872926235199,
0.5852448344230652,
0.7235504388809204,
-2.1926865577697754,
1.3499433994293213,
-0.9603435397148132,
0.2788800299167633,
1.5137075185775757,
-1.0942351818084717,
0.353435754776001,
-1.773398756980896,
-0.17189429700374603,
0.5209987163543701,
-2.217745065689087,
0.1063239574432373,
-1.1909239292144775,
-0.49458932876586914,
1.0957437753677368,
0.2730954587459564,
-1.1574488878250122,
0.21486952900886536,
-0.4226631820201874,
1.126160740852356,
0.5254464149475098,
1.202318787574768,
-1.7357162237167358,
0.1256449818611145,
-0.25941839814186096,
0.07151935249567032,
-1.4259686470031738,
-1.6222378015518188,
0.5558214783668518,
0.6747243404388428,
0.6213378310203552,
-0.015612232498824596,
0.8479683995246887,
-0.9167912602424622,
0.7609764933586121,
-0.9053730368614197,
-1.5692752599716187,
-1.3577609062194824,
-2.331660270690918,
-2.3756229877471924,
0.756820797920227,
-0.5133308172225952,
-0.49655747413635254,
2.0824666023254395,
-1.1568100452423096,
-1.8033483028411865,
1.0723565816879272,
0.3004130721092224,
-0.05311188846826553,
2.3394744396209717,
0.30035096406936646,
-0.7281818389892578,
0.37173107266426086,
-0.6465637683868408,
0.7234709858894348,
-0.24627675116062164,
1.3742916584014893,
0.5574830174446106,
-1.2351280450820923,
1.7042196989059448,
-0.5455623865127563,
0.5846234560012817,
-0.612368106842041,
-0.5081883072853088,
-0.7980818748474121,
0.3378443419933319,
1.8202632665634155,
-0.2968388497829437,
1.6003892421722412,
-0.34763190150260925,
-1.5263912677764893,
-1.5458024740219116,
0.7950595617294312,
0.5318592190742493,
-0.8186303973197937,
0.1209467202425003,
-0.306834876537323,
0.025923922657966614,
0.07840807735919952,
1.1793174743652344,
1.1518754959106445,
0.7178714275360107,
-0.23668834567070007,
-0.8919938206672668,
0.17781972885131836,
0.022933240979909897,
-0.6019136905670166,
-1.7619298696517944,
-0.3485366106033325,
0.25079774856567383,
0.7294299602508545,
-1.1238542795181274,
1.7545042037963867,
0.8887192606925964,
1.8277026414871216,
0.9136892557144165,
-0.38773760199546814,
1.3413240909576416,
-0.015335486270487309,
1.8786288499832153,
-0.4821712076663971,
0.7184239029884338,
-0.33122289180755615,
-1.225778579711914,
0.867983341217041,
-0.30870458483695984,
-2.0529677867889404,
-0.7406091690063477,
-0.918801486492157,
-0.1343168020248413,
-0.7280840277671814,
0.9921165704727173,
-0.19677968323230743,
-1.316838264465332,
0.24946606159210205,
-0.58535236120224,
0.16002096235752106,
-1.273351788520813,
0.3584696650505066,
0.7883832454681396,
-0.7251517176628113,
-0.11807717382907867,
-0.2294977307319641,
-1.3025305271148682,
-0.46226710081100464,
0.3264247179031372,
1.8558663129806519,
-0.8066803216934204,
0.8971549868583679,
0.9614942073822021,
-0.7726301550865173,
0.01213140320032835,
0.2518005669116974,
-0.361541748046875,
0.9397875070571899,
-1.0384647846221924,
-0.3775535523891449,
1.0849645137786865,
-0.1820712387561798,
-0.6079206466674805,
1.4060474634170532,
0.6972812414169312,
-1.0731465816497803,
-0.19114045798778534,
-0.30018043518066406,
-0.8716357350349426,
-0.039734844118356705,
-1.5951077938079834,
-0.13947634398937225,
0.26782935857772827,
-1.4102340936660767,
-0.538266658782959,
-0.12084139883518219,
1.3936221599578857,
-0.22453153133392334,
1.2398041486740112,
-0.2854236364364624,
-0.2524702847003937,
-0.5253593325614929,
-0.44171586632728577,
0.20288947224617004,
-0.11524424701929092,
-0.6132938861846924,
0.3178655505180359,
-0.8402803540229797,
0.21637378633022308,
1.418982744216919,
0.439378023147583,
0.05551282316446304,
0.5079563856124878,
1.1510798931121826,
0.3463912308216095,
-0.18619763851165771,
-0.8955714702606201,
-1.6375435590744019,
2.077404737472534,
-1.4486217498779297,
1.9098132848739624,
0.6745302677154541,
0.0025326991453766823,
-1.8338557481765747,
-1.9163795709609985,
1.434849739074707,
1.1944236755371094,
2.3587646484375,
0.6230340600013733,
0.39421090483665466,
-0.7921218276023865,
-0.61067134141922,
0.4871606230735779,
-0.9680048227310181,
-0.7056483030319214,
0.14664040505886078,
2.222172260284424,
1.7032599449157715,
-0.5721885561943054,
-0.13789236545562744,
-1.0258772373199463,
1.1920809745788574,
-0.07643673568964005,
0.13103850185871124,
2.0075786113739014,
-0.42783471941947937,
-1.1910197734832764,
1.326310157775879,
-2.405272960662842,
0.1589803248643875,
1.9571473598480225,
0.25453317165374756,
0.10447056591510773,
-1.351277232170105,
-0.7345594167709351,
-0.21267639100551605,
-0.4522276520729065,
-1.299934983253479,
0.5979792475700378,
-0.2760281562805176,
-0.7341007590293884,
-1.4977844953536987,
0.045525964349508286,
-1.210483431816101,
-1.6370760202407837,
0.41181281208992004,
1.727531909942627,
2.177844524383545,
-0.7619947791099548,
1.4594290256500244,
-0.23106494545936584,
0.21727372705936432,
1.2658883333206177,
1.2167270183563232,
3.145035982131958,
1.8367944955825806,
-1.3168537616729736,
0.7463710904121399,
-0.02859252691268921,
-0.5267707109451294,
1.2456659078598022,
-0.9851667284965515,
1.2226035594940186,
-0.29849764704704285,
-1.3507251739501953,
-1.3248255252838135,
0.9218164682388306,
0.47144076228141785,
0.09588421881198883,
-0.5101945996284485,
1.25163996219635,
0.09917913377285004,
1.3937420845031738,
0.575918972492218,
-0.3908381164073944,
0.5220237970352173,
-0.4659920930862427,
-0.4947948753833771,
1.5449284315109253,
0.12416458129882812,
-1.4559581279754639,
-2.364511728286743,
-0.31950899958610535,
-0.728039026260376,
-0.056982818990945816,
-0.6863815784454346,
-0.9216029047966003,
1.6253520250320435,
0.512965202331543,
-1.238923192024231,
-0.31229090690612793,
-0.43614789843559265,
-0.6650466918945312,
2.594092845916748,
-1.5439924001693726,
-0.14123834669589996,
-1.021474838256836,
-0.537959098815918,
1.5885649919509888,
-1.1753500699996948,
-0.2690330147743225,
-1.030401587486267,
-0.6859334111213684,
-1.4269371032714844,
-0.6176086068153381,
-0.016899634152650833,
-0.8670177459716797,
0.774529218673706,
0.015016642399132252,
-1.1520206928253174,
-0.2422475516796112,
-0.9107363820075989,
0.8345291614532471,
-0.2600783407688141,
0.22540414333343506,
1.8589752912521362,
0.5065310597419739,
-0.4978529214859009,
0.6126498579978943,
1.2685048580169678,
0.7900212407112122,
-0.6064040064811707,
0.20248498022556305,
-0.7659539580345154,
0.2105427384376526,
-1.2918277978897095,
0.22774285078048706,
-3.015076160430908,
0.6634284257888794,
-0.06241661682724953,
-0.02723557874560356,
-0.015826500952243805,
-1.2835651636123657,
1.0419524908065796,
2.495896339416504,
-1.3159147500991821,
0.4483106732368469,
0.2539573311805725,
1.176589846611023,
-1.5797151327133179,
0.21348364651203156,
-0.4356890618801117,
2.0735270977020264,
0.11525145918130875,
1.1934219598770142,
-0.47573646903038025,
-2.1141631603240967,
0.6546489596366882,
-1.2631264925003052,
-1.1130516529083252,
0.9390095472335815,
-0.7820215821266174,
0.0780118927359581,
-1.3778551816940308,
-0.11846211552619934,
-0.9124994277954102,
-1.3216395378112793,
0.7663342356681824,
0.0035003460943698883,
0.4804303050041199,
-0.49603262543678284,
0.3032074570655823,
-2.1273281574249268,
-1.1922521591186523,
-0.23477211594581604,
-1.0355937480926514,
0.4160842299461365,
-0.32820865511894226,
0.6821830868721008,
-0.08880633115768433,
0.06901106238365173,
0.3684031367301941,
1.3179163932800293,
3.354994058609009,
0.19907024502754211,
0.36020293831825256,
-0.16618739068508148,
-0.9875974655151367,
1.5308306217193604,
1.0258288383483887,
-0.11974278837442398,
-0.5131204128265381,
-0.9219463467597961,
1.2660220861434937,
1.8214393854141235,
1.099030613899231,
0.04296840354800224,
-0.9632474780082703,
-0.7155436277389526,
0.09598956257104874,
0.2741296589374542,
0.5101913809776306,
0.8614620566368103,
-0.00633868295699358,
0.09052780270576477,
1.4445720911026,
1.150744915008545,
-0.4076690077781677,
0.3627518117427826,
-0.8053165078163147,
-0.5301449298858643,
0.5590945482254028,
0.37759244441986084,
0.06942112743854523,
0.3900282680988312,
-0.9754762053489685,
-0.30577290058135986,
-0.2719876766204834,
-1.000075340270996,
-0.6357342004776001,
-0.5080150365829468,
-0.4921206533908844,
1.6106512546539307,
-0.06934550404548645,
-0.5724071860313416,
-0.06935632228851318,
-0.8865753412246704,
-0.22332771122455597,
-1.1132006645202637,
0.3122600018978119,
-0.0738973319530487,
-0.08107173442840576,
-0.14311997592449188,
1.6758358478546143,
-0.9718339443206787,
-2.171666145324707,
0.36124324798583984,
0.38830068707466125,
-0.42005395889282227,
0.05447396636009216,
1.6059823036193848,
0.45163384079933167,
1.3651063442230225,
1.3905030488967896,
0.9296926259994507,
-0.655155599117279,
-1.3638222217559814,
0.7246412634849548,
0.9584310054779053,
-1.5629689693450928,
0.8940081596374512,
-0.1211511641740799,
-0.5254277586936951,
0.6882654428482056,
1.2962876558303833,
0.4302729666233063,
-1.848800539970398,
0.8905352354049683,
-0.8585243225097656,
0.7755222320556641,
0.67769855260849,
0.8696771264076233,
0.06020259112119675,
0.8222970962524414,
-1.2877683639526367,
-1.0887024402618408,
-0.7723403573036194,
-0.532687246799469,
1.8398722410202026,
-0.18044552206993103,
0.513856053352356,
-0.2117926925420761,
-1.224424958229065,
-0.018270108848810196,
0.7141508460044861,
0.17492002248764038,
-0.35514023900032043,
0.9389145374298096,
-0.6255543231964111,
-1.062328577041626,
-1.3708972930908203,
-0.41964367032051086,
-0.9836294054985046,
-0.8604581356048584,
1.1172161102294922,
0.855167031288147,
0.3136376142501831,
1.7990357875823975,
0.46976038813591003,
0.26464223861694336,
-2.5881803035736084,
0.834470272064209,
0.2904023826122284,
-0.0467950813472271,
0.9370903372764587,
0.18472711741924286,
1.1276062726974487,
-0.17853130400180817,
0.5571065545082092,
-2.347954034805298,
2.2589468955993652,
-0.30136242508888245,
0.6748078465461731,
-0.10621938109397888,
-0.17973960936069489,
1.1601375341415405,
0.5698410272598267,
0.5519181489944458,
-1.147692084312439,
0.891690731048584,
-0.6161318421363831,
1.0979396104812622,
0.9492518901824951,
-0.9630424380302429,
-0.03253454342484474,
1.2992656230926514,
0.554345965385437,
-0.4123849868774414,
-0.8397283554077148,
-0.8237263560295105,
0.9896686673164368,
1.7408726215362549,
0.042792245745658875,
0.004871189594268799,
0.9133485555648804,
0.7389940023422241,
-1.2780150175094604,
0.07248704880475998,
-0.6407463550567627,
-0.5807552933692932,
1.698663592338562,
1.9537262916564941,
0.0029004905372858047,
-0.11793975532054901,
-0.7244244813919067,
-1.2456729412078857,
0.7736555337905884,
0.0945359393954277,
0.09284833818674088,
0.6636317372322083,
-0.7046550512313843,
1.2294925451278687,
0.9291148781776428,
0.9065591096878052,
0.10261519253253937,
0.2935885488986969,
0.36416399478912354,
-0.13077159225940704,
-1.1292061805725098,
-0.22008116543293,
-1.0423239469528198,
-2.4235947132110596,
0.5275444388389587,
-0.3394032418727875,
-1.352546215057373,
0.024311933666467667,
-1.0323141813278198,
0.902360737323761,
-0.539233386516571,
-1.1137640476226807,
-1.607351541519165,
0.3194539248943329,
-0.08228185027837753,
0.9146600961685181,
-1.5870563983917236,
-0.047304775565862656,
1.240352749824524,
0.874224841594696,
-0.6330985426902771,
1.0022966861724854,
0.30815789103507996,
0.9624462127685547,
0.8399524092674255,
-0.4734819829463959,
0.4922787845134735,
0.1407686471939087,
-1.3969981670379639,
0.3884851932525635,
1.1283438205718994,
0.20784135162830353,
1.4040884971618652,
-0.40482860803604126,
0.10344027727842331,
0.4278641641139984,
-0.4234244227409363,
-0.5831964015960693,
-0.5852349400520325,
0.7561749815940857,
0.18373417854309082,
-0.8562648296356201,
0.047460947185754776,
-0.11626067012548447,
-0.27936673164367676,
0.24094751477241516,
-1.4785525798797607,
-0.29451489448547363,
-0.40827834606170654,
-0.5858798623085022,
-1.2914063930511475,
-0.1308280974626541,
1.4157871007919312,
-0.8415826559066772,
-0.07964791357517242,
0.6039595603942871,
0.3328719139099121,
0.4904290735721588,
0.6839042901992798,
-0.5855740308761597,
-0.19489167630672455,
-0.326485812664032,
-0.3229420781135559,
0.19833387434482574,
1.183811068534851,
-0.1156466156244278,
-0.9961046576499939,
0.7159956097602844,
-0.24294185638427734,
0.02713676169514656,
1.9614171981811523,
0.011328634805977345,
-0.9474942684173584,
0.32222291827201843,
-0.6826752424240112,
1.9263482093811035,
1.692563772201538,
1.4960033893585205,
-0.10688617080450058,
-0.9350153207778931,
0.636435329914093,
-0.24654696881771088,
-0.2532521188259125,
1.0356696844100952,
0.5074632167816162,
-0.16653597354888916,
-1.4567352533340454,
0.7076846361160278,
1.3774465322494507,
-0.8864396810531616,
-0.6849910020828247,
0.12952470779418945,
-0.8132970929145813,
1.050742268562317,
0.7381078004837036,
0.36519795656204224,
0.30896300077438354,
1.5699273347854614,
0.632011353969574,
-0.5203701853752136,
0.404565691947937,
0.5468252897262573,
-0.1405625194311142,
-2.0357892513275146,
-1.03721284866333,
0.41711243987083435,
-0.4231013059616089,
-1.4685662984848022,
1.3903403282165527,
-1.2108709812164307,
-0.8890389204025269,
0.5721075534820557,
-0.009431924670934677,
1.4492894411087036,
0.27590566873550415,
1.6952539682388306,
2.0577969551086426,
0.867645263671875,
0.24463918805122375,
1.4063655138015747,
-0.08441568911075592,
-0.22032876312732697,
1.769171118736267,
-0.4366167187690735,
0.5464303493499756,
1.1801495552062988,
-0.4479951560497284,
-1.0771762132644653,
-0.7537509799003601,
-1.1819270849227905,
-0.6193803548812866,
1.1644645929336548,
0.15125355124473572,
-1.1757838726043701,
0.23135432600975037,
1.554564356803894,
-0.024453140795230865,
-0.22973918914794922,
0.6566380262374878,
0.47569727897644043,
-0.7889077067375183,
-0.1423059105873108,
-1.0049794912338257,
0.6117534637451172,
-0.29580071568489075,
-0.23428045213222504,
0.33518505096435547,
0.4530448317527771,
1.2563977241516113,
0.10118264704942703,
0.2061779648065567,
1.2318682670593262,
-1.337524652481079,
1.3775352239608765,
-0.7421179413795471,
0.26578301191329956,
-2.4516820907592773,
1.528993010520935,
-0.7505595684051514,
2.0036771297454834,
-2.6546366214752197,
0.33432427048683167,
-0.6058038473129272,
-0.4370361566543579,
0.28334128856658936,
-0.41077283024787903,
0.0875299870967865,
-0.12168173491954803,
-0.9942984580993652,
-0.1509675681591034,
-0.8375017642974854,
0.6462792754173279,
1.3015601634979248,
1.2840192317962646,
-1.1812280416488647,
-0.30869296193122864,
-1.6600888967514038,
-0.2162584364414215,
-0.583558976650238,
0.33444681763648987,
-1.9368150234222412,
-0.13087932765483856,
-1.984742283821106,
-2.5648815631866455,
-1.3038444519042969,
-0.8130635619163513,
1.1925054788589478,
0.18863390386104584,
-0.9671926498413086,
1.0788946151733398,
-0.42628568410873413,
-1.789873719215393,
1.1372644901275635,
-2.1722474098205566
] |
https://github.com/huggingface/datasets/issues/4744 | Remove instructions to generate dummy data from our docs | I totally agree: next step should be rethinking if dummy data makes sense for canonical datasets (once we have datasets-server) and eventually remove it.
But for now, we could at least start by removing the indication to generate dummy data from our docs. | In our docs, we indicate to generate the dummy data: https://huggingface.co/docs/datasets/dataset_script#testing-data-and-checksum-metadata
However:
- dummy data makes sense only for datasets in our GitHub repo: so that we can test their loading with our CI
- for datasets on the Hub:
- they do not pass any CI test requiring dummy data
- there are no instructions on how they can test their dataset locally using the dummy data
- the generation of the dummy data assumes our GitHub directory structure:
- the dummy data will be generated under `./datasets/<dataset_name>/dummy` even if locally there is no `./datasets` directory (which is the usual case). See issue:
- #4742
CC: @stevhliu | 606 | 43 | Remove instructions to generate dummy data from our docs
In our docs, we indicate to generate the dummy data: https://huggingface.co/docs/datasets/dataset_script#testing-data-and-checksum-metadata
However:
- dummy data makes sense only for datasets in our GitHub repo: so that we can test their loading with our CI
- for datasets on the Hub:
- they do not pass any CI test requiring dummy data
- there are no instructions on how they can test their dataset locally using the dummy data
- the generation of the dummy data assumes our GitHub directory structure:
- the dummy data will be generated under `./datasets/<dataset_name>/dummy` even if locally there is no `./datasets` directory (which is the usual case). See issue:
- #4742
CC: @stevhliu
I totally agree: next step should be rethinking if dummy data makes sense for canonical datasets (once we have datasets-server) and eventually remove it.
But for now, we could at least start by removing the indication to generate dummy data from our docs. | [
-1.2140778303146362,
-0.9505122900009155,
-0.6599998474121094,
1.3780171871185303,
-0.11898235976696014,
-1.277479887008667,
-0.026987111195921898,
-1.0169596672058105,
1.7006897926330566,
-0.8356480598449707,
0.2760900557041168,
-1.7761149406433105,
0.011755477637052536,
-0.4905425012111664,
-0.7799201011657715,
-0.8938301801681519,
-0.46473008394241333,
-0.7861518859863281,
0.9861769676208496,
2.526563882827759,
1.1836966276168823,
-1.3706022500991821,
2.6605520248413086,
0.6452369689941406,
-0.19071398675441742,
-0.9707363843917847,
0.5828173160552979,
0.11574682593345642,
-1.3461319208145142,
-0.24351495504379272,
-0.9832415580749512,
-0.07239782810211182,
-0.5864522457122803,
-0.5378694534301758,
0.05647338181734085,
0.41927793622016907,
-0.27269867062568665,
-0.36099565029144287,
-0.5124831199645996,
-0.7292776107788086,
0.5493614673614502,
-0.2791205644607544,
1.052718162536621,
-0.434402734041214,
1.9005471467971802,
-0.4706622362136841,
0.3516960144042969,
0.6024175882339478,
1.2640407085418701,
0.18217113614082336,
-0.13919059932231903,
0.24335426092147827,
0.2291814684867859,
-0.02151329442858696,
0.41873279213905334,
1.0776112079620361,
0.6473150253295898,
0.5455938577651978,
0.6986854076385498,
-2.1641199588775635,
1.3539676666259766,
-0.9435527324676514,
0.298549622297287,
1.4877737760543823,
-1.1046117544174194,
0.360222190618515,
-1.754135012626648,
-0.1754922717809677,
0.5683625936508179,
-2.1864593029022217,
0.10758241266012192,
-1.1901804208755493,
-0.49251940846443176,
1.1223646402359009,
0.24672389030456543,
-1.1191271543502808,
0.23030850291252136,
-0.45584678649902344,
1.1149590015411377,
0.5270570516586304,
1.1864750385284424,
-1.7348110675811768,
0.14880119264125824,
-0.21848808228969574,
0.09286084026098251,
-1.3978649377822876,
-1.610120177268982,
0.5182443857192993,
0.6771029233932495,
0.6345127820968628,
-0.014694983139634132,
0.8533957004547119,
-0.9077454805374146,
0.7734532356262207,
-0.9195691347122192,
-1.5568121671676636,
-1.3389074802398682,
-2.328688621520996,
-2.357056140899658,
0.7345342636108398,
-0.5037067532539368,
-0.4849315583705902,
2.104898452758789,
-1.1597336530685425,
-1.828898549079895,
1.1026947498321533,
0.28886115550994873,
-0.036503277719020844,
2.3346352577209473,
0.2938530445098877,
-0.7010561227798462,
0.3562867343425751,
-0.6485811471939087,
0.7132183313369751,
-0.23905183374881744,
1.3949575424194336,
0.5196143388748169,
-1.2182831764221191,
1.6899182796478271,
-0.5186823606491089,
0.5845869779586792,
-0.6183737516403198,
-0.4799656569957733,
-0.7840373516082764,
0.31047073006629944,
1.8506537675857544,
-0.2734690010547638,
1.5810561180114746,
-0.3662918508052826,
-1.5540268421173096,
-1.5581365823745728,
0.7820402383804321,
0.5449866056442261,
-0.7913734912872314,
0.08219452202320099,
-0.2863956093788147,
0.023355484008789062,
0.090281642973423,
1.1126093864440918,
1.1655597686767578,
0.7209523916244507,
-0.2520189881324768,
-0.9119879007339478,
0.1515181064605713,
-0.012334030121564865,
-0.5886833667755127,
-1.7976628541946411,
-0.35675159096717834,
0.2291528284549713,
0.740460991859436,
-1.1614774465560913,
1.7046631574630737,
0.9260026216506958,
1.8831546306610107,
0.8980916738510132,
-0.42693546414375305,
1.3398253917694092,
0.0012457631528377533,
1.90338134765625,
-0.5116764307022095,
0.7434042692184448,
-0.3136092722415924,
-1.1996067762374878,
0.8893070220947266,
-0.3361900746822357,
-2.0527124404907227,
-0.771801233291626,
-0.9031188488006592,
-0.13960570096969604,
-0.7482122182846069,
1.0017033815383911,
-0.17473465204238892,
-1.3204823732376099,
0.26497310400009155,
-0.5994811058044434,
0.2155081182718277,
-1.2446223497390747,
0.3452870845794678,
0.7964186668395996,
-0.7085415124893188,
-0.11162527650594711,
-0.2623887360095978,
-1.2957442998886108,
-0.4882025718688965,
0.3591926693916321,
1.8254786729812622,
-0.7967503070831299,
0.9171048402786255,
0.9615815877914429,
-0.7581967115402222,
0.004783681593835354,
0.23694013059139252,
-0.35724076628685,
0.9447627067565918,
-1.0784250497817993,
-0.3642871677875519,
1.0766310691833496,
-0.2290823608636856,
-0.6199796199798584,
1.4218393564224243,
0.703001856803894,
-1.0562273263931274,
-0.18143261969089508,
-0.28797125816345215,
-0.8388124704360962,
-0.06048054248094559,
-1.6168652772903442,
-0.18034625053405762,
0.23186904191970825,
-1.4290564060211182,
-0.5535964965820312,
-0.16226676106452942,
1.3872054815292358,
-0.2524378299713135,
1.2766735553741455,
-0.2783873379230499,
-0.21880470216274261,
-0.5159375667572021,
-0.4448276162147522,
0.23497137427330017,
-0.1395638883113861,
-0.6055219173431396,
0.33337005972862244,
-0.8775662183761597,
0.19686269760131836,
1.3915984630584717,
0.439589262008667,
0.06584858894348145,
0.4836049973964691,
1.1435762643814087,
0.3608245253562927,
-0.20594139397144318,
-0.8680152893066406,
-1.683192253112793,
2.09462833404541,
-1.4393843412399292,
1.9250191450119019,
0.6994615793228149,
0.02870834246277809,
-1.8112972974777222,
-1.8576686382293701,
1.4442963600158691,
1.1751370429992676,
2.351746082305908,
0.6061148643493652,
0.3901250660419464,
-0.8039861917495728,
-0.6100195646286011,
0.45895177125930786,
-0.9887782335281372,
-0.7426465749740601,
0.12645156681537628,
2.2341086864471436,
1.680638074874878,
-0.5259745121002197,
-0.12800779938697815,
-0.9967740774154663,
1.1997028589248657,
-0.09440189599990845,
0.1601068079471588,
2.0299298763275146,
-0.38821080327033997,
-1.1602360010147095,
1.3111883401870728,
-2.4210546016693115,
0.159895658493042,
1.9492305517196655,
0.29503950476646423,
0.12913504242897034,
-1.3819310665130615,
-0.7521260976791382,
-0.19185929000377655,
-0.4221433699131012,
-1.2517324686050415,
0.5967059135437012,
-0.2893322706222534,
-0.7561122179031372,
-1.5136417150497437,
0.05632435530424118,
-1.229019045829773,
-1.678378939628601,
0.4010550379753113,
1.7642326354980469,
2.138495683670044,
-0.7528315782546997,
1.5087324380874634,
-0.24492819607257843,
0.23520886898040771,
1.2321449518203735,
1.2115750312805176,
3.1416945457458496,
1.8500189781188965,
-1.323929786682129,
0.7232989072799683,
0.0015820693224668503,
-0.5034509301185608,
1.2434253692626953,
-1.003991961479187,
1.2360143661499023,
-0.30347177386283875,
-1.327714204788208,
-1.2971545457839966,
0.9325755834579468,
0.467678040266037,
0.12299497425556183,
-0.5282295942306519,
1.2576895952224731,
0.07618939876556396,
1.3869351148605347,
0.559067964553833,
-0.38494178652763367,
0.5239802598953247,
-0.4730016887187958,
-0.4970329999923706,
1.5512189865112305,
0.1292422115802765,
-1.4344037771224976,
-2.3689160346984863,
-0.3608320951461792,
-0.7269586324691772,
-0.047275934368371964,
-0.6332682371139526,
-0.9412569999694824,
1.6401792764663696,
0.48884138464927673,
-1.2736835479736328,
-0.3209972679615021,
-0.40983501076698303,
-0.6734172105789185,
2.53843092918396,
-1.4864652156829834,
-0.147483229637146,
-0.9867956638336182,
-0.5630815029144287,
1.5693033933639526,
-1.16029691696167,
-0.2860516607761383,
-1.058189868927002,
-0.7001602649688721,
-1.4071420431137085,
-0.6347132921218872,
0.00024215225130319595,
-0.8768620491027832,
0.7504422664642334,
0.0015444913879036903,
-1.1798255443572998,
-0.22487181425094604,
-0.9386718273162842,
0.8402379751205444,
-0.2517038583755493,
0.2636476159095764,
1.8286986351013184,
0.5219149589538574,
-0.49370911717414856,
0.6058762073516846,
1.2090911865234375,
0.8044716119766235,
-0.6277608871459961,
0.1959429681301117,
-0.7718338966369629,
0.20861268043518066,
-1.3076509237289429,
0.25520092248916626,
-2.9969899654388428,
0.6436595916748047,
-0.04600370302796364,
-0.034902073442935944,
-0.009259874001145363,
-1.2517675161361694,
1.0918859243392944,
2.5196404457092285,
-1.2953583002090454,
0.4650218188762665,
0.27268186211586,
1.172108769416809,
-1.576806664466858,
0.25003764033317566,
-0.4122540354728699,
2.103749990463257,
0.12332411110401154,
1.222036600112915,
-0.4606788456439972,
-2.126899242401123,
0.6698421239852905,
-1.271789312362671,
-1.1446049213409424,
0.9335079193115234,
-0.7670077085494995,
0.09992404282093048,
-1.372092843055725,
-0.11264516413211823,
-0.933129072189331,
-1.3167778253555298,
0.7314244508743286,
0.0028634043410420418,
0.43543198704719543,
-0.50923752784729,
0.32910799980163574,
-2.117283821105957,
-1.2117964029312134,
-0.22721175849437714,
-1.0305382013320923,
0.4062570631504059,
-0.37735044956207275,
0.696526288986206,
-0.09979778528213501,
0.06748201698064804,
0.35628679394721985,
1.3091882467269897,
3.358210802078247,
0.22265027463436127,
0.3267804980278015,
-0.12125562876462936,
-0.9686723947525024,
1.5623120069503784,
1.0182807445526123,
-0.15076801180839539,
-0.4875030517578125,
-0.9277729988098145,
1.2330363988876343,
1.875056505203247,
1.0474185943603516,
0.009968603029847145,
-0.9553999900817871,
-0.7559641599655151,
0.13725455105304718,
0.20398467779159546,
0.5334420204162598,
0.863752007484436,
-0.028602194041013718,
0.08050435036420822,
1.4604614973068237,
1.1664459705352783,
-0.42535117268562317,
0.34911659359931946,
-0.8002625703811646,
-0.5527034997940063,
0.5008902549743652,
0.40186256170272827,
0.10166148841381073,
0.39378687739372253,
-0.9906716346740723,
-0.24118217825889587,
-0.2993500828742981,
-0.9995735883712769,
-0.6491183042526245,
-0.5208042860031128,
-0.4905460476875305,
1.6342562437057495,
-0.037312984466552734,
-0.563237190246582,
-0.06581997871398926,
-0.8674395084381104,
-0.15552382171154022,
-1.0973807573318481,
0.33629995584487915,
-0.09904757142066956,
-0.07412293553352356,
-0.1388346254825592,
1.716614007949829,
-0.9950096607208252,
-2.167647361755371,
0.3533167243003845,
0.3315548598766327,
-0.43716999888420105,
0.05342843383550644,
1.621181845664978,
0.45266303420066833,
1.3903931379318237,
1.4027620553970337,
0.9209179878234863,
-0.6864575147628784,
-1.3307453393936157,
0.7754350900650024,
0.9460732936859131,
-1.5746994018554688,
0.8569597005844116,
-0.07673095166683197,
-0.5443285703659058,
0.6850301027297974,
1.30064857006073,
0.3968845009803772,
-1.8865138292312622,
0.8922905921936035,
-0.8536388874053955,
0.8111422061920166,
0.7057148218154907,
0.813934326171875,
0.05470960587263107,
0.7970609664916992,
-1.2725566625595093,
-1.0808799266815186,
-0.7961738109588623,
-0.5392825603485107,
1.8792780637741089,
-0.23033873736858368,
0.4917431175708771,
-0.20027677714824677,
-1.2195988893508911,
-0.028516296297311783,
0.7111527919769287,
0.1742175817489624,
-0.3737812042236328,
0.9298198223114014,
-0.6301510334014893,
-1.1221390962600708,
-1.3886911869049072,
-0.4872153103351593,
-0.951741099357605,
-0.8730028867721558,
1.0916438102722168,
0.8150110244750977,
0.31713324785232544,
1.7834628820419312,
0.49070999026298523,
0.23299622535705566,
-2.5880165100097656,
0.8581918478012085,
0.27952826023101807,
-0.06984233111143112,
0.9534542560577393,
0.16156105697155,
1.0896531343460083,
-0.1482517421245575,
0.5530015230178833,
-2.3770089149475098,
2.242241144180298,
-0.2875649333000183,
0.6640113592147827,
-0.10820483416318893,
-0.20966096222400665,
1.1838059425354004,
0.5786916017532349,
0.5805066823959351,
-1.1830823421478271,
0.8946917057037354,
-0.6182003021240234,
1.1079765558242798,
0.9157345294952393,
-0.949113130569458,
-0.045704156160354614,
1.2907557487487793,
0.5060850381851196,
-0.4210628569126129,
-0.8292763233184814,
-0.8178126811981201,
0.9531903266906738,
1.741603136062622,
0.03284424915909767,
-0.007224375382065773,
0.8928259611129761,
0.7475615739822388,
-1.2950923442840576,
0.033714134246110916,
-0.6318269968032837,
-0.5994031429290771,
1.690453052520752,
1.9618960618972778,
0.03586652874946594,
-0.17650964856147766,
-0.7091617584228516,
-1.2619248628616333,
0.7930468320846558,
0.05792497843503952,
0.11433863639831543,
0.646709680557251,
-0.6854313611984253,
1.2380521297454834,
0.9303425550460815,
0.9033602476119995,
0.06934940069913864,
0.24350914359092712,
0.40047594904899597,
-0.16025005280971527,
-1.095736026763916,
-0.2167324423789978,
-1.0530394315719604,
-2.3827097415924072,
0.5523110628128052,
-0.3352903127670288,
-1.388134241104126,
0.04145071282982826,
-1.0514717102050781,
0.9486514329910278,
-0.5017452239990234,
-1.089845061302185,
-1.6358968019485474,
0.3035432696342468,
-0.12567052245140076,
0.9207901954650879,
-1.577974557876587,
-0.046126894652843475,
1.2556570768356323,
0.8254717588424683,
-0.6155382394790649,
1.036026954650879,
0.27485135197639465,
0.9581208229064941,
0.8301492929458618,
-0.42314308881759644,
0.509797215461731,
0.21320125460624695,
-1.396649718284607,
0.34343090653419495,
1.1212940216064453,
0.21519170701503754,
1.4023805856704712,
-0.3872223198413849,
0.09319736808538437,
0.4132687449455261,
-0.4638160467147827,
-0.584033727645874,
-0.5596833229064941,
0.7517135143280029,
0.17248405516147614,
-0.8492801189422607,
0.05180993676185608,
-0.13428443670272827,
-0.24406138062477112,
0.1966087967157364,
-1.512629508972168,
-0.27062952518463135,
-0.3884223699569702,
-0.5969288349151611,
-1.2542600631713867,
-0.11347194015979767,
1.447596788406372,
-0.8170126676559448,
-0.07359012961387634,
0.5974079370498657,
0.3532325029373169,
0.46287208795547485,
0.7090201377868652,
-0.6244522333145142,
-0.20841538906097412,
-0.29007765650749207,
-0.3073127567768097,
0.2125808596611023,
1.195413589477539,
-0.10781038552522659,
-1.005423665046692,
0.6807690858840942,
-0.2702139616012573,
0.03167382627725601,
1.9603583812713623,
0.018316572532057762,
-0.9255036115646362,
0.38408517837524414,
-0.713507890701294,
1.9647620916366577,
1.7077380418777466,
1.5279744863510132,
-0.1217234656214714,
-0.9489154815673828,
0.6210927963256836,
-0.27166295051574707,
-0.23665586113929749,
1.0463861227035522,
0.515830397605896,
-0.15605367720127106,
-1.4104059934616089,
0.6678473949432373,
1.3808412551879883,
-0.9063228368759155,
-0.7267806529998779,
0.1695098578929901,
-0.8111042976379395,
1.0536859035491943,
0.7284541130065918,
0.4366767108440399,
0.2674384117126465,
1.5560046434402466,
0.6631847620010376,
-0.5729166269302368,
0.41529715061187744,
0.5543270111083984,
-0.12831330299377441,
-2.008767604827881,
-1.0474315881729126,
0.43318477272987366,
-0.44611304998397827,
-1.4634865522384644,
1.3919237852096558,
-1.1775089502334595,
-0.8867213726043701,
0.5624914169311523,
-0.037937261164188385,
1.4272624254226685,
0.2690405249595642,
1.7123024463653564,
2.037156105041504,
0.8969495296478271,
0.23391829431056976,
1.435378909111023,
-0.08946329355239868,
-0.26256945729255676,
1.790719747543335,
-0.4510635733604431,
0.5322092771530151,
1.1883224248886108,
-0.4311768412590027,
-1.0544838905334473,
-0.7781294584274292,
-1.1448220014572144,
-0.6208257675170898,
1.1471340656280518,
0.15959219634532928,
-1.1726388931274414,
0.2426462471485138,
1.5363284349441528,
-0.026870692148804665,
-0.2422950714826584,
0.6641845703125,
0.46097543835639954,
-0.7846876382827759,
-0.1630297601222992,
-1.0226166248321533,
0.6070116758346558,
-0.30144640803337097,
-0.24913161993026733,
0.32984089851379395,
0.43228408694267273,
1.2284109592437744,
0.1225178986787796,
0.22662129998207092,
1.255722999572754,
-1.331071138381958,
1.3805428743362427,
-0.7193893194198608,
0.29022952914237976,
-2.45747709274292,
1.5049313306808472,
-0.7270821332931519,
1.9944688081741333,
-2.6606285572052,
0.2971554100513458,
-0.629969596862793,
-0.45072442293167114,
0.31947147846221924,
-0.3931179344654083,
0.10856916755437851,
-0.1118389144539833,
-0.9937286376953125,
-0.17935088276863098,
-0.8269443511962891,
0.6634172201156616,
1.2895138263702393,
1.2489274740219116,
-1.175225853919983,
-0.27064916491508484,
-1.664836049079895,
-0.25865912437438965,
-0.6409657001495361,
0.39131349325180054,
-1.9341355562210083,
-0.15756389498710632,
-2.0009610652923584,
-2.557678461074829,
-1.2908726930618286,
-0.8144776821136475,
1.1654623746871948,
0.23153910040855408,
-0.9509036540985107,
1.0734703540802002,
-0.4231686592102051,
-1.7801703214645386,
1.15925931930542,
-2.165792942047119
] |
https://github.com/huggingface/datasets/issues/4742 | Dummy data nowhere to be found | Hi @BramVanroy, thanks for reporting.
First of all, please note that you do not need the dummy data: this was the case when we were adding datasets to the `datasets` library (on this GitHub repo), so that we could test the correct loading of all datasets with our CI. However, this is no longer the case for datasets on the Hub.
- We should definitely update our docs.
Second, the dummy data is generated locally:
- in your case, the dummy data will be generated inside the directory: `./datasets/hebban-reviews/dummy`
- please note the preceding `./datasets` directory: the reason for this is that the command to generate the dummy data was specifically created for our `datasets` library, and therefore assumes our directory structure: commands are run from the root directory of our GitHub repo, and datasets scripts are under `./datasets`
| ## Describe the bug
To finalize my dataset, I wanted to create dummy data as per the guide and I ran
```shell
datasets-cli dummy_data datasets/hebban-reviews --auto_generate
```
where hebban-reviews is [this repo](https://huggingface.co/datasets/BramVanroy/hebban-reviews). And even though the scripts runs and shows a message at the end that it succeeded, I cannot find the dummy data anywhere. Where is it?
## Expected results
To see the dummy data in the datasets' folder or in the folder where I ran the command.
## Actual results
I see the following message but I cannot find the dummy data anywhere.
```
Dummy data generation done and dummy data test succeeded for config 'filtered''.
Automatic dummy data generation succeeded for all configs of '.\datasets\hebban-reviews\'
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 607 | 139 | Dummy data nowhere to be found
## Describe the bug
To finalize my dataset, I wanted to create dummy data as per the guide and I ran
```shell
datasets-cli dummy_data datasets/hebban-reviews --auto_generate
```
where hebban-reviews is [this repo](https://huggingface.co/datasets/BramVanroy/hebban-reviews). And even though the scripts runs and shows a message at the end that it succeeded, I cannot find the dummy data anywhere. Where is it?
## Expected results
To see the dummy data in the datasets' folder or in the folder where I ran the command.
## Actual results
I see the following message but I cannot find the dummy data anywhere.
```
Dummy data generation done and dummy data test succeeded for config 'filtered''.
Automatic dummy data generation succeeded for all configs of '.\datasets\hebban-reviews\'
```
## Environment info
- `datasets` version: 2.4.1.dev0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.8
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi @BramVanroy, thanks for reporting.
First of all, please note that you do not need the dummy data: this was the case when we were adding datasets to the `datasets` library (on this GitHub repo), so that we could test the correct loading of all datasets with our CI. However, this is no longer the case for datasets on the Hub.
- We should definitely update our docs.
Second, the dummy data is generated locally:
- in your case, the dummy data will be generated inside the directory: `./datasets/hebban-reviews/dummy`
- please note the preceding `./datasets` directory: the reason for this is that the command to generate the dummy data was specifically created for our `datasets` library, and therefore assumes our directory structure: commands are run from the root directory of our GitHub repo, and datasets scripts are under `./datasets`
| [
-1.2200318574905396,
-0.9372797012329102,
-0.7467915415763855,
1.3415777683258057,
-0.17819666862487793,
-1.3349168300628662,
0.08004491031169891,
-1.0972251892089844,
1.7356648445129395,
-0.8168959617614746,
0.18729257583618164,
-1.737618327140808,
0.018055099993944168,
-0.5837360620498657,
-0.769806981086731,
-0.8624462485313416,
-0.4907611012458801,
-0.7521003484725952,
1.026148796081543,
2.488738536834717,
1.1868095397949219,
-1.3134424686431885,
2.7152516841888428,
0.7214609980583191,
-0.15839260816574097,
-0.9413524270057678,
0.5686478018760681,
0.03376767411828041,
-1.3821115493774414,
-0.3166564106941223,
-0.977066159248352,
-0.05613124370574951,
-0.528744101524353,
-0.5873561501502991,
0.05612789839506149,
0.38618284463882446,
-0.2260397970676422,
-0.4636235237121582,
-0.5309116840362549,
-0.7022619247436523,
0.4542202353477478,
-0.33372920751571655,
0.9895748496055603,
-0.4042051434516907,
1.8766119480133057,
-0.4995735287666321,
0.34034597873687744,
0.7744385600090027,
1.2867401838302612,
0.20407401025295258,
-0.08076493442058563,
0.28450506925582886,
0.358492910861969,
-0.007229391951113939,
0.4585726261138916,
1.1147503852844238,
0.666443943977356,
0.5145697593688965,
0.7861514091491699,
-2.2433969974517822,
1.333191990852356,
-0.9746381640434265,
0.35320836305618286,
1.4266703128814697,
-1.0324097871780396,
0.3910940885543823,
-1.8729298114776611,
-0.001561441458761692,
0.5186318755149841,
-2.2060933113098145,
0.15521195530891418,
-1.2050490379333496,
-0.460313081741333,
1.024779200553894,
0.2160000056028366,
-1.163205862045288,
0.21942122280597687,
-0.39529848098754883,
1.0585414171218872,
0.503407895565033,
1.1819911003112793,
-1.7410739660263062,
0.04973957687616348,
-0.2635256052017212,
0.08199415355920792,
-1.307668685913086,
-1.5647488832473755,
0.5141597986221313,
0.7527855634689331,
0.6047280430793762,
-0.10748381167650223,
0.9382250905036926,
-0.8981134295463562,
0.7686238884925842,
-0.9616637229919434,
-1.7355877161026,
-1.3564274311065674,
-2.225343942642212,
-2.3074896335601807,
0.7616055011749268,
-0.4898616671562195,
-0.43465811014175415,
2.1101338863372803,
-1.08392333984375,
-1.792928695678711,
1.0750893354415894,
0.35879701375961304,
-0.025050729513168335,
2.358755111694336,
0.25292855501174927,
-0.7074490785598755,
0.4168839454650879,
-0.6986442804336548,
0.6536304950714111,
-0.3564050793647766,
1.3391050100326538,
0.4774339199066162,
-1.1240555047988892,
1.6567161083221436,
-0.43787723779678345,
0.5734893679618835,
-0.7143630385398865,
-0.44426506757736206,
-0.8105531930923462,
0.33495205640792847,
1.8284330368041992,
-0.2944239377975464,
1.5605801343917847,
-0.4113112688064575,
-1.5791592597961426,
-1.5982108116149902,
0.8106917142868042,
0.48590290546417236,
-0.7237680554389954,
0.06364358961582184,
-0.303655207157135,
0.033469170331954956,
0.010606585070490837,
1.1063214540481567,
1.224535346031189,
0.7180342674255371,
-0.2505171298980713,
-0.8450934886932373,
0.19562135636806488,
-0.020137421786785126,
-0.6653656363487244,
-1.7041471004486084,
-0.35505545139312744,
0.1586223691701889,
0.6715728640556335,
-1.1579406261444092,
1.7536813020706177,
0.9115076661109924,
1.8569227457046509,
1.0191528797149658,
-0.4177827835083008,
1.4613807201385498,
0.1226324588060379,
1.9043081998825073,
-0.5101572275161743,
0.6806473731994629,
-0.37994271516799927,
-1.179988980293274,
0.8743970990180969,
-0.31099921464920044,
-2.0147602558135986,
-0.7359079718589783,
-0.8738632798194885,
-0.15810078382492065,
-0.6767882704734802,
0.9869102835655212,
-0.15475855767726898,
-1.3514127731323242,
0.15677982568740845,
-0.5765936374664307,
0.07143881171941757,
-1.2246633768081665,
0.30688661336898804,
0.775431215763092,
-0.6726997494697571,
0.046819884330034256,
-0.26114100217819214,
-1.3665817975997925,
-0.5151854753494263,
0.33276939392089844,
1.7902220487594604,
-0.8282943367958069,
0.9508479237556458,
0.9936890602111816,
-0.7579017281532288,
-0.03566454350948334,
0.2927019000053406,
-0.3193451166152954,
0.9225411415100098,
-1.0182714462280273,
-0.40015166997909546,
1.0728821754455566,
-0.19058582186698914,
-0.6071757078170776,
1.450273036956787,
0.6751912236213684,
-1.011247992515564,
-0.2092999815940857,
-0.16195812821388245,
-0.8643872737884521,
-0.026456113904714584,
-1.6294537782669067,
-0.12641409039497375,
0.28078949451446533,
-1.5498747825622559,
-0.5681678652763367,
-0.2066064327955246,
1.3028321266174316,
-0.05959170311689377,
1.3324637413024902,
-0.2867485284805298,
-0.273601770401001,
-0.49400991201400757,
-0.41489386558532715,
0.16953285038471222,
-0.2063886821269989,
-0.5934754014015198,
0.28559398651123047,
-0.8126649856567383,
0.3040626645088196,
1.4092108011245728,
0.40257489681243896,
0.026464737951755524,
0.5818196535110474,
1.1218452453613281,
0.33702772855758667,
-0.11167307943105698,
-0.8489375114440918,
-1.6087474822998047,
2.054603338241577,
-1.5278836488723755,
1.903646469116211,
0.6408027410507202,
-0.012219378724694252,
-1.8345292806625366,
-1.889054536819458,
1.547782063484192,
1.1294935941696167,
2.357351064682007,
0.6195626854896545,
0.4475904703140259,
-0.8166430592536926,
-0.6596049070358276,
0.3676697015762329,
-0.9435864686965942,
-0.7888996005058289,
0.1436837762594223,
2.328406572341919,
1.6936060190200806,
-0.5941798686981201,
-0.2537901997566223,
-1.0682191848754883,
1.3166974782943726,
-0.07612486183643341,
0.23293223977088928,
1.9727692604064941,
-0.36187535524368286,
-1.0426170825958252,
1.3089967966079712,
-2.3723697662353516,
0.16710205376148224,
1.9290056228637695,
0.21832728385925293,
0.10856107622385025,
-1.3383598327636719,
-0.6703981757164001,
-0.20910261571407318,
-0.5019857883453369,
-1.27593994140625,
0.5682870745658875,
-0.2622349262237549,
-0.710054337978363,
-1.4941667318344116,
0.0907135158777237,
-1.1709851026535034,
-1.6378228664398193,
0.27141106128692627,
1.8727742433547974,
2.0487468242645264,
-0.7041521668434143,
1.5085692405700684,
-0.2784785032272339,
0.2405114620923996,
1.200732707977295,
1.2101181745529175,
3.140291929244995,
1.9267537593841553,
-1.2922929525375366,
0.6780798435211182,
-0.08892158418893814,
-0.4845626950263977,
1.1735583543777466,
-1.0265432596206665,
1.2914060354232788,
-0.2693960666656494,
-1.271971344947815,
-1.2018389701843262,
0.9338734149932861,
0.47783762216567993,
0.13256804645061493,
-0.48669683933258057,
1.2523183822631836,
0.058823734521865845,
1.288200855255127,
0.5606865882873535,
-0.4194873571395874,
0.660395085811615,
-0.3752531409263611,
-0.48971885442733765,
1.539028525352478,
0.17368808388710022,
-1.3716789484024048,
-2.30729603767395,
-0.2924387454986572,
-0.8149256706237793,
-0.005667061544954777,
-0.6642178893089294,
-0.9205159544944763,
1.6508855819702148,
0.5096784234046936,
-1.26572847366333,
-0.2263973504304886,
-0.38198232650756836,
-0.6440985202789307,
2.5935099124908447,
-1.4846386909484863,
-0.19207577407360077,
-0.955661416053772,
-0.5430017709732056,
1.566994309425354,
-1.1041580438613892,
-0.1909760981798172,
-0.9937025904655457,
-0.581046462059021,
-1.389427900314331,
-0.6326176524162292,
-0.003217681311070919,
-0.8746681213378906,
0.8707699179649353,
0.10054214298725128,
-1.1606566905975342,
-0.21927955746650696,
-0.9317994713783264,
0.8253532648086548,
-0.17150509357452393,
0.20555344223976135,
1.900500774383545,
0.46411824226379395,
-0.42290055751800537,
0.6887257099151611,
1.1042635440826416,
0.7604995369911194,
-0.5897894501686096,
0.3193633556365967,
-0.6785783171653748,
0.30010467767715454,
-1.2404428720474243,
0.23782110214233398,
-2.879223585128784,
0.6266031861305237,
-0.012475494295358658,
0.020773977041244507,
-0.01557201985269785,
-1.3278831243515015,
0.9902748465538025,
2.544877290725708,
-1.2182806730270386,
0.4598117470741272,
0.3152550458908081,
1.2546385526657104,
-1.5163465738296509,
0.2544092535972595,
-0.46078598499298096,
2.0480480194091797,
0.11057446151971817,
1.1192893981933594,
-0.4752234220504761,
-2.2255520820617676,
0.5406391024589539,
-1.2988392114639282,
-1.1807359457015991,
0.8623659610748291,
-0.7926778197288513,
0.03369149565696716,
-1.3295520544052124,
-0.17741461098194122,
-0.8692885041236877,
-1.264925479888916,
0.803438663482666,
0.09441854804754257,
0.49441689252853394,
-0.6434831619262695,
0.31525856256484985,
-2.117403745651245,
-1.2158466577529907,
-0.29403114318847656,
-0.9182232618331909,
0.4625031352043152,
-0.31049442291259766,
0.7377459406852722,
-0.1423523724079132,
0.04573468863964081,
0.273262083530426,
1.2943227291107178,
3.3816206455230713,
0.15001966059207916,
0.32642662525177,
-0.1552930474281311,
-0.9806995391845703,
1.5538017749786377,
1.035463571548462,
-0.12635640799999237,
-0.5404684543609619,
-1.0691404342651367,
1.1465193033218384,
1.9304001331329346,
1.0400006771087646,
0.0707787275314331,
-0.8874889612197876,
-0.7225303649902344,
0.11437791585922241,
0.18554849922657013,
0.5231121778488159,
0.8986510634422302,
0.06320127844810486,
0.11662732064723969,
1.5004256963729858,
1.176688313484192,
-0.3610718846321106,
0.40297359228134155,
-0.8058249950408936,
-0.5108535885810852,
0.5783739686012268,
0.41335368156433105,
0.016180062666535378,
0.28501784801483154,
-1.0188202857971191,
-0.2062402069568634,
-0.3421977758407593,
-1.0019913911819458,
-0.6428701877593994,
-0.4447299838066101,
-0.40252184867858887,
1.6177177429199219,
0.013935035094618797,
-0.5503820776939392,
-0.042774301022291183,
-0.7683252692222595,
-0.08536342531442642,
-1.0572171211242676,
0.3544164299964905,
-0.15777194499969482,
-0.054450828582048416,
-0.0873807966709137,
1.7524784803390503,
-0.9656662344932556,
-2.0688459873199463,
0.3007187843322754,
0.23854102194309235,
-0.34168219566345215,
0.14128291606903076,
1.607271432876587,
0.5381838083267212,
1.424938678741455,
1.4706072807312012,
0.9888663291931152,
-0.719062328338623,
-1.3425252437591553,
0.6391357779502869,
0.9366876482963562,
-1.4583240747451782,
0.7462604641914368,
-0.01300853956490755,
-0.599066972732544,
0.634997546672821,
1.3231712579727173,
0.34423160552978516,
-2.03961181640625,
0.8163486123085022,
-0.863852858543396,
0.7764636874198914,
0.6359713673591614,
0.8104960322380066,
0.12056593596935272,
0.7758173942565918,
-1.2336992025375366,
-1.1391106843948364,
-0.677863597869873,
-0.5961262583732605,
1.9073370695114136,
-0.18542525172233582,
0.6201469898223877,
-0.17410221695899963,
-1.3412150144577026,
-0.040675632655620575,
0.672039806842804,
0.3582693934440613,
-0.44587957859039307,
0.7757673859596252,
-0.6531392335891724,
-1.1179006099700928,
-1.4019405841827393,
-0.4690169095993042,
-1.0723366737365723,
-0.8411783576011658,
1.0846810340881348,
0.8177601099014282,
0.3218787908554077,
1.7939400672912598,
0.5618469715118408,
0.23202505707740784,
-2.6806769371032715,
0.8838760852813721,
0.3012990951538086,
-0.06743866205215454,
0.8205795884132385,
0.286774218082428,
1.0845686197280884,
-0.0886988416314125,
0.5807831883430481,
-2.4305813312530518,
2.294966220855713,
-0.2654153108596802,
0.7128519415855408,
-0.003270543646067381,
-0.20552709698677063,
1.1458535194396973,
0.5716006755828857,
0.6203209757804871,
-1.0787445306777954,
0.7833464741706848,
-0.5918517708778381,
1.2182133197784424,
0.9251080751419067,
-0.9193934798240662,
-0.06487337499856949,
1.2969318628311157,
0.5322622656822205,
-0.3872941732406616,
-0.9042219519615173,
-1.0021257400512695,
0.978583037853241,
1.791945457458496,
-0.03885550796985626,
0.041137706488370895,
0.8887949585914612,
0.7179965376853943,
-1.3017735481262207,
0.07789338380098343,
-0.7578537464141846,
-0.6259952187538147,
1.6227387189865112,
2.013544797897339,
-0.06652846187353134,
-0.12782615423202515,
-0.7631377577781677,
-1.232954740524292,
0.7681328654289246,
0.06428046524524689,
0.03632975369691849,
0.7069730758666992,
-0.6504741311073303,
1.2262556552886963,
0.8590171933174133,
0.8247044086456299,
0.1314089596271515,
0.31230729818344116,
0.3411068916320801,
-0.27885663509368896,
-1.1537901163101196,
-0.20550483465194702,
-1.007091999053955,
-2.433833599090576,
0.5003525018692017,
-0.18896715342998505,
-1.4614615440368652,
-0.023134566843509674,
-0.9760472178459167,
0.882983386516571,
-0.5223166942596436,
-1.2329496145248413,
-1.5221753120422363,
0.2237493246793747,
-0.09087826311588287,
0.8636745810508728,
-1.5988689661026,
-0.04025653004646301,
1.227389931678772,
0.8636860847473145,
-0.6538609862327576,
1.0085697174072266,
0.29195141792297363,
0.9192419052124023,
0.851556122303009,
-0.36894845962524414,
0.445464551448822,
0.08187607675790787,
-1.421384334564209,
0.4177534580230713,
1.141442894935608,
0.14019566774368286,
1.3900609016418457,
-0.6143331527709961,
0.04569815844297409,
0.41941314935684204,
-0.4120333790779114,
-0.5021200776100159,
-0.6392414569854736,
0.6670448184013367,
0.034896157681941986,
-0.8741723895072937,
0.01948387175798416,
0.03074578195810318,
-0.26962703466415405,
0.2382042109966278,
-1.4799124002456665,
-0.18759381771087646,
-0.40763676166534424,
-0.6134929060935974,
-1.2522366046905518,
-0.05121434107422829,
1.3799344301223755,
-0.782796323299408,
-0.1635875701904297,
0.5792450904846191,
0.3010391592979431,
0.4653046727180481,
0.5885905027389526,
-0.6040478944778442,
-0.29323405027389526,
-0.23736490309238434,
-0.3752543330192566,
0.3114631772041321,
1.3385915756225586,
-0.18238776922225952,
-1.0278773307800293,
0.6993768215179443,
-0.36862635612487793,
-0.019026797264814377,
1.9971191883087158,
0.08004298806190491,
-0.8819534182548523,
0.3244926333427429,
-0.7019999027252197,
1.9004403352737427,
1.7781128883361816,
1.4426944255828857,
-0.13480298221111298,
-1.0201879739761353,
0.5741465091705322,
-0.3661787509918213,
-0.32134467363357544,
1.0555180311203003,
0.4146578311920166,
-0.12288637459278107,
-1.3819079399108887,
0.6619111895561218,
1.4067081212997437,
-0.8832119703292847,
-0.7537118792533875,
0.126462921500206,
-0.8269740343093872,
1.0725469589233398,
0.8054811954498291,
0.414412260055542,
0.2297690063714981,
1.573677659034729,
0.692179799079895,
-0.44228899478912354,
0.48659634590148926,
0.47489380836486816,
-0.16011685132980347,
-2.067063570022583,
-1.135004997253418,
0.37711411714553833,
-0.44922447204589844,
-1.5926802158355713,
1.3922615051269531,
-1.2547824382781982,
-0.9342616200447083,
0.5198714137077332,
0.04140832647681236,
1.450350046157837,
0.3391880989074707,
1.5996249914169312,
2.106563091278076,
0.8941294550895691,
0.3415150046348572,
1.341380000114441,
-0.09445023536682129,
-0.3408550024032593,
1.828538179397583,
-0.43849945068359375,
0.4705970883369446,
1.1940628290176392,
-0.3848620057106018,
-1.063562035560608,
-0.7366332411766052,
-1.1754226684570312,
-0.6560751795768738,
1.1700741052627563,
0.058853231370449066,
-1.1533920764923096,
0.3234403133392334,
1.533180832862854,
0.022971171885728836,
-0.322282612323761,
0.7157253623008728,
0.4572300314903259,
-0.7462143898010254,
-0.11484108865261078,
-0.9248769879341125,
0.525687038898468,
-0.26923269033432007,
-0.28022968769073486,
0.40065425634384155,
0.43212777376174927,
1.2828062772750854,
0.0035112155601382256,
0.17738445103168488,
1.2455698251724243,
-1.3132250308990479,
1.4339007139205933,
-0.7708231806755066,
0.29127585887908936,
-2.4525740146636963,
1.5105639696121216,
-0.751118540763855,
1.8840793371200562,
-2.673861503601074,
0.3098985552787781,
-0.5651906132698059,
-0.42187756299972534,
0.31767189502716064,
-0.301352858543396,
0.042911503463983536,
-0.1451009213924408,
-1.1376118659973145,
-0.07543724775314331,
-0.8383097648620605,
0.6304613947868347,
1.1495366096496582,
1.2524075508117676,
-1.138099193572998,
-0.3035876154899597,
-1.6887279748916626,
-0.1952497810125351,
-0.6364683508872986,
0.4166540503501892,
-1.9944082498550415,
-0.16123446822166443,
-1.9641276597976685,
-2.493610382080078,
-1.3541815280914307,
-0.8883563280105591,
1.2192732095718384,
0.11501780152320862,
-0.9418301582336426,
1.1536026000976562,
-0.42041248083114624,
-1.9107669591903687,
1.1112741231918335,
-2.206045627593994
] |
https://github.com/huggingface/datasets/issues/4737 | Download error on scene_parse_150 | Hi! The server with the data seems to be down. I've reported this issue (https://github.com/CSAILVision/sceneparsing/issues/34) in the dataset repo. | ```
from datasets import load_dataset
dataset = load_dataset("scene_parse_150", "scene_parsing")
FileNotFoundError: Couldn't find file at http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip
```
| 608 | 19 | Download error on scene_parse_150
```
from datasets import load_dataset
dataset = load_dataset("scene_parse_150", "scene_parsing")
FileNotFoundError: Couldn't find file at http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip
```
Hi! The server with the data seems to be down. I've reported this issue (https://github.com/CSAILVision/sceneparsing/issues/34) in the dataset repo. | [
-1.1662825345993042,
-0.7881045341491699,
-0.7810152769088745,
1.5520095825195312,
-0.21037910878658295,
-1.168511152267456,
0.1752660721540451,
-1.0501420497894287,
1.5896258354187012,
-0.6569138765335083,
0.2878055274486542,
-1.6730600595474243,
-0.20202860236167908,
-0.5484370589256287,
-0.7424113154411316,
-0.8759833574295044,
-0.34905683994293213,
-0.7233943939208984,
1.0612684488296509,
2.4154558181762695,
1.2547723054885864,
-1.1980036497116089,
2.7269372940063477,
0.6524176001548767,
-0.1925337016582489,
-1.0710539817810059,
0.5337228775024414,
0.132621631026268,
-1.1433720588684082,
-0.5105369091033936,
-0.9027931690216064,
-0.11950460076332092,
-0.45505550503730774,
-0.462977796792984,
0.0066489363089203835,
0.4575384259223938,
-0.25189563632011414,
-0.3996565639972687,
-0.5733208656311035,
-0.757891058921814,
0.4798828959465027,
-0.3698110580444336,
0.8477957844734192,
-0.4465920925140381,
1.7712191343307495,
-0.6320545077323914,
0.38192862272262573,
0.7309747338294983,
1.4407674074172974,
0.1751951277256012,
-0.03726109489798546,
0.4517323672771454,
0.4221934676170349,
0.06287132948637009,
0.44638654589653015,
1.1309131383895874,
0.4319099485874176,
0.5916361808776855,
0.5624796748161316,
-2.2422523498535156,
1.2695945501327515,
-1.1161404848098755,
0.23300953209400177,
1.421621322631836,
-0.9881729483604431,
0.22007790207862854,
-1.7384482622146606,
0.03493090718984604,
0.5481696724891663,
-2.319096088409424,
0.2799622118473053,
-1.2831801176071167,
-0.5749778151512146,
0.9269272089004517,
0.3510758578777313,
-1.2826489210128784,
0.1026347354054451,
-0.3182358741760254,
1.0510363578796387,
0.48631027340888977,
1.1015241146087646,
-1.6167117357254028,
0.10246455669403076,
-0.22115686535835266,
0.03173264488577843,
-1.336108922958374,
-1.4326220750808716,
0.4571005403995514,
0.5983669757843018,
0.7200865149497986,
-0.14664767682552338,
0.9616978764533997,
-0.8266063928604126,
0.7664178609848022,
-0.9479331970214844,
-1.4974600076675415,
-1.375097393989563,
-2.3634865283966064,
-2.2119688987731934,
0.8883953094482422,
-0.557274580001831,
-0.46596643328666687,
1.997377872467041,
-0.942212700843811,
-1.9142166376113892,
1.1059490442276,
0.31986960768699646,
0.09098049998283386,
2.3793725967407227,
0.2891966998577118,
-0.636039674282074,
0.4643406271934509,
-0.7636274695396423,
0.768313467502594,
-0.4066590368747711,
1.3852800130844116,
0.6312930583953857,
-0.9609429836273193,
1.653796672821045,
-0.2920130789279938,
0.6720454096794128,
-0.5683101415634155,
-0.6591205596923828,
-0.8936916589736938,
0.2937927842140198,
1.980603575706482,
-0.31024304032325745,
1.563720464706421,
-0.3971809446811676,
-1.6760673522949219,
-1.5710842609405518,
1.0001177787780762,
0.418908029794693,
-0.8192219138145447,
0.13234029710292816,
-0.4263257086277008,
0.08388069272041321,
-0.1336939036846161,
1.193539023399353,
1.175647497177124,
0.752875030040741,
-0.4099707007408142,
-0.6981809139251709,
0.203542560338974,
0.08361956477165222,
-0.664111852645874,
-1.8584444522857666,
-0.33342331647872925,
0.1928972750902176,
0.5871703028678894,
-1.2304669618606567,
1.7986215353012085,
0.877314031124115,
1.9678479433059692,
0.8994280099868774,
-0.4487723112106323,
1.3303221464157104,
-0.06565675884485245,
1.8802976608276367,
-0.5512542724609375,
0.5591822862625122,
-0.2187536507844925,
-1.1245416402816772,
0.8232617378234863,
-0.2164624035358429,
-1.9343724250793457,
-1.0027854442596436,
-0.9296560883522034,
-0.14796842634677887,
-0.7048621773719788,
0.9675484299659729,
-0.3220915198326111,
-1.4240453243255615,
-0.06211265176534653,
-0.6359807848930359,
0.19501027464866638,
-1.2689460515975952,
0.21468938887119293,
0.6712406277656555,
-0.6114012002944946,
-0.03993246331810951,
-0.24123485386371613,
-1.2333121299743652,
-0.4933074712753296,
0.4043847322463989,
1.9713233709335327,
-0.6234813332557678,
0.9695960283279419,
0.949123740196228,
-0.8675966262817383,
0.14739644527435303,
0.14342907071113586,
-0.2591972351074219,
0.7466458082199097,
-0.9952057003974915,
-0.5040082931518555,
1.32749342918396,
-0.268160343170166,
-0.7747524976730347,
1.5629496574401855,
0.8271660804748535,
-1.0178518295288086,
-0.21147070825099945,
-0.32474184036254883,
-0.825542688369751,
-0.03987503424286842,
-1.5807111263275146,
-0.16901525855064392,
0.2801649868488312,
-1.4730943441390991,
-0.5317479968070984,
-0.18247994780540466,
1.364539623260498,
-0.2017972320318222,
1.3664368391036987,
-0.18000610172748566,
-0.27904075384140015,
-0.33914148807525635,
-0.49640581011772156,
0.17467063665390015,
-0.11678045988082886,
-0.6858342885971069,
0.17914621531963348,
-0.8605927228927612,
0.30050453543663025,
1.4124680757522583,
0.33933472633361816,
0.054263997822999954,
0.6202690601348877,
1.0840564966201782,
0.4100848138332367,
-0.05828869715332985,
-0.9513112306594849,
-1.5039641857147217,
1.8839060068130493,
-1.3653316497802734,
1.843202829360962,
0.6421199440956116,
-0.10408675670623779,
-1.8285998106002808,
-1.8410485982894897,
1.2926843166351318,
1.269839882850647,
2.306647777557373,
0.4937293529510498,
0.33652356266975403,
-0.767842173576355,
-0.8121013641357422,
0.3253660798072815,
-1.033543348312378,
-0.6315533518791199,
0.22944194078445435,
2.338902235031128,
1.7272192239761353,
-0.7067232728004456,
-0.2485254406929016,
-1.0498685836791992,
1.2259533405303955,
-0.288049578666687,
0.3324662446975708,
2.064286470413208,
-0.3236958086490631,
-1.0429397821426392,
1.302795171737671,
-2.3618617057800293,
0.264232873916626,
2.098958730697632,
0.3626739978790283,
0.21866674721240997,
-1.5116782188415527,
-0.7862491607666016,
-0.16813868284225464,
-0.4673702120780945,
-1.2918853759765625,
0.6503779292106628,
-0.19940683245658875,
-0.9216460585594177,
-1.2699222564697266,
0.1434188187122345,
-0.9748260378837585,
-1.7743233442306519,
0.4248209297657013,
1.9300754070281982,
1.9002288579940796,
-0.6925612092018127,
1.4309123754501343,
-0.25589632987976074,
-0.0423843115568161,
1.3228472471237183,
1.2833143472671509,
2.9754416942596436,
1.8386485576629639,
-1.234509825706482,
0.7956603765487671,
-0.1594516932964325,
-0.5701978206634521,
1.3363860845565796,
-1.1441786289215088,
1.0602128505706787,
-0.3427397310733795,
-1.1327263116836548,
-1.1991556882858276,
0.982668936252594,
0.40215080976486206,
0.08602627366781235,
-0.510489284992218,
1.1349804401397705,
0.11304516345262527,
1.325119137763977,
0.6199856996536255,
-0.5330352187156677,
0.6277782917022705,
-0.3273985683917999,
-0.4094323515892029,
1.5776711702346802,
0.19519701600074768,
-1.4722328186035156,
-2.3270506858825684,
-0.11015723645687103,
-0.8407407402992249,
-0.11032716929912567,
-0.5093989372253418,
-1.0414518117904663,
1.565097451210022,
0.5744132995605469,
-1.2102558612823486,
-0.23680615425109863,
-0.38554292917251587,
-0.533454179763794,
2.808316469192505,
-1.349900722503662,
-0.2651292085647583,
-0.9459549188613892,
-0.5648887157440186,
1.9197962284088135,
-1.084990382194519,
-0.16794390976428986,
-1.0434002876281738,
-0.5938035249710083,
-1.545954704284668,
-0.5309386253356934,
0.07057296484708786,
-0.9449209570884705,
0.8496323823928833,
-0.00923655740916729,
-1.0808229446411133,
-0.3001118302345276,
-0.712437629699707,
1.0264532566070557,
-0.15553894639015198,
0.1581384241580963,
1.9801690578460693,
0.4312695264816284,
-0.377227246761322,
0.8355153799057007,
1.1566509008407593,
0.542232871055603,
-0.6913221478462219,
0.31314897537231445,
-0.6199586391448975,
0.27165257930755615,
-1.3813834190368652,
0.1443345844745636,
-3.0311553478240967,
0.7088814377784729,
-0.10322366654872894,
-0.060020189732313156,
-0.1315695345401764,
-1.329866886138916,
1.1384000778198242,
2.556685209274292,
-1.2838197946548462,
0.34923848509788513,
0.37348294258117676,
1.1737626791000366,
-1.4960671663284302,
0.3046240508556366,
-0.533848762512207,
2.021078586578369,
0.2495020627975464,
1.2595152854919434,
-0.4963609278202057,
-2.0800046920776367,
0.7174919247627258,
-1.2575560808181763,
-1.1775598526000977,
0.7990025281906128,
-0.8920369148254395,
0.28010475635528564,
-1.5399181842803955,
-0.14194846153259277,
-0.8632602095603943,
-1.3292367458343506,
0.8303056359291077,
0.23284533619880676,
0.34483829140663147,
-0.5648506283760071,
0.4444762170314789,
-2.1143033504486084,
-1.3272323608398438,
-0.2193361073732376,
-0.9795867204666138,
0.53909832239151,
-0.39989471435546875,
0.5899339914321899,
-0.07800377905368805,
0.07600446045398712,
0.430051326751709,
1.4040132761001587,
3.452094793319702,
0.13277150690555573,
0.14359484612941742,
-0.11579574644565582,
-0.9386979341506958,
1.5527551174163818,
1.0393264293670654,
-0.11375456303358078,
-0.5334275364875793,
-0.9607354402542114,
1.1330679655075073,
1.961226224899292,
1.0284074544906616,
0.08381219953298569,
-0.9894148111343384,
-0.5795576572418213,
-0.012971434742212296,
0.0667339488863945,
0.4656865894794464,
0.9020538926124573,
0.07044430077075958,
0.10468555986881256,
1.3113220930099487,
1.1658278703689575,
-0.31778013706207275,
0.3669445812702179,
-0.9568761587142944,
-0.37487712502479553,
0.5219197869300842,
0.31693321466445923,
-0.068321593105793,
0.5398871898651123,
-0.9684074521064758,
-0.19583483040332794,
-0.2607991099357605,
-0.961265504360199,
-0.7075272798538208,
-0.4894876778125763,
-0.4263795018196106,
1.5502945184707642,
0.09257879853248596,
-0.6303727626800537,
-0.048930611461400986,
-0.8127064108848572,
-0.1252412497997284,
-0.979967474937439,
0.23612050712108612,
-0.13016845285892487,
-0.09089821577072144,
-0.1522352695465088,
1.654130458831787,
-1.0508941411972046,
-2.1502883434295654,
0.22157135605812073,
0.42513400316238403,
-0.30568936467170715,
0.27116629481315613,
1.5731980800628662,
0.5105901956558228,
1.4282286167144775,
1.314039945602417,
0.9900906085968018,
-0.6137679219245911,
-1.3469371795654297,
0.6461141705513,
0.8887008428573608,
-1.4384210109710693,
0.7926037907600403,
-0.07592006772756577,
-0.4284006655216217,
0.5628650188446045,
1.2068796157836914,
0.4487851858139038,
-1.8921799659729004,
0.7888655662536621,
-0.823179304599762,
0.8361903429031372,
0.6370742321014404,
0.7681758999824524,
0.23196448385715485,
0.9433588981628418,
-1.10727059841156,
-1.1743882894515991,
-0.7341508269309998,
-0.678301215171814,
1.928480863571167,
-0.23324280977249146,
0.6411482691764832,
-0.209791362285614,
-1.1635711193084717,
-0.12014800310134888,
0.7477018237113953,
0.3390558362007141,
-0.5631136298179626,
0.8574302196502686,
-0.5300682187080383,
-0.9956423044204712,
-1.3258090019226074,
-0.47625523805618286,
-1.0324985980987549,
-0.8964060544967651,
0.9284956455230713,
0.8046364188194275,
0.39599549770355225,
1.8718668222427368,
0.5645838975906372,
0.3046015799045563,
-2.721133232116699,
0.9935436248779297,
0.25730830430984497,
0.1112646535038948,
0.7873159646987915,
0.27007579803466797,
1.0555822849273682,
-0.14752309024333954,
0.6808175444602966,
-2.299027442932129,
2.253994941711426,
-0.20934483408927917,
0.5650584697723389,
0.15675650537014008,
-0.1911870688199997,
1.183445930480957,
0.5921431183815002,
0.6095488667488098,
-1.1652461290359497,
0.8162014484405518,
-0.5778941512107849,
1.2224558591842651,
0.9807738661766052,
-0.8086488246917725,
-0.05261147767305374,
1.5324329137802124,
0.5614685416221619,
-0.39583301544189453,
-1.0514219999313354,
-0.8070639371871948,
0.9990575313568115,
1.506994366645813,
-0.07328219711780548,
-0.03136773034930229,
0.9014631509780884,
0.5364668965339661,
-1.220754623413086,
0.0852862149477005,
-0.7405434250831604,
-0.6774472594261169,
1.7377160787582397,
2.01741361618042,
-0.09986180812120438,
-0.20801955461502075,
-0.8194220066070557,
-1.0654593706130981,
0.7936177253723145,
0.018103286623954773,
0.04479169473052025,
0.7032046318054199,
-0.6710159182548523,
1.149222493171692,
0.6361142992973328,
0.9068886041641235,
-0.03734683245420456,
0.46809637546539307,
0.3087616562843323,
-0.3001120090484619,
-1.240726351737976,
-0.3803409934043884,
-1.1642446517944336,
-2.6691031455993652,
0.4153609871864319,
-0.38561317324638367,
-1.360407829284668,
0.038072239607572556,
-1.2023457288742065,
0.9210255742073059,
-0.6754440069198608,
-1.1374340057373047,
-1.415922999382019,
0.2275688797235489,
-0.1411375105381012,
0.9394927024841309,
-1.6562665700912476,
-0.09518606215715408,
1.3124351501464844,
0.8796195983886719,
-0.7985764145851135,
1.0291404724121094,
0.24652743339538574,
1.0643559694290161,
0.7690799236297607,
-0.3945161998271942,
0.5960145592689514,
0.012584391050040722,
-1.3800053596496582,
0.5981907248497009,
1.146122932434082,
0.1821664720773697,
1.5288927555084229,
-0.48669037222862244,
0.1866249144077301,
0.5323582887649536,
-0.7940732836723328,
-0.6306033134460449,
-0.4465191662311554,
0.6919894814491272,
0.07341109216213226,
-1.1390291452407837,
0.033482566475868225,
-0.08224382996559143,
-0.18177010118961334,
0.1059684231877327,
-1.4388020038604736,
-0.27426090836524963,
-0.28981536626815796,
-0.525530219078064,
-1.2609899044036865,
-0.017831359058618546,
1.2193340063095093,
-0.7157134413719177,
-0.1108025461435318,
0.5140296816825867,
0.2213909775018692,
0.5365132093429565,
0.43888476490974426,
-0.862650454044342,
-0.23234382271766663,
-0.3492882549762726,
-0.25520405173301697,
0.4084804654121399,
1.2988088130950928,
-0.14459039270877838,
-0.9487960338592529,
0.6476345658302307,
-0.2587380111217499,
0.07542974501848221,
1.994863510131836,
-0.07079309970140457,
-0.8002515435218811,
0.40639859437942505,
-0.7066188454627991,
1.816809058189392,
1.5480726957321167,
1.2291104793548584,
-0.16361215710639954,
-0.8358086943626404,
0.43812456727027893,
-0.2681666612625122,
-0.3218443989753723,
0.7505497336387634,
0.44809168577194214,
-0.17014393210411072,
-1.3298958539962769,
0.7017598152160645,
1.273095965385437,
-0.8412724733352661,
-0.7917576432228088,
0.055668655782938004,
-0.7835140228271484,
1.0568674802780151,
0.5881285071372986,
0.28121277689933777,
0.295328825712204,
1.5786341428756714,
0.6519840359687805,
-0.45733001828193665,
0.4580830931663513,
0.47664663195610046,
-0.0853937417268753,
-2.1400558948516846,
-1.2057539224624634,
0.444451242685318,
-0.5052589178085327,
-1.6508251428604126,
1.331427812576294,
-1.0771052837371826,
-0.9508905410766602,
0.5983052849769592,
0.18536479771137238,
1.4522887468338013,
0.34462374448776245,
1.5473072528839111,
2.0773866176605225,
0.9035162329673767,
0.3323107361793518,
1.3731210231781006,
-0.06130272150039673,
-0.5469803810119629,
1.8912932872772217,
-0.43774908781051636,
0.5476550459861755,
1.0709214210510254,
-0.34232908487319946,
-1.071899652481079,
-0.8575209975242615,
-1.2970685958862305,
-0.7174035310745239,
1.2611432075500488,
0.21768918633460999,
-1.1776058673858643,
0.2036246359348297,
1.6261957883834839,
0.15956822037696838,
-0.24357254803180695,
0.7375279068946838,
0.4416423439979553,
-0.8337588906288147,
0.059411343187093735,
-0.9258850812911987,
0.46681198477745056,
-0.1591769903898239,
-0.313436895608902,
0.221165269613266,
0.37558963894844055,
1.3472900390625,
-0.1103859394788742,
0.13723962008953094,
1.0897254943847656,
-1.4107129573822021,
1.670925259590149,
-0.6741706132888794,
0.35740557312965393,
-2.494446039199829,
1.3580764532089233,
-0.7687352895736694,
1.9006415605545044,
-2.6868693828582764,
0.40026742219924927,
-0.5342798233032227,
-0.379618763923645,
0.26472869515419006,
-0.4541919529438019,
0.07219011336565018,
-0.09077740460634232,
-1.0628963708877563,
0.08816289901733398,
-0.7856694459915161,
0.6268976330757141,
1.2385761737823486,
1.3658621311187744,
-1.1254531145095825,
-0.37079358100891113,
-1.8496737480163574,
-0.1210804134607315,
-0.779812216758728,
0.4799378216266632,
-2.0252959728240967,
-0.1829856038093567,
-1.9094194173812866,
-2.3159468173980713,
-1.1997231245040894,
-0.792595624923706,
1.0179493427276611,
0.14910751581192017,
-0.9000876545906067,
1.1050591468811035,
-0.3536352217197418,
-1.7805840969085693,
1.0782874822616577,
-2.2077481746673584
] |
https://github.com/huggingface/datasets/issues/4736 | Dataset Viewer issue for deepklarity/huggingface-spaces-dataset | Thanks for reporting. You're right, workers were under-provisioned due to a manual error, and the job queue was full. It's fixed now. | ### Link
https://huggingface.co/datasets/deepklarity/huggingface-spaces-dataset/viewer/deepklarity--huggingface-spaces-dataset/train
### Description
Hi Team,
I'm getting the following error on a uploaded dataset. I'm getting the same status for a couple of hours now. The dataset size is `<1MB` and the format is csv, so I'm not sure if it's supposed to take this much time or not.
```
Status code: 400
Exception: Status400Error
Message: The split is being processed. Retry later.
```
Is there any explicit step to be taken to get the viewer to work?
### Owner
Yes | 609 | 22 | Dataset Viewer issue for deepklarity/huggingface-spaces-dataset
### Link
https://huggingface.co/datasets/deepklarity/huggingface-spaces-dataset/viewer/deepklarity--huggingface-spaces-dataset/train
### Description
Hi Team,
I'm getting the following error on a uploaded dataset. I'm getting the same status for a couple of hours now. The dataset size is `<1MB` and the format is csv, so I'm not sure if it's supposed to take this much time or not.
```
Status code: 400
Exception: Status400Error
Message: The split is being processed. Retry later.
```
Is there any explicit step to be taken to get the viewer to work?
### Owner
Yes
Thanks for reporting. You're right, workers were under-provisioned due to a manual error, and the job queue was full. It's fixed now. | [
-1.17107093334198,
-1.0233168601989746,
-0.7818043231964111,
1.461008906364441,
-0.10506562888622284,
-1.3398514986038208,
0.0730535015463829,
-1.0150068998336792,
1.7531418800354004,
-0.8305691480636597,
0.3563697338104248,
-1.7728843688964844,
-0.06580837070941925,
-0.5992159843444824,
-0.6347492933273315,
-0.8701028227806091,
-0.32516157627105713,
-0.7496891021728516,
0.9727666974067688,
2.589794397354126,
1.1100927591323853,
-1.3642830848693848,
2.6683244705200195,
0.6112355589866638,
-0.21091033518314362,
-0.9908245205879211,
0.5982746481895447,
0.004317212849855423,
-1.295232892036438,
-0.3550608158111572,
-0.9561102986335754,
-0.003135066945105791,
-0.5688511729240417,
-0.5244449377059937,
0.037572093307971954,
0.4602309763431549,
-0.15131250023841858,
-0.4131688177585602,
-0.4958198666572571,
-0.8929314613342285,
0.3926731050014496,
-0.4217570126056671,
0.8953573703765869,
-0.4208565652370453,
1.8670483827590942,
-0.5354557037353516,
0.38018277287483215,
0.688697099685669,
1.3245797157287598,
0.1515258550643921,
-0.054430361837148666,
0.2566160261631012,
0.3930472731590271,
0.00982773769646883,
0.3711952269077301,
1.1046074628829956,
0.45475348830223083,
0.5880082249641418,
0.7183035016059875,
-2.2601916790008545,
1.380639910697937,
-0.8946155309677124,
0.3032972514629364,
1.3446124792099,
-1.1013089418411255,
0.3981499969959259,
-1.8117438554763794,
-0.018916837871074677,
0.4690466523170471,
-2.195112943649292,
0.242325097322464,
-1.1986346244812012,
-0.5504558086395264,
0.9794506430625916,
0.3342408537864685,
-1.2815970182418823,
0.07390612363815308,
-0.45710986852645874,
0.9941871762275696,
0.4951024055480957,
1.1131995916366577,
-1.7126121520996094,
0.011541261337697506,
-0.3551420569419861,
0.09071937203407288,
-1.413321852684021,
-1.5930694341659546,
0.5650497674942017,
0.761899471282959,
0.6895492076873779,
-0.0367622971534729,
0.9197112917900085,
-0.9566704630851746,
0.8036928772926331,
-0.9082770943641663,
-1.7336537837982178,
-1.3365278244018555,
-2.323593854904175,
-2.33939266204834,
0.7249740362167358,
-0.4521620273590088,
-0.5247662663459778,
1.992964744567871,
-1.0144612789154053,
-1.861018180847168,
1.208324670791626,
0.25140365958213806,
-0.042556051164865494,
2.378329038619995,
0.28584447503089905,
-0.6804101467132568,
0.3834613263607025,
-0.7436538934707642,
0.7791732549667358,
-0.4699919521808624,
1.366690754890442,
0.5237782597541809,
-1.035176396369934,
1.6432194709777832,
-0.48990297317504883,
0.5331442356109619,
-0.7444579005241394,
-0.47719740867614746,
-0.7668607831001282,
0.3409861922264099,
1.8869566917419434,
-0.3822833299636841,
1.536682367324829,
-0.3320019543170929,
-1.4666134119033813,
-1.610803484916687,
0.8394896984100342,
0.405344158411026,
-0.760261058807373,
0.20030607283115387,
-0.3033694326877594,
0.10937660932540894,
-0.04964286834001541,
1.0519007444381714,
1.256473422050476,
0.6283902525901794,
-0.24202114343643188,
-0.9312768578529358,
0.27766335010528564,
-0.09244424849748611,
-0.6395111680030823,
-1.7989742755889893,
-0.4384153485298157,
0.07551471889019012,
0.6610068082809448,
-1.1863477230072021,
1.7129687070846558,
0.8885591626167297,
1.9368635416030884,
1.0640268325805664,
-0.2536714971065521,
1.504995584487915,
0.034362174570560455,
1.9264321327209473,
-0.46660134196281433,
0.6758706569671631,
-0.32047203183174133,
-1.0592620372772217,
0.7765235900878906,
-0.3815540075302124,
-1.9347423315048218,
-0.7346335649490356,
-0.9490456581115723,
-0.18344265222549438,
-0.7995757460594177,
0.9925182461738586,
-0.3078301250934601,
-1.423004150390625,
0.23988734185695648,
-0.6645205616950989,
0.184798926115036,
-1.2909377813339233,
0.27127528190612793,
0.7018154263496399,
-0.5815920829772949,
0.09066779911518097,
-0.3416958153247833,
-1.333967685699463,
-0.4915621876716614,
0.32495659589767456,
1.9025533199310303,
-0.7592475414276123,
0.9282582402229309,
0.9176283478736877,
-0.7108513712882996,
0.013043935410678387,
0.41364529728889465,
-0.265245646238327,
0.871081531047821,
-1.0844190120697021,
-0.42842158675193787,
1.0849918127059937,
-0.2190394103527069,
-0.7424827814102173,
1.5042062997817993,
0.8419730067253113,
-0.9710394740104675,
-0.16538472473621368,
-0.1973540186882019,
-0.71071857213974,
-0.0003936011344194412,
-1.620471477508545,
-0.14378246665000916,
0.20733115077018738,
-1.4376153945922852,
-0.5718153715133667,
-0.27901652455329895,
1.2784839868545532,
-0.07774457335472107,
1.334983468055725,
-0.27506324648857117,
-0.37706562876701355,
-0.37968358397483826,
-0.4428190588951111,
0.1303701102733612,
-0.20672571659088135,
-0.6140661835670471,
0.2341986447572708,
-0.8741893768310547,
0.2845149338245392,
1.4296883344650269,
0.39051714539527893,
0.11435697227716446,
0.7149980664253235,
1.1056889295578003,
0.3356304168701172,
-0.06552102416753769,
-0.885013997554779,
-1.5581904649734497,
1.9962258338928223,
-1.4961633682250977,
1.9232630729675293,
0.7938886284828186,
-0.0033591636456549168,
-1.8993196487426758,
-1.8841110467910767,
1.4352455139160156,
1.195834994316101,
2.3183350563049316,
0.6461219191551208,
0.4105433523654938,
-0.9053349494934082,
-0.6361383199691772,
0.38742634654045105,
-0.9868624210357666,
-0.7811343669891357,
0.10471446812152863,
2.297590494155884,
1.790134072303772,
-0.5108702182769775,
-0.2039705365896225,
-1.077165126800537,
1.2975294589996338,
-0.07434066385030746,
0.18227775394916534,
1.9847817420959473,
-0.3849586248397827,
-1.0363999605178833,
1.2389652729034424,
-2.3025362491607666,
0.14391593635082245,
1.979453444480896,
0.16616082191467285,
0.007128397934138775,
-1.4320309162139893,
-0.7577528953552246,
-0.12765811383724213,
-0.34075599908828735,
-1.2303907871246338,
0.5071530342102051,
-0.3120850622653961,
-0.80583256483078,
-1.5049409866333008,
0.1364772617816925,
-1.1408623456954956,
-1.6673915386199951,
0.3164075016975403,
1.7899742126464844,
1.983008623123169,
-0.7658517956733704,
1.5116239786148071,
-0.15927064418792725,
0.29250437021255493,
1.3230524063110352,
1.2205992937088013,
3.1161298751831055,
1.9967842102050781,
-1.2410320043563843,
0.7660861611366272,
-0.07820960879325867,
-0.5318074822425842,
1.2307757139205933,
-1.0107842683792114,
1.2345281839370728,
-0.22232863306999207,
-1.192033290863037,
-1.2577461004257202,
0.8657692670822144,
0.42846769094467163,
-0.003287925850600004,
-0.5101021528244019,
1.2332326173782349,
0.06170067563652992,
1.2298880815505981,
0.5710530877113342,
-0.39433181285858154,
0.6342769265174866,
-0.44997385144233704,
-0.4702877402305603,
1.630429744720459,
0.22009290754795074,
-1.4101635217666626,
-2.2699389457702637,
-0.24626442790031433,
-0.893066942691803,
-0.12053964287042618,
-0.6913849711418152,
-1.0158164501190186,
1.649337887763977,
0.47490110993385315,
-1.1750426292419434,
-0.2793280780315399,
-0.33315083384513855,
-0.6683146953582764,
2.6106040477752686,
-1.4457343816757202,
-0.23784306645393372,
-1.005710244178772,
-0.5063008666038513,
1.5996087789535522,
-1.25746750831604,
-0.1330702155828476,
-1.1134291887283325,
-0.5884355902671814,
-1.3142726421356201,
-0.5098500847816467,
-0.11519262939691544,
-0.9559500217437744,
0.839582085609436,
0.09031360596418381,
-1.1467363834381104,
-0.20103734731674194,
-0.8816154599189758,
0.8005469441413879,
-0.08574142307043076,
0.2905399203300476,
1.9770125150680542,
0.42971137166023254,
-0.4439986050128937,
0.6107244491577148,
1.1113084554672241,
0.6370111107826233,
-0.7441504597663879,
0.2903573513031006,
-0.6417903900146484,
0.2974050045013428,
-1.326578974723816,
0.2572031021118164,
-2.904839515686035,
0.6403728723526001,
0.004791335202753544,
-0.12084468454122543,
-0.025730755180120468,
-1.2777971029281616,
1.0650018453598022,
2.5777361392974854,
-1.228973627090454,
0.4492134749889374,
0.2567143738269806,
1.3066588640213013,
-1.554713487625122,
0.3200329542160034,
-0.48338043689727783,
2.111502170562744,
0.14434117078781128,
1.0873726606369019,
-0.5421006679534912,
-2.1548588275909424,
0.5719314813613892,
-1.17436945438385,
-1.1261053085327148,
0.722503125667572,
-0.8023379445075989,
-0.02339903637766838,
-1.336575984954834,
-0.09973251074552536,
-0.8541339039802551,
-1.2179768085479736,
0.8703246712684631,
0.12773272395133972,
0.5572522282600403,
-0.6022355556488037,
0.35292351245880127,
-2.1154861450195312,
-1.4468804597854614,
-0.21833336353302002,
-0.8546189069747925,
0.395924836397171,
-0.34229663014411926,
0.6905282735824585,
-0.20909374952316284,
0.13031955063343048,
0.2696358263492584,
1.3756153583526611,
3.3674705028533936,
0.1766340434551239,
0.4251856207847595,
-0.11743311583995819,
-1.0121569633483887,
1.5467822551727295,
0.994101345539093,
-0.12434263527393341,
-0.49976086616516113,
-1.0821237564086914,
1.2938607931137085,
1.959627389907837,
0.992134153842926,
0.18988603353500366,
-0.7960689663887024,
-0.708065927028656,
0.006127743981778622,
0.1104482114315033,
0.5461823344230652,
0.892956554889679,
0.07830613106489182,
0.1557178497314453,
1.4892808198928833,
1.2324756383895874,
-0.3888940215110779,
0.435869961977005,
-0.8532407879829407,
-0.4307056665420532,
0.5232914686203003,
0.4053654968738556,
0.02394114062190056,
0.2740713357925415,
-1.082042932510376,
-0.30283284187316895,
-0.2857029139995575,
-1.017612338066101,
-0.7137444615364075,
-0.4883034825325012,
-0.3368951082229614,
1.6386408805847168,
0.07581062614917755,
-0.48157793283462524,
-0.07441443204879761,
-0.8127244710922241,
-0.08588014543056488,
-1.0787384510040283,
0.20933541655540466,
-0.15374523401260376,
-0.10138789564371109,
0.020735669881105423,
1.7428861856460571,
-1.0256997346878052,
-2.2727482318878174,
0.24427706003189087,
0.22979885339736938,
-0.4167303442955017,
0.12845061719417572,
1.5661319494247437,
0.5284850001335144,
1.374210238456726,
1.3207225799560547,
1.0240663290023804,
-0.6870744824409485,
-1.2990766763687134,
0.5561493635177612,
0.8973585367202759,
-1.4150826930999756,
0.9016704559326172,
-0.0006208941340446472,
-0.5831624865531921,
0.696001410484314,
1.3217272758483887,
0.3946206271648407,
-1.9030849933624268,
0.7230349779129028,
-0.8145555853843689,
0.8516590595245361,
0.7657635807991028,
0.8831421732902527,
0.22704409062862396,
0.763212263584137,
-1.2634638547897339,
-1.181223750114441,
-0.760159969329834,
-0.6081436276435852,
1.910821795463562,
-0.134376659989357,
0.5232597589492798,
-0.20322813093662262,
-1.3400161266326904,
-0.05242326110601425,
0.7618919014930725,
0.3382852077484131,
-0.37899065017700195,
0.7264471650123596,
-0.6341582536697388,
-1.0763320922851562,
-1.4292287826538086,
-0.4691912531852722,
-0.9565645456314087,
-0.920888364315033,
1.0322359800338745,
0.7941272854804993,
0.3002527356147766,
1.896777868270874,
0.6202478408813477,
0.198187455534935,
-2.650202751159668,
0.8986149430274963,
0.34066087007522583,
0.07360668480396271,
0.8597620725631714,
0.27457892894744873,
1.1185739040374756,
-0.12195125222206116,
0.5524714589118958,
-2.2640209197998047,
2.2362680435180664,
-0.3130686581134796,
0.6021044850349426,
-0.025827620178461075,
-0.03181225061416626,
1.1441230773925781,
0.511049747467041,
0.6498625874519348,
-1.0444623231887817,
0.7589240074157715,
-0.60140460729599,
1.2974978685379028,
1.0323493480682373,
-0.8019551038742065,
0.06050543114542961,
1.2859739065170288,
0.5005054473876953,
-0.4900718033313751,
-0.8960487246513367,
-0.922848105430603,
0.9929677844047546,
1.8163999319076538,
-0.003837465774267912,
0.0006664702668786049,
0.9495701193809509,
0.5725762248039246,
-1.3372561931610107,
0.08472444117069244,
-0.6697527766227722,
-0.5949860215187073,
1.6580650806427002,
2.003807783126831,
-0.11476969718933105,
-0.12275906652212143,
-0.7843111157417297,
-1.2348542213439941,
0.768113374710083,
0.08417919278144836,
-0.006753207184374332,
0.8053863644599915,
-0.6210290789604187,
1.1773662567138672,
0.781603217124939,
0.952244222164154,
0.1418251395225525,
0.3561389744281769,
0.3194195330142975,
-0.3473655581474304,
-1.2407947778701782,
-0.2533109784126282,
-1.0573952198028564,
-2.536776304244995,
0.43695786595344543,
-0.2283632457256317,
-1.433897852897644,
0.01272506732493639,
-1.0083860158920288,
0.9762030243873596,
-0.591738760471344,
-1.1366214752197266,
-1.545396089553833,
0.16876986622810364,
-0.20725400745868683,
0.8366808295249939,
-1.640515923500061,
-0.0439271442592144,
1.2787750959396362,
0.9293593168258667,
-0.6406852006912231,
1.038727879524231,
0.2792309522628784,
1.1179888248443604,
0.8826972842216492,
-0.3342466652393341,
0.47231894731521606,
0.0586121492087841,
-1.3910565376281738,
0.42964816093444824,
1.186058521270752,
0.22038200497627258,
1.3595314025878906,
-0.5501710772514343,
0.029297079890966415,
0.45240652561187744,
-0.40867817401885986,
-0.4390309453010559,
-0.5789886116981506,
0.7652380466461182,
0.04103555157780647,
-0.8968912959098816,
0.1311223804950714,
0.029681667685508728,
-0.15824662148952484,
0.3088923692703247,
-1.505935788154602,
-0.15841804444789886,
-0.339916467666626,
-0.5894023776054382,
-1.339323878288269,
0.0014566704630851746,
1.3990297317504883,
-0.7460463643074036,
-0.2106381356716156,
0.5294229984283447,
0.3079823851585388,
0.5313594341278076,
0.5705547332763672,
-0.633880615234375,
-0.35155636072158813,
-0.2391078770160675,
-0.37050068378448486,
0.33615946769714355,
1.2462824583053589,
-0.24488769471645355,
-1.0316401720046997,
0.7441695332527161,
-0.33264344930648804,
0.1068105399608612,
1.9647923707962036,
0.0660422146320343,
-0.8596739768981934,
0.222727432847023,
-0.6466432213783264,
1.9277878999710083,
1.652495265007019,
1.3773034811019897,
-0.06807354837656021,
-0.9096789956092834,
0.5543122291564941,
-0.1762891411781311,
-0.40172824263572693,
0.9337868094444275,
0.49764037132263184,
-0.12683835625648499,
-1.32050359249115,
0.5566110610961914,
1.3105968236923218,
-0.8606500625610352,
-0.8847436308860779,
0.12972909212112427,
-0.7831881046295166,
1.074792742729187,
0.7512474656105042,
0.4851038455963135,
0.22837522625923157,
1.5941314697265625,
0.6778132915496826,
-0.5263412594795227,
0.5246041417121887,
0.45319032669067383,
-0.09080254286527634,
-2.0638439655303955,
-1.1216378211975098,
0.29458245635032654,
-0.43388330936431885,
-1.639079213142395,
1.290616512298584,
-1.277157187461853,
-0.8551508784294128,
0.5388596057891846,
0.20528541505336761,
1.5579859018325806,
0.26341667771339417,
1.6154649257659912,
1.977798581123352,
0.8253685832023621,
0.34847551584243774,
1.29298996925354,
-0.14450353384017944,
-0.40755558013916016,
1.8282740116119385,
-0.49999329447746277,
0.5330026745796204,
1.0802216529846191,
-0.3989492654800415,
-1.047606110572815,
-0.7782883644104004,
-1.191658854484558,
-0.5861795544624329,
1.1030144691467285,
0.10450642555952072,
-1.2097725868225098,
0.21833045780658722,
1.4693243503570557,
0.06407980620861053,
-0.24941493570804596,
0.6727052330970764,
0.42523613572120667,
-0.7347710728645325,
-0.009404650889337063,
-0.9176225066184998,
0.506413996219635,
-0.17919158935546875,
-0.29173916578292847,
0.39410197734832764,
0.4656613767147064,
1.2546324729919434,
-0.0284036286175251,
0.17724573612213135,
1.3594106435775757,
-1.3031103610992432,
1.4124950170516968,
-0.6149828433990479,
0.19472651183605194,
-2.4006617069244385,
1.4895521402359009,
-0.8489601612091064,
1.771626591682434,
-2.6303484439849854,
0.380653440952301,
-0.6414777040481567,
-0.4269462823867798,
0.26875579357147217,
-0.356096476316452,
0.04589759185910225,
-0.15606166422367096,
-1.055869698524475,
-0.00414866441860795,
-0.7389636039733887,
0.47459208965301514,
1.2664803266525269,
1.2484391927719116,
-1.0540705919265747,
-0.21037866175174713,
-1.8640753030776978,
-0.10510963946580887,
-0.746502161026001,
0.3693981468677521,
-2.076185941696167,
-0.1420745849609375,
-1.9383883476257324,
-2.4765539169311523,
-1.3862450122833252,
-0.8823180794715881,
1.134518027305603,
0.1842854768037796,
-0.8928302526473999,
1.054455280303955,
-0.28899437189102173,
-1.8000986576080322,
1.0851715803146362,
-2.145068883895874
] |
https://github.com/huggingface/datasets/issues/4734 | Package rouge-score cannot be imported | We have added a comment on an existing issue opened in their repo: https://github.com/google-research/google-research/issues/1212#issuecomment-1192267130
- https://github.com/google-research/google-research/issues/1212 | ## Describe the bug
After the today release of `rouge_score-0.0.7` it seems no longer importable. Our CI fails: https://github.com/huggingface/datasets/runs/7463218591?check_suite_focus=true
```
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_bigbench
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_builder_configs_bigbench
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_bigbench
FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_rouge
```
with errors:
```
> from rouge_score import rouge_scorer
E ModuleNotFoundError: No module named 'rouge_score'
```
```
E ImportError: To be able to use rouge, you need to install the following dependency: rouge_score.
E Please install it using 'pip install rouge_score' for instance'
```
| 610 | 16 | Package rouge-score cannot be imported
## Describe the bug
After the today release of `rouge_score-0.0.7` it seems no longer importable. Our CI fails: https://github.com/huggingface/datasets/runs/7463218591?check_suite_focus=true
```
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_bigbench
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_builder_configs_bigbench
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_bigbench
FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_rouge
```
with errors:
```
> from rouge_score import rouge_scorer
E ModuleNotFoundError: No module named 'rouge_score'
```
```
E ImportError: To be able to use rouge, you need to install the following dependency: rouge_score.
E Please install it using 'pip install rouge_score' for instance'
```
We have added a comment on an existing issue opened in their repo: https://github.com/google-research/google-research/issues/1212#issuecomment-1192267130
- https://github.com/google-research/google-research/issues/1212 | [
-1.0983996391296387,
-0.8517323732376099,
-0.7823228240013123,
1.6657650470733643,
-0.06040431559085846,
-1.2920780181884766,
0.05538564920425415,
-0.9233361482620239,
1.4881799221038818,
-0.6784533858299255,
0.3141481876373291,
-1.6183748245239258,
0.015684766694903374,
-0.5752670168876648,
-0.7541748881340027,
-0.7455570697784424,
-0.5259562134742737,
-0.6915584802627563,
1.0965030193328857,
2.3863134384155273,
1.3287596702575684,
-1.3823628425598145,
2.651658058166504,
0.8081139922142029,
-0.25166183710098267,
-1.137573003768921,
0.47296127676963806,
-0.09917160123586655,
-1.192413568496704,
-0.46941521763801575,
-0.7486456632614136,
-0.18750108778476715,
-0.6350534558296204,
-0.4576124846935272,
0.006347296759486198,
0.4994257688522339,
-0.28221940994262695,
-0.39837512373924255,
-0.5705513954162598,
-0.8705470561981201,
0.5005201101303101,
-0.3483423888683319,
0.9132209420204163,
-0.3078758716583252,
1.7219457626342773,
-0.6071324944496155,
0.5206932425498962,
0.748310387134552,
1.4038126468658447,
0.0764969140291214,
-0.04739714786410332,
0.3593466281890869,
0.3526792824268341,
-0.024528920650482178,
0.6201906204223633,
1.108952522277832,
0.6798766255378723,
0.42113861441612244,
0.6396032571792603,
-2.3075308799743652,
1.232994556427002,
-0.8810392022132874,
0.27436530590057373,
1.3119900226593018,
-0.8306593894958496,
0.20227199792861938,
-1.7464511394500732,
-0.010846107266843319,
0.6571276187896729,
-2.1066901683807373,
0.3240290880203247,
-1.2763628959655762,
-0.4932701885700226,
1.0251178741455078,
0.3512656092643738,
-1.2444114685058594,
0.06836451590061188,
-0.33373239636421204,
1.106013536453247,
0.4606149196624756,
1.0257782936096191,
-1.7441723346710205,
0.009916145354509354,
-0.25582459568977356,
0.11065354943275452,
-1.1895322799682617,
-1.5118443965911865,
0.4777279496192932,
0.5797250270843506,
0.7674431800842285,
-0.10625429451465607,
0.9633927345275879,
-1.0474011898040771,
0.884964644908905,
-1.1748559474945068,
-1.6389195919036865,
-1.4177632331848145,
-2.4269933700561523,
-2.3654091358184814,
0.6844332218170166,
-0.5391379594802856,
-0.4249895215034485,
2.029400110244751,
-1.0160164833068848,
-1.7717230319976807,
1.0694024562835693,
0.3641052842140198,
0.17941069602966309,
2.258242607116699,
0.1877804696559906,
-0.7499824166297913,
0.49156683683395386,
-0.8041718006134033,
0.7610272765159607,
-0.3201797604560852,
1.3848540782928467,
0.5568791031837463,
-1.0829274654388428,
1.6115131378173828,
-0.49136650562286377,
0.7132097482681274,
-0.7266407608985901,
-0.5138887166976929,
-0.6629274487495422,
0.260478675365448,
1.855879783630371,
-0.26303476095199585,
1.4971482753753662,
-0.25694984197616577,
-1.4492170810699463,
-1.485996961593628,
0.8486560583114624,
0.45685702562332153,
-0.8388687372207642,
0.1597660481929779,
-0.5085641145706177,
0.15137521922588348,
-0.15419676899909973,
1.0197844505310059,
1.1573526859283447,
0.7686656713485718,
-0.4640277028083801,
-0.8672971725463867,
0.23762013018131256,
0.021436229348182678,
-0.785906970500946,
-1.7854793071746826,
-0.2669333219528198,
0.1267368346452713,
0.6234739422798157,
-1.20111083984375,
1.7959144115447998,
0.8506736755371094,
2.002732276916504,
0.930346667766571,
-0.3818059265613556,
1.4229309558868408,
-0.12148967385292053,
1.8634393215179443,
-0.545437753200531,
0.5776839256286621,
-0.35030055046081543,
-1.1521525382995605,
0.8493918180465698,
-0.35300686955451965,
-2.143956422805786,
-0.8183079957962036,
-0.6602188348770142,
-0.20424716174602509,
-0.714907169342041,
0.8590328097343445,
-0.34775835275650024,
-1.4378416538238525,
0.10151445865631104,
-0.7783935070037842,
0.2821299731731415,
-1.22515869140625,
0.22474797070026398,
0.7348926663398743,
-0.5976129174232483,
0.005022977478802204,
-0.21687695384025574,
-1.195021629333496,
-0.5110656023025513,
0.47685039043426514,
1.8801252841949463,
-0.6319383382797241,
0.8982364535331726,
1.0239036083221436,
-0.6514838933944702,
0.14538663625717163,
0.24005872011184692,
-0.2379235476255417,
0.7163096070289612,
-1.0843794345855713,
-0.5269170999526978,
1.2154383659362793,
-0.22752298414707184,
-0.8581493496894836,
1.5753302574157715,
0.9309790134429932,
-1.0314605236053467,
-0.22318924963474274,
-0.2022000551223755,
-0.7756836414337158,
0.1666577160358429,
-1.6687347888946533,
-0.04387061670422554,
0.3872702419757843,
-1.5251905918121338,
-0.3408159017562866,
-0.18044066429138184,
1.3302357196807861,
-0.37695494294166565,
1.4986863136291504,
-0.3669244647026062,
-0.14274191856384277,
-0.28826388716697693,
-0.4304320514202118,
0.19668978452682495,
-0.1166364848613739,
-0.566253125667572,
0.1052618995308876,
-0.71308434009552,
0.3838389813899994,
1.4208588600158691,
0.2647307813167572,
0.13686513900756836,
0.2427423596382141,
1.1697869300842285,
0.351095974445343,
-0.022066950798034668,
-1.0030704736709595,
-1.4854674339294434,
2.00494122505188,
-1.3825175762176514,
2.047957420349121,
0.7183810472488403,
-0.027929671108722687,
-1.7708618640899658,
-1.8692247867584229,
1.1912367343902588,
1.1869206428527832,
2.2272846698760986,
0.5244600176811218,
0.4031447172164917,
-0.9919537901878357,
-0.7222992777824402,
0.2607679069042206,
-0.9432270526885986,
-0.7427823543548584,
0.13403968513011932,
2.494374990463257,
1.764355182647705,
-0.35049864649772644,
-0.27748215198516846,
-0.9512725472450256,
1.4639549255371094,
-0.17940452694892883,
0.3365643620491028,
2.0233840942382812,
-0.17121024429798126,
-0.9821448922157288,
1.2734148502349854,
-2.4780735969543457,
0.3669508397579193,
2.114790916442871,
0.33034130930900574,
0.2219119369983673,
-1.4729788303375244,
-0.5743324756622314,
-0.2783587872982025,
-0.5131568908691406,
-1.154623031616211,
0.6269044876098633,
-0.28077951073646545,
-0.8493887186050415,
-1.3160762786865234,
0.23548074066638947,
-1.0861883163452148,
-1.722590446472168,
0.30871716141700745,
1.7863051891326904,
1.9452569484710693,
-0.7771880626678467,
1.4717707633972168,
-0.3910359740257263,
0.1061616837978363,
1.3960840702056885,
1.4195377826690674,
3.0730388164520264,
1.8930823802947998,
-1.3788714408874512,
0.735959529876709,
-0.21278059482574463,
-0.5369563698768616,
1.1627466678619385,
-1.2568368911743164,
1.0814967155456543,
-0.31200575828552246,
-1.2587289810180664,
-1.2827470302581787,
1.0165860652923584,
0.5528521537780762,
0.19056209921836853,
-0.4529555141925812,
1.1539716720581055,
0.18640661239624023,
1.3793065547943115,
0.6067294478416443,
-0.41196408867836,
0.5345176458358765,
-0.38088807463645935,
-0.49947473406791687,
1.480928659439087,
0.18692128360271454,
-1.4584846496582031,
-2.332082509994507,
-0.30882740020751953,
-0.9966377019882202,
-0.10509977489709854,
-0.5715342164039612,
-1.024186134338379,
1.5880653858184814,
0.3166288435459137,
-1.4001574516296387,
-0.2740202248096466,
-0.20207038521766663,
-0.3537150025367737,
2.786590814590454,
-1.384101390838623,
-0.21857188642024994,
-1.0128505229949951,
-0.5816525220870972,
1.7908573150634766,
-1.17000150680542,
-0.3358699083328247,
-1.1696746349334717,
-0.6263269186019897,
-1.2362010478973389,
-0.4961700737476349,
0.015280082821846008,
-0.8513339757919312,
0.8774546980857849,
0.18395888805389404,
-1.2224481105804443,
-0.4061226546764374,
-0.8695110082626343,
0.99945467710495,
-0.17319753766059875,
0.27017003297805786,
1.8352046012878418,
0.4236770570278168,
-0.3148159682750702,
0.8202800154685974,
1.1728630065917969,
0.6820641756057739,
-0.6380007266998291,
0.17956528067588806,
-0.4919310510158539,
0.3848262131214142,
-1.334371566772461,
0.2440323829650879,
-2.8244850635528564,
0.7320874929428101,
-0.04977571591734886,
-0.10916045308113098,
-0.16916075348854065,
-1.5132694244384766,
1.176433801651001,
2.6513171195983887,
-1.3005776405334473,
0.5618955492973328,
0.42870989441871643,
1.050199270248413,
-1.64969801902771,
0.28480175137519836,
-0.5539612174034119,
2.173478364944458,
0.10650210082530975,
1.3985998630523682,
-0.4397115707397461,
-2.391890287399292,
0.6762692928314209,
-1.2270987033843994,
-1.139585018157959,
0.8702219724655151,
-0.8290091156959534,
0.19825513660907745,
-1.3868720531463623,
-0.1995927393436432,
-0.9673978090286255,
-1.2603302001953125,
0.6811966896057129,
0.21255509555339813,
0.3843071162700653,
-0.6550214290618896,
0.30593952536582947,
-2.2153401374816895,
-1.388336181640625,
-0.11859840899705887,
-0.939883828163147,
0.5118169784545898,
-0.49167245626449585,
0.551245927810669,
0.03960558772087097,
0.02997846156358719,
0.28699439764022827,
1.5207855701446533,
3.5520570278167725,
0.3005909025669098,
0.19435320794582367,
-0.14378473162651062,
-0.894122302532196,
1.3602595329284668,
0.837475061416626,
-0.04623761028051376,
-0.49723532795906067,
-0.9008076786994934,
1.1435980796813965,
2.0647785663604736,
1.0605354309082031,
-0.09473776072263718,
-0.7751015424728394,
-0.7128002643585205,
-0.027272194623947144,
0.2073621153831482,
0.5870716571807861,
0.9656820297241211,
0.0013319458812475204,
-0.028617626056075096,
1.298105239868164,
1.1798200607299805,
-0.349168062210083,
0.24338406324386597,
-0.905971109867096,
-0.42971721291542053,
0.39845365285873413,
0.21484602987766266,
-0.025324665009975433,
0.5522230863571167,
-1.0547480583190918,
-0.26053816080093384,
-0.3663667142391205,
-0.9043045043945312,
-0.816551923751831,
-0.4743924140930176,
-0.4698057174682617,
1.4826178550720215,
0.1276157796382904,
-0.5165248513221741,
0.06593497097492218,
-0.7529393434524536,
-0.06622414290904999,
-1.1083271503448486,
0.20252324640750885,
-0.16713301837444305,
-0.11365041881799698,
-0.20320475101470947,
1.6925787925720215,
-0.9998323321342468,
-1.991903305053711,
0.3083820044994354,
0.34716594219207764,
-0.3259710371494293,
0.22620320320129395,
1.7792320251464844,
0.370260089635849,
1.333083152770996,
1.3590850830078125,
0.9933926463127136,
-0.6255361437797546,
-1.192798137664795,
0.6820089817047119,
1.1322598457336426,
-1.3253326416015625,
0.8196524381637573,
-0.08710744976997375,
-0.4670959711074829,
0.683998703956604,
1.3588109016418457,
0.5128040313720703,
-1.9985377788543701,
0.7331797480583191,
-0.9181289672851562,
0.8653473258018494,
0.8011494278907776,
0.6783955693244934,
0.2284717857837677,
0.8222248554229736,
-1.1362500190734863,
-0.9812232851982117,
-0.6600309014320374,
-0.7928610444068909,
1.6972780227661133,
-0.3526981770992279,
0.6026737093925476,
0.008999606594443321,
-1.2675902843475342,
-0.15700867772102356,
0.9271544218063354,
0.29713404178619385,
-0.5452244877815247,
0.9268321990966797,
-0.5302380919456482,
-1.0126566886901855,
-1.187246322631836,
-0.477253794670105,
-0.8601942658424377,
-1.0157887935638428,
0.9728063344955444,
0.8939604759216309,
0.3134188652038574,
1.9203708171844482,
0.756801187992096,
0.22820086777210236,
-2.5666911602020264,
0.8125870227813721,
0.2759237587451935,
-0.032547302544116974,
0.89029860496521,
0.32119765877723694,
1.0242600440979004,
0.05574255436658859,
0.589402973651886,
-2.246720314025879,
2.288936138153076,
-0.2296798974275589,
0.4670758545398712,
-0.022602681070566177,
-0.27345335483551025,
1.072704553604126,
0.4975799322128296,
0.4165444076061249,
-1.1200587749481201,
0.8005903363227844,
-0.5502060651779175,
1.2079691886901855,
0.6753568649291992,
-0.813916802406311,
0.07724471390247345,
1.3008201122283936,
0.33691903948783875,
-0.4992324411869049,
-0.9820594191551208,
-0.8631178736686707,
1.120030403137207,
1.621511697769165,
0.006426684558391571,
-0.08346825838088989,
0.9019560813903809,
0.7218776345252991,
-1.1925873756408691,
0.0015973541885614395,
-0.6699358224868774,
-0.6374530792236328,
1.6940786838531494,
2.040705919265747,
-0.15609164535999298,
-0.15375865995883942,
-0.8318865299224854,
-1.1607074737548828,
0.7971012592315674,
-0.1473952978849411,
-0.0544169582426548,
0.5205768942832947,
-0.5770545601844788,
1.0730891227722168,
0.6801772713661194,
0.9768630266189575,
-0.0773223266005516,
0.4023425579071045,
0.3228911757469177,
-0.3411858081817627,
-1.2427127361297607,
-0.3689410984516144,
-1.2607033252716064,
-2.6105799674987793,
0.4912189841270447,
-0.16551800072193146,
-1.4120714664459229,
0.0874512791633606,
-1.142470359802246,
0.8773435354232788,
-0.6007149815559387,
-1.06162691116333,
-1.4296448230743408,
0.2359694391489029,
-0.12112423032522202,
0.80402672290802,
-1.6156933307647705,
-0.06168663874268532,
1.188826084136963,
0.8033242225646973,
-0.7256525158882141,
0.9024691581726074,
0.294694721698761,
1.090036153793335,
0.7882821559906006,
-0.3809082508087158,
0.6068309545516968,
0.07833170145750046,
-1.4932374954223633,
0.45317623019218445,
1.3041434288024902,
0.20654292404651642,
1.4897944927215576,
-0.43150705099105835,
0.11773066222667694,
0.46407392621040344,
-0.7261554598808289,
-0.5833047032356262,
-0.5518274307250977,
0.7823018431663513,
0.08049315959215164,
-1.051313877105713,
0.08669345080852509,
-0.1180240586400032,
-0.20668759942054749,
0.1954275369644165,
-1.5136995315551758,
-0.2631833851337433,
-0.31637462973594666,
-0.5369902849197388,
-1.3826584815979004,
-0.007096347399055958,
1.3457226753234863,
-0.6031922101974487,
-0.21913069486618042,
0.511885404586792,
0.31189295649528503,
0.4973486661911011,
0.6761376261711121,
-0.6479536890983582,
-0.31816917657852173,
-0.3363281786441803,
-0.2156168520450592,
0.42347627878189087,
1.2678091526031494,
-0.06680452823638916,
-0.9490156173706055,
0.821071207523346,
-0.5123624205589294,
0.1728139966726303,
1.9319696426391602,
0.13865898549556732,
-0.7793346643447876,
0.39881423115730286,
-0.7632179260253906,
1.770460844039917,
1.6682839393615723,
1.1984646320343018,
-0.16412165760993958,
-0.9729884266853333,
0.6987844705581665,
-0.3575025200843811,
-0.25843167304992676,
0.8522482514381409,
0.3456822335720062,
-0.21401260793209076,
-1.3229405879974365,
0.6271415948867798,
1.256075382232666,
-0.8353542685508728,
-0.914405882358551,
0.14500708878040314,
-0.8521835803985596,
1.1654634475708008,
0.5641994476318359,
0.35454148054122925,
0.20896320044994354,
1.5024864673614502,
0.6903148293495178,
-0.3042605221271515,
0.5416359305381775,
0.48611554503440857,
-0.3241908550262451,
-2.0502374172210693,
-1.0755412578582764,
0.39645493030548096,
-0.5001659393310547,
-1.7230072021484375,
1.3464291095733643,
-1.2656688690185547,
-0.9963602423667908,
0.5568270683288574,
0.09698084741830826,
1.442373514175415,
0.37801453471183777,
1.6039371490478516,
1.9912004470825195,
0.8245329856872559,
0.4010275602340698,
1.244741678237915,
-0.17006638646125793,
-0.6226513981819153,
1.921037197113037,
-0.5203515887260437,
0.6022735834121704,
1.0996627807617188,
-0.4380775988101959,
-1.1209070682525635,
-0.9244460463523865,
-1.0397367477416992,
-0.729087769985199,
1.3951969146728516,
0.0867912620306015,
-1.1853256225585938,
0.3108797073364258,
1.6029515266418457,
0.09478383511304855,
-0.1747175008058548,
0.7048271894454956,
0.2071523219347,
-0.9613183736801147,
-0.04133973643183708,
-0.8596135973930359,
0.5160847306251526,
-0.16396383941173553,
-0.20154622197151184,
0.3105422258377075,
0.4635142385959625,
1.1864676475524902,
-0.027204729616642,
0.07373174279928207,
1.034231424331665,
-1.4697468280792236,
1.5875871181488037,
-0.5756992697715759,
0.38553386926651,
-2.429572820663452,
1.306433916091919,
-0.7950300574302673,
1.8741605281829834,
-2.5867462158203125,
0.36754336953163147,
-0.5462241172790527,
-0.5374496579170227,
0.3201649487018585,
-0.4055418074131012,
0.12693670392036438,
-0.1656695008277893,
-1.0090832710266113,
-0.04842882975935936,
-0.8359726667404175,
0.643826961517334,
1.130948781967163,
1.4083380699157715,
-1.136552333831787,
-0.22895748913288116,
-1.7321109771728516,
-0.2723730206489563,
-0.7728564143180847,
0.45968809723854065,
-2.0333406925201416,
-0.012218214571475983,
-2.0258800983428955,
-2.2072274684906006,
-1.294510841369629,
-0.8324916958808899,
0.977469801902771,
0.2435491681098938,
-0.7647390365600586,
1.0830376148223877,
-0.40951022505760193,
-1.7610125541687012,
1.0777034759521484,
-2.095233678817749
] |
https://github.com/huggingface/datasets/issues/4732 | Document better that loading a dataset passing its name does not use the local script | Thanks for the feedback!
I think since this issue is closely related to loading, I can add a clearer explanation under [Load > local loading script](https://huggingface.co/docs/datasets/main/en/loading#local-loading-script). | As reported by @TrentBrick here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191858596, it could be more clear that loading a dataset by passing its name does not use the (modified) local script of it.
What he did:
- he installed `datasets` from source
- he modified locally `datasets/the_pile/the_pile.py` loading script
- he tried to load it but using `load_dataset("the_pile")` instead of `load_dataset("datasets/the_pile")`
- as explained here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191040245:
- the former does not use the local script, but instead it downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that.
He suggests adding a more clear explanation about this. He suggests adding it maybe in [Installation > source](https://huggingface.co/docs/datasets/installation))
CC: @stevhliu | 612 | 26 | Document better that loading a dataset passing its name does not use the local script
As reported by @TrentBrick here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191858596, it could be more clear that loading a dataset by passing its name does not use the (modified) local script of it.
What he did:
- he installed `datasets` from source
- he modified locally `datasets/the_pile/the_pile.py` loading script
- he tried to load it but using `load_dataset("the_pile")` instead of `load_dataset("datasets/the_pile")`
- as explained here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191040245:
- the former does not use the local script, but instead it downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that.
He suggests adding a more clear explanation about this. He suggests adding it maybe in [Installation > source](https://huggingface.co/docs/datasets/installation))
CC: @stevhliu
Thanks for the feedback!
I think since this issue is closely related to loading, I can add a clearer explanation under [Load > local loading script](https://huggingface.co/docs/datasets/main/en/loading#local-loading-script). | [
-1.1615458726882935,
-0.9217268228530884,
-0.794188380241394,
1.4509238004684448,
-0.10610482096672058,
-1.2522674798965454,
0.01238732784986496,
-0.9748437404632568,
1.6718907356262207,
-0.714326024055481,
0.40244442224502563,
-1.7625595331192017,
-0.024395547807216644,
-0.5360863208770752,
-0.7849230766296387,
-0.829414427280426,
-0.5025491714477539,
-0.8134801983833313,
0.9410206079483032,
2.4865806102752686,
1.2183576822280884,
-1.3971927165985107,
2.681500196456909,
0.681297779083252,
-0.18607234954833984,
-1.0680392980575562,
0.4988405704498291,
0.008488334715366364,
-1.2696177959442139,
-0.41949570178985596,
-0.9251166582107544,
-0.02113264799118042,
-0.5729393362998962,
-0.5388106107711792,
0.09625530987977982,
0.34677526354789734,
-0.17177458107471466,
-0.3259483575820923,
-0.5473697185516357,
-0.7965900301933289,
0.46991637349128723,
-0.3399844765663147,
1.052083969116211,
-0.378145307302475,
1.8898522853851318,
-0.5850706100463867,
0.38041239976882935,
0.5799983143806458,
1.3148064613342285,
0.2647104859352112,
0.04582449793815613,
0.2892620861530304,
0.31588950753211975,
0.044772468507289886,
0.5444791913032532,
1.2190011739730835,
0.6328171491622925,
0.4620377719402313,
0.6928070187568665,
-2.2169747352600098,
1.3278368711471558,
-0.9449496865272522,
0.34416061639785767,
1.3259317874908447,
-0.9418407082557678,
0.3204154074192047,
-1.7882556915283203,
-0.04387834668159485,
0.5821889638900757,
-2.259781837463379,
0.11156691610813141,
-1.28235924243927,
-0.47896113991737366,
1.0498826503753662,
0.24667413532733917,
-1.3576874732971191,
0.18121767044067383,
-0.4042106568813324,
1.0226233005523682,
0.4712066650390625,
1.1914440393447876,
-1.6982550621032715,
0.04122838377952576,
-0.2821151316165924,
0.1231919676065445,
-1.2370750904083252,
-1.55083429813385,
0.485063761472702,
0.5779415965080261,
0.7207021713256836,
-0.07844658941030502,
0.9657452702522278,
-0.9318636655807495,
0.8967785835266113,
-0.9023939371109009,
-1.6777697801589966,
-1.4001189470291138,
-2.3186516761779785,
-2.3951644897460938,
0.834153950214386,
-0.49736204743385315,
-0.44704410433769226,
1.9361145496368408,
-1.0162842273712158,
-1.7931687831878662,
1.0417828559875488,
0.31096792221069336,
0.057853586971759796,
2.3608908653259277,
0.13198724389076233,
-0.7921132445335388,
0.32659465074539185,
-0.6497283577919006,
0.8339369893074036,
-0.3088375926017761,
1.399979591369629,
0.5635486841201782,
-1.014742374420166,
1.6842811107635498,
-0.5061477422714233,
0.49715572595596313,
-0.6985340714454651,
-0.5804396867752075,
-0.8152654767036438,
0.3000255227088928,
1.9091421365737915,
-0.3867053985595703,
1.7144850492477417,
-0.3555236756801605,
-1.5899429321289062,
-1.5533232688903809,
0.8145394325256348,
0.4208492636680603,
-0.853844165802002,
0.06621631979942322,
-0.36537477374076843,
0.05333666503429413,
-0.049427397549152374,
1.1104882955551147,
1.1062928438186646,
0.6270870566368103,
-0.2847834527492523,
-0.8714255094528198,
0.2809346318244934,
-0.020376678556203842,
-0.707852303981781,
-1.7222309112548828,
-0.36518195271492004,
0.25416579842567444,
0.6084092855453491,
-1.2051128149032593,
1.7914766073226929,
0.7646002173423767,
2.002599000930786,
0.9936825037002563,
-0.2621460556983948,
1.4487941265106201,
-0.05222897231578827,
1.91774320602417,
-0.4362255930900574,
0.5460982322692871,
-0.3144502639770508,
-1.224576711654663,
0.7985105514526367,
-0.4328259229660034,
-2.0526628494262695,
-0.7453412413597107,
-0.7942186594009399,
-0.14060373604297638,
-0.7557759881019592,
0.881280243396759,
-0.2935100793838501,
-1.4231936931610107,
0.13133776187896729,
-0.614080548286438,
0.11831900477409363,
-1.310496211051941,
0.22324812412261963,
0.8382419347763062,
-0.7343567609786987,
0.004291382618248463,
-0.2103458195924759,
-1.2789908647537231,
-0.4647134244441986,
0.3139455318450928,
2.04476261138916,
-0.6564672589302063,
0.9702078104019165,
1.0116509199142456,
-0.6431058645248413,
0.09050897508859634,
0.2863726317882538,
-0.2885224521160126,
0.8343285918235779,
-1.0625149011611938,
-0.3186776340007782,
1.2201194763183594,
-0.1685476303100586,
-0.6232872605323792,
1.5142829418182373,
0.8121578693389893,
-1.0294538736343384,
-0.2145213633775711,
-0.09997051954269409,
-0.7326672673225403,
0.006929725408554077,
-1.5854952335357666,
-0.0949738621711731,
0.22455598413944244,
-1.4591805934906006,
-0.49864399433135986,
-0.15392276644706726,
1.266555905342102,
-0.20305342972278595,
1.393324613571167,
-0.3083816468715668,
-0.1794770509004593,
-0.4420735836029053,
-0.5459526181221008,
0.09861215949058533,
-0.12178398668766022,
-0.6971766352653503,
0.2707608640193939,
-0.7921956777572632,
0.2756977081298828,
1.4522403478622437,
0.34220409393310547,
0.09773825109004974,
0.5263030529022217,
1.1717748641967773,
0.31377774477005005,
-0.03858672082424164,
-0.883821427822113,
-1.6595221757888794,
2.0677850246429443,
-1.3483166694641113,
1.9771456718444824,
0.7903858423233032,
-0.1346336305141449,
-1.7613886594772339,
-1.8733177185058594,
1.3964860439300537,
1.1904205083847046,
2.359888792037964,
0.5567678213119507,
0.3984779119491577,
-0.849113941192627,
-0.682523250579834,
0.3697918653488159,
-0.9458914399147034,
-0.8171743154525757,
0.10243397951126099,
2.3249475955963135,
1.775904893875122,
-0.49154379963874817,
-0.19605763256549835,
-1.0165423154830933,
1.2737032175064087,
-0.24219702184200287,
0.13773809373378754,
1.9669684171676636,
-0.32389041781425476,
-1.0816750526428223,
1.2859787940979004,
-2.40932035446167,
0.19208776950836182,
2.020651340484619,
0.37554144859313965,
0.10798333585262299,
-1.4259010553359985,
-0.6532970070838928,
-0.2726407051086426,
-0.42590823769569397,
-1.1948906183242798,
0.5565748810768127,
-0.3093186616897583,
-0.911828875541687,
-1.4677097797393799,
0.04358761012554169,
-1.100355625152588,
-1.6740727424621582,
0.3919338583946228,
1.7771639823913574,
1.9713371992111206,
-0.7495884299278259,
1.4205116033554077,
-0.28038904070854187,
0.1474669724702835,
1.3755674362182617,
1.2944011688232422,
3.1740849018096924,
1.9321893453598022,
-1.222721815109253,
0.765658438205719,
-0.21850265562534332,
-0.4682960510253906,
1.2302062511444092,
-1.1422836780548096,
1.1883437633514404,
-0.3087475001811981,
-1.3465741872787476,
-1.2571420669555664,
0.969716489315033,
0.46346238255500793,
0.06950525939464569,
-0.5340996980667114,
1.323486089706421,
0.11698521673679352,
1.2502672672271729,
0.5200095772743225,
-0.4574490487575531,
0.522469162940979,
-0.3451664447784424,
-0.5629818439483643,
1.6380608081817627,
0.15129081904888153,
-1.5130646228790283,
-2.3404886722564697,
-0.19085054099559784,
-0.9294082522392273,
-0.08961006253957748,
-0.6480554938316345,
-1.0362645387649536,
1.6487325429916382,
0.39617976546287537,
-1.2832266092300415,
-0.3072928190231323,
-0.4021657705307007,
-0.5470781922340393,
2.7240817546844482,
-1.4498629570007324,
-0.15738599002361298,
-1.067638635635376,
-0.5633919835090637,
1.7197325229644775,
-1.16847562789917,
-0.12704141438007355,
-0.9999361634254456,
-0.7307460308074951,
-1.3642300367355347,
-0.4833412766456604,
0.004743621684610844,
-0.9049115180969238,
0.6969171166419983,
0.06843358278274536,
-1.1410293579101562,
-0.27558788657188416,
-0.8936851024627686,
0.929277777671814,
-0.1534731686115265,
0.2447347193956375,
1.9229804277420044,
0.4338194727897644,
-0.43630439043045044,
0.6701288819313049,
1.209739327430725,
0.6727805733680725,
-0.6578186750411987,
0.22303986549377441,
-0.6343793272972107,
0.4348040521144867,
-1.4827110767364502,
0.18705163896083832,
-2.8159542083740234,
0.7398473620414734,
-0.12936262786388397,
-0.06339529156684875,
-0.04298124462366104,
-1.262037992477417,
1.0305801630020142,
2.568927049636841,
-1.2023900747299194,
0.4002685248851776,
0.415292352437973,
1.1667726039886475,
-1.5952104330062866,
0.22871465981006622,
-0.46389463543891907,
2.0820813179016113,
0.11053291708230972,
1.1676645278930664,
-0.49879318475723267,
-2.1402640342712402,
0.6548197865486145,
-1.31870436668396,
-1.0080933570861816,
0.8798300623893738,
-0.8698576092720032,
0.14222174882888794,
-1.3201113939285278,
-0.07137779146432877,
-0.9740222096443176,
-1.1550315618515015,
0.7681145071983337,
0.0620926097035408,
0.45368704199790955,
-0.5550772547721863,
0.39302173256874084,
-2.194997787475586,
-1.3016822338104248,
-0.24743370711803436,
-1.064335584640503,
0.48268890380859375,
-0.3240193724632263,
0.5721251368522644,
-0.1459980607032776,
0.0809519961476326,
0.33041948080062866,
1.339403748512268,
3.4423811435699463,
0.18611738085746765,
0.30680084228515625,
-0.07776492089033127,
-0.98783940076828,
1.4611022472381592,
0.9432166814804077,
-0.12246070057153702,
-0.542314887046814,
-0.9453169107437134,
1.3837605714797974,
1.9296103715896606,
1.2015379667282104,
0.06240928918123245,
-0.830978512763977,
-0.7379460334777832,
0.06836647540330887,
0.22002126276493073,
0.46758368611335754,
0.9109607338905334,
-0.030759181827306747,
0.14005815982818604,
1.3368195295333862,
1.2036198377609253,
-0.2975226938724518,
0.3503260612487793,
-0.9141030311584473,
-0.43144306540489197,
0.5655004978179932,
0.30803877115249634,
0.029986536130309105,
0.5162732005119324,
-1.0438992977142334,
-0.2471216917037964,
-0.33073920011520386,
-0.9607426524162292,
-0.7427307963371277,
-0.47070521116256714,
-0.37884145975112915,
1.6158616542816162,
0.00893913023173809,
-0.503166675567627,
0.03800477832555771,
-0.876528799533844,
-0.1133352592587471,
-1.0450799465179443,
0.2503628730773926,
-0.05825957655906677,
-0.030223790556192398,
-0.12422406673431396,
1.7354696989059448,
-1.0604257583618164,
-2.155158519744873,
0.3128407597541809,
0.29417288303375244,
-0.4518043100833893,
0.13157445192337036,
1.62522554397583,
0.4105692207813263,
1.4068180322647095,
1.3401529788970947,
0.9464484453201294,
-0.6508284211158752,
-1.2773233652114868,
0.6553496718406677,
1.0307410955429077,
-1.3448083400726318,
0.9920436143875122,
-0.09459761530160904,
-0.4659835994243622,
0.6505120992660522,
1.3191392421722412,
0.39833080768585205,
-1.834497094154358,
0.7812443971633911,
-0.8391556143760681,
0.8207477331161499,
0.6302454471588135,
0.8249242305755615,
0.2035011500120163,
0.8160554766654968,
-1.2899482250213623,
-1.1592764854431152,
-0.7159009575843811,
-0.6084891557693481,
1.851345419883728,
-0.09844071418046951,
0.5516772866249084,
-0.1886652112007141,
-1.2338378429412842,
-0.14496000111103058,
0.762519896030426,
0.35685956478118896,
-0.42853084206581116,
0.9750546216964722,
-0.6339568495750427,
-1.0076535940170288,
-1.4043346643447876,
-0.4794861078262329,
-0.9584243893623352,
-0.8633410930633545,
1.051805853843689,
0.806189775466919,
0.34808483719825745,
1.9052287340164185,
0.5420978665351868,
0.3174732029438019,
-2.6100494861602783,
0.8181658387184143,
0.2979080080986023,
-0.04746856540441513,
0.9395809769630432,
0.21715372800827026,
1.0776679515838623,
-0.029679520055651665,
0.5814794898033142,
-2.293152332305908,
2.2188689708709717,
-0.23156428337097168,
0.6451037526130676,
0.021497294306755066,
-0.1925865113735199,
1.0114859342575073,
0.5884919762611389,
0.4566594660282135,
-1.2008668184280396,
0.793822705745697,
-0.6334945559501648,
1.1606688499450684,
0.8775073289871216,
-0.8833026885986328,
0.04237465560436249,
1.3926388025283813,
0.4717118740081787,
-0.3992352783679962,
-0.9641556143760681,
-0.8116710186004639,
1.071195363998413,
1.6802072525024414,
0.09082918614149094,
-0.026430457830429077,
0.8731706142425537,
0.680774450302124,
-1.224460482597351,
0.04791727662086487,
-0.732310950756073,
-0.7354293465614319,
1.6880886554718018,
1.9901232719421387,
-0.014290500432252884,
-0.16004705429077148,
-0.7639270424842834,
-1.1298060417175293,
0.6731922626495361,
0.012635057792067528,
0.039910994470119476,
0.8297727704048157,
-0.7077704668045044,
1.2196193933486938,
0.7675562500953674,
0.9290990233421326,
0.04204366356134415,
0.3243591785430908,
0.36155831813812256,
-0.27694180607795715,
-1.2718946933746338,
-0.29191866517066956,
-1.1422570943832397,
-2.613130807876587,
0.4030923545360565,
-0.24770881235599518,
-1.50132417678833,
0.09597263485193253,
-1.0609760284423828,
0.8801116347312927,
-0.5713512301445007,
-1.1380510330200195,
-1.4166009426116943,
0.2515575587749481,
-0.0763871818780899,
0.914912223815918,
-1.5869266986846924,
-0.13536174595355988,
1.2254703044891357,
0.9310900568962097,
-0.5533069968223572,
0.9304118752479553,
0.2521120607852936,
1.004150390625,
0.8016835451126099,
-0.38313379883766174,
0.535560131072998,
0.08352838456630707,
-1.4127671718597412,
0.4171377420425415,
1.1779967546463013,
0.2108624130487442,
1.4619382619857788,
-0.5174756646156311,
0.09620413184165955,
0.4363548457622528,
-0.5776240825653076,
-0.5728646516799927,
-0.6437744498252869,
0.6886534690856934,
0.06965429335832596,
-0.9713926315307617,
-0.034054964780807495,
-0.1209041178226471,
-0.08787911385297775,
0.17178824543952942,
-1.5046709775924683,
-0.2170465737581253,
-0.37187254428863525,
-0.45731353759765625,
-1.2455062866210938,
0.006039771251380444,
1.3533227443695068,
-0.8383387923240662,
-0.15327724814414978,
0.4899479150772095,
0.3187026381492615,
0.46658802032470703,
0.5561815500259399,
-0.6913888454437256,
-0.35289984941482544,
-0.29111233353614807,
-0.27325642108917236,
0.1970585137605667,
1.1941859722137451,
-0.20379790663719177,
-0.9934869408607483,
0.7566587328910828,
-0.4381374716758728,
0.09020765870809555,
1.9518392086029053,
0.11280865967273712,
-0.8025484085083008,
0.2989792823791504,
-0.6502200961112976,
1.8128488063812256,
1.661367654800415,
1.3567310571670532,
-0.09474348276853561,
-0.8913035988807678,
0.603021502494812,
-0.30114930868148804,
-0.36287933588027954,
0.9131650328636169,
0.39600706100463867,
-0.16937755048274994,
-1.449257254600525,
0.5310819745063782,
1.2962535619735718,
-0.9049571752548218,
-0.7347902059555054,
0.09719716012477875,
-0.8900828957557678,
0.9761682152748108,
0.6607800126075745,
0.3467118442058563,
0.2821676731109619,
1.5576438903808594,
0.7008900046348572,
-0.4148689806461334,
0.43466442823410034,
0.4764654040336609,
-0.12569038569927216,
-2.0167887210845947,
-0.9886970520019531,
0.28890156745910645,
-0.52498859167099,
-1.510583758354187,
1.3162766695022583,
-1.2301803827285767,
-0.8931145668029785,
0.48298153281211853,
0.12071935832500458,
1.4369466304779053,
0.2873762845993042,
1.665966272354126,
2.0989267826080322,
0.8415189385414124,
0.19484688341617584,
1.3179140090942383,
0.05096260458230972,
-0.39126643538475037,
1.784437656402588,
-0.42444708943367004,
0.5538398623466492,
0.9798874855041504,
-0.39964598417282104,
-1.0417486429214478,
-0.8178455829620361,
-1.2479190826416016,
-0.6537445187568665,
1.1094961166381836,
0.11124256253242493,
-1.1241360902786255,
0.1900555044412613,
1.5330455303192139,
0.10664565861225128,
-0.19036972522735596,
0.6660130023956299,
0.383888840675354,
-0.765516996383667,
-0.01239175908267498,
-0.9132524728775024,
0.5472937226295471,
-0.054617948830127716,
-0.28189951181411743,
0.24539558589458466,
0.5532487630844116,
1.3018488883972168,
0.05899088829755783,
0.13616295158863068,
1.330278754234314,
-1.382451057434082,
1.4775837659835815,
-0.7020264267921448,
0.28728246688842773,
-2.4786815643310547,
1.418229341506958,
-0.879299521446228,
1.8424508571624756,
-2.5955398082733154,
0.47303253412246704,
-0.5538057088851929,
-0.4919954836368561,
0.35836803913116455,
-0.40451276302337646,
0.17084118723869324,
-0.10634604096412659,
-0.995487630367279,
-0.06549164652824402,
-0.7196031808853149,
0.5847557187080383,
1.234472632408142,
1.417615294456482,
-1.1424133777618408,
-0.39851275086402893,
-1.79002046585083,
-0.08840861916542053,
-0.595598042011261,
0.40555402636528015,
-1.961265206336975,
-0.0973680168390274,
-1.981912612915039,
-2.4016590118408203,
-1.458725929260254,
-0.7735520601272583,
1.1294931173324585,
0.18314820528030396,
-0.9733930826187134,
1.1106635332107544,
-0.3716461658477783,
-1.7459083795547485,
1.0142667293548584,
-2.214764356613159
] |
https://github.com/huggingface/datasets/issues/4732 | Document better that loading a dataset passing its name does not use the local script | That makes sense but I think having a line about it under https://huggingface.co/docs/datasets/installation#source the "source" header here would be useful. My mental model of `pip install -e .` does not include the fact that the source files aren't actually being used. | As reported by @TrentBrick here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191858596, it could be more clear that loading a dataset by passing its name does not use the (modified) local script of it.
What he did:
- he installed `datasets` from source
- he modified locally `datasets/the_pile/the_pile.py` loading script
- he tried to load it but using `load_dataset("the_pile")` instead of `load_dataset("datasets/the_pile")`
- as explained here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191040245:
- the former does not use the local script, but instead it downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that.
He suggests adding a more clear explanation about this. He suggests adding it maybe in [Installation > source](https://huggingface.co/docs/datasets/installation))
CC: @stevhliu | 612 | 41 | Document better that loading a dataset passing its name does not use the local script
As reported by @TrentBrick here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191858596, it could be more clear that loading a dataset by passing its name does not use the (modified) local script of it.
What he did:
- he installed `datasets` from source
- he modified locally `datasets/the_pile/the_pile.py` loading script
- he tried to load it but using `load_dataset("the_pile")` instead of `load_dataset("datasets/the_pile")`
- as explained here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191040245:
- the former does not use the local script, but instead it downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that.
He suggests adding a more clear explanation about this. He suggests adding it maybe in [Installation > source](https://huggingface.co/docs/datasets/installation))
CC: @stevhliu
That makes sense but I think having a line about it under https://huggingface.co/docs/datasets/installation#source the "source" header here would be useful. My mental model of `pip install -e .` does not include the fact that the source files aren't actually being used. | [
-1.1756348609924316,
-0.9337725639343262,
-0.7858474254608154,
1.460734248161316,
-0.10713531821966171,
-1.2734417915344238,
0.03770141676068306,
-0.9556386470794678,
1.6906065940856934,
-0.7232248783111572,
0.3752424120903015,
-1.766539216041565,
-0.005150692071765661,
-0.5533592104911804,
-0.7685530781745911,
-0.8190529942512512,
-0.48013660311698914,
-0.8286269307136536,
0.9186145067214966,
2.4776458740234375,
1.2237719297409058,
-1.3655883073806763,
2.650765895843506,
0.7217252850532532,
-0.19146011769771576,
-1.0772603750228882,
0.5016195774078369,
0.007864772342145443,
-1.2904517650604248,
-0.44157275557518005,
-0.9132739901542664,
0.015829995274543762,
-0.5658193230628967,
-0.570734441280365,
0.06778915971517563,
0.37612178921699524,
-0.18065333366394043,
-0.36194851994514465,
-0.5879197716712952,
-0.7984271049499512,
0.4503764808177948,
-0.3604349195957184,
1.0289294719696045,
-0.4103454053401947,
1.901319980621338,
-0.5826644897460938,
0.36549538373947144,
0.5758467316627502,
1.3582929372787476,
0.25217700004577637,
0.0063195740804076195,
0.276946485042572,
0.3204166889190674,
0.02954980358481407,
0.5167240500450134,
1.2072798013687134,
0.6263713836669922,
0.4522053301334381,
0.6893180012702942,
-2.2405142784118652,
1.3194156885147095,
-0.9788805842399597,
0.33633506298065186,
1.3362311124801636,
-0.9548740983009338,
0.3162783086299896,
-1.7963006496429443,
-0.026141535490751266,
0.5419880151748657,
-2.269660711288452,
0.11646291613578796,
-1.2790472507476807,
-0.4986496567726135,
1.0746181011199951,
0.2441319227218628,
-1.3381880521774292,
0.1861969381570816,
-0.3936123549938202,
1.0137745141983032,
0.5153746604919434,
1.1835911273956299,
-1.6657217741012573,
0.0015679271891713142,
-0.24483025074005127,
0.06953634321689606,
-1.2526887655258179,
-1.5224125385284424,
0.4587004780769348,
0.6153525710105896,
0.6598162055015564,
-0.09027542173862457,
1.0011478662490845,
-0.9265140891075134,
0.8789837956428528,
-0.8722684383392334,
-1.6931432485580444,
-1.4000591039657593,
-2.2546470165252686,
-2.394045829772949,
0.8181867599487305,
-0.5084350109100342,
-0.4583430290222168,
1.9736356735229492,
-1.0260497331619263,
-1.7973538637161255,
1.0491491556167603,
0.33626046776771545,
0.053657665848731995,
2.377423048019409,
0.14937756955623627,
-0.763009250164032,
0.3046593964099884,
-0.6405021548271179,
0.8203447461128235,
-0.3398325741291046,
1.3888736963272095,
0.5424783229827881,
-1.036731243133545,
1.6482138633728027,
-0.5121558904647827,
0.5123925805091858,
-0.6808462738990784,
-0.5577607750892639,
-0.8122131824493408,
0.32422083616256714,
1.8987553119659424,
-0.39798277616500854,
1.6890910863876343,
-0.32335373759269714,
-1.6011511087417603,
-1.5771081447601318,
0.8114747405052185,
0.40119874477386475,
-0.8292343616485596,
0.05760693550109863,
-0.37566161155700684,
0.08800752460956573,
-0.04830304533243179,
1.1075842380523682,
1.1319231986999512,
0.6545336246490479,
-0.28850191831588745,
-0.8516427278518677,
0.28704196214675903,
0.003906614147126675,
-0.6766782402992249,
-1.7163703441619873,
-0.372128427028656,
0.2881630063056946,
0.5665737986564636,
-1.2166301012039185,
1.8066648244857788,
0.7831709980964661,
1.9832806587219238,
0.9780523180961609,
-0.2642265260219574,
1.46992826461792,
-0.04958511143922806,
1.9271529912948608,
-0.44962626695632935,
0.6001575589179993,
-0.31853148341178894,
-1.2435572147369385,
0.7780998945236206,
-0.40628862380981445,
-2.0159480571746826,
-0.7639591693878174,
-0.8031620383262634,
-0.15155112743377686,
-0.7464227676391602,
0.8751114010810852,
-0.26430195569992065,
-1.3897639513015747,
0.12213630974292755,
-0.6025005578994751,
0.11845949292182922,
-1.3034223318099976,
0.282316118478775,
0.8262165784835815,
-0.7228913903236389,
0.05363263189792633,
-0.1978515386581421,
-1.294585108757019,
-0.45822635293006897,
0.3046875298023224,
2.010910749435425,
-0.7046321630477905,
0.9519237875938416,
1.016888976097107,
-0.7258135676383972,
0.09425271302461624,
0.30560317635536194,
-0.31906449794769287,
0.8090550303459167,
-1.0673249959945679,
-0.3057215213775635,
1.2174103260040283,
-0.15891559422016144,
-0.6355853080749512,
1.523866057395935,
0.8069368600845337,
-0.9949710369110107,
-0.17724834382534027,
-0.14933253824710846,
-0.7261140942573547,
0.0248466394841671,
-1.5723494291305542,
-0.07233303785324097,
0.23099590837955475,
-1.4456417560577393,
-0.48549342155456543,
-0.15870404243469238,
1.262839674949646,
-0.21366941928863525,
1.385869026184082,
-0.33590999245643616,
-0.17222632467746735,
-0.4337352514266968,
-0.5161215662956238,
0.09935009479522705,
-0.15136127173900604,
-0.721161425113678,
0.2802664637565613,
-0.8008608222007751,
0.28487926721572876,
1.428605556488037,
0.3664722740650177,
0.05611163377761841,
0.5390592217445374,
1.1835887432098389,
0.3428380489349365,
-0.05900495499372482,
-0.9069019556045532,
-1.6278932094573975,
2.0519018173217773,
-1.3312238454818726,
1.9609001874923706,
0.7796461582183838,
-0.09936834126710892,
-1.7353864908218384,
-1.8914650678634644,
1.3728995323181152,
1.1796337366104126,
2.3613014221191406,
0.5606928467750549,
0.413865327835083,
-0.895833432674408,
-0.666441023349762,
0.39136070013046265,
-0.9783293008804321,
-0.7800505757331848,
0.08759362995624542,
2.3409433364868164,
1.7889474630355835,
-0.5123157501220703,
-0.22684094309806824,
-1.0254260301589966,
1.2463043928146362,
-0.25449463725090027,
0.1605115681886673,
1.9824596643447876,
-0.2991424798965454,
-1.07014000415802,
1.2895166873931885,
-2.410999298095703,
0.19940266013145447,
2.0443942546844482,
0.34387725591659546,
0.11460933834314346,
-1.452526569366455,
-0.6383665204048157,
-0.2468680441379547,
-0.4317470192909241,
-1.1759601831436157,
0.5866862535476685,
-0.27768582105636597,
-0.8965358138084412,
-1.4658210277557373,
0.08795304596424103,
-1.1127315759658813,
-1.6896766424179077,
0.38925644755363464,
1.7945754528045654,
1.9567323923110962,
-0.7197279930114746,
1.4353190660476685,
-0.26631537079811096,
0.13928945362567902,
1.3408762216567993,
1.3065463304519653,
3.2075674533843994,
1.9587008953094482,
-1.237394094467163,
0.7488804459571838,
-0.20698295533657074,
-0.45702627301216125,
1.2454485893249512,
-1.1607154607772827,
1.2044087648391724,
-0.2949591875076294,
-1.341381311416626,
-1.254360556602478,
0.9343081116676331,
0.4579280912876129,
0.06052251160144806,
-0.517554521560669,
1.3121305704116821,
0.09786322712898254,
1.253501296043396,
0.5024054646492004,
-0.5056669116020203,
0.5229991674423218,
-0.343048632144928,
-0.5326937437057495,
1.6270121335983276,
0.14809603989124298,
-1.487736701965332,
-2.3054380416870117,
-0.19501549005508423,
-0.9140167832374573,
-0.09024650603532791,
-0.6400749087333679,
-1.0032846927642822,
1.656712532043457,
0.40409421920776367,
-1.306178331375122,
-0.2864127457141876,
-0.3797374963760376,
-0.5723007321357727,
2.7114741802215576,
-1.43959379196167,
-0.17548149824142456,
-1.0458694696426392,
-0.5596227049827576,
1.723480224609375,
-1.1706453561782837,
-0.16254769265651703,
-0.9903887510299683,
-0.6828480958938599,
-1.3880501985549927,
-0.5455673336982727,
-0.021370870992541313,
-0.8660987019538879,
0.727135419845581,
0.08099286258220673,
-1.1343291997909546,
-0.3130679130554199,
-0.8841691613197327,
0.9281309843063354,
-0.13157936930656433,
0.2089422047138214,
1.9252783060073853,
0.46550872921943665,
-0.411040723323822,
0.6709884405136108,
1.2055079936981201,
0.6608493328094482,
-0.6223027110099792,
0.2681562006473541,
-0.6428458094596863,
0.4029809534549713,
-1.4667229652404785,
0.21202640235424042,
-2.8173935413360596,
0.7404070496559143,
-0.11902916431427002,
-0.07921724766492844,
-0.04798874258995056,
-1.2774229049682617,
1.0488898754119873,
2.553513288497925,
-1.203865647315979,
0.4291054308414459,
0.4105451703071594,
1.1757045984268188,
-1.6141870021820068,
0.23887687921524048,
-0.4404398798942566,
2.0817275047302246,
0.10740838944911957,
1.180220365524292,
-0.487077921628952,
-2.1552298069000244,
0.6366372108459473,
-1.306433081626892,
-1.0421168804168701,
0.8517412543296814,
-0.9021218419075012,
0.10267648100852966,
-1.3399510383605957,
-0.12071101367473602,
-0.9544212222099304,
-1.1781983375549316,
0.7955262660980225,
0.08028251677751541,
0.453352153301239,
-0.5567140579223633,
0.40343961119651794,
-2.17354679107666,
-1.2880945205688477,
-0.2695492208003998,
-1.0322741270065308,
0.45270633697509766,
-0.3329288363456726,
0.5956642031669617,
-0.1408751904964447,
0.08511222898960114,
0.35703250765800476,
1.3505165576934814,
3.417065382003784,
0.21963797509670258,
0.32714053988456726,
-0.07738303393125534,
-0.9990183711051941,
1.4584100246429443,
0.9454132914543152,
-0.14662936329841614,
-0.5254144072532654,
-0.95937579870224,
1.3493115901947021,
1.9417990446090698,
1.2151520252227783,
0.04583090916275978,
-0.8099812865257263,
-0.7894245386123657,
0.028591513633728027,
0.18976497650146484,
0.4665215313434601,
0.9429125189781189,
0.01308498252183199,
0.1286170482635498,
1.3708347082138062,
1.2090449333190918,
-0.3019767105579376,
0.3305070400238037,
-0.8719987869262695,
-0.4644227623939514,
0.5362952947616577,
0.33576905727386475,
0.049160394817590714,
0.48792657256126404,
-1.0223565101623535,
-0.24236400425434113,
-0.34896552562713623,
-0.9464312195777893,
-0.7424134016036987,
-0.49358606338500977,
-0.3486636281013489,
1.6036627292633057,
0.029285617172718048,
-0.5277538299560547,
0.015493500046432018,
-0.8888317346572876,
-0.09443261474370956,
-1.069619059562683,
0.26888367533683777,
-0.06792455911636353,
-0.07211243361234665,
-0.11371058970689774,
1.705778956413269,
-1.052902340888977,
-2.152298927307129,
0.2841619849205017,
0.2752186954021454,
-0.43804091215133667,
0.13836462795734406,
1.6282000541687012,
0.3924426734447479,
1.3962175846099854,
1.382333755493164,
0.9702107906341553,
-0.6615385413169861,
-1.3032398223876953,
0.6752712726593018,
0.9848189949989319,
-1.3820215463638306,
0.962234377861023,
-0.06617750227451324,
-0.4413743317127228,
0.6526408791542053,
1.3038313388824463,
0.3770011365413666,
-1.8756054639816284,
0.7719668745994568,
-0.8618864417076111,
0.7631194591522217,
0.6409921646118164,
0.8150755167007446,
0.20007310807704926,
0.8067436218261719,
-1.2945685386657715,
-1.162989616394043,
-0.6969038844108582,
-0.6165317893028259,
1.884277105331421,
-0.14011092483997345,
0.5501661896705627,
-0.17752915620803833,
-1.2559103965759277,
-0.1623871922492981,
0.7560800313949585,
0.3392898738384247,
-0.45872464776039124,
0.9792063236236572,
-0.6164249777793884,
-0.993500828742981,
-1.4062044620513916,
-0.48632028698921204,
-0.9704809188842773,
-0.8855849504470825,
1.0415791273117065,
0.8439412117004395,
0.3033052384853363,
1.8823717832565308,
0.5556982159614563,
0.329433411359787,
-2.618196725845337,
0.8255161643028259,
0.3219650983810425,
-0.04122348502278328,
0.8909900784492493,
0.244634211063385,
1.0494500398635864,
-0.02180297300219536,
0.5473183393478394,
-2.292936325073242,
2.205968141555786,
-0.24601037800312042,
0.6414017081260681,
0.033584948629140854,
-0.23084479570388794,
1.0264966487884521,
0.5732535719871521,
0.5000362992286682,
-1.19642174243927,
0.7675488591194153,
-0.6128645539283752,
1.1496796607971191,
0.8859672546386719,
-0.9141685962677002,
0.03407328575849533,
1.4057669639587402,
0.4902379512786865,
-0.41775181889533997,
-0.9728657007217407,
-0.8349351286888123,
1.0799437761306763,
1.6970947980880737,
0.06210552901029587,
-0.019650567322969437,
0.8897481560707092,
0.6773673892021179,
-1.2313541173934937,
0.08466271311044693,
-0.7632129192352295,
-0.716071367263794,
1.664947271347046,
1.9805636405944824,
-0.02404717169702053,
-0.1963910460472107,
-0.7545685768127441,
-1.1489185094833374,
0.6749925017356873,
0.01439219806343317,
0.04313962906599045,
0.8171805143356323,
-0.7196746468544006,
1.1826573610305786,
0.8308195471763611,
0.9553936719894409,
0.041129641234874725,
0.31021061539649963,
0.3621319830417633,
-0.3069450259208679,
-1.2704551219940186,
-0.3084477186203003,
-1.1467177867889404,
-2.592318534851074,
0.4318866431713104,
-0.23215320706367493,
-1.48624849319458,
0.09564291685819626,
-1.070581316947937,
0.8897930979728699,
-0.5625829696655273,
-1.133865237236023,
-1.4022163152694702,
0.24474987387657166,
-0.0842699259519577,
0.8677286505699158,
-1.567199945449829,
-0.15430468320846558,
1.2399731874465942,
0.9299561381340027,
-0.5992191433906555,
0.9332408905029297,
0.23553332686424255,
1.0225493907928467,
0.8220197558403015,
-0.39936363697052,
0.49469223618507385,
0.08765757083892822,
-1.4143314361572266,
0.41908732056617737,
1.1556071043014526,
0.19690853357315063,
1.4830454587936401,
-0.5344254374504089,
0.09711891412734985,
0.4125887453556061,
-0.5721150636672974,
-0.5326984524726868,
-0.6642094254493713,
0.7132514119148254,
0.05655647814273834,
-0.9613262414932251,
0.012247336097061634,
-0.13954149186611176,
-0.1175997406244278,
0.14751900732517242,
-1.500145673751831,
-0.22728568315505981,
-0.33848699927330017,
-0.4952146112918854,
-1.2178764343261719,
0.01944679021835327,
1.3511496782302856,
-0.8147903680801392,
-0.1647912859916687,
0.5055608749389648,
0.33684268593788147,
0.4543777406215668,
0.5313504338264465,
-0.6973236203193665,
-0.32745108008384705,
-0.27930667996406555,
-0.2878958582878113,
0.22431768476963043,
1.2549880743026733,
-0.15139837563037872,
-0.9695419669151306,
0.7624368071556091,
-0.41930562257766724,
0.07307954132556915,
1.9838215112686157,
0.11033575981855392,
-0.7976674437522888,
0.31964758038520813,
-0.6718230843544006,
1.8316725492477417,
1.7032135725021362,
1.3578163385391235,
-0.07903024554252625,
-0.9019677639007568,
0.6152626276016235,
-0.31915411353111267,
-0.36585599184036255,
0.94023597240448,
0.4231533110141754,
-0.1485820859670639,
-1.463245153427124,
0.5638969540596008,
1.266451358795166,
-0.928781270980835,
-0.7382010221481323,
0.10064185410737991,
-0.8937436938285828,
1.0118602514266968,
0.6527997851371765,
0.35712873935699463,
0.27472543716430664,
1.5942960977554321,
0.6960712671279907,
-0.3724379241466522,
0.46479013562202454,
0.5018473267555237,
-0.1258457601070404,
-2.008500099182129,
-1.0247389078140259,
0.31632453203201294,
-0.5073192119598389,
-1.5418983697891235,
1.3326129913330078,
-1.2128968238830566,
-0.8653249740600586,
0.49363264441490173,
0.14865592122077942,
1.436733603477478,
0.2872500717639923,
1.6515356302261353,
2.116243362426758,
0.838878870010376,
0.1928388625383377,
1.313431978225708,
0.05525355041027069,
-0.3971783518791199,
1.7673929929733276,
-0.41897210478782654,
0.5311654210090637,
1.0077787637710571,
-0.3892855644226074,
-1.0485001802444458,
-0.8323181867599487,
-1.253035306930542,
-0.6727619767189026,
1.1223539113998413,
0.11760461330413818,
-1.114922046661377,
0.2046191394329071,
1.5148789882659912,
0.07105907052755356,
-0.20615223050117493,
0.6565966606140137,
0.4082547128200531,
-0.7693771123886108,
-0.004342598840594292,
-0.8636695146560669,
0.5269005298614502,
-0.05527368187904358,
-0.3029499053955078,
0.30340373516082764,
0.5340367555618286,
1.32749342918396,
0.08499741554260254,
0.09035801142454147,
1.307128667831421,
-1.374168872833252,
1.5002357959747314,
-0.6913777589797974,
0.2536151111125946,
-2.464017152786255,
1.4388192892074585,
-0.8831501007080078,
1.8574522733688354,
-2.559356927871704,
0.46058493852615356,
-0.5365191102027893,
-0.5002759099006653,
0.3388690948486328,
-0.43647950887680054,
0.15672647953033447,
-0.08752370625734329,
-1.0227439403533936,
-0.050799109041690826,
-0.7228912711143494,
0.6007319688796997,
1.2134052515029907,
1.4185996055603027,
-1.1803672313690186,
-0.43600520491600037,
-1.8214905261993408,
-0.1200629398226738,
-0.5814436674118042,
0.4240823984146118,
-1.9476479291915894,
-0.11816374957561493,
-1.9457887411117554,
-2.393569231033325,
-1.4529443979263306,
-0.7717499136924744,
1.113844633102417,
0.16876883804798126,
-0.9367147088050842,
1.1185226440429688,
-0.36448797583580017,
-1.7584835290908813,
1.0034658908843994,
-2.1897411346435547
] |
https://github.com/huggingface/datasets/issues/4732 | Document better that loading a dataset passing its name does not use the local script | Thanks for sharing your perspective. I think the `load_dataset` function is the only one that pulls from GitHub, and since this use-case is very specific, I don't think we need to include such a broad clarification in the Installation section.
Feel free to check out the linked PR and let me know if it needs any additional explanation 😊 | As reported by @TrentBrick here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191858596, it could be more clear that loading a dataset by passing its name does not use the (modified) local script of it.
What he did:
- he installed `datasets` from source
- he modified locally `datasets/the_pile/the_pile.py` loading script
- he tried to load it but using `load_dataset("the_pile")` instead of `load_dataset("datasets/the_pile")`
- as explained here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191040245:
- the former does not use the local script, but instead it downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that.
He suggests adding a more clear explanation about this. He suggests adding it maybe in [Installation > source](https://huggingface.co/docs/datasets/installation))
CC: @stevhliu | 612 | 59 | Document better that loading a dataset passing its name does not use the local script
As reported by @TrentBrick here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191858596, it could be more clear that loading a dataset by passing its name does not use the (modified) local script of it.
What he did:
- he installed `datasets` from source
- he modified locally `datasets/the_pile/the_pile.py` loading script
- he tried to load it but using `load_dataset("the_pile")` instead of `load_dataset("datasets/the_pile")`
- as explained here https://github.com/huggingface/datasets/issues/4725#issuecomment-1191040245:
- the former does not use the local script, but instead it downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that.
He suggests adding a more clear explanation about this. He suggests adding it maybe in [Installation > source](https://huggingface.co/docs/datasets/installation))
CC: @stevhliu
Thanks for sharing your perspective. I think the `load_dataset` function is the only one that pulls from GitHub, and since this use-case is very specific, I don't think we need to include such a broad clarification in the Installation section.
Feel free to check out the linked PR and let me know if it needs any additional explanation 😊 | [
-1.1901530027389526,
-0.9705958962440491,
-0.7784734964370728,
1.4576386213302612,
-0.11603773385286331,
-1.2693191766738892,
0.04700184240937233,
-1.000286340713501,
1.6834235191345215,
-0.7571762204170227,
0.397733598947525,
-1.7667094469070435,
0.02898731827735901,
-0.5611944198608398,
-0.7719690203666687,
-0.8354912400245667,
-0.49026915431022644,
-0.8333051204681396,
0.9481358528137207,
2.4410946369171143,
1.2018723487854004,
-1.421932578086853,
2.6669623851776123,
0.6858617067337036,
-0.18139274418354034,
-1.0809662342071533,
0.5091680884361267,
0.006527391262352467,
-1.2679115533828735,
-0.4494965672492981,
-0.9515846371650696,
0.0022817421704530716,
-0.5758616924285889,
-0.5329345464706421,
0.07087650895118713,
0.34848228096961975,
-0.19239585101604462,
-0.36855146288871765,
-0.5426765084266663,
-0.8122405409812927,
0.4750760793685913,
-0.33144164085388184,
1.0348368883132935,
-0.37449508905410767,
1.9109822511672974,
-0.5516051054000854,
0.37727639079093933,
0.6144278049468994,
1.3392817974090576,
0.23578159511089325,
-0.006157069467008114,
0.2701982855796814,
0.31624042987823486,
0.023184414952993393,
0.49321219325065613,
1.1716105937957764,
0.6330467462539673,
0.46403205394744873,
0.6950769424438477,
-2.24120831489563,
1.3392970561981201,
-0.995009183883667,
0.3311309218406677,
1.3496851921081543,
-0.9598581194877625,
0.32753312587738037,
-1.801736831665039,
-0.012984948232769966,
0.5474756360054016,
-2.2483954429626465,
0.11626938730478287,
-1.2917413711547852,
-0.4485994577407837,
1.0617163181304932,
0.24990326166152954,
-1.3340716361999512,
0.22247087955474854,
-0.3756483495235443,
1.0040497779846191,
0.5039878487586975,
1.1857303380966187,
-1.686104655265808,
0.002419103868305683,
-0.272604376077652,
0.11807649582624435,
-1.2714422941207886,
-1.5586953163146973,
0.4687764346599579,
0.5907971858978271,
0.6577233672142029,
-0.0919414609670639,
1.035712718963623,
-0.931564211845398,
0.8847863674163818,
-0.9030161499977112,
-1.660378098487854,
-1.4094094038009644,
-2.2524068355560303,
-2.4026260375976562,
0.8167709112167358,
-0.5311073660850525,
-0.46329066157341003,
1.967094898223877,
-1.0451998710632324,
-1.7761998176574707,
1.0745432376861572,
0.3052031099796295,
0.0651790127158165,
2.3681540489196777,
0.10739857703447342,
-0.7555689811706543,
0.3501766622066498,
-0.6420863270759583,
0.8162569999694824,
-0.3209436535835266,
1.379949688911438,
0.5381046533584595,
-1.0499820709228516,
1.6179029941558838,
-0.4770635962486267,
0.49568238854408264,
-0.6699886322021484,
-0.5693713426589966,
-0.7939862608909607,
0.3287954330444336,
1.8878387212753296,
-0.3750396966934204,
1.6722543239593506,
-0.37538304924964905,
-1.5909305810928345,
-1.5852524042129517,
0.8179762959480286,
0.42691028118133545,
-0.840429961681366,
0.05651920288801193,
-0.35893166065216064,
0.06979761272668839,
-0.04007936641573906,
1.113076090812683,
1.1620136499404907,
0.6257569789886475,
-0.30269575119018555,
-0.8798252940177917,
0.2584790587425232,
-0.05653876066207886,
-0.6726608276367188,
-1.7098989486694336,
-0.38277342915534973,
0.2662560045719147,
0.6118898391723633,
-1.1998289823532104,
1.801653504371643,
0.799652636051178,
1.9909708499908447,
1.001389980316162,
-0.28482452034950256,
1.4436999559402466,
-0.01880751922726631,
1.9223263263702393,
-0.46968457102775574,
0.5855117440223694,
-0.3087465763092041,
-1.2162607908248901,
0.7982248663902283,
-0.4130561351776123,
-2.0313870906829834,
-0.7828724384307861,
-0.804676353931427,
-0.1771439015865326,
-0.7313060760498047,
0.8905096650123596,
-0.28309324383735657,
-1.4314522743225098,
0.1650526225566864,
-0.5718784928321838,
0.11896837502717972,
-1.2898801565170288,
0.27990275621414185,
0.7963966131210327,
-0.7309463024139404,
0.03616731986403465,
-0.19043926894664764,
-1.3005520105361938,
-0.46082553267478943,
0.3131090998649597,
2.001547336578369,
-0.6850102543830872,
0.9761716723442078,
1.0104498863220215,
-0.6951201558113098,
0.0775708481669426,
0.2916583716869354,
-0.2840246558189392,
0.8394120931625366,
-1.044244647026062,
-0.32579711079597473,
1.2469751834869385,
-0.20378579199314117,
-0.6208130717277527,
1.5138927698135376,
0.7786274552345276,
-0.9982520341873169,
-0.20047087967395782,
-0.14822834730148315,
-0.758867084980011,
0.015772584825754166,
-1.5630961656570435,
-0.09193607419729233,
0.23423106968402863,
-1.4830451011657715,
-0.47544679045677185,
-0.17031534016132355,
1.269954800605774,
-0.21862854063510895,
1.3952699899673462,
-0.3393646478652954,
-0.17011161148548126,
-0.4268709123134613,
-0.5434847474098206,
0.11178813874721527,
-0.13331644237041473,
-0.6872712969779968,
0.27664777636528015,
-0.8009995222091675,
0.324090838432312,
1.4156811237335205,
0.3712582290172577,
0.060253143310546875,
0.5025683045387268,
1.1555348634719849,
0.3202190101146698,
-0.03024076297879219,
-0.8961718082427979,
-1.6361666917800903,
2.0683085918426514,
-1.396605134010315,
1.9476591348648071,
0.7805839776992798,
-0.11514979600906372,
-1.7184122800827026,
-1.8226577043533325,
1.4072847366333008,
1.1815685033798218,
2.35866117477417,
0.5722779631614685,
0.3938218355178833,
-0.8778539299964905,
-0.6570536494255066,
0.38397112488746643,
-0.9807147979736328,
-0.7973031401634216,
0.10267123579978943,
2.346858024597168,
1.7580896615982056,
-0.482301265001297,
-0.19086165726184845,
-1.0288692712783813,
1.291823148727417,
-0.2312614917755127,
0.18176531791687012,
1.979112148284912,
-0.31088656187057495,
-1.0868313312530518,
1.2901642322540283,
-2.4343619346618652,
0.18017099797725677,
2.040745258331299,
0.35389938950538635,
0.11531008780002594,
-1.4196592569351196,
-0.6193627119064331,
-0.2369438260793686,
-0.4452476501464844,
-1.215035080909729,
0.5620914101600647,
-0.293104887008667,
-0.838735818862915,
-1.4851607084274292,
0.0977824404835701,
-1.1127772331237793,
-1.6577293872833252,
0.3712191581726074,
1.8119969367980957,
1.9958592653274536,
-0.7265861630439758,
1.4665863513946533,
-0.2851986289024353,
0.17599011957645416,
1.3342983722686768,
1.2621477842330933,
3.193572521209717,
1.955687403678894,
-1.2165536880493164,
0.7191724181175232,
-0.2273903340101242,
-0.4690907299518585,
1.2274775505065918,
-1.1535910367965698,
1.256615400314331,
-0.25965362787246704,
-1.3202091455459595,
-1.272026538848877,
0.945752739906311,
0.4484787583351135,
0.07351904362440109,
-0.5253690481185913,
1.2857848405838013,
0.13592417538166046,
1.2554900646209717,
0.47134074568748474,
-0.47474417090415955,
0.5360759496688843,
-0.378014475107193,
-0.5797631144523621,
1.6467673778533936,
0.15208011865615845,
-1.4766632318496704,
-2.2987220287323,
-0.23267480731010437,
-0.8839355111122131,
-0.04158250242471695,
-0.6241666674613953,
-0.9869363903999329,
1.6507394313812256,
0.39083418250083923,
-1.3305720090866089,
-0.26338058710098267,
-0.3854944705963135,
-0.5677616596221924,
2.683471918106079,
-1.4270625114440918,
-0.16509820520877838,
-1.0299714803695679,
-0.6178118586540222,
1.6837067604064941,
-1.1827548742294312,
-0.16964393854141235,
-1.0116088390350342,
-0.681570291519165,
-1.3734970092773438,
-0.4953819215297699,
-0.018155861645936966,
-0.9043572545051575,
0.6937327980995178,
0.10322113335132599,
-1.1397701501846313,
-0.3145797848701477,
-0.8794046640396118,
0.9328148365020752,
-0.12574109435081482,
0.2202766239643097,
1.8785362243652344,
0.43297457695007324,
-0.4080702066421509,
0.6975091099739075,
1.1882028579711914,
0.6579927206039429,
-0.6324390769004822,
0.22047637403011322,
-0.6486385464668274,
0.4217107892036438,
-1.4302639961242676,
0.24035124480724335,
-2.8409059047698975,
0.7258713841438293,
-0.11668886989355087,
-0.08994140475988388,
-0.0355311818420887,
-1.296764612197876,
1.0596685409545898,
2.581573247909546,
-1.2044734954833984,
0.4272586405277252,
0.4115968644618988,
1.194977045059204,
-1.6004031896591187,
0.2477528154850006,
-0.44993096590042114,
2.105006456375122,
0.12096122652292252,
1.166143774986267,
-0.489727646112442,
-2.1866347789764404,
0.6212450265884399,
-1.2809247970581055,
-1.0772016048431396,
0.8567253351211548,
-0.8711602091789246,
0.1183399185538292,
-1.3133063316345215,
-0.1345462054014206,
-0.9597409963607788,
-1.1740570068359375,
0.7789963483810425,
0.06764545291662216,
0.4649638533592224,
-0.5818462371826172,
0.3939337432384491,
-2.1966004371643066,
-1.3001002073287964,
-0.2373264580965042,
-1.0346052646636963,
0.44858118891716003,
-0.34400317072868347,
0.594953179359436,
-0.14612653851509094,
0.08290961384773254,
0.3223636746406555,
1.3486757278442383,
3.416712522506714,
0.22699639201164246,
0.34726962447166443,
-0.07484158873558044,
-0.9969604015350342,
1.4797433614730835,
0.9368772506713867,
-0.11246985197067261,
-0.5127992033958435,
-0.9669469594955444,
1.3261281251907349,
1.9255925416946411,
1.1372424364089966,
0.05819125473499298,
-0.8006559014320374,
-0.7503600716590881,
0.029039092361927032,
0.18236324191093445,
0.48804137110710144,
0.9166566729545593,
-0.02383263409137726,
0.15111017227172852,
1.3933614492416382,
1.1961923837661743,
-0.31326234340667725,
0.35779961943626404,
-0.8694766759872437,
-0.4355599880218506,
0.5358538627624512,
0.31572920083999634,
0.03943311423063278,
0.47007134556770325,
-0.9951825737953186,
-0.24089409410953522,
-0.3722142279148102,
-0.9649094343185425,
-0.7364463210105896,
-0.4799574315547943,
-0.35953161120414734,
1.6249481439590454,
0.01757093518972397,
-0.5215744376182556,
0.025895513594150543,
-0.857430100440979,
-0.0972757562994957,
-1.067773699760437,
0.2572740316390991,
-0.04598687216639519,
-0.07389858365058899,
-0.1068558320403099,
1.7287781238555908,
-1.0312635898590088,
-2.123701333999634,
0.290505588054657,
0.27402907609939575,
-0.4131666123867035,
0.12626448273658752,
1.6132738590240479,
0.38408830761909485,
1.4262313842773438,
1.362379550933838,
0.9843830466270447,
-0.6522818207740784,
-1.3008439540863037,
0.6725029349327087,
0.9690881371498108,
-1.341180682182312,
0.974433422088623,
-0.0628548115491867,
-0.47793903946876526,
0.6615847945213318,
1.2825778722763062,
0.39910560846328735,
-1.8750513792037964,
0.7557958364486694,
-0.854088544845581,
0.7688733339309692,
0.6537690758705139,
0.7966695427894592,
0.1866140067577362,
0.8157222867012024,
-1.2375770807266235,
-1.1701228618621826,
-0.7026776671409607,
-0.6209731698036194,
1.901368498802185,
-0.11858802288770676,
0.5872993469238281,
-0.18085697293281555,
-1.2672786712646484,
-0.14723749458789825,
0.7674161791801453,
0.37899091839790344,
-0.45490604639053345,
0.9369298219680786,
-0.6428240537643433,
-1.0106327533721924,
-1.43316650390625,
-0.4646265506744385,
-0.9823940992355347,
-0.8824357986450195,
1.062916874885559,
0.8383002877235413,
0.303329199552536,
1.880842924118042,
0.5650344491004944,
0.3199353814125061,
-2.6074819564819336,
0.8280767798423767,
0.31029900908470154,
-0.08483580499887466,
0.936333179473877,
0.2560281753540039,
1.0527608394622803,
-0.00021261349320411682,
0.5597520470619202,
-2.306320905685425,
2.226480007171631,
-0.25116124749183655,
0.6509790420532227,
0.010537582449615002,
-0.23833109438419342,
1.0470062494277954,
0.5768836140632629,
0.4948040544986725,
-1.183437705039978,
0.7630848288536072,
-0.6152852773666382,
1.1711430549621582,
0.8825005888938904,
-0.8979420065879822,
0.015361658297479153,
1.3844784498214722,
0.46437734365463257,
-0.41732585430145264,
-0.9640128016471863,
-0.8667128682136536,
1.05152428150177,
1.6818403005599976,
0.05488748103380203,
-0.037518858909606934,
0.8650295734405518,
0.6911777257919312,
-1.2584707736968994,
0.09774983674287796,
-0.7455544471740723,
-0.7685808539390564,
1.643638014793396,
2.0127360820770264,
-0.03810521215200424,
-0.18068398535251617,
-0.7504604458808899,
-1.1538928747177124,
0.6748611330986023,
0.029920615255832672,
0.05234827473759651,
0.7733916640281677,
-0.7071132659912109,
1.19527006149292,
0.839972972869873,
0.9245697259902954,
0.09972291439771652,
0.2806025445461273,
0.3746736943721771,
-0.2976076900959015,
-1.23566472530365,
-0.25915613770484924,
-1.1341493129730225,
-2.5843615531921387,
0.42047473788261414,
-0.2120743840932846,
-1.4846969842910767,
0.09866376966238022,
-1.0322058200836182,
0.8737491965293884,
-0.5822644829750061,
-1.1539971828460693,
-1.4302829504013062,
0.22752180695533752,
-0.09166023135185242,
0.8899289965629578,
-1.5948535203933716,
-0.11030799150466919,
1.1987717151641846,
0.9267818927764893,
-0.5754815936088562,
0.9553540945053101,
0.23220916092395782,
1.0119441747665405,
0.8167212009429932,
-0.40998145937919617,
0.5406501293182373,
0.10235600918531418,
-1.4042233228683472,
0.44963958859443665,
1.1549773216247559,
0.20864185690879822,
1.4675745964050293,
-0.5144484043121338,
0.09170905500650406,
0.4030415415763855,
-0.5773189067840576,
-0.5369988083839417,
-0.6518558263778687,
0.6966000199317932,
0.046521201729774475,
-0.930048942565918,
0.05325814709067345,
-0.13432157039642334,
-0.12027506530284882,
0.167061448097229,
-1.5164644718170166,
-0.21609152853488922,
-0.36337602138519287,
-0.49679017066955566,
-1.2547588348388672,
0.0068061454221606255,
1.4003596305847168,
-0.7934699058532715,
-0.16240090131759644,
0.4841584265232086,
0.3780269920825958,
0.435778945684433,
0.5783390402793884,
-0.6925521492958069,
-0.32795390486717224,
-0.2877585291862488,
-0.3200755715370178,
0.22468802332878113,
1.232140064239502,
-0.18915103375911713,
-0.9696216583251953,
0.7300158143043518,
-0.408218652009964,
0.05247921496629715,
1.951877474784851,
0.11920634657144547,
-0.8117668628692627,
0.32615524530410767,
-0.6814419627189636,
1.8221144676208496,
1.7164264917373657,
1.3678557872772217,
-0.09920946508646011,
-0.9172356724739075,
0.6135974526405334,
-0.3180922269821167,
-0.3649011254310608,
0.9792943596839905,
0.38643163442611694,
-0.16495680809020996,
-1.460333228111267,
0.5698279738426208,
1.2444617748260498,
-0.8954943418502808,
-0.7363573312759399,
0.08711329102516174,
-0.8906063437461853,
1.0059516429901123,
0.6327044367790222,
0.40246111154556274,
0.2588164806365967,
1.568225383758545,
0.7232702970504761,
-0.38998380303382874,
0.4882667064666748,
0.4943510591983795,
-0.14239196479320526,
-2.031088352203369,
-1.0429877042770386,
0.3038680851459503,
-0.5356930494308472,
-1.5221879482269287,
1.351614236831665,
-1.2136539220809937,
-0.9099045395851135,
0.4726466238498688,
0.08872757107019424,
1.4577535390853882,
0.30706316232681274,
1.645686149597168,
2.1295535564422607,
0.8490177989006042,
0.22101080417633057,
1.309622049331665,
0.006314306519925594,
-0.39769574999809265,
1.8031870126724243,
-0.4245723485946655,
0.4994286596775055,
1.0446584224700928,
-0.3813582956790924,
-1.0121656656265259,
-0.8212812542915344,
-1.2124062776565552,
-0.6644920110702515,
1.1083040237426758,
0.09892124682664871,
-1.1017212867736816,
0.22901685535907745,
1.5475176572799683,
0.08385366201400757,
-0.21148447692394257,
0.6439121961593628,
0.41202956438064575,
-0.7546290159225464,
-0.01698799431324005,
-0.8676037192344666,
0.5335005521774292,
-0.10040642321109772,
-0.2883757948875427,
0.3004244565963745,
0.49604693055152893,
1.3269168138504028,
0.06544426083564758,
0.13522681593894958,
1.3039672374725342,
-1.3981918096542358,
1.4826927185058594,
-0.6881202459335327,
0.295212984085083,
-2.4396884441375732,
1.4126566648483276,
-0.8610324859619141,
1.8754432201385498,
-2.5977659225463867,
0.44068968296051025,
-0.5705975890159607,
-0.5365393161773682,
0.3848116397857666,
-0.42841389775276184,
0.13484011590480804,
-0.1202673390507698,
-1.0154924392700195,
-0.0592770092189312,
-0.7009517550468445,
0.5933856964111328,
1.1802619695663452,
1.3930163383483887,
-1.1360665559768677,
-0.4220193326473236,
-1.805284857749939,
-0.12680485844612122,
-0.5794322490692139,
0.414608895778656,
-1.957770586013794,
-0.13253194093704224,
-1.983447551727295,
-2.410273790359497,
-1.4119046926498413,
-0.7800561785697937,
1.1289150714874268,
0.19713810086250305,
-0.9571321606636047,
1.1527647972106934,
-0.37924447655677795,
-1.7672398090362549,
1.0505250692367554,
-2.1770622730255127
] |
https://github.com/huggingface/datasets/issues/4730 | Loading imagenet-1k validation split takes much more RAM than expected | My bad, `482 * 418 * 50000 * 3 / 1000000 = 30221 MB` ( https://stackoverflow.com/a/42979315 ).
Meanwhile `256 * 256 * 50000 * 3 / 1000000 = 9830 MB`. We are loading the non-cropped images and that is why we take so much RAM. | ## Describe the bug
Loading into memory the validation split of imagenet-1k takes much more RAM than expected. Assuming ImageNet-1k is 150 GB, split is 50000 validation images and 1,281,167 train images, I would expect only about 6 GB loaded in RAM.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("imagenet-1k", split="validation")
print(dataset)
"""prints
Dataset({
features: ['image', 'label'],
num_rows: 50000
})
"""
pipe_inputs = dataset["image"]
# and wait :-)
```
## Expected results
Use only < 10 GB RAM when loading the images.
## Actual results

```
Using custom data configuration default
Reusing dataset imagenet-1k (/home/fxmarty/.cache/huggingface/datasets/imagenet-1k/default/1.0.0/a1e9bfc56c3a7350165007d1176b15e9128fcaf9ab972147840529aed3ae52bc)
Killed
```
## Environment info
- `datasets` version: 2.3.3.dev0
- Platform: Linux-5.15.0-41-generic-x86_64-with-glibc2.35
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- datasets commit: 4e4222f1b6362c2788aec0dd2cd8cede6dd17b80
| 613 | 45 | Loading imagenet-1k validation split takes much more RAM than expected
## Describe the bug
Loading into memory the validation split of imagenet-1k takes much more RAM than expected. Assuming ImageNet-1k is 150 GB, split is 50000 validation images and 1,281,167 train images, I would expect only about 6 GB loaded in RAM.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("imagenet-1k", split="validation")
print(dataset)
"""prints
Dataset({
features: ['image', 'label'],
num_rows: 50000
})
"""
pipe_inputs = dataset["image"]
# and wait :-)
```
## Expected results
Use only < 10 GB RAM when loading the images.
## Actual results

```
Using custom data configuration default
Reusing dataset imagenet-1k (/home/fxmarty/.cache/huggingface/datasets/imagenet-1k/default/1.0.0/a1e9bfc56c3a7350165007d1176b15e9128fcaf9ab972147840529aed3ae52bc)
Killed
```
## Environment info
- `datasets` version: 2.3.3.dev0
- Platform: Linux-5.15.0-41-generic-x86_64-with-glibc2.35
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- datasets commit: 4e4222f1b6362c2788aec0dd2cd8cede6dd17b80
My bad, `482 * 418 * 50000 * 3 / 1000000 = 30221 MB` ( https://stackoverflow.com/a/42979315 ).
Meanwhile `256 * 256 * 50000 * 3 / 1000000 = 9830 MB`. We are loading the non-cropped images and that is why we take so much RAM. | [
-1.2175885438919067,
-0.9241048693656921,
-0.7428315877914429,
1.3496582508087158,
-0.14000511169433594,
-1.2327066659927368,
0.18020352721214294,
-1.0460962057113647,
1.643044352531433,
-0.7336326241493225,
0.2765530049800873,
-1.6691101789474487,
-0.035498980432748795,
-0.6058464646339417,
-0.7417626976966858,
-0.819847047328949,
-0.40934035181999207,
-0.7777354121208191,
1.0295215845108032,
2.48891019821167,
1.2152726650238037,
-1.3457781076431274,
2.766890287399292,
0.688992440700531,
-0.26817989349365234,
-0.9653464555740356,
0.5264159440994263,
-0.011775316670536995,
-1.3687142133712769,
-0.357816606760025,
-0.8927469849586487,
0.0018320269882678986,
-0.5438616871833801,
-0.5967139005661011,
0.05335507541894913,
0.40016067028045654,
-0.27602389454841614,
-0.45776182413101196,
-0.5016693472862244,
-0.802040696144104,
0.4313534200191498,
-0.3628986179828644,
0.8829808831214905,
-0.3102588653564453,
1.7320934534072876,
-0.6021432876586914,
0.4059397280216217,
0.706116795539856,
1.3093347549438477,
0.20024453103542328,
0.03393682837486267,
0.37737947702407837,
0.3436812460422516,
-0.05485617369413376,
0.46521803736686707,
1.261367678642273,
0.6280802488327026,
0.4877808392047882,
0.7499675154685974,
-2.226917266845703,
1.306357502937317,
-0.9139096140861511,
0.24364416301250458,
1.359848141670227,
-0.9559192657470703,
0.4184248447418213,
-1.842612624168396,
-0.02853889763355255,
0.5126829743385315,
-2.2623987197875977,
0.2786174416542053,
-1.2975282669067383,
-0.5536850094795227,
0.9701710343360901,
0.31484928727149963,
-1.1898787021636963,
0.11971268802881241,
-0.4723987877368927,
0.9683961272239685,
0.4074014723300934,
1.1818727254867554,
-1.6740354299545288,
-0.07844053953886032,
-0.3163909614086151,
0.1300661414861679,
-1.3022584915161133,
-1.6041942834854126,
0.5527516007423401,
0.6383062601089478,
0.6604299545288086,
-0.11111626029014587,
1.0155991315841675,
-1.0136892795562744,
0.7122387886047363,
-1.02957022190094,
-1.7622793912887573,
-1.4158101081848145,
-2.2634809017181396,
-2.2157323360443115,
0.8035871982574463,
-0.4543575942516327,
-0.486301064491272,
2.0113232135772705,
-1.0647958517074585,
-1.799352765083313,
1.1243888139724731,
0.3098607659339905,
-0.09142351895570755,
2.384887456893921,
0.2505756914615631,
-0.7484542727470398,
0.5709575414657593,
-0.7968064546585083,
0.710671603679657,
-0.3232090473175049,
1.300729751586914,
0.44428253173828125,
-0.9842285513877869,
1.5753717422485352,
-0.37283170223236084,
0.620488166809082,
-0.695091962814331,
-0.4694346785545349,
-0.7607706189155579,
0.2718780040740967,
1.9292153120040894,
-0.3273381292819977,
1.5238972902297974,
-0.34917858242988586,
-1.6095142364501953,
-1.544228196144104,
0.7774986028671265,
0.5490342974662781,
-0.7403477430343628,
0.16346943378448486,
-0.38686445355415344,
0.11586161702871323,
-0.008506303653120995,
1.086464524269104,
1.2958012819290161,
0.7337231040000916,
-0.25564056634902954,
-0.8906992077827454,
0.23796825110912323,
0.004631710238754749,
-0.7370855212211609,
-1.7701430320739746,
-0.34486883878707886,
0.21947388350963593,
0.6254936456680298,
-1.3083508014678955,
1.684119701385498,
0.9116076231002808,
1.9793236255645752,
1.024436354637146,
-0.3702544867992401,
1.5418291091918945,
0.1296810805797577,
1.8110032081604004,
-0.41523218154907227,
0.7103009223937988,
-0.33967745304107666,
-1.1413382291793823,
0.8285662531852722,
-0.3555394113063812,
-2.0628325939178467,
-0.6726149320602417,
-0.8047698736190796,
-0.20500260591506958,
-0.7968566417694092,
0.9923193454742432,
-0.27396097779273987,
-1.4197367429733276,
0.24733512103557587,
-0.7463875412940979,
0.15133967995643616,
-1.3041794300079346,
0.19349689781665802,
0.7401099801063538,
-0.6316399574279785,
0.016566313803195953,
-0.25837498903274536,
-1.2886900901794434,
-0.4319946765899658,
0.26498913764953613,
1.893796682357788,
-0.7460580468177795,
1.0342044830322266,
1.052922010421753,
-0.6562985777854919,
-0.009629983454942703,
0.3682245910167694,
-0.2659038007259369,
0.923927903175354,
-1.1030960083007812,
-0.3771006762981415,
1.0989209413528442,
-0.07364047318696976,
-0.5495626926422119,
1.4071425199508667,
0.7807932496070862,
-1.000563144683838,
-0.2509320080280304,
-0.11598371714353561,
-0.7719126343727112,
-0.0399918407201767,
-1.5854530334472656,
-0.12851732969284058,
0.32573965191841125,
-1.5168665647506714,
-0.4575656056404114,
-0.2531748116016388,
1.3130650520324707,
-0.13064886629581451,
1.372666358947754,
-0.2915922999382019,
-0.16337800025939941,
-0.40919363498687744,
-0.377714067697525,
0.08625449985265732,
-0.2186431586742401,
-0.6862842440605164,
0.2850037217140198,
-0.7799592614173889,
0.3347044587135315,
1.4835615158081055,
0.39344507455825806,
0.08584126830101013,
0.540205717086792,
1.1328049898147583,
0.3851688802242279,
-0.06096222996711731,
-0.8799020051956177,
-1.5858079195022583,
2.048114538192749,
-1.511386752128601,
1.9589532613754272,
0.8336830735206604,
-0.04891199246048927,
-1.8056416511535645,
-1.9486110210418701,
1.4129905700683594,
1.1339908838272095,
2.4723942279815674,
0.5761890411376953,
0.4621237516403198,
-0.7988291382789612,
-0.708031952381134,
0.3047770857810974,
-0.9895959496498108,
-0.785462498664856,
0.19534410536289215,
2.353332757949829,
1.74661386013031,
-0.46156400442123413,
-0.22796180844306946,
-1.018702745437622,
1.3064700365066528,
-0.10917636007070541,
0.15535730123519897,
1.970160722732544,
-0.21984651684761047,
-1.0551819801330566,
1.2646238803863525,
-2.2202188968658447,
0.1728111207485199,
1.9405441284179688,
0.2686222791671753,
0.035850510001182556,
-1.3722262382507324,
-0.7116877436637878,
-0.2576708495616913,
-0.46380946040153503,
-1.2839901447296143,
0.4987552762031555,
-0.21444697678089142,
-0.8440141677856445,
-1.4718927145004272,
0.041846804320812225,
-1.141732096672058,
-1.6884576082229614,
0.3137015998363495,
1.8286410570144653,
2.0903255939483643,
-0.8681970238685608,
1.465860366821289,
-0.25226035714149475,
0.092189259827137,
1.1966089010238647,
1.199778437614441,
3.058771848678589,
1.816940188407898,
-1.2834315299987793,
0.7089947462081909,
-0.10368728637695312,
-0.46704375743865967,
1.1572716236114502,
-1.1576993465423584,
1.2739688158035278,
-0.19171510636806488,
-1.1628522872924805,
-1.159222960472107,
0.9413395524024963,
0.43137893080711365,
0.05543500930070877,
-0.47510477900505066,
1.1857707500457764,
0.0630892962217331,
1.346427083015442,
0.5796034336090088,
-0.30375179648399353,
0.7411072254180908,
-0.3682514429092407,
-0.5019742846488953,
1.575179100036621,
0.11097073554992676,
-1.4898171424865723,
-2.381059169769287,
-0.16818955540657043,
-0.8730745911598206,
0.027542024850845337,
-0.6732740998268127,
-1.0082602500915527,
1.6586430072784424,
0.42030367255210876,
-1.1959221363067627,
-0.25874489545822144,
-0.35308247804641724,
-0.5715920329093933,
2.6940431594848633,
-1.4517260789871216,
-0.18521994352340698,
-0.9976623058319092,
-0.5466011762619019,
1.5767310857772827,
-1.1401947736740112,
-0.1627703309059143,
-1.0626407861709595,
-0.5491491556167603,
-1.2959669828414917,
-0.5585212111473083,
-0.0688975378870964,
-0.8751912713050842,
0.8235394954681396,
0.13997067511081696,
-1.165964126586914,
-0.2499241679906845,
-0.9372085928916931,
0.8822000622749329,
-0.16893301904201508,
0.20851820707321167,
1.865442156791687,
0.4062280058860779,
-0.31394484639167786,
0.7622496485710144,
1.1588159799575806,
0.5734754800796509,
-0.6765956282615662,
0.19796405732631683,
-0.6940705180168152,
0.3126355707645416,
-1.3261390924453735,
0.3062301278114319,
-2.842313528060913,
0.664380669593811,
-0.05380279943346977,
0.014504511840641499,
-0.022191014140844345,
-1.3008859157562256,
1.1069564819335938,
2.612999677658081,
-1.114441156387329,
0.4855910539627075,
0.31582000851631165,
1.1511778831481934,
-1.5721397399902344,
0.21621257066726685,
-0.5440398454666138,
2.1581485271453857,
0.1545293778181076,
1.1996040344238281,
-0.5145482420921326,
-2.264713764190674,
0.6312564015388489,
-1.2341853380203247,
-1.1350066661834717,
0.7660346627235413,
-0.8475838303565979,
0.14082132279872894,
-1.3685448169708252,
-0.24942180514335632,
-0.8909581899642944,
-1.1602592468261719,
0.7042181491851807,
0.07253528386354446,
0.5257577300071716,
-0.5655913352966309,
0.3847730755805969,
-2.2300469875335693,
-1.4069831371307373,
-0.24100908637046814,
-0.9308151006698608,
0.5018130540847778,
-0.31027039885520935,
0.7123006582260132,
-0.13229204714298248,
-0.005156295839697123,
0.3539312481880188,
1.3488893508911133,
3.336217164993286,
0.1875210404396057,
0.31423071026802063,
-0.1571032702922821,
-1.011282205581665,
1.4418083429336548,
0.9431621432304382,
-0.05907053127884865,
-0.6414734721183777,
-1.0825152397155762,
1.302847981452942,
1.9530562162399292,
1.0956693887710571,
-0.0051162829622626305,
-0.9062111377716064,
-0.7612665891647339,
0.06421550363302231,
0.18581221997737885,
0.4558793902397156,
0.9942799806594849,
0.0809619128704071,
0.15888074040412903,
1.4794039726257324,
1.219632625579834,
-0.4129200577735901,
0.4335167109966278,
-0.8813340663909912,
-0.42322486639022827,
0.4647393524646759,
0.32696467638015747,
0.06027062237262726,
0.39100173115730286,
-1.1165361404418945,
-0.25389644503593445,
-0.31106269359588623,
-0.9470565915107727,
-0.7381687164306641,
-0.4177907705307007,
-0.3436928689479828,
1.6416492462158203,
0.050168413668870926,
-0.39253225922584534,
-0.008117692545056343,
-0.7593476176261902,
-0.040563035756349564,
-1.017053484916687,
0.30461353063583374,
-0.19090861082077026,
-0.08198755979537964,
-0.11223679780960083,
1.749127984046936,
-0.9156617522239685,
-2.054307699203491,
0.24312449991703033,
0.2306300699710846,
-0.37149518728256226,
0.0950922742486,
1.6774276494979858,
0.6918152570724487,
1.463740587234497,
1.3138798475265503,
0.9713206887245178,
-0.6704269051551819,
-1.257042407989502,
0.6303839683532715,
0.9568981528282166,
-1.3296399116516113,
0.782863974571228,
-0.07220177352428436,
-0.5362638831138611,
0.6314058899879456,
1.3448336124420166,
0.4154875874519348,
-1.986413836479187,
0.7914212942123413,
-0.8936322331428528,
0.771535336971283,
0.7391455769538879,
0.8136941194534302,
0.1848548799753189,
0.8288889527320862,
-1.339050054550171,
-1.108389973640442,
-0.6929530501365662,
-0.5928026437759399,
1.87350332736969,
-0.23351895809173584,
0.5091455578804016,
-0.33710241317749023,
-1.2728826999664307,
-0.054031532257795334,
0.6773847937583923,
0.3245803415775299,
-0.4121166169643402,
0.7607308626174927,
-0.5696465373039246,
-1.104257583618164,
-1.3863279819488525,
-0.4499567747116089,
-0.9789809584617615,
-0.9433772563934326,
0.9294641017913818,
0.7788754105567932,
0.41971150040626526,
1.9224215745925903,
0.6737973690032959,
0.17331908643245697,
-2.665123462677002,
0.8915771245956421,
0.25435033440589905,
-0.03880862146615982,
0.9374883770942688,
0.321072518825531,
1.084083080291748,
-0.03315271437168121,
0.5314079523086548,
-2.434593915939331,
2.2485413551330566,
-0.19730980694293976,
0.6934948563575745,
0.02626204863190651,
-0.15678192675113678,
1.0587090253829956,
0.5289523005485535,
0.54341059923172,
-1.0867310762405396,
0.7218074202537537,
-0.601941704750061,
1.230065941810608,
0.8344573974609375,
-0.8415199518203735,
0.057759515941143036,
1.2827740907669067,
0.41670727729797363,
-0.4505541920661926,
-0.8937826752662659,
-0.9229885935783386,
0.947439968585968,
1.8128631114959717,
-0.04380642622709274,
0.07164651900529861,
0.8887609243392944,
0.6634261012077332,
-1.3820682764053345,
0.035297926515340805,
-0.7110293507575989,
-0.755254328250885,
1.7412734031677246,
2.082571506500244,
-0.14128482341766357,
-0.23162131011486053,
-0.7474214434623718,
-1.259110689163208,
0.8303007483482361,
0.04458821192383766,
0.16424407064914703,
0.7350441813468933,
-0.6287840008735657,
1.175302505493164,
0.8162674307823181,
0.9312527775764465,
0.16363652050495148,
0.2992047965526581,
0.36264902353286743,
-0.36700332164764404,
-1.1651536226272583,
-0.23528394103050232,
-1.0312458276748657,
-2.5268349647521973,
0.4611963629722595,
-0.19846783578395844,
-1.459382176399231,
0.019801639020442963,
-0.9744403958320618,
0.8342706561088562,
-0.5954641103744507,
-1.0463498830795288,
-1.5205415487289429,
0.24332325160503387,
-0.17862306535243988,
0.8978323340415955,
-1.5530472993850708,
-0.13044382631778717,
1.225524663925171,
1.0371979475021362,
-0.5973458886146545,
0.9662582278251648,
0.21572063863277435,
0.9446665644645691,
0.9143048524856567,
-0.3813503086566925,
0.505582332611084,
0.12452610582113266,
-1.3316766023635864,
0.38292911648750305,
1.2775981426239014,
0.2606595456600189,
1.5150196552276611,
-0.5439128875732422,
0.03382908180356026,
0.41404563188552856,
-0.3950505554676056,
-0.4707350432872772,
-0.6091763973236084,
0.6249994039535522,
0.029590826481580734,
-0.9994310140609741,
-0.01307973638176918,
-0.05386055260896683,
-0.15705478191375732,
0.2682918608188629,
-1.4515419006347656,
-0.12581764161586761,
-0.41640591621398926,
-0.66652512550354,
-1.208383560180664,
-0.06911874562501907,
1.3184701204299927,
-0.8539086580276489,
-0.17542149126529694,
0.5023261308670044,
0.26699507236480713,
0.534693717956543,
0.6252425909042358,
-0.6987608671188354,
-0.3969671130180359,
-0.22582048177719116,
-0.3923567831516266,
0.3378399908542633,
1.241819977760315,
-0.10667432099580765,
-1.0634632110595703,
0.6794820427894592,
-0.35782766342163086,
0.10242124646902084,
1.974361777305603,
0.021107956767082214,
-0.8030590415000916,
0.30489659309387207,
-0.6633743643760681,
1.9175646305084229,
1.6265387535095215,
1.382662057876587,
-0.12503086030483246,
-0.9277004599571228,
0.5869563221931458,
-0.2520977258682251,
-0.4136623740196228,
0.9654947519302368,
0.4468924403190613,
-0.22293859720230103,
-1.426652193069458,
0.628714382648468,
1.361657738685608,
-0.8946096897125244,
-0.8040261268615723,
0.07914624363183975,
-0.8802061676979065,
1.1153532266616821,
0.7165329456329346,
0.3450899124145508,
0.24691002070903778,
1.5757554769515991,
0.7732822299003601,
-0.47404971718788147,
0.5311910510063171,
0.4413939416408539,
-0.16783937811851501,
-2.1363046169281006,
-1.1368952989578247,
0.28974705934524536,
-0.4466525614261627,
-1.587863802909851,
1.354837417602539,
-1.1920732259750366,
-1.0135589838027954,
0.5375897884368896,
0.10613328963518143,
1.3417140245437622,
0.2862895727157593,
1.6164261102676392,
2.057415008544922,
0.9209545254707336,
0.3153793215751648,
1.27249276638031,
-0.21886245906352997,
-0.4099397659301758,
1.797154188156128,
-0.45733052492141724,
0.5331282615661621,
1.0200073719024658,
-0.3320925533771515,
-1.0922099351882935,
-0.8258183002471924,
-1.2759251594543457,
-0.7226818203926086,
1.2259154319763184,
0.09814490377902985,
-1.163047432899475,
0.2537499964237213,
1.5714185237884521,
0.10880740731954575,
-0.2534630596637726,
0.7356197834014893,
0.4380151033401489,
-0.7900543212890625,
-0.07465684413909912,
-0.9438542723655701,
0.5271536707878113,
-0.16386152803897858,
-0.3402819037437439,
0.20973806083202362,
0.5662829875946045,
1.284816026687622,
-0.01824907213449478,
0.08095195144414902,
1.2289007902145386,
-1.3147237300872803,
1.5047584772109985,
-0.7308201193809509,
0.260633260011673,
-2.3627443313598633,
1.3400321006774902,
-0.8423026204109192,
1.9233293533325195,
-2.615443706512451,
0.44829675555229187,
-0.5737124681472778,
-0.4307858943939209,
0.2447342425584793,
-0.32949182391166687,
0.16514742374420166,
-0.17240118980407715,
-1.0928337574005127,
-0.13360406458377838,
-0.8186904788017273,
0.582121729850769,
1.1419384479522705,
1.3930301666259766,
-1.0696666240692139,
-0.24225489795207977,
-1.7417113780975342,
-0.14754456281661987,
-0.7389998435974121,
0.2467116266489029,
-1.9283589124679565,
-0.16286636888980865,
-1.9726531505584717,
-2.4410674571990967,
-1.3132939338684082,
-0.8773347735404968,
1.1435513496398926,
0.11930067092180252,
-0.9295968413352966,
1.1093209981918335,
-0.4484044015407562,
-1.8186012506484985,
1.1965864896774292,
-2.184345245361328
] |
https://github.com/huggingface/datasets/issues/4728 | load_dataset gives "403" error when using Financial Phrasebank | Hi @rohitvincent, thanks for reporting.
Unfortunately I'm not able to reproduce your issue:
```python
In [2]: from datasets import load_dataset, DownloadMode
...: load_dataset(path='financial_phrasebank',name='sentences_allagree', download_mode="force_redownload")
Downloading builder script: 6.04kB [00:00, 2.87MB/s]
Downloading metadata: 13.7kB [00:00, 7.24MB/s]
Downloading and preparing dataset financial_phrasebank/sentences_allagree (download: 665.91 KiB, generated: 296.26 KiB, post-processed: Unknown size, total: 962.17 KiB) to .../.cache/huggingface/datasets/financial_phrasebank/sentences_allagree/1.0.0/550bde12e6c30e2674da973a55f57edde5181d53f5a5a34c1531c53f93b7e141...
Downloading data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 682k/682k [00:00<00:00, 7.66MB/s]
Dataset financial_phrasebank downloaded and prepared to .../.cache/huggingface/datasets/financial_phrasebank/sentences_allagree/1.0.0/550bde12e6c30e2674da973a55f57edde5181d53f5a5a34c1531c53f93b7e141. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 918.80it/s]
Out[2]:
DatasetDict({
train: Dataset({
features: ['sentence', 'label'],
num_rows: 2264
})
})
```
Are you able to access the link? https://www.researchgate.net/profile/Pekka-Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip | I tried both codes below to download the financial phrasebank dataset (https://huggingface.co/datasets/financial_phrasebank) with the sentences_allagree subset. However, the code gives a 403 error when executed from multiple machines locally or on the cloud.
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree',download_mode=DownloadMode.FORCE_REDOWNLOAD)
```
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree')
```
**Error**
ConnectionError: Couldn't reach https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip (error 403)
| 614 | 97 | load_dataset gives "403" error when using Financial Phrasebank
I tried both codes below to download the financial phrasebank dataset (https://huggingface.co/datasets/financial_phrasebank) with the sentences_allagree subset. However, the code gives a 403 error when executed from multiple machines locally or on the cloud.
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree',download_mode=DownloadMode.FORCE_REDOWNLOAD)
```
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree')
```
**Error**
ConnectionError: Couldn't reach https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip (error 403)
Hi @rohitvincent, thanks for reporting.
Unfortunately I'm not able to reproduce your issue:
```python
In [2]: from datasets import load_dataset, DownloadMode
...: load_dataset(path='financial_phrasebank',name='sentences_allagree', download_mode="force_redownload")
Downloading builder script: 6.04kB [00:00, 2.87MB/s]
Downloading metadata: 13.7kB [00:00, 7.24MB/s]
Downloading and preparing dataset financial_phrasebank/sentences_allagree (download: 665.91 KiB, generated: 296.26 KiB, post-processed: Unknown size, total: 962.17 KiB) to .../.cache/huggingface/datasets/financial_phrasebank/sentences_allagree/1.0.0/550bde12e6c30e2674da973a55f57edde5181d53f5a5a34c1531c53f93b7e141...
Downloading data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 682k/682k [00:00<00:00, 7.66MB/s]
Dataset financial_phrasebank downloaded and prepared to .../.cache/huggingface/datasets/financial_phrasebank/sentences_allagree/1.0.0/550bde12e6c30e2674da973a55f57edde5181d53f5a5a34c1531c53f93b7e141. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 918.80it/s]
Out[2]:
DatasetDict({
train: Dataset({
features: ['sentence', 'label'],
num_rows: 2264
})
})
```
Are you able to access the link? https://www.researchgate.net/profile/Pekka-Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip | [
-1.2168912887573242,
-0.9198813438415527,
-0.6647791862487793,
1.440987467765808,
-0.23082296550273895,
-1.180700659751892,
0.15314535796642303,
-1.0935239791870117,
1.57981276512146,
-0.6707326173782349,
0.21755047142505646,
-1.6621841192245483,
-0.08363580703735352,
-0.5530135035514832,
-0.72698575258255,
-0.8081067800521851,
-0.4334453046321869,
-0.8393443822860718,
1.027801275253296,
2.5046238899230957,
1.171197533607483,
-1.3807755708694458,
2.7044200897216797,
0.6402198672294617,
-0.19847993552684784,
-1.0294511318206787,
0.4900662302970886,
0.008482750505208969,
-1.2769337892532349,
-0.48348015546798706,
-0.9101967811584473,
-0.05888059735298157,
-0.6256941556930542,
-0.43317827582359314,
0.035812199115753174,
0.42785462737083435,
-0.31520721316337585,
-0.3413533866405487,
-0.546034574508667,
-0.7222914695739746,
0.4932461380958557,
-0.3324710726737976,
0.920157790184021,
-0.3487487733364105,
1.7810291051864624,
-0.6846404075622559,
0.4495168626308441,
0.7298625707626343,
1.2905875444412231,
0.13547155261039734,
0.057829637080430984,
0.3070566654205322,
0.4466017782688141,
0.005168384872376919,
0.5280265808105469,
1.2351280450820923,
0.6045418381690979,
0.4436035454273224,
0.6604853272438049,
-2.2007641792297363,
1.284829020500183,
-0.9748649597167969,
0.2747785449028015,
1.4259042739868164,
-0.8547912240028381,
0.2826027572154999,
-1.848244309425354,
-0.08110213279724121,
0.5990498661994934,
-2.1909141540527344,
0.3697552978992462,
-1.3424043655395508,
-0.5341614484786987,
0.8782796263694763,
0.37811198830604553,
-1.2262787818908691,
0.25170475244522095,
-0.48443448543548584,
1.072546362876892,
0.44071364402770996,
1.064103364944458,
-1.6921162605285645,
-0.11620552837848663,
-0.25727513432502747,
0.1731930673122406,
-1.2225377559661865,
-1.5758228302001953,
0.582966148853302,
0.5869357585906982,
0.6618677377700806,
-0.145294651389122,
1.0299177169799805,
-1.1543201208114624,
0.9245699644088745,
-1.1510154008865356,
-1.7075847387313843,
-1.4502335786819458,
-2.357481002807617,
-2.3176217079162598,
0.7922351956367493,
-0.3771413564682007,
-0.4463441073894501,
2.0188400745391846,
-0.950070321559906,
-1.6907994747161865,
1.0957744121551514,
0.24705299735069275,
-0.051081035286188126,
2.3560140132904053,
0.15532661974430084,
-0.7883937954902649,
0.47713375091552734,
-0.8730785846710205,
0.8592243790626526,
-0.21330071985721588,
1.4019759893417358,
0.5032466650009155,
-0.9265623092651367,
1.5484342575073242,
-0.37664172053337097,
0.5761062502861023,
-0.6280362010002136,
-0.5851101875305176,
-0.7386693358421326,
0.252026230096817,
1.9696135520935059,
-0.26497796177864075,
1.5346728563308716,
-0.3772534728050232,
-1.629953145980835,
-1.5321781635284424,
0.9588534832000732,
0.4654708802700043,
-0.8769943118095398,
0.02733204886317253,
-0.4377003014087677,
0.18202073872089386,
-0.06686738133430481,
1.1371594667434692,
1.2519046068191528,
0.7543570399284363,
-0.3750568926334381,
-0.796574056148529,
0.12945258617401123,
-0.15726950764656067,
-0.70562744140625,
-1.786128044128418,
-0.2834813594818115,
0.1659986674785614,
0.6704525947570801,
-1.2969369888305664,
1.7728826999664307,
0.8661797046661377,
1.9924811124801636,
1.0139366388320923,
-0.4275505542755127,
1.441239356994629,
0.10656663775444031,
1.820793628692627,
-0.5454853773117065,
0.6008262038230896,
-0.36707308888435364,
-1.1572996377944946,
0.9152335524559021,
-0.2792617380619049,
-2.0156171321868896,
-0.7532193660736084,
-0.7278962731361389,
-0.20668543875217438,
-0.8142684102058411,
0.8100335597991943,
-0.2798696756362915,
-1.575606107711792,
0.22273731231689453,
-0.6830910444259644,
0.19089056551456451,
-1.1574679613113403,
0.25270864367485046,
0.7961474061012268,
-0.6412221193313599,
0.04352814331650734,
-0.1615455597639084,
-1.285969853401184,
-0.5038571357727051,
0.40537527203559875,
1.8976601362228394,
-0.600845992565155,
0.8548468351364136,
1.081003189086914,
-0.6801932454109192,
0.1231275200843811,
0.2891353368759155,
-0.266724556684494,
0.7605342864990234,
-1.0336720943450928,
-0.45159560441970825,
1.1268508434295654,
-0.21635833382606506,
-0.6224846243858337,
1.5384522676467896,
0.8464228510856628,
-1.0651599168777466,
-0.18172384798526764,
-0.21442732214927673,
-0.8445836305618286,
0.03480156511068344,
-1.5818990468978882,
-0.14837005734443665,
0.41855737566947937,
-1.5447052717208862,
-0.4514833092689514,
-0.20378346741199493,
1.3190319538116455,
-0.1873796135187149,
1.3996316194534302,
-0.2989872097969055,
-0.12476605176925659,
-0.30081799626350403,
-0.3949922025203705,
0.168636292219162,
-0.265194296836853,
-0.5653299689292908,
0.19373728334903717,
-0.8728553056716919,
0.3046891987323761,
1.4723494052886963,
0.3265612721443176,
-0.03228996694087982,
0.46486547589302063,
1.1517188549041748,
0.38564854860305786,
-0.018872767686843872,
-0.8462895750999451,
-1.4785254001617432,
1.9815889596939087,
-1.4234285354614258,
1.9606865644454956,
0.6967505812644958,
-0.034762416034936905,
-1.8382869958877563,
-1.8498905897140503,
1.319234013557434,
1.1062932014465332,
2.3749258518218994,
0.5160706043243408,
0.4288850724697113,
-0.777117133140564,
-0.667897641658783,
0.275052011013031,
-0.9391660690307617,
-0.6733753085136414,
0.20567835867404938,
2.4217751026153564,
1.7657217979431152,
-0.5464922785758972,
-0.23528431355953217,
-0.9111132025718689,
1.4126176834106445,
-0.17162680625915527,
0.3272911608219147,
2.0679104328155518,
-0.19008184969425201,
-1.011998176574707,
1.393593192100525,
-2.3886680603027344,
0.21290349960327148,
2.058321237564087,
0.2848563492298126,
0.11038601398468018,
-1.3715780973434448,
-0.6080346703529358,
-0.35965704917907715,
-0.4882654845714569,
-1.2519513368606567,
0.5506578087806702,
-0.2946299612522125,
-0.8440278768539429,
-1.4640744924545288,
0.1059853583574295,
-1.164318561553955,
-1.7013641595840454,
0.3301551938056946,
1.919037103652954,
2.0039615631103516,
-0.7442060708999634,
1.4877780675888062,
-0.33312562108039856,
0.10218033194541931,
1.2256191968917847,
1.2416783571243286,
3.0875794887542725,
1.8799432516098022,
-1.2073125839233398,
0.7627614736557007,
-0.2231108695268631,
-0.47882506251335144,
1.0634266138076782,
-1.201127529144287,
1.1883807182312012,
-0.2674563229084015,
-1.1849548816680908,
-1.203382968902588,
1.0974987745285034,
0.4864180386066437,
0.060142453759908676,
-0.553301215171814,
1.1426540613174438,
0.08948695659637451,
1.3702483177185059,
0.5482469797134399,
-0.2726533114910126,
0.5198817849159241,
-0.43696916103363037,
-0.5631277561187744,
1.5961836576461792,
0.22856023907661438,
-1.458585500717163,
-2.3664066791534424,
-0.3361366391181946,
-0.8433133363723755,
0.0017474237829446793,
-0.5863869786262512,
-1.0133675336837769,
1.5809491872787476,
0.41181641817092896,
-1.3020312786102295,
-0.23469899594783783,
-0.3236193358898163,
-0.5355815291404724,
2.750169515609741,
-1.3112245798110962,
-0.09412817656993866,
-0.9487786889076233,
-0.6848505139350891,
1.732884168624878,
-1.22699773311615,
-0.19535323977470398,
-1.151261806488037,
-0.6077651381492615,
-1.2528924942016602,
-0.5405426025390625,
0.041863370686769485,
-0.957635760307312,
0.7196900248527527,
0.1328929215669632,
-1.1416187286376953,
-0.3663501441478729,
-0.9387344121932983,
1.0591857433319092,
-0.06466980278491974,
0.14682482182979584,
1.862538456916809,
0.32719364762306213,
-0.4836616516113281,
0.7503249645233154,
1.2048193216323853,
0.63975989818573,
-0.6892921924591064,
0.08261410892009735,
-0.6595156192779541,
0.25146210193634033,
-1.4386857748031616,
0.24213910102844238,
-2.87880539894104,
0.751175582408905,
-0.0050612748600542545,
-0.08612476289272308,
-0.024587038904428482,
-1.3242640495300293,
1.1942329406738281,
2.5438694953918457,
-1.2201865911483765,
0.49304288625717163,
0.3979948163032532,
1.0879781246185303,
-1.4645020961761475,
0.24789980053901672,
-0.41721758246421814,
2.109443426132202,
0.16982927918434143,
1.2713733911514282,
-0.4927622973918915,
-2.3032920360565186,
0.6566894054412842,
-1.2386586666107178,
-1.1865869760513306,
0.7580053210258484,
-0.9592067003250122,
0.24916616082191467,
-1.4565242528915405,
-0.29224079847335815,
-1.017698049545288,
-1.2094732522964478,
0.709430456161499,
0.20503397285938263,
0.3411799371242523,
-0.6266673803329468,
0.39695674180984497,
-2.2389509677886963,
-1.402620792388916,
-0.19075170159339905,
-0.9266311526298523,
0.541782796382904,
-0.3387848138809204,
0.5501402616500854,
-0.08142715692520142,
0.05920536443591118,
0.3342980146408081,
1.4800547361373901,
3.42047381401062,
0.10958249866962433,
0.2355683445930481,
-0.12722426652908325,
-1.0187166929244995,
1.4167401790618896,
0.959780216217041,
-0.058098770678043365,
-0.5766639709472656,
-1.0009909868240356,
1.2450741529464722,
2.0391170978546143,
1.0570883750915527,
-0.03289182111620903,
-0.7473699450492859,
-0.7198613286018372,
-0.008967868983745575,
0.20910392701625824,
0.578708827495575,
0.8768736720085144,
0.04159737750887871,
0.05364811047911644,
1.344428300857544,
1.1493523120880127,
-0.38981595635414124,
0.3886617422103882,
-0.8885733485221863,
-0.4455588161945343,
0.42054831981658936,
0.22655794024467468,
-0.02113160863518715,
0.470847487449646,
-1.0313010215759277,
-0.2528351843357086,
-0.33220139145851135,
-0.9097046852111816,
-0.735088586807251,
-0.3762144148349762,
-0.37661412358283997,
1.5543156862258911,
0.13975533843040466,
-0.4794616103172302,
-0.026108916848897934,
-0.8111150860786438,
-0.16224320232868195,
-1.0829719305038452,
0.28235453367233276,
-0.08988800644874573,
-0.048347871750593185,
-0.19260507822036743,
1.770723581314087,
-0.9108964800834656,
-1.9893248081207275,
0.16482976078987122,
0.28457579016685486,
-0.3191864788532257,
0.24319946765899658,
1.7063339948654175,
0.5401909351348877,
1.3606096506118774,
1.2998770475387573,
0.9767135977745056,
-0.4915608763694763,
-1.2978761196136475,
0.6600073575973511,
0.960335373878479,
-1.2781445980072021,
0.7989060878753662,
-0.08609002828598022,
-0.43367037177085876,
0.7106994986534119,
1.2999026775360107,
0.4587349593639374,
-2.0391910076141357,
0.8278917670249939,
-0.9452735185623169,
0.7724846601486206,
0.6992942094802856,
0.6980186104774475,
0.24335336685180664,
0.8753185272216797,
-1.2263606786727905,
-1.0740020275115967,
-0.7266503572463989,
-0.6829188466072083,
2.009913682937622,
-0.31147029995918274,
0.5185863375663757,
-0.16868028044700623,
-1.2057480812072754,
-0.133500337600708,
0.7330635190010071,
0.46460241079330444,
-0.5345394015312195,
0.8154808282852173,
-0.620788037776947,
-1.097601294517517,
-1.1633026599884033,
-0.4333309829235077,
-0.998525083065033,
-0.9141988754272461,
0.9454153776168823,
0.7765058279037476,
0.4000347852706909,
1.9758718013763428,
0.6166390180587769,
0.3165413439273834,
-2.637071132659912,
0.8797600865364075,
0.26715394854545593,
-0.0639340728521347,
0.9428147673606873,
0.32877057790756226,
1.1206458806991577,
-0.011907908134162426,
0.5793254971504211,
-2.3560855388641357,
2.2526187896728516,
-0.24468940496444702,
0.7193511128425598,
-0.04879599064588547,
-0.14770977199077606,
1.1631782054901123,
0.5956346392631531,
0.47213122248649597,
-1.0378968715667725,
0.7131139636039734,
-0.6105393767356873,
1.2182073593139648,
0.9709768891334534,
-0.8251999616622925,
0.00878637284040451,
1.3401691913604736,
0.42932870984077454,
-0.5004773139953613,
-0.9842429161071777,
-0.8616028428077698,
0.9550771117210388,
1.6731960773468018,
-0.09350591897964478,
-0.008956808596849442,
0.8326320648193359,
0.668607234954834,
-1.3290865421295166,
0.08248826861381531,
-0.6326044201850891,
-0.7852262258529663,
1.7093290090560913,
2.174772024154663,
-0.10237531363964081,
-0.1786954551935196,
-0.7298172116279602,
-1.2117294073104858,
0.7468651533126831,
-0.06340627372264862,
0.15148429572582245,
0.5943462252616882,
-0.6030097007751465,
1.0630059242248535,
0.681122899055481,
0.9955129623413086,
0.1047423928976059,
0.37201276421546936,
0.3410743474960327,
-0.3578214645385742,
-1.2079828977584839,
-0.3778715431690216,
-1.1345710754394531,
-2.628920793533325,
0.45922228693962097,
-0.18475903570652008,
-1.441981554031372,
0.07308107614517212,
-1.0727593898773193,
0.8544814586639404,
-0.6505220532417297,
-1.1407296657562256,
-1.4647865295410156,
0.2966097593307495,
-0.05053963512182236,
0.9758830666542053,
-1.6305420398712158,
-0.10015876591205597,
1.2153759002685547,
0.866127610206604,
-0.5874041318893433,
1.0109535455703735,
0.32561779022216797,
1.1091176271438599,
0.7275457382202148,
-0.36322468519210815,
0.5626223683357239,
0.1147308200597763,
-1.3350884914398193,
0.46250343322753906,
1.2231557369232178,
0.145986407995224,
1.4123536348342896,
-0.5201012492179871,
0.06393405795097351,
0.47599902749061584,
-0.6293953061103821,
-0.5089208483695984,
-0.449032723903656,
0.6856293678283691,
0.07541730999946594,
-1.0145015716552734,
-0.10970127582550049,
-0.12325192987918854,
-0.23157179355621338,
0.2623731791973114,
-1.4444416761398315,
-0.24850572645664215,
-0.42188379168510437,
-0.5107681155204773,
-1.281491994857788,
-0.05982240289449692,
1.346815586090088,
-0.7473059296607971,
-0.2525070011615753,
0.4638128876686096,
0.33028748631477356,
0.5961533188819885,
0.6752032041549683,
-0.6821982860565186,
-0.2997119128704071,
-0.3388215899467468,
-0.3824908137321472,
0.3113197386264801,
1.3476594686508179,
-0.14876419305801392,
-1.0005691051483154,
0.6730207204818726,
-0.4042397737503052,
0.13547571003437042,
1.9837045669555664,
0.00675944983959198,
-0.6991391181945801,
0.30040404200553894,
-0.6992639303207397,
1.8936634063720703,
1.677339792251587,
1.2682836055755615,
-0.20759956538677216,
-0.9059615731239319,
0.5657462477684021,
-0.3336275815963745,
-0.3855900168418884,
0.8549508452415466,
0.4053111970424652,
-0.24153083562850952,
-1.3413892984390259,
0.637194812297821,
1.2637836933135986,
-0.8414940237998962,
-0.7541011571884155,
0.15889671444892883,
-0.7924502491950989,
1.1520181894302368,
0.6084659099578857,
0.3573988974094391,
0.26740187406539917,
1.4986121654510498,
0.7789435982704163,
-0.50046706199646,
0.5862641930580139,
0.5048230886459351,
-0.18859359622001648,
-2.1674723625183105,
-1.144442081451416,
0.3557441532611847,
-0.4638615548610687,
-1.6692391633987427,
1.4007554054260254,
-1.0953059196472168,
-0.9923145771026611,
0.5695104598999023,
0.04394378885626793,
1.278419017791748,
0.3576068580150604,
1.576667308807373,
2.016831159591675,
0.861976683139801,
0.40172550082206726,
1.2830150127410889,
-0.10161136090755463,
-0.4732942581176758,
1.8367185592651367,
-0.46670103073120117,
0.5547933578491211,
1.097429871559143,
-0.31912222504615784,
-1.059111475944519,
-0.8356745839118958,
-1.242019772529602,
-0.6201547384262085,
1.2244638204574585,
0.1120879203081131,
-1.1628468036651611,
0.1912732720375061,
1.6236519813537598,
0.08910083770751953,
-0.23051607608795166,
0.6900764107704163,
0.3474522829055786,
-0.8305858969688416,
-0.09816774725914001,
-0.9202737212181091,
0.5093937516212463,
-0.14517642557621002,
-0.3233063817024231,
0.25701382756233215,
0.5224142670631409,
1.327188491821289,
-0.04553968459367752,
0.12131977081298828,
1.1274858713150024,
-1.3836203813552856,
1.4385907649993896,
-0.5889642238616943,
0.3284890651702881,
-2.3680708408355713,
1.290439486503601,
-0.7731935977935791,
1.8944952487945557,
-2.6277759075164795,
0.4381025433540344,
-0.5533527731895447,
-0.48796936869621277,
0.27315887808799744,
-0.3536362051963806,
0.11515581607818604,
-0.12273512780666351,
-1.0598984956741333,
-0.03638402372598648,
-0.7087446451187134,
0.568895161151886,
1.0780194997787476,
1.4654650688171387,
-1.1339250802993774,
-0.28271839022636414,
-1.6656863689422607,
-0.16227401793003082,
-0.8037787079811096,
0.3237122595310211,
-2.004636526107788,
-0.12809108197689056,
-2.024031639099121,
-2.2805213928222656,
-1.286734700202942,
-0.9075779318809509,
1.034904956817627,
0.09308819472789764,
-0.92839115858078,
1.1209765672683716,
-0.39263370633125305,
-1.7657971382141113,
1.097975730895996,
-2.146991014480591
] |
https://github.com/huggingface/datasets/issues/4728 | load_dataset gives "403" error when using Financial Phrasebank | Yes was able to download from the link manually. But still, get the same error when I use load_dataset. | I tried both codes below to download the financial phrasebank dataset (https://huggingface.co/datasets/financial_phrasebank) with the sentences_allagree subset. However, the code gives a 403 error when executed from multiple machines locally or on the cloud.
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree',download_mode=DownloadMode.FORCE_REDOWNLOAD)
```
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree')
```
**Error**
ConnectionError: Couldn't reach https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip (error 403)
| 614 | 19 | load_dataset gives "403" error when using Financial Phrasebank
I tried both codes below to download the financial phrasebank dataset (https://huggingface.co/datasets/financial_phrasebank) with the sentences_allagree subset. However, the code gives a 403 error when executed from multiple machines locally or on the cloud.
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree',download_mode=DownloadMode.FORCE_REDOWNLOAD)
```
```
from datasets import load_dataset, DownloadMode
load_dataset(path='financial_phrasebank',name='sentences_allagree')
```
**Error**
ConnectionError: Couldn't reach https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip (error 403)
Yes was able to download from the link manually. But still, get the same error when I use load_dataset. | [
-1.2307870388031006,
-0.92958003282547,
-0.6767868399620056,
1.5154169797897339,
-0.22269229590892792,
-1.2323843240737915,
0.1275019645690918,
-1.0648974180221558,
1.5668458938598633,
-0.7167256474494934,
0.2294708788394928,
-1.7275062799453735,
-0.06783240288496017,
-0.6226041316986084,
-0.7068828344345093,
-0.8680831789970398,
-0.36736929416656494,
-0.7831191420555115,
1.0304034948349,
2.4369428157806396,
1.1707167625427246,
-1.3599483966827393,
2.707735061645508,
0.6344233751296997,
-0.17856311798095703,
-1.0350559949874878,
0.4876849353313446,
0.01623259112238884,
-1.1549177169799805,
-0.542442262172699,
-0.830931544303894,
-0.08418631553649902,
-0.624573826789856,
-0.4604282081127167,
0.028841201215982437,
0.4215001165866852,
-0.35613128542900085,
-0.25824230909347534,
-0.5387914180755615,
-0.7715649604797363,
0.5064284801483154,
-0.33956605195999146,
0.9040589332580566,
-0.45292943716049194,
1.8498213291168213,
-0.7237590551376343,
0.3971397280693054,
0.7051560282707214,
1.344079852104187,
0.15976141393184662,
0.027421362698078156,
0.32180270552635193,
0.44074898958206177,
0.07308372110128403,
0.5570639371871948,
1.1521961688995361,
0.6017782688140869,
0.5401651859283447,
0.6154932379722595,
-2.1884706020355225,
1.2962212562561035,
-1.0617523193359375,
0.2069648802280426,
1.4971472024917603,
-0.8858461380004883,
0.33946937322616577,
-1.8311082124710083,
-0.11040114611387253,
0.5518082976341248,
-2.2962381839752197,
0.31645137071609497,
-1.344289779663086,
-0.5186713337898254,
0.8393296599388123,
0.3722257912158966,
-1.2365009784698486,
0.26304012537002563,
-0.4202876091003418,
1.0808507204055786,
0.5216997265815735,
0.9804513454437256,
-1.638530969619751,
-0.10917828232049942,
-0.26090866327285767,
0.12090569734573364,
-1.2695149183273315,
-1.53217351436615,
0.5812578797340393,
0.5569353103637695,
0.6886609196662903,
-0.17712008953094482,
1.0397837162017822,
-1.1072965860366821,
0.9115572571754456,
-1.1553164720535278,
-1.6543138027191162,
-1.450096845626831,
-2.3489413261413574,
-2.3511765003204346,
0.9035027027130127,
-0.38346120715141296,
-0.46952250599861145,
1.9796202182769775,
-0.9946887493133545,
-1.7191040515899658,
1.1045732498168945,
0.19990360736846924,
-0.04296239838004112,
2.368530035018921,
0.09672799706459045,
-0.7704610824584961,
0.435691773891449,
-0.8684382438659668,
0.9060274958610535,
-0.3133731186389923,
1.4166656732559204,
0.589722752571106,
-0.9681693911552429,
1.5941044092178345,
-0.3717820942401886,
0.5799550414085388,
-0.6334719657897949,
-0.6232842803001404,
-0.7942422032356262,
0.2970220744609833,
1.9801208972930908,
-0.1948041319847107,
1.6019201278686523,
-0.3548343777656555,
-1.5248773097991943,
-1.5330021381378174,
1.0150532722473145,
0.367995947599411,
-0.9411737322807312,
0.04657357186079025,
-0.3616878092288971,
0.2237372249364853,
-0.0791717916727066,
1.1886072158813477,
1.1483079195022583,
0.6798046231269836,
-0.3814975917339325,
-0.7150644659996033,
0.12920235097408295,
-0.09991434216499329,
-0.6402594447135925,
-1.791168451309204,
-0.33260735869407654,
0.19555072486400604,
0.6656720042228699,
-1.247410535812378,
1.763708472251892,
0.8560620546340942,
1.9411007165908813,
1.013922095298767,
-0.35939711332321167,
1.4007172584533691,
0.046252619475126266,
1.8586370944976807,
-0.5543048977851868,
0.6092548966407776,
-0.36172837018966675,
-1.1423298120498657,
0.8639799952507019,
-0.30024024844169617,
-1.9950871467590332,
-0.7772707939147949,
-0.8232301473617554,
-0.1764979511499405,
-0.819763720035553,
0.8307902216911316,
-0.3470868170261383,
-1.4687937498092651,
0.2072041928768158,
-0.6332841515541077,
0.2603566348552704,
-1.219742774963379,
0.2896445393562317,
0.8122848272323608,
-0.6101320385932922,
-0.0226703230291605,
-0.1990150660276413,
-1.2797249555587769,
-0.587894082069397,
0.36179080605506897,
1.9315123558044434,
-0.6193330883979797,
0.8405691385269165,
0.9744895696640015,
-0.7355622053146362,
0.07739584892988205,
0.32845044136047363,
-0.23849059641361237,
0.7485135793685913,
-0.920900821685791,
-0.4910348951816559,
1.186474084854126,
-0.27367904782295227,
-0.5696169137954712,
1.6442981958389282,
0.9118343591690063,
-1.0241554975509644,
-0.1196201890707016,
-0.300975501537323,
-0.8879774808883667,
-0.02212807536125183,
-1.5450280904769897,
-0.1766546368598938,
0.39640116691589355,
-1.5278843641281128,
-0.4184178411960602,
-0.13043373823165894,
1.2890506982803345,
-0.23857639729976654,
1.3531147241592407,
-0.3370867073535919,
-0.22360819578170776,
-0.26730984449386597,
-0.46056196093559265,
0.14635665714740753,
-0.20980249345302582,
-0.6592358946800232,
0.17375944554805756,
-0.8166674375534058,
0.29123952984809875,
1.4239217042922974,
0.3404502272605896,
-0.05208536982536316,
0.5161358118057251,
1.2053184509277344,
0.28413107991218567,
-0.009925911203026772,
-0.8709681034088135,
-1.4569741487503052,
1.9521633386611938,
-1.3846806287765503,
1.9083926677703857,
0.6356832385063171,
-0.043837469071149826,
-1.770218849182129,
-1.7470487356185913,
1.3535335063934326,
1.1412007808685303,
2.3209242820739746,
0.538884162902832,
0.3738313913345337,
-0.8358636498451233,
-0.7099375128746033,
0.2164580374956131,
-0.9541451930999756,
-0.6494812369346619,
0.13498058915138245,
2.3913238048553467,
1.8132281303405762,
-0.5756350755691528,
-0.2607564628124237,
-0.9609410166740417,
1.3865318298339844,
-0.26450419425964355,
0.32806751132011414,
2.040797233581543,
-0.271991491317749,
-1.0191925764083862,
1.2975468635559082,
-2.4138083457946777,
0.15626388788223267,
2.0951855182647705,
0.355841726064682,
0.1335005760192871,
-1.3501747846603394,
-0.6366224884986877,
-0.34717419743537903,
-0.43562716245651245,
-1.266296148300171,
0.5016180872917175,
-0.34626102447509766,
-0.7868969440460205,
-1.4055384397506714,
0.11313292384147644,
-1.1351394653320312,
-1.666927456855774,
0.41048645973205566,
1.9276716709136963,
2.0295920372009277,
-0.6383693814277649,
1.499031662940979,
-0.3220021724700928,
0.15307410061359406,
1.348098635673523,
1.2309907674789429,
3.1173479557037354,
1.868542194366455,
-1.1779733896255493,
0.7372133731842041,
-0.23707690834999084,
-0.5187936425209045,
1.1414867639541626,
-1.1671416759490967,
1.1687852144241333,
-0.28018295764923096,
-1.1664925813674927,
-1.2773127555847168,
1.022454857826233,
0.43146812915802,
0.07509550452232361,
-0.6016178727149963,
1.1758034229278564,
0.05188291519880295,
1.4017432928085327,
0.5156732201576233,
-0.3224652409553528,
0.4294787049293518,
-0.42637187242507935,
-0.6068430542945862,
1.594594120979309,
0.26206180453300476,
-1.5091040134429932,
-2.3500494956970215,
-0.3354160487651825,
-0.7597373723983765,
-0.02372490055859089,
-0.5516703128814697,
-1.0235453844070435,
1.5738595724105835,
0.4283897280693054,
-1.3058398962020874,
-0.21463225781917572,
-0.3631071448326111,
-0.6036633849143982,
2.7762739658355713,
-1.3941442966461182,
-0.16935473680496216,
-0.9817875623703003,
-0.7358571290969849,
1.7784162759780884,
-1.2841153144836426,
-0.1102549135684967,
-1.1111069917678833,
-0.6416845321655273,
-1.3369061946868896,
-0.45074912905693054,
-0.013415686786174774,
-0.9936988949775696,
0.7659251093864441,
0.0671897903084755,
-1.0851502418518066,
-0.3909560441970825,
-0.909996747970581,
1.024064302444458,
-0.10448149591684341,
0.2093781679868698,
1.87787663936615,
0.3261244297027588,
-0.4927113354206085,
0.7800374627113342,
1.2157604694366455,
0.6382237076759338,
-0.6966044306755066,
0.12802237272262573,
-0.5979541540145874,
0.27957960963249207,
-1.4530421495437622,
0.23041105270385742,
-2.877373218536377,
0.6949087977409363,
-0.067598357796669,
-0.1181933730840683,
-0.02356214076280594,
-1.3940287828445435,
1.169293999671936,
2.477245569229126,
-1.2744176387786865,
0.44254255294799805,
0.3310502767562866,
1.1130363941192627,
-1.533319115638733,
0.2641288638114929,
-0.3762143552303314,
2.062056303024292,
0.20973294973373413,
1.2233935594558716,
-0.4497113823890686,
-2.285801887512207,
0.6112020611763,
-1.2368996143341064,
-1.1819652318954468,
0.7371479868888855,
-0.9183778762817383,
0.25022369623184204,
-1.4530459642410278,
-0.23069064319133759,
-1.0222035646438599,
-1.2157268524169922,
0.8671919703483582,
0.23136571049690247,
0.29988351464271545,
-0.6008509993553162,
0.37539464235305786,
-2.1985931396484375,
-1.4430272579193115,
-0.21403954923152924,
-0.9070293307304382,
0.5452331304550171,
-0.39703598618507385,
0.5503480434417725,
-0.09041274338960648,
0.105803944170475,
0.32555314898490906,
1.604034662246704,
3.4452614784240723,
0.1295011341571808,
0.25830790400505066,
-0.10642316192388535,
-0.9611979126930237,
1.4309022426605225,
0.969062328338623,
-0.037953369319438934,
-0.4723389744758606,
-0.9437282085418701,
1.2953115701675415,
1.9656463861465454,
0.9860438704490662,
-0.008605076000094414,
-0.7135946154594421,
-0.6493499875068665,
-0.05285446718335152,
0.18719764053821564,
0.5486165881156921,
0.8137088418006897,
0.05089271813631058,
0.09197600185871124,
1.2686066627502441,
1.2249456644058228,
-0.3986429274082184,
0.36354485154151917,
-0.848574161529541,
-0.40222054719924927,
0.44769906997680664,
0.2438209354877472,
-0.07635556906461716,
0.48989754915237427,
-0.9361655712127686,
-0.21606750786304474,
-0.37266185879707336,
-0.9222896695137024,
-0.7664254903793335,
-0.4791775345802307,
-0.4276632070541382,
1.5406115055084229,
0.13766109943389893,
-0.5493564605712891,
-0.0598461739718914,
-0.851446807384491,
-0.2159019410610199,
-1.0723133087158203,
0.26098737120628357,
-0.027752690017223358,
-0.1407259702682495,
-0.1717231720685959,
1.715660572052002,
-0.9401503205299377,
-2.0097639560699463,
0.2297627478837967,
0.3261122703552246,
-0.2968272566795349,
0.14659260213375092,
1.7062277793884277,
0.4631398320198059,
1.3690526485443115,
1.3438663482666016,
0.9485446214675903,
-0.5101962089538574,
-1.3150826692581177,
0.6716368198394775,
0.9253885746002197,
-1.3060718774795532,
0.8787920475006104,
-0.04355582222342491,
-0.4237174987792969,
0.6832727789878845,
1.2231965065002441,
0.4732532203197479,
-1.9296300411224365,
0.8080314993858337,
-0.9713037014007568,
0.8262619972229004,
0.6787394881248474,
0.6847473978996277,
0.31931793689727783,
0.944675862789154,
-1.1987814903259277,
-1.1055200099945068,
-0.8002265691757202,
-0.6752422451972961,
2.0223891735076904,
-0.24221082031726837,
0.5113736391067505,
-0.16785071790218353,
-1.1502803564071655,
-0.11242301762104034,
0.7596741914749146,
0.5203118920326233,
-0.4627349376678467,
0.8071445822715759,
-0.6235916614532471,
-1.072900414466858,
-1.2511845827102661,
-0.40543895959854126,
-0.9884724020957947,
-0.9510352611541748,
1.0053118467330933,
0.8453056812286377,
0.28495460748672485,
1.9601367712020874,
0.6240776777267456,
0.30938956141471863,
-2.6150832176208496,
0.8938345313072205,
0.1641017198562622,
-0.052796509116888046,
0.9035666584968567,
0.32185298204421997,
1.110806941986084,
0.01522835437208414,
0.5193930864334106,
-2.3463246822357178,
2.2522079944610596,
-0.2590393126010895,
0.637157142162323,
-0.04387418553233147,
-0.15129652619361877,
1.2484967708587646,
0.6048179864883423,
0.40125468373298645,
-1.0460854768753052,
0.7593451142311096,
-0.5713350772857666,
1.2319512367248535,
1.0341228246688843,
-0.8473832607269287,
-0.0009769797325134277,
1.4239975214004517,
0.47776392102241516,
-0.5296527147293091,
-0.9868719577789307,
-0.8292064666748047,
0.9380776286125183,
1.6128185987472534,
-0.008962837047874928,
-0.1266028881072998,
0.8321268558502197,
0.6701065897941589,
-1.2507859468460083,
0.22057990729808807,
-0.5768932700157166,
-0.7728786468505859,
1.7386161088943481,
2.163017988204956,
-0.06980482488870621,
-0.21349522471427917,
-0.7405219078063965,
-1.1278774738311768,
0.7172104716300964,
-0.002994956448674202,
0.049961064010858536,
0.6811118125915527,
-0.6184742450714111,
1.0839275121688843,
0.7476579546928406,
0.9267052412033081,
0.14676973223686218,
0.3996993899345398,
0.40348413586616516,
-0.34610715508461,
-1.2005515098571777,
-0.3564877212047577,
-1.2020174264907837,
-2.666081428527832,
0.5462054014205933,
-0.2733992040157318,
-1.3822073936462402,
0.1146378368139267,
-1.1558805704116821,
0.8756728768348694,
-0.7042183876037598,
-1.157896637916565,
-1.4777077436447144,
0.1849036067724228,
-0.03468485176563263,
0.9162712693214417,
-1.6684650182724,
-0.10123720020055771,
1.2525814771652222,
0.8053996562957764,
-0.5597586035728455,
1.0423698425292969,
0.3498951196670532,
1.1540277004241943,
0.6817992329597473,
-0.4208269417285919,
0.5737647414207458,
0.043717559427022934,
-1.4047701358795166,
0.5694908499717712,
1.2074918746948242,
0.145155131816864,
1.4173709154129028,
-0.4815317690372467,
0.08159064501523972,
0.4723726809024811,
-0.6513025760650635,
-0.4960922300815582,
-0.48546746373176575,
0.7681151032447815,
0.118496835231781,
-0.9686394333839417,
-0.05373994633555412,
-0.1200738474726677,
-0.26444265246391296,
0.23503679037094116,
-1.4897586107254028,
-0.24693049490451813,
-0.4687982499599457,
-0.546296238899231,
-1.3020660877227783,
-0.0632372796535492,
1.3721282482147217,
-0.7597182989120483,
-0.18051409721374512,
0.5425364375114441,
0.325864315032959,
0.5699295401573181,
0.6132590770721436,
-0.7053914070129395,
-0.20370537042617798,
-0.3496958017349243,
-0.3827226459980011,
0.2393883764743805,
1.3100758790969849,
-0.2195761799812317,
-1.026026725769043,
0.6352493762969971,
-0.3678763508796692,
0.08466818183660507,
1.9835909605026245,
0.0006843153387308121,
-0.7325064539909363,
0.33952245116233826,
-0.7444040179252625,
1.9045393466949463,
1.7056816816329956,
1.2876994609832764,
-0.1480303704738617,
-0.8907546997070312,
0.508757472038269,
-0.2604847550392151,
-0.3386547565460205,
0.8329331278800964,
0.42806631326675415,
-0.21683135628700256,
-1.3375166654586792,
0.6596609950065613,
1.2165316343307495,
-0.8058913350105286,
-0.7372123003005981,
0.12716326117515564,
-0.7707319259643555,
1.1165130138397217,
0.5827394127845764,
0.3449626564979553,
0.30797016620635986,
1.5234990119934082,
0.7159914374351501,
-0.49216338992118835,
0.5709388852119446,
0.49991080164909363,
-0.22667691111564636,
-2.103135108947754,
-1.1702747344970703,
0.4191051721572876,
-0.48863375186920166,
-1.6892688274383545,
1.4109110832214355,
-1.0453031063079834,
-0.8937543630599976,
0.6185365915298462,
0.16701965034008026,
1.3688238859176636,
0.2693730890750885,
1.5590875148773193,
1.9712010622024536,
0.8099657297134399,
0.401139497756958,
1.2710609436035156,
-0.12607413530349731,
-0.4813045561313629,
1.8040145635604858,
-0.41379019618034363,
0.5688751339912415,
1.0449219942092896,
-0.280739963054657,
-1.097342610359192,
-0.7903198599815369,
-1.2270969152450562,
-0.5886378288269043,
1.2667633295059204,
0.17605794966220856,
-1.1268662214279175,
0.09010140597820282,
1.6415678262710571,
0.1185782253742218,
-0.186588853597641,
0.6115445494651794,
0.3562253713607788,
-0.8376984596252441,
-0.027377504855394363,
-0.9837985634803772,
0.5534689426422119,
-0.09101462364196777,
-0.31939980387687683,
0.2839164733886719,
0.5205622911453247,
1.3070355653762817,
-0.04962747171521187,
0.1970125138759613,
1.119101881980896,
-1.3492512702941895,
1.4223756790161133,
-0.5778258442878723,
0.3276260197162628,
-2.3212714195251465,
1.3139203786849976,
-0.7808194756507874,
1.8999637365341187,
-2.602318048477173,
0.4437920153141022,
-0.6579362750053406,
-0.45518067479133606,
0.3224600553512573,
-0.4033763110637665,
0.08665923029184341,
-0.08683372288942337,
-1.0678036212921143,
0.07393452525138855,
-0.7830194234848022,
0.5823747515678406,
1.1235060691833496,
1.5125181674957275,
-1.170027732849121,
-0.3220987021923065,
-1.6812978982925415,
-0.17905111610889435,
-0.784250020980835,
0.3623315989971161,
-2.006147861480713,
-0.08053229749202728,
-2.090989589691162,
-2.274897813796997,
-1.3391870260238647,
-0.8709881901741028,
1.031906008720398,
0.07015988230705261,
-0.9020457863807678,
1.1120543479919434,
-0.41359275579452515,
-1.7156988382339478,
1.123724102973938,
-2.1370859146118164
] |
https://github.com/huggingface/datasets/issues/4725 | the_pile datasets URL broken. | Thanks for reporting, @TrentBrick. We are addressing the change with their data host server.
On the meantime, if you would like to work with your fixed local copy of the_pile script, you should use:
```python
load_dataset("path/to/your/local/the_pile/the_pile.py",...
```
instead of just `load_dataset("the_pile",...`.
The latter downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that. | https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find? | 616 | 59 | the_pile datasets URL broken.
https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find?
Thanks for reporting, @TrentBrick. We are addressing the change with their data host server.
On the meantime, if you would like to work with your fixed local copy of the_pile script, you should use:
```python
load_dataset("path/to/your/local/the_pile/the_pile.py",...
```
instead of just `load_dataset("the_pile",...`.
The latter downloads a copy of `the_pile.py` from our GitHub, caches it locally (inside `~/.cache/huggingface/modules`) and uses that. | [
-1.2012690305709839,
-0.9305412173271179,
-0.8311882615089417,
1.5262314081192017,
-0.16532829403877258,
-1.3513938188552856,
0.11575966328382492,
-1.0578696727752686,
1.659891963005066,
-0.7884343266487122,
0.3407994508743286,
-1.6668106317520142,
0.01997993141412735,
-0.5511378645896912,
-0.8212353587150574,
-0.9247654676437378,
-0.3584994077682495,
-0.7546297311782837,
0.9530153870582581,
2.4784584045410156,
1.185568928718567,
-1.2658259868621826,
2.681851863861084,
0.6962416172027588,
-0.1713033765554428,
-1.0602974891662598,
0.5814284086227417,
-0.06390848010778427,
-1.2907460927963257,
-0.4773115813732147,
-0.9284517168998718,
-0.033648066222667694,
-0.564202606678009,
-0.5805110931396484,
0.07008232921361923,
0.415534108877182,
-0.3053204119205475,
-0.317678302526474,
-0.527384340763092,
-0.8292142748832703,
0.5106732249259949,
-0.3505907654762268,
0.9148373007774353,
-0.46983930468559265,
1.8989273309707642,
-0.578506588935852,
0.38235652446746826,
0.769333004951477,
1.3567543029785156,
0.14873212575912476,
-0.03299848735332489,
0.2820935845375061,
0.503494381904602,
0.12940359115600586,
0.44363367557525635,
1.042955994606018,
0.46003514528274536,
0.4980667233467102,
0.7230921983718872,
-2.245483875274658,
1.3846468925476074,
-1.0200176239013672,
0.17234176397323608,
1.3519586324691772,
-0.9780282974243164,
0.28969770669937134,
-1.806931734085083,
0.021086331456899643,
0.48221278190612793,
-2.3602354526519775,
0.15217086672782898,
-1.3249232769012451,
-0.4707849621772766,
1.0127861499786377,
0.3384723365306854,
-1.2351903915405273,
0.16977837681770325,
-0.40998560190200806,
0.9860802292823792,
0.6182460784912109,
1.0894721746444702,
-1.649991512298584,
-0.1291905641555786,
-0.21477243304252625,
0.0865083709359169,
-1.405631422996521,
-1.5331465005874634,
0.5094433426856995,
0.6635653376579285,
0.5730339288711548,
-0.11714733392000198,
0.9797066450119019,
-0.8825865387916565,
0.8247981071472168,
-0.8506512641906738,
-1.705649733543396,
-1.3993335962295532,
-2.2266323566436768,
-2.2706587314605713,
0.7815342545509338,
-0.5452393889427185,
-0.49262872338294983,
1.9368441104888916,
-1.0989612340927124,
-1.8072621822357178,
1.0503528118133545,
0.26223456859588623,
0.05984633415937424,
2.345808267593384,
0.15847207605838776,
-0.6578683257102966,
0.31755197048187256,
-0.6033912301063538,
0.8144194483757019,
-0.42992547154426575,
1.306591272354126,
0.46927228569984436,
-0.9940387606620789,
1.6574859619140625,
-0.4621404707431793,
0.4846166968345642,
-0.6291484832763672,
-0.5244464874267578,
-0.8445748090744019,
0.3780510723590851,
1.8955917358398438,
-0.3337840437889099,
1.6695632934570312,
-0.2940245270729065,
-1.4676241874694824,
-1.5952595472335815,
0.8389508724212646,
0.45773765444755554,
-0.8643646836280823,
0.07718131691217422,
-0.27922987937927246,
0.06511148810386658,
-0.14271269738674164,
1.1370676755905151,
1.245758056640625,
0.756232500076294,
-0.3212105929851532,
-0.8193604946136475,
0.27007555961608887,
-0.04474950209259987,
-0.7117528319358826,
-1.7786669731140137,
-0.3912986218929291,
0.22935780882835388,
0.7287966012954712,
-1.1685956716537476,
1.7638845443725586,
0.8074003458023071,
1.9035054445266724,
1.0611047744750977,
-0.3450638949871063,
1.4345247745513916,
0.04041597247123718,
1.9399712085723877,
-0.5807379484176636,
0.6381224393844604,
-0.36464619636535645,
-1.1308603286743164,
0.7716657519340515,
-0.31364500522613525,
-2.00596284866333,
-0.7371438145637512,
-0.9214023947715759,
-0.1490279734134674,
-0.6681281924247742,
0.905846893787384,
-0.367699533700943,
-1.358960747718811,
0.13828706741333008,
-0.667212724685669,
0.1374642550945282,
-1.2506643533706665,
0.28702422976493835,
0.7953441143035889,
-0.7162214517593384,
0.007912064902484417,
-0.2607711851596832,
-1.2480953931808472,
-0.5010753273963928,
0.3350818455219269,
1.9254083633422852,
-0.6789920330047607,
0.9737222194671631,
0.947441577911377,
-0.7183100581169128,
-0.017863024026155472,
0.37191373109817505,
-0.32805219292640686,
0.7601034641265869,
-0.9718645811080933,
-0.3836376667022705,
1.202883005142212,
-0.2123723030090332,
-0.6956742405891418,
1.4942249059677124,
0.8014631867408752,
-0.9348535537719727,
-0.2167544960975647,
-0.23255395889282227,
-0.7848452925682068,
0.025191690772771835,
-1.5425978899002075,
-0.10621000826358795,
0.25205540657043457,
-1.5732409954071045,
-0.524225652217865,
-0.13453009724617004,
1.345914363861084,
-0.2118103951215744,
1.4567114114761353,
-0.270976722240448,
-0.29491546750068665,
-0.3486136198043823,
-0.4564180374145508,
0.10697931051254272,
-0.15110890567302704,
-0.6308435201644897,
0.26271048188209534,
-0.8319747447967529,
0.34475696086883545,
1.3803800344467163,
0.2938227355480194,
0.058861903846263885,
0.5993145108222961,
1.1912144422531128,
0.3356225788593292,
0.005721857771277428,
-0.9811639189720154,
-1.545636534690857,
2.0583038330078125,
-1.3999580144882202,
1.9531962871551514,
0.6550261378288269,
-0.13054609298706055,
-1.7973217964172363,
-1.805956244468689,
1.3815747499465942,
1.1205332279205322,
2.2249338626861572,
0.6295377612113953,
0.373224139213562,
-0.8109671473503113,
-0.6387212872505188,
0.3996845781803131,
-0.9587413668632507,
-0.7166102528572083,
0.04615367203950882,
2.4156601428985596,
1.7515265941619873,
-0.5503466725349426,
-0.27169468998908997,
-1.0766757726669312,
1.2967529296875,
-0.19835509359836578,
0.17557647824287415,
2.0080983638763428,
-0.20186872780323029,
-1.0613865852355957,
1.2799241542816162,
-2.3117258548736572,
0.21484161913394928,
2.079464912414551,
0.2813805639743805,
0.024768970906734467,
-1.4453599452972412,
-0.6685827374458313,
-0.19310469925403595,
-0.49328821897506714,
-1.2382606267929077,
0.4790942370891571,
-0.31442931294441223,
-0.8896852731704712,
-1.3971110582351685,
0.031991634517908096,
-1.0685583353042603,
-1.7087652683258057,
0.29794764518737793,
1.899749517440796,
1.8924115896224976,
-0.5974924564361572,
1.4396815299987793,
-0.1998889148235321,
0.11386413127183914,
1.372115135192871,
1.2798110246658325,
3.271939754486084,
1.946904182434082,
-1.2571066617965698,
0.7830101251602173,
-0.15458884835243225,
-0.41000112891197205,
1.246728777885437,
-1.1577513217926025,
1.2022091150283813,
-0.2379605770111084,
-1.2640658617019653,
-1.2324869632720947,
0.950253963470459,
0.43615803122520447,
0.06684336811304092,
-0.5225231051445007,
1.2690060138702393,
0.08256940543651581,
1.2533155679702759,
0.5559898018836975,
-0.4585171937942505,
0.5685862302780151,
-0.43954998254776,
-0.5416476726531982,
1.584047555923462,
0.22638699412345886,
-1.3650529384613037,
-2.2874674797058105,
-0.2339007407426834,
-0.8345208764076233,
-0.12725023925304413,
-0.4840470254421234,
-1.0155006647109985,
1.6879650354385376,
0.404641717672348,
-1.230790615081787,
-0.2693687677383423,
-0.46608781814575195,
-0.6756194233894348,
2.7380433082580566,
-1.4162452220916748,
-0.2116178572177887,
-1.1216446161270142,
-0.523643434047699,
1.6831473112106323,
-1.2865606546401978,
-0.10983417183160782,
-1.1226407289505005,
-0.5639638304710388,
-1.43562650680542,
-0.4719129502773285,
-0.07712530344724655,
-0.8569462895393372,
0.7518981695175171,
0.11990033090114594,
-1.1351958513259888,
-0.29907459020614624,
-0.8070760369300842,
0.9009982347488403,
-0.04201282933354378,
0.1327587217092514,
1.9331334829330444,
0.39515262842178345,
-0.45805099606513977,
0.648048460483551,
1.098303198814392,
0.6307912468910217,
-0.6068195700645447,
0.3141351342201233,
-0.5496911406517029,
0.32102063298225403,
-1.3865951299667358,
0.2499125450849533,
-2.7885735034942627,
0.6698012948036194,
-0.10739324986934662,
-0.18348006904125214,
-0.08652129769325256,
-1.3680771589279175,
1.0806598663330078,
2.602663516998291,
-1.2214210033416748,
0.4568377733230591,
0.33554917573928833,
1.198158860206604,
-1.5844683647155762,
0.36415383219718933,
-0.4773055911064148,
2.0851898193359375,
0.21920719742774963,
1.166652798652649,
-0.49517467617988586,
-2.194868326187134,
0.6281036138534546,
-1.195472002029419,
-1.0964832305908203,
0.8115147948265076,
-0.73369300365448,
0.09900251775979996,
-1.3848720788955688,
-0.06743501871824265,
-0.9306051135063171,
-1.2534000873565674,
0.9025834798812866,
0.13259921967983246,
0.5402566194534302,
-0.5445946455001831,
0.32933542132377625,
-2.164492130279541,
-1.3367840051651,
-0.22604423761367798,
-0.9777815341949463,
0.4956207871437073,
-0.28865841031074524,
0.6282288432121277,
-0.13418732583522797,
0.08080976456403732,
0.38070669770240784,
1.425795555114746,
3.511566638946533,
0.18650773167610168,
0.3038800358772278,
-0.11868232488632202,
-1.0103142261505127,
1.4932361841201782,
0.9727372527122498,
-0.0824013277888298,
-0.5151522159576416,
-0.9789144396781921,
1.221862554550171,
2.0516414642333984,
1.1121845245361328,
0.15104073286056519,
-0.8077096939086914,
-0.7237961888313293,
0.03371526300907135,
0.1365407258272171,
0.5497088432312012,
0.9481215476989746,
0.06716941297054291,
0.12412618100643158,
1.4372718334197998,
1.1996972560882568,
-0.2732498049736023,
0.35221225023269653,
-0.8377833962440491,
-0.3179570138454437,
0.5474514365196228,
0.4082503616809845,
-0.06080213934183121,
0.4561994969844818,
-1.0042263269424438,
-0.25040462613105774,
-0.3642139732837677,
-0.9537583589553833,
-0.7097377777099609,
-0.4488309919834137,
-0.4067564606666565,
1.6368576288223267,
0.04434012621641159,
-0.48457908630371094,
-0.028336763381958008,
-0.8444036245346069,
-0.12142177671194077,
-1.0826658010482788,
0.29269784688949585,
-0.14409801363945007,
-0.0513233058154583,
-0.030212290585041046,
1.6447117328643799,
-0.918475866317749,
-2.118156671524048,
0.27474984526634216,
0.23294034600257874,
-0.3981204926967621,
0.24162377417087555,
1.5626871585845947,
0.4491674304008484,
1.3352622985839844,
1.414723515510559,
0.9919523596763611,
-0.6209657788276672,
-1.308426022529602,
0.6170625686645508,
0.8945051431655884,
-1.4810378551483154,
0.8858886361122131,
-0.02466447278857231,
-0.5439068078994751,
0.668208658695221,
1.2354356050491333,
0.37792572379112244,
-1.9757699966430664,
0.7264045476913452,
-0.7952978610992432,
0.7031489610671997,
0.6121155023574829,
0.7845171093940735,
0.21479739248752594,
0.8855882883071899,
-1.2166634798049927,
-1.2004446983337402,
-0.7198065519332886,
-0.6548335552215576,
1.8946491479873657,
-0.16246917843818665,
0.6197245121002197,
-0.16511783003807068,
-1.2947319746017456,
-0.1963403820991516,
0.7543385028839111,
0.376465380191803,
-0.46074211597442627,
0.8697700500488281,
-0.688935399055481,
-1.1047258377075195,
-1.3455214500427246,
-0.496416836977005,
-0.9934762120246887,
-0.8740748763084412,
1.054965615272522,
0.8546207547187805,
0.24116502702236176,
1.9431283473968506,
0.5016268491744995,
0.2547147572040558,
-2.642518997192383,
0.8080882430076599,
0.26240232586860657,
0.031072601675987244,
0.9595034718513489,
0.22516539692878723,
1.140849232673645,
0.008638753555715084,
0.6962569355964661,
-2.377769947052002,
2.312567949295044,
-0.2712628245353699,
0.5962522029876709,
0.001485888846218586,
-0.2413243055343628,
1.1380563974380493,
0.6417026519775391,
0.6151127219200134,
-1.0350173711776733,
0.7769967317581177,
-0.6943935751914978,
1.2237297296524048,
0.9758920073509216,
-0.8568508625030518,
0.024766620248556137,
1.419985055923462,
0.5246617794036865,
-0.46185311675071716,
-0.999337911605835,
-0.9215232133865356,
0.8964563012123108,
1.6551663875579834,
-0.03142225742340088,
-0.014395995996892452,
0.8627796173095703,
0.6340158581733704,
-1.252340316772461,
0.18959668278694153,
-0.8342929482460022,
-0.7599561214447021,
1.668229341506958,
1.9953097105026245,
-0.10535558313131332,
-0.16013239324092865,
-0.7948892712593079,
-1.1572493314743042,
0.6276796460151672,
0.05423267185688019,
0.06783229112625122,
0.7084544897079468,
-0.6353305578231812,
1.1173572540283203,
0.786662220954895,
1.0609562397003174,
0.03906294330954552,
0.40961089730262756,
0.30033206939697266,
-0.3914753198623657,
-1.2354363203048706,
-0.33724454045295715,
-1.0963494777679443,
-2.596971273422241,
0.56561279296875,
-0.29908299446105957,
-1.5098313093185425,
0.13715127110481262,
-1.0943667888641357,
0.8301641345024109,
-0.7207571864128113,
-1.1910502910614014,
-1.3510133028030396,
0.1768094003200531,
-0.16353051364421844,
0.9047747254371643,
-1.6166075468063354,
-0.013652320951223373,
1.2993117570877075,
0.8292284607887268,
-0.5872779488563538,
0.9948638081550598,
0.2244410514831543,
1.1309703588485718,
0.9114971160888672,
-0.3862675428390503,
0.4148932695388794,
0.1102478951215744,
-1.3735262155532837,
0.48067042231559753,
1.0769224166870117,
0.22497236728668213,
1.4279389381408691,
-0.55210942029953,
0.18770982325077057,
0.5094773173332214,
-0.6260861158370972,
-0.48337438702583313,
-0.6051697134971619,
0.7936735153198242,
-0.0012347833253443241,
-0.93292236328125,
0.08522538840770721,
-0.1337980479001999,
-0.20946760475635529,
0.14892570674419403,
-1.424363136291504,
-0.22381296753883362,
-0.29112708568573,
-0.5632061958312988,
-1.325881838798523,
-0.019618647173047066,
1.2202750444412231,
-0.7674927711486816,
-0.1251600831747055,
0.4816869795322418,
0.30380895733833313,
0.4498859643936157,
0.5121319890022278,
-0.6109587550163269,
-0.3539178967475891,
-0.27972739934921265,
-0.3579971194267273,
0.34705114364624023,
1.2254149913787842,
-0.1811661422252655,
-1.0218143463134766,
0.7321332693099976,
-0.3469027876853943,
0.0212324820458889,
1.9698714017868042,
-0.03539375215768814,
-0.6840649247169495,
0.3051486611366272,
-0.5679610967636108,
1.8186347484588623,
1.6977068185806274,
1.314127802848816,
-0.07706715911626816,
-0.9521538019180298,
0.5530406832695007,
-0.2675042450428009,
-0.3477975130081177,
0.9026525020599365,
0.4320862293243408,
-0.1201690062880516,
-1.3748142719268799,
0.6246938109397888,
1.2381948232650757,
-0.9375012516975403,
-0.7738624811172485,
0.1058189794421196,
-0.8538241982460022,
1.0487854480743408,
0.6228529810905457,
0.3629479706287384,
0.2514221668243408,
1.6256773471832275,
0.7178269624710083,
-0.4592615067958832,
0.5216533541679382,
0.480258047580719,
-0.2315616011619568,
-2.157409906387329,
-1.0559245347976685,
0.3259795308113098,
-0.4407922029495239,
-1.6959401369094849,
1.349053978919983,
-1.2629550695419312,
-0.8792429566383362,
0.49336522817611694,
0.21271619200706482,
1.4491214752197266,
0.31241104006767273,
1.6429756879806519,
2.0585222244262695,
0.7770392894744873,
0.3088984787464142,
1.339765191078186,
0.02753283455967903,
-0.4555269777774811,
1.758141279220581,
-0.44803959131240845,
0.5527511835098267,
1.1184273958206177,
-0.33344995975494385,
-1.0454257726669312,
-0.8360205292701721,
-1.2128493785858154,
-0.6508583426475525,
1.1740225553512573,
0.09985413402318954,
-1.0593247413635254,
0.20846274495124817,
1.5349234342575073,
0.0628402829170227,
-0.22607818245887756,
0.6408798098564148,
0.4664377272129059,
-0.7371867299079895,
-0.03711121156811714,
-0.9088652729988098,
0.5657499432563782,
-0.08003637939691544,
-0.36808067560195923,
0.4141119718551636,
0.44406887888908386,
1.304193139076233,
-0.0438937209546566,
0.2359245866537094,
1.2415673732757568,
-1.3437689542770386,
1.5956624746322632,
-0.6260153651237488,
0.24924416840076447,
-2.422207832336426,
1.4117110967636108,
-0.8444589376449585,
1.8576321601867676,
-2.48796010017395,
0.387326717376709,
-0.5636467933654785,
-0.5068625211715698,
0.37935250997543335,
-0.39301955699920654,
0.07684319466352463,
-0.23142239451408386,
-0.9829236268997192,
0.04197457432746887,
-0.8515496850013733,
0.5207343697547913,
1.2021777629852295,
1.3910492658615112,
-1.1315598487854004,
-0.32532089948654175,
-1.905707597732544,
-0.171915665268898,
-0.6573300361633301,
0.49018430709838867,
-2.034856081008911,
-0.1143651157617569,
-2.0136802196502686,
-2.3218836784362793,
-1.425110101699829,
-0.9165388345718384,
1.027552604675293,
0.09235839545726776,
-0.8216665983200073,
1.0649561882019043,
-0.31260064244270325,
-1.821977138519287,
1.0076097249984741,
-2.1420881748199463
] |
https://github.com/huggingface/datasets/issues/4725 | the_pile datasets URL broken. | @TrentBrick, I have checked the URLs and both hosts work, the original (https://the-eye.eu/) and the mirror (https://mystic.the-eye.eu/). See e.g.:
- https://mystic.the-eye.eu/public/AI/pile/
- https://mystic.the-eye.eu/public/AI/pile_preliminary_components/
Please, let me know if you still find any issue loading this dataset by using current server URLs. | https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find? | 616 | 41 | the_pile datasets URL broken.
https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find?
@TrentBrick, I have checked the URLs and both hosts work, the original (https://the-eye.eu/) and the mirror (https://mystic.the-eye.eu/). See e.g.:
- https://mystic.the-eye.eu/public/AI/pile/
- https://mystic.the-eye.eu/public/AI/pile_preliminary_components/
Please, let me know if you still find any issue loading this dataset by using current server URLs. | [
-1.2592743635177612,
-0.9614911079406738,
-0.8697862029075623,
1.5109554529190063,
-0.12366761267185211,
-1.4246805906295776,
-0.014548040926456451,
-0.984313428401947,
1.540296196937561,
-0.7286557555198669,
0.3415384292602539,
-1.6498366594314575,
0.004038930870592594,
-0.6132506728172302,
-0.8113676309585571,
-0.9078192114830017,
-0.281818151473999,
-0.772032618522644,
1.020134687423706,
2.4919211864471436,
1.1629847288131714,
-1.326643943786621,
2.780467987060547,
0.6717600226402283,
-0.19710414111614227,
-1.1090996265411377,
0.6324853301048279,
-0.0066178650595247746,
-1.320120930671692,
-0.43582025170326233,
-1.0136518478393555,
0.015423379838466644,
-0.5262193083763123,
-0.5163455605506897,
0.08033446967601776,
0.3819638788700104,
-0.2529587149620056,
-0.25459176301956177,
-0.5445311069488525,
-0.7742583751678467,
0.5178001523017883,
-0.33584949374198914,
0.8406916260719299,
-0.3946765959262848,
1.9235917329788208,
-0.5264331698417664,
0.2933465242385864,
0.6819007992744446,
1.3358380794525146,
0.09831587970256805,
0.027388308197259903,
0.21821853518486023,
0.45113077759742737,
0.10246750712394714,
0.44769367575645447,
1.0899763107299805,
0.5140853524208069,
0.4556104242801666,
0.6656623482704163,
-2.1926138401031494,
1.4410309791564941,
-0.9379801154136658,
0.18967381119728088,
1.36735200881958,
-1.1133257150650024,
0.3251873850822449,
-1.8068950176239014,
0.00009823217988014221,
0.46155789494514465,
-2.4201583862304688,
0.09265023469924927,
-1.2468757629394531,
-0.5113920569419861,
0.936333179473877,
0.3225649297237396,
-1.203049659729004,
0.056765440851449966,
-0.5719600319862366,
1.0048017501831055,
0.6215174198150635,
1.1221975088119507,
-1.5835402011871338,
-0.1102249026298523,
-0.14239057898521423,
0.10673175752162933,
-1.3895319700241089,
-1.5664148330688477,
0.5394850969314575,
0.7363242506980896,
0.533613383769989,
-0.09465529024600983,
0.888281524181366,
-0.8472311496734619,
0.8379872441291809,
-0.7289149761199951,
-1.6666491031646729,
-1.4572592973709106,
-2.3559346199035645,
-2.2648627758026123,
0.8233335614204407,
-0.5044525265693665,
-0.4975225329399109,
1.9673388004302979,
-1.0852724313735962,
-1.8798936605453491,
1.0241729021072388,
0.22902853786945343,
0.11616131663322449,
2.3702597618103027,
0.16056261956691742,
-0.7779790759086609,
0.31887927651405334,
-0.6276453137397766,
0.8272459506988525,
-0.39949482679367065,
1.2477960586547852,
0.5420747995376587,
-0.8963465094566345,
1.5641248226165771,
-0.3645094335079193,
0.39585039019584656,
-0.6339273452758789,
-0.43914103507995605,
-0.8322575688362122,
0.30139029026031494,
1.9189977645874023,
-0.4095947742462158,
1.702854037284851,
-0.28749147057533264,
-1.4294260740280151,
-1.5098087787628174,
0.7296532392501831,
0.5527125597000122,
-0.9763262271881104,
0.1446615308523178,
-0.4071578085422516,
0.11047126352787018,
-0.05893692746758461,
1.0645456314086914,
1.2160792350769043,
0.7137998342514038,
-0.27087289094924927,
-0.8510223627090454,
0.3475486636161804,
-0.0945373922586441,
-0.5715886354446411,
-1.7836813926696777,
-0.3555496335029602,
0.24199938774108887,
0.7813394069671631,
-1.2700142860412598,
1.7217029333114624,
0.7483444213867188,
1.9990826845169067,
1.0507166385650635,
-0.32820063829421997,
1.486095905303955,
-0.033018141984939575,
1.9046581983566284,
-0.6254832744598389,
0.6394692063331604,
-0.37742674350738525,
-1.1250125169754028,
0.7654099464416504,
-0.3351907730102539,
-1.9699047803878784,
-0.7552021741867065,
-0.9833038449287415,
-0.0799444317817688,
-0.6979273557662964,
0.9409537315368652,
-0.3837927281856537,
-1.3151214122772217,
0.14775624871253967,
-0.6505708694458008,
0.11461986601352692,
-1.270867109298706,
0.16368785500526428,
0.8116713166236877,
-0.6943851709365845,
-0.14233408868312836,
-0.34924355149269104,
-1.250024437904358,
-0.52105712890625,
0.3924051523208618,
1.9543451070785522,
-0.6652015447616577,
0.978046178817749,
0.8661134839057922,
-0.697100818157196,
0.0667925626039505,
0.42040354013442993,
-0.2846100628376007,
0.8492078185081482,
-0.968541145324707,
-0.3889560401439667,
1.1054292917251587,
-0.20817990601062775,
-0.7075086832046509,
1.4927740097045898,
0.8214800357818604,
-0.9130108952522278,
-0.26377618312835693,
-0.10856540501117706,
-0.7818544507026672,
-0.039968617260456085,
-1.549458622932434,
-0.2134934812784195,
0.06947878003120422,
-1.5974361896514893,
-0.5193344950675964,
-0.13402532041072845,
1.3587188720703125,
-0.09989181160926819,
1.5142759084701538,
-0.23972907662391663,
-0.2886083722114563,
-0.39804017543792725,
-0.4680849313735962,
0.14934374392032623,
-0.14849235117435455,
-0.5842848420143127,
0.3190985918045044,
-0.9629049897193909,
0.24066580832004547,
1.3905248641967773,
0.33471551537513733,
0.07299678027629852,
0.7060421705245972,
1.233466625213623,
0.3621986210346222,
-0.009878704324364662,
-0.9447582960128784,
-1.5703954696655273,
2.0265748500823975,
-1.438096284866333,
1.8608533143997192,
0.7325599193572998,
-0.11862081289291382,
-1.8048226833343506,
-1.8025903701782227,
1.3444620370864868,
1.1537563800811768,
2.230651378631592,
0.5896725058555603,
0.35947471857070923,
-0.7903498411178589,
-0.6817793250083923,
0.4566721022129059,
-0.9585278034210205,
-0.798887312412262,
0.03557543829083443,
2.376063823699951,
1.7439383268356323,
-0.5088430643081665,
-0.3081047534942627,
-1.0235605239868164,
1.2280575037002563,
-0.0629589855670929,
0.13257285952568054,
1.9991923570632935,
-0.1868220865726471,
-1.0394480228424072,
1.2224531173706055,
-2.328129768371582,
0.28161486983299255,
2.0027801990509033,
0.3326437473297119,
0.02440537139773369,
-1.4402519464492798,
-0.7154883742332458,
-0.07908579707145691,
-0.5556415915489197,
-1.2289988994598389,
0.5047215819358826,
-0.31532731652259827,
-1.041727066040039,
-1.4427238702774048,
-0.07221420109272003,
-1.1104122400283813,
-1.7977867126464844,
0.369571715593338,
1.8103156089782715,
1.9724172353744507,
-0.6392650604248047,
1.3896819353103638,
-0.19317226111888885,
0.05490310862660408,
1.3512660264968872,
1.2922290563583374,
3.2845332622528076,
2.0145342350006104,
-1.2288142442703247,
0.8318533897399902,
-0.14740963280200958,
-0.3629406690597534,
1.2086914777755737,
-1.1275370121002197,
1.0496928691864014,
-0.3436122238636017,
-1.2888069152832031,
-1.2403755187988281,
1.0706161260604858,
0.45845988392829895,
-0.012193247675895691,
-0.5508833527565002,
1.3700051307678223,
0.08373245596885681,
1.278809666633606,
0.5938097238540649,
-0.43171441555023193,
0.5318823456764221,
-0.45223572850227356,
-0.6048760414123535,
1.6086492538452148,
0.1702982485294342,
-1.366046667098999,
-2.292437791824341,
-0.22525770962238312,
-0.7613828778266907,
-0.1392795294523239,
-0.5593163967132568,
-1.0436896085739136,
1.6496729850769043,
0.4441724121570587,
-1.2161089181900024,
-0.27449825406074524,
-0.5244025588035583,
-0.7274270057678223,
2.634981393814087,
-1.411232352256775,
-0.22038014233112335,
-1.0442520380020142,
-0.43103745579719543,
1.6105250120162964,
-1.3018126487731934,
-0.16611698269844055,
-1.0887494087219238,
-0.6840304136276245,
-1.4012829065322876,
-0.4564674496650696,
-0.18723343312740326,
-0.8205008506774902,
0.6805431246757507,
-0.025657787919044495,
-1.0410372018814087,
-0.1862524151802063,
-0.7739490270614624,
0.9244019389152527,
0.011081522330641747,
0.15955258905887604,
1.9509750604629517,
0.327982097864151,
-0.47587862610816956,
0.6289157867431641,
1.1301072835922241,
0.6435296535491943,
-0.6544659733772278,
0.27839142084121704,
-0.5576164722442627,
0.33719438314437866,
-1.345574975013733,
0.24892878532409668,
-2.8024966716766357,
0.7814435362815857,
-0.07755298912525177,
-0.11334814131259918,
-0.17845062911510468,
-1.3807694911956787,
1.1132948398590088,
2.5687246322631836,
-1.1970999240875244,
0.4523876905441284,
0.348178505897522,
1.1806495189666748,
-1.6153799295425415,
0.39066246151924133,
-0.5521733164787292,
2.077709913253784,
0.22347305715084076,
1.2001051902770996,
-0.43661805987358093,
-2.1230521202087402,
0.6582728624343872,
-1.177194356918335,
-0.9652049541473389,
0.8016641736030579,
-0.7422987818717957,
0.1285378336906433,
-1.396025538444519,
-0.04533831775188446,
-0.8779005408287048,
-1.2642290592193604,
0.8497921228408813,
0.08669683337211609,
0.509386420249939,
-0.5591517686843872,
0.31869277358055115,
-2.1280391216278076,
-1.3548312187194824,
-0.14090926945209503,
-0.991155207157135,
0.4433417320251465,
-0.35043054819107056,
0.5526211261749268,
-0.0036460813134908676,
0.1714312583208084,
0.28176623582839966,
1.3434958457946777,
3.458172559738159,
0.08168695867061615,
0.31854212284088135,
-0.10809861123561859,
-1.0814980268478394,
1.4788997173309326,
0.9574072957038879,
-0.1578545719385147,
-0.5418477058410645,
-1.004098892211914,
1.4038772583007812,
2.002439022064209,
1.1669303178787231,
0.2554886043071747,
-0.8557881116867065,
-0.7515532970428467,
0.14080125093460083,
0.17728091776371002,
0.5890892148017883,
0.9892852306365967,
-0.003856336697936058,
0.2305639386177063,
1.4364888668060303,
1.2079308032989502,
-0.19462664425373077,
0.437958300113678,
-0.9548903703689575,
-0.26474833488464355,
0.5047420859336853,
0.3917158842086792,
-0.06281542778015137,
0.5656920075416565,
-1.045615792274475,
-0.2734222412109375,
-0.20806024968624115,
-0.9740896224975586,
-0.6809081435203552,
-0.4188916087150574,
-0.4217697083950043,
1.7169874906539917,
0.08760695159435272,
-0.4561527371406555,
-0.04501998797059059,
-0.7630854845046997,
-0.15912726521492004,
-1.0625829696655273,
0.28387749195098877,
-0.10988582670688629,
-0.037296175956726074,
-0.021161885932087898,
1.6354775428771973,
-0.8774905800819397,
-2.253934621810913,
0.35657891631126404,
0.3139367997646332,
-0.4458962678909302,
0.19347067177295685,
1.6499946117401123,
0.47344303131103516,
1.246091365814209,
1.4225215911865234,
1.0400456190109253,
-0.574665367603302,
-1.308679461479187,
0.598479688167572,
0.9130854606628418,
-1.4501601457595825,
0.8886880874633789,
-0.1695212423801422,
-0.5901329517364502,
0.6608408689498901,
1.3536819219589233,
0.3410152196884155,
-1.9714858531951904,
0.8048325777053833,
-0.7677685618400574,
0.7265340089797974,
0.5601574182510376,
0.8559302091598511,
0.1703166961669922,
0.8927945494651794,
-1.2973145246505737,
-1.1440670490264893,
-0.6901797652244568,
-0.6096080541610718,
1.9459738731384277,
-0.12828978896141052,
0.4621722996234894,
-0.1934053748846054,
-1.2786626815795898,
-0.13521017134189606,
0.688426673412323,
0.21028317511081696,
-0.35379648208618164,
0.9369632005691528,
-0.730453372001648,
-1.0633270740509033,
-1.3259735107421875,
-0.46297571063041687,
-0.890398383140564,
-0.8234525918960571,
1.123944878578186,
0.8084915280342102,
0.25094860792160034,
1.9600493907928467,
0.42843544483184814,
0.21276262402534485,
-2.710047483444214,
0.8629405498504639,
0.3176669478416443,
0.10802343487739563,
0.956512451171875,
0.14393214881420135,
1.2561887502670288,
-0.0030505419708788395,
0.6922924518585205,
-2.287647247314453,
2.263201951980591,
-0.243661031126976,
0.6743999123573303,
0.01882670447230339,
-0.1386585682630539,
1.1465511322021484,
0.6554588079452515,
0.7987751960754395,
-1.0878620147705078,
0.8869354128837585,
-0.6906816363334656,
1.122674822807312,
1.0093932151794434,
-0.8825249671936035,
0.07044945657253265,
1.3209798336029053,
0.5719642639160156,
-0.46756720542907715,
-0.9801632761955261,
-0.8517155051231384,
0.8976734280586243,
1.7938514947891235,
0.03587754815816879,
0.12307874858379364,
0.8156428337097168,
0.547615110874176,
-1.204417109489441,
0.1491573452949524,
-0.8359100222587585,
-0.6947126388549805,
1.700271725654602,
1.9845433235168457,
-0.10638993978500366,
-0.16343064606189728,
-0.7382292151451111,
-1.266810417175293,
0.6075195670127869,
-0.02898021787405014,
0.11088034510612488,
0.8235429525375366,
-0.6256943941116333,
1.0939017534255981,
0.6671109795570374,
1.061518669128418,
-0.088737353682518,
0.32902956008911133,
0.23026438057422638,
-0.30574703216552734,
-1.2467670440673828,
-0.39241769909858704,
-1.0370937585830688,
-2.5987443923950195,
0.5949126482009888,
-0.306760311126709,
-1.4168226718902588,
0.10542243719100952,
-1.1101491451263428,
0.8566469550132751,
-0.7046157121658325,
-1.1566674709320068,
-1.2819814682006836,
0.26609358191490173,
-0.2876642942428589,
0.8133514523506165,
-1.6677709817886353,
-0.05532177537679672,
1.3912458419799805,
0.8230699300765991,
-0.5184587240219116,
0.979386568069458,
0.2450307309627533,
1.086323857307434,
0.8552538156509399,
-0.37252217531204224,
0.40012699365615845,
0.21055637300014496,
-1.3763582706451416,
0.49041253328323364,
1.0791723728179932,
0.23555834591388702,
1.4843192100524902,
-0.5394525527954102,
0.13368993997573853,
0.6263588666915894,
-0.572508692741394,
-0.5145583152770996,
-0.6674785614013672,
0.8077643513679504,
-0.0014113266952335835,
-1.026520013809204,
0.03692153841257095,
-0.20278815925121307,
-0.2181362807750702,
0.17612528800964355,
-1.3847476243972778,
-0.2474166452884674,
-0.2971591651439667,
-0.5177946090698242,
-1.4022706747055054,
0.04266199842095375,
1.2183634042739868,
-0.9041807055473328,
-0.08842827379703522,
0.5002502202987671,
0.29072174429893494,
0.49651873111724854,
0.5844544172286987,
-0.6693940162658691,
-0.3663560748100281,
-0.1984628438949585,
-0.3360271155834198,
0.2917971909046173,
1.135953426361084,
-0.22108718752861023,
-1.0695552825927734,
0.7253336310386658,
-0.30489882826805115,
0.1397354006767273,
1.9546570777893066,
-0.07812061905860901,
-0.7004184126853943,
0.3774644434452057,
-0.5330515503883362,
1.7862180471420288,
1.5650683641433716,
1.3528780937194824,
-0.09033003449440002,
-0.8353130221366882,
0.5525665283203125,
-0.1029491126537323,
-0.35500723123550415,
0.8709521293640137,
0.5284377932548523,
-0.1601080298423767,
-1.4231623411178589,
0.53614342212677,
1.2256519794464111,
-1.0333987474441528,
-0.8014552593231201,
0.04887261986732483,
-0.7975626587867737,
1.088230013847351,
0.5538277626037598,
0.36587467789649963,
0.20325568318367004,
1.625596284866333,
0.6427873373031616,
-0.5893124938011169,
0.3645405173301697,
0.39189133048057556,
-0.22906114161014557,
-2.101651191711426,
-0.9160129427909851,
0.2881428003311157,
-0.37886354327201843,
-1.6718494892120361,
1.275733232498169,
-1.2095924615859985,
-0.8840463161468506,
0.4886082708835602,
0.1851259171962738,
1.396247148513794,
0.2585356533527374,
1.7735592126846313,
1.9736435413360596,
0.7307720184326172,
0.25110435485839844,
1.29086172580719,
0.00958964228630066,
-0.3936707675457001,
1.6967679262161255,
-0.39457693696022034,
0.6280950903892517,
1.0249204635620117,
-0.44835951924324036,
-1.03704833984375,
-0.774276077747345,
-1.1801538467407227,
-0.6386285424232483,
1.147863745689392,
0.22146794199943542,
-1.1002833843231201,
0.15580038726329803,
1.5344033241271973,
0.1277151107788086,
-0.12049241364002228,
0.5528445839881897,
0.5673503279685974,
-0.6130273938179016,
-0.008198137395083904,
-0.9243022203445435,
0.5024884939193726,
-0.05252864956855774,
-0.45363280177116394,
0.3579024374485016,
0.42123544216156006,
1.2446417808532715,
0.01741914637386799,
0.21209923923015594,
1.3405838012695312,
-1.2717816829681396,
1.567612648010254,
-0.6189253330230713,
0.27985048294067383,
-2.5123634338378906,
1.429611086845398,
-0.9703181982040405,
1.9135360717773438,
-2.4840407371520996,
0.4090603291988373,
-0.6265442371368408,
-0.46953848004341125,
0.3894058167934418,
-0.33910107612609863,
0.02503746747970581,
-0.21517488360404968,
-0.8955432772636414,
-0.012574369087815285,
-0.8743307590484619,
0.5017166137695312,
1.3150529861450195,
1.3664448261260986,
-1.1015212535858154,
-0.19999676942825317,
-1.9180471897125244,
-0.23190031945705414,
-0.6606199145317078,
0.45312416553497314,
-2.0682692527770996,
-0.1064126193523407,
-2.081576347351074,
-2.3522837162017822,
-1.4715416431427002,
-1.0222175121307373,
0.9935373067855835,
0.17007608711719513,
-0.8978538513183594,
0.9330730438232422,
-0.2758122682571411,
-1.7190520763397217,
1.1138848066329956,
-2.152808904647827
] |
https://github.com/huggingface/datasets/issues/4725 | the_pile datasets URL broken. | Great this is working now. Re the download from GitHub... I'm sure thought went into doing this but could it be made more clear maybe here? https://huggingface.co/docs/datasets/installation for example under installing from source? I spent over an hour questioning my sanity as I kept trying to edit this file, uninstall and reinstall the repo, git reset to previous versions of the file etc. | https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find? | 616 | 63 | the_pile datasets URL broken.
https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find?
Great this is working now. Re the download from GitHub... I'm sure thought went into doing this but could it be made more clear maybe here? https://huggingface.co/docs/datasets/installation for example under installing from source? I spent over an hour questioning my sanity as I kept trying to edit this file, uninstall and reinstall the repo, git reset to previous versions of the file etc. | [
-1.301160454750061,
-1.0398495197296143,
-0.8195957541465759,
1.5354069471359253,
-0.09811757504940033,
-1.3248411417007446,
0.024039745330810547,
-1.0430026054382324,
1.6348764896392822,
-0.778438150882721,
0.2772708833217621,
-1.66709303855896,
0.020109940320253372,
-0.5261082053184509,
-0.826486349105835,
-0.8615348935127258,
-0.25557681918144226,
-0.8973199725151062,
1.0098443031311035,
2.516597032546997,
1.1455904245376587,
-1.3344510793685913,
2.7469418048858643,
0.6460803151130676,
-0.220823734998703,
-1.1377606391906738,
0.615630567073822,
0.05514978989958763,
-1.2900044918060303,
-0.4769001603126526,
-0.952279806137085,
-0.015270286239683628,
-0.4896806478500366,
-0.5405513644218445,
0.0328904464840889,
0.3371565341949463,
-0.27663394808769226,
-0.35346662998199463,
-0.5566577315330505,
-0.743200957775116,
0.47006264328956604,
-0.35759812593460083,
0.9263744950294495,
-0.36590033769607544,
1.9481956958770752,
-0.5404227375984192,
0.3354974091053009,
0.689568817615509,
1.3469820022583008,
0.14856933057308197,
0.01674969680607319,
0.2014646977186203,
0.47274094820022583,
0.03851624205708504,
0.42215752601623535,
1.0619580745697021,
0.5129304528236389,
0.48200005292892456,
0.7209059596061707,
-2.1684954166412354,
1.4014419317245483,
-0.9918391704559326,
0.2299160212278366,
1.3577784299850464,
-0.9952964782714844,
0.4491305649280548,
-1.850282073020935,
0.08118407428264618,
0.5439844727516174,
-2.3744423389434814,
0.12042957544326782,
-1.2768410444259644,
-0.5033841133117676,
0.9754846096038818,
0.299079567193985,
-1.2209919691085815,
0.13798107206821442,
-0.5443159341812134,
1.0012744665145874,
0.5950796604156494,
1.1576547622680664,
-1.574950933456421,
-0.09182322025299072,
-0.23091399669647217,
0.03625411540269852,
-1.4289597272872925,
-1.4705126285552979,
0.4636390209197998,
0.6341713070869446,
0.6485863327980042,
-0.045242756605148315,
0.9624748826026917,
-0.8761273622512817,
0.8258968591690063,
-0.8111457824707031,
-1.6054431200027466,
-1.411909818649292,
-2.2997915744781494,
-2.2600817680358887,
0.7725099921226501,
-0.5368592143058777,
-0.5517087578773499,
1.988450288772583,
-1.0813159942626953,
-1.8407567739486694,
1.1164906024932861,
0.22254157066345215,
0.14714224636554718,
2.3904247283935547,
0.16811354458332062,
-0.7043121457099915,
0.389560341835022,
-0.5984374284744263,
0.8080517649650574,
-0.42709946632385254,
1.3598394393920898,
0.5549225211143494,
-0.998477041721344,
1.5556025505065918,
-0.40163540840148926,
0.4628116488456726,
-0.6393887400627136,
-0.5200980305671692,
-0.9068360924720764,
0.3161390423774719,
1.8637161254882812,
-0.2569234371185303,
1.7316423654556274,
-0.3630686104297638,
-1.4899436235427856,
-1.6034009456634521,
0.8337944149971008,
0.5376080870628357,
-0.9638743996620178,
0.11731396615505219,
-0.3490476608276367,
0.010667514055967331,
-0.0676669180393219,
1.064207911491394,
1.2545346021652222,
0.650818943977356,
-0.23233187198638916,
-0.7931947112083435,
0.26701825857162476,
-0.10438789427280426,
-0.6778483390808105,
-1.7833774089813232,
-0.3194756507873535,
0.24310989677906036,
0.6967723965644836,
-1.264093279838562,
1.656247615814209,
0.8490269780158997,
1.8892381191253662,
1.0395519733428955,
-0.2668634057044983,
1.4459295272827148,
-0.04786863923072815,
1.8768491744995117,
-0.5675792098045349,
0.7172322273254395,
-0.3219054043292999,
-1.1538258790969849,
0.7570093274116516,
-0.39367231726646423,
-1.9761075973510742,
-0.798179030418396,
-0.9436359405517578,
-0.15981638431549072,
-0.6657872796058655,
0.8798522353172302,
-0.43677520751953125,
-1.3183550834655762,
0.20599736273288727,
-0.6094465851783752,
0.17881514132022858,
-1.2522060871124268,
0.22644415497779846,
0.7826278805732727,
-0.7253534197807312,
-0.04671335592865944,
-0.29778701066970825,
-1.2705128192901611,
-0.5677456855773926,
0.32992154359817505,
1.92258882522583,
-0.7143845558166504,
0.9620970487594604,
0.9051929116249084,
-0.7188477516174316,
0.041390445083379745,
0.38063013553619385,
-0.3130107820034027,
0.8121656775474548,
-0.9753918051719666,
-0.33999520540237427,
1.1961942911148071,
-0.23828090727329254,
-0.6346165537834167,
1.527223825454712,
0.7774848937988281,
-0.8895006775856018,
-0.23656854033470154,
-0.1523750275373459,
-0.8005109429359436,
-0.0616060234606266,
-1.5293463468551636,
-0.18336835503578186,
0.0879296213388443,
-1.6005915403366089,
-0.5025147795677185,
-0.2243952602148056,
1.3419184684753418,
-0.17290006577968597,
1.4429783821105957,
-0.33965474367141724,
-0.3195023834705353,
-0.3372579514980316,
-0.4804067611694336,
0.2029602974653244,
-0.2588433623313904,
-0.6043552160263062,
0.2890191376209259,
-0.8455808758735657,
0.28082913160324097,
1.3342564105987549,
0.36829620599746704,
0.08310168981552124,
0.6067176461219788,
1.137404441833496,
0.400987833738327,
0.04090657830238342,
-0.8874736428260803,
-1.5747230052947998,
1.9621955156326294,
-1.4702613353729248,
1.911371111869812,
0.7936702370643616,
-0.09380322694778442,
-1.781370759010315,
-1.8148295879364014,
1.3489621877670288,
1.1869922876358032,
2.2583184242248535,
0.6018573641777039,
0.31351709365844727,
-0.8140453100204468,
-0.6438884139060974,
0.2953985631465912,
-0.978431224822998,
-0.7740453481674194,
0.029842741787433624,
2.3780016899108887,
1.7435288429260254,
-0.5710068941116333,
-0.3439995050430298,
-1.0204896926879883,
1.2226686477661133,
-0.09873795509338379,
0.18660885095596313,
2.0543153285980225,
-0.21814660727977753,
-1.0761862993240356,
1.2291921377182007,
-2.3251097202301025,
0.2576470375061035,
1.9900461435317993,
0.3497864603996277,
0.051756009459495544,
-1.526482105255127,
-0.7084237337112427,
-0.1475449502468109,
-0.5102143883705139,
-1.1678214073181152,
0.6156850457191467,
-0.3490133285522461,
-0.8881853818893433,
-1.5217807292938232,
-0.011333534494042397,
-1.1069912910461426,
-1.735957145690918,
0.3931979238986969,
1.8780957460403442,
1.974054217338562,
-0.652341365814209,
1.4577665328979492,
-0.2330976277589798,
0.11899086833000183,
1.3444651365280151,
1.2881386280059814,
3.2324535846710205,
1.9337319135665894,
-1.175120234489441,
0.7075938582420349,
-0.13525380194187164,
-0.41910743713378906,
1.114351749420166,
-1.0789231061935425,
1.1720068454742432,
-0.19308863580226898,
-1.2063199281692505,
-1.283559799194336,
1.0017659664154053,
0.44612258672714233,
0.00786920078098774,
-0.5097876191139221,
1.3533180952072144,
0.059309545904397964,
1.2602912187576294,
0.46962088346481323,
-0.4016340374946594,
0.5383336544036865,
-0.41090697050094604,
-0.5851017832756042,
1.5768357515335083,
0.13729499280452728,
-1.4661530256271362,
-2.2422122955322266,
-0.2748303711414337,
-0.7194244265556335,
-0.10672269761562347,
-0.5067883729934692,
-1.0205137729644775,
1.683202862739563,
0.40690186619758606,
-1.2454694509506226,
-0.23702384531497955,
-0.4234081506729126,
-0.739395022392273,
2.5988306999206543,
-1.3965517282485962,
-0.26264074444770813,
-1.0013065338134766,
-0.45918935537338257,
1.649857997894287,
-1.2918338775634766,
-0.18073415756225586,
-1.0141167640686035,
-0.6342295408248901,
-1.3903756141662598,
-0.4339847266674042,
-0.11713282763957977,
-0.8822574615478516,
0.7185153961181641,
0.07224813103675842,
-0.993419349193573,
-0.24423529207706451,
-0.7873898148536682,
0.9223286509513855,
0.05771410092711449,
0.25012683868408203,
1.993005633354187,
0.4108945429325104,
-0.44237375259399414,
0.6703452467918396,
1.1377061605453491,
0.665978729724884,
-0.673119306564331,
0.2486829310655594,
-0.5668691396713257,
0.28082388639450073,
-1.3883709907531738,
0.2952433228492737,
-2.842465877532959,
0.7205676436424255,
-0.08338752388954163,
-0.15056532621383667,
-0.057816602289676666,
-1.3625245094299316,
1.160797119140625,
2.562561273574829,
-1.1070722341537476,
0.43107596039772034,
0.3380277454853058,
1.201554775238037,
-1.6057637929916382,
0.526396632194519,
-0.38554537296295166,
2.0393006801605225,
0.2613789737224579,
1.174271583557129,
-0.4538930356502533,
-2.217278480529785,
0.6390136480331421,
-1.2107980251312256,
-1.0719813108444214,
0.7922545671463013,
-0.7671765089035034,
0.07437704503536224,
-1.4187037944793701,
-0.04313228279352188,
-0.8669355511665344,
-1.2772685289382935,
0.9298361539840698,
0.17431552708148956,
0.4358779191970825,
-0.5938003659248352,
0.36961841583251953,
-2.134699821472168,
-1.4325077533721924,
-0.23834417760372162,
-0.9175642132759094,
0.420039564371109,
-0.3450443148612976,
0.6160600185394287,
-0.13759414851665497,
0.19044704735279083,
0.29870107769966125,
1.4654817581176758,
3.42379093170166,
0.19916799664497375,
0.38159191608428955,
-0.09469445049762726,
-1.0356608629226685,
1.5089585781097412,
0.988243579864502,
-0.13081353902816772,
-0.57216477394104,
-1.021657943725586,
1.216317892074585,
2.028822898864746,
1.109662652015686,
0.1888025999069214,
-0.8425368070602417,
-0.7071592807769775,
0.07560116052627563,
0.20343446731567383,
0.604443371295929,
1.0073000192642212,
-0.017795419320464134,
0.1744934618473053,
1.5122883319854736,
1.2336559295654297,
-0.3815024197101593,
0.41285672783851624,
-0.8205053806304932,
-0.41062304377555847,
0.4378263056278229,
0.41529324650764465,
-0.11509959399700165,
0.5129982233047485,
-0.9973312020301819,
-0.23365940153598785,
-0.3162155747413635,
-1.0429645776748657,
-0.7038885951042175,
-0.4417403042316437,
-0.37785765528678894,
1.6325883865356445,
0.11919175088405609,
-0.4739183485507965,
-0.009717050939798355,
-0.7840330004692078,
-0.17709524929523468,
-1.1014392375946045,
0.22210551798343658,
-0.11564874649047852,
-0.0461459755897522,
0.04671406000852585,
1.7395014762878418,
-0.9740197062492371,
-2.1471657752990723,
0.3044344484806061,
0.2730998694896698,
-0.39118683338165283,
0.2174891233444214,
1.5921189785003662,
0.4354001581668854,
1.3500456809997559,
1.3799335956573486,
0.972827672958374,
-0.6413043737411499,
-1.3840693235397339,
0.6061556935310364,
0.9049843549728394,
-1.4549732208251953,
0.9009774923324585,
-0.09715382754802704,
-0.6333619356155396,
0.700564980506897,
1.3883684873580933,
0.36518409848213196,
-1.9172762632369995,
0.8415495753288269,
-0.7780123353004456,
0.7696565985679626,
0.5982041358947754,
0.8316492438316345,
0.18745118379592896,
0.8215572237968445,
-1.235256552696228,
-1.1899687051773071,
-0.782562255859375,
-0.608619213104248,
1.9168193340301514,
-0.1811726987361908,
0.5350115299224854,
-0.12882477045059204,
-1.2892107963562012,
-0.12321427464485168,
0.6745069026947021,
0.3117780387401581,
-0.35272419452667236,
0.8810172080993652,
-0.7544615268707275,
-1.1466608047485352,
-1.361459493637085,
-0.48769885301589966,
-0.9172875881195068,
-0.8502505421638489,
1.0875704288482666,
0.8210462927818298,
0.2242746204137802,
1.9611748456954956,
0.5204947590827942,
0.27923136949539185,
-2.7096314430236816,
0.8676899671554565,
0.23321810364723206,
0.06481190025806427,
0.9186818599700928,
0.1819615215063095,
1.1348446607589722,
0.07393158972263336,
0.6090348958969116,
-2.3350024223327637,
2.308612823486328,
-0.24802546203136444,
0.6572000980377197,
-0.029440484941005707,
-0.18531174957752228,
1.2542243003845215,
0.5936429500579834,
0.6938767433166504,
-1.092694640159607,
0.810335099697113,
-0.5611189007759094,
1.1699291467666626,
0.9993513226509094,
-0.8782957792282104,
-0.004394028335809708,
1.3409836292266846,
0.5708523988723755,
-0.5085221529006958,
-0.9070217609405518,
-0.8900479674339294,
0.8545770645141602,
1.7343733310699463,
-0.04673340916633606,
0.023154903203248978,
0.8036140203475952,
0.5786870718002319,
-1.3039932250976562,
0.1300453543663025,
-0.8615915179252625,
-0.7174069881439209,
1.6850322484970093,
2.0572338104248047,
-0.035702966153621674,
-0.23615899682044983,
-0.7216664552688599,
-1.193480372428894,
0.6456192135810852,
-0.002830564510077238,
0.16374380886554718,
0.6911242604255676,
-0.6754264831542969,
1.107706069946289,
0.761986255645752,
1.0764657258987427,
-0.011240852996706963,
0.3428792953491211,
0.34002214670181274,
-0.2795199751853943,
-1.1737887859344482,
-0.3379180133342743,
-1.0809344053268433,
-2.4493868350982666,
0.5279346704483032,
-0.26783907413482666,
-1.4720035791397095,
0.07576654851436615,
-1.101717472076416,
0.9019437432289124,
-0.6790743470191956,
-1.134384036064148,
-1.3941433429718018,
0.10402864217758179,
-0.28217318654060364,
0.7885809540748596,
-1.5996794700622559,
-0.05461517721414566,
1.3725299835205078,
0.8575357794761658,
-0.5765798091888428,
1.033360242843628,
0.1948951631784439,
1.041926622390747,
0.8137927651405334,
-0.4103459119796753,
0.38063737750053406,
0.1276697963476181,
-1.3651762008666992,
0.45531165599823,
1.0704673528671265,
0.26148250699043274,
1.4898946285247803,
-0.6138048768043518,
0.12398098409175873,
0.5733966827392578,
-0.556198239326477,
-0.46807625889778137,
-0.6385929584503174,
0.7499497532844543,
0.019899381324648857,
-0.940346360206604,
0.07339535653591156,
-0.2517031729221344,
-0.2568303942680359,
0.1989096850156784,
-1.5204616785049438,
-0.23824074864387512,
-0.37541404366493225,
-0.543828547000885,
-1.3355540037155151,
0.07727351784706116,
1.2775591611862183,
-0.7992543578147888,
-0.148027703166008,
0.45564019680023193,
0.40222132205963135,
0.42624422907829285,
0.6205706000328064,
-0.6747362613677979,
-0.35222944617271423,
-0.25202319025993347,
-0.36756470799446106,
0.3619197607040405,
1.1959025859832764,
-0.22371777892112732,
-1.0769450664520264,
0.7061662077903748,
-0.33455201983451843,
0.06752781569957733,
1.9616918563842773,
-0.07622078061103821,
-0.7362895011901855,
0.3625415563583374,
-0.6681704521179199,
1.8660145998001099,
1.6271002292633057,
1.3580849170684814,
-0.12974493205547333,
-0.8714756369590759,
0.5646218061447144,
-0.12755073606967926,
-0.3077513575553894,
0.9250454902648926,
0.5373890995979309,
-0.12932051718235016,
-1.4057573080062866,
0.5782228112220764,
1.2263479232788086,
-0.9761565327644348,
-0.7229534387588501,
0.04187551885843277,
-0.8366725444793701,
1.0080360174179077,
0.607744038105011,
0.4481889307498932,
0.2612355649471283,
1.6661611795425415,
0.6918856501579285,
-0.5947688221931458,
0.43115556240081787,
0.4414123296737671,
-0.1954396367073059,
-2.0374093055725098,
-0.9926407933235168,
0.2975034713745117,
-0.41470712423324585,
-1.6282247304916382,
1.326854944229126,
-1.1983941793441772,
-0.8413437604904175,
0.49590352177619934,
0.17111283540725708,
1.4515599012374878,
0.269073486328125,
1.6943728923797607,
2.066178798675537,
0.8443259000778198,
0.2639591693878174,
1.2589603662490845,
-0.015693403780460358,
-0.4750414788722992,
1.7583028078079224,
-0.34055501222610474,
0.4987693130970001,
1.1130812168121338,
-0.3866228759288788,
-1.0247408151626587,
-0.8090399503707886,
-1.116000771522522,
-0.6353321075439453,
1.1850934028625488,
0.23528887331485748,
-1.1920807361602783,
0.234885573387146,
1.5339033603668213,
0.1700817048549652,
-0.2569773495197296,
0.5347403287887573,
0.524003803730011,
-0.6858102083206177,
-0.08736760914325714,
-0.9329196214675903,
0.4800947606563568,
-0.14079463481903076,
-0.45822134613990784,
0.34896376729011536,
0.42527276277542114,
1.2389395236968994,
-0.05181797966361046,
0.18133938312530518,
1.265616536140442,
-1.3466182947158813,
1.5197014808654785,
-0.5971130728721619,
0.2865848243236542,
-2.4028127193450928,
1.4739443063735962,
-0.8733295202255249,
1.9471989870071411,
-2.521301746368408,
0.3903505504131317,
-0.6735143065452576,
-0.4954666793346405,
0.4253622591495514,
-0.3890334367752075,
0.13620422780513763,
-0.25866031646728516,
-0.9242417812347412,
-0.02668384276330471,
-0.8314242959022522,
0.5865106582641602,
1.2623037099838257,
1.3167699575424194,
-1.1135972738265991,
-0.2567552924156189,
-1.8115448951721191,
-0.3487602472305298,
-0.6897315979003906,
0.41877424716949463,
-2.0740139484405518,
-0.18841755390167236,
-2.0414485931396484,
-2.3209943771362305,
-1.4830718040466309,
-0.9099867939949036,
1.0527780055999756,
0.1618276983499527,
-0.8981990814208984,
1.0702507495880127,
-0.3080849349498749,
-1.7504619359970093,
1.1098382472991943,
-2.11551833152771
] |
https://github.com/huggingface/datasets/issues/4725 | the_pile datasets URL broken. | Thanks @TrentBrick for the suggestion about improving our docs: we should definitely do this if you find they are not clear enough.
Currently, our docs explain how to load a dataset from a local loading script here: [Load > Local loading script](https://huggingface.co/docs/datasets/loading#local-loading-script)
I've opened an issue here:
- #4732
Feel free to comment on it any additional explanation/suggestion/requirement related to this problem. | https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find? | 616 | 62 | the_pile datasets URL broken.
https://github.com/huggingface/datasets/pull/3627 changed the Eleuther AI Pile dataset URL from https://the-eye.eu/ to https://mystic.the-eye.eu/ but the latter is now broken and the former works again.
Note that when I git clone the repo and use `pip install -e .` and then edit the URL back the codebase doesn't seem to use this edit so the mystic URL is also cached somewhere else that I can't find?
Thanks @TrentBrick for the suggestion about improving our docs: we should definitely do this if you find they are not clear enough.
Currently, our docs explain how to load a dataset from a local loading script here: [Load > Local loading script](https://huggingface.co/docs/datasets/loading#local-loading-script)
I've opened an issue here:
- #4732
Feel free to comment on it any additional explanation/suggestion/requirement related to this problem. | [
-1.2412192821502686,
-0.9940254092216492,
-0.864580512046814,
1.526015281677246,
-0.07495030015707016,
-1.3036246299743652,
-0.05588771775364876,
-1.048176646232605,
1.6506128311157227,
-0.7604540586471558,
0.3635750114917755,
-1.6917717456817627,
0.01810532808303833,
-0.5547544360160828,
-0.8282855749130249,
-0.8703354001045227,
-0.34900185465812683,
-0.8548744320869446,
0.9963448643684387,
2.5362801551818848,
1.166837215423584,
-1.37381911277771,
2.761871576309204,
0.6783084869384766,
-0.15539875626564026,
-1.0561236143112183,
0.5776728987693787,
-0.0184137225151062,
-1.2731268405914307,
-0.45038071274757385,
-0.9322759509086609,
-0.024101335555315018,
-0.49563029408454895,
-0.5673844814300537,
0.0729265809059143,
0.3344303369522095,
-0.2012534886598587,
-0.2486034780740738,
-0.5804274082183838,
-0.7147102355957031,
0.4780069887638092,
-0.3657139539718628,
0.927059531211853,
-0.4322318136692047,
1.9721921682357788,
-0.5502680540084839,
0.28333011269569397,
0.6402029991149902,
1.3563859462738037,
0.19552448391914368,
-0.008804992772638798,
0.24466268718242645,
0.40870606899261475,
0.022306740283966064,
0.46355754137039185,
1.0870453119277954,
0.5330896377563477,
0.4709794521331787,
0.7118546962738037,
-2.1506295204162598,
1.378317952156067,
-0.9544647932052612,
0.2538084387779236,
1.3770610094070435,
-1.030596137046814,
0.42150604724884033,
-1.7815725803375244,
-0.01995120197534561,
0.5685212016105652,
-2.3799564838409424,
0.14241701364517212,
-1.1949570178985596,
-0.570215106010437,
0.9849878549575806,
0.2934688925743103,
-1.2538573741912842,
0.1090179830789566,
-0.5118453502655029,
1.0248215198516846,
0.5518205761909485,
1.1544930934906006,
-1.635651707649231,
0.01656624674797058,
-0.20749147236347198,
0.06625297665596008,
-1.4217733144760132,
-1.5358177423477173,
0.5259495973587036,
0.6654202938079834,
0.6656669974327087,
-0.05285594239830971,
0.8740660548210144,
-0.8801717162132263,
0.8277480006217957,
-0.889080822467804,
-1.644842267036438,
-1.3846735954284668,
-2.3611502647399902,
-2.2887041568756104,
0.7865939736366272,
-0.49033015966415405,
-0.5150145888328552,
1.9830366373062134,
-1.026165246963501,
-1.8310242891311646,
1.0822572708129883,
0.23381084203720093,
0.10346750915050507,
2.367699384689331,
0.17553584277629852,
-0.7218611240386963,
0.3421486020088196,
-0.6531506180763245,
0.858790934085846,
-0.42847636342048645,
1.335213303565979,
0.5144217014312744,
-1.0024548768997192,
1.601354956626892,
-0.48855268955230713,
0.46476832032203674,
-0.7036547064781189,
-0.5458736419677734,
-0.8695312738418579,
0.34415167570114136,
1.9185798168182373,
-0.3437795639038086,
1.686361312866211,
-0.35570311546325684,
-1.4841476678848267,
-1.5644105672836304,
0.7965666651725769,
0.5348688364028931,
-0.9450829029083252,
0.13718122243881226,
-0.4180813133716583,
-0.021235760301351547,
-0.08611346036195755,
1.0867218971252441,
1.1722443103790283,
0.6500993371009827,
-0.2573630213737488,
-0.8373373746871948,
0.22383424639701843,
-0.034334685653448105,
-0.6523151993751526,
-1.830919623374939,
-0.31538423895835876,
0.2440926879644394,
0.6724477410316467,
-1.3069559335708618,
1.6839038133621216,
0.8170577883720398,
1.9621046781539917,
1.0564794540405273,
-0.22303473949432373,
1.4649378061294556,
-0.03943992033600807,
1.8947621583938599,
-0.5588998794555664,
0.5996508598327637,
-0.3109404742717743,
-1.1950072050094604,
0.7615593075752258,
-0.44179970026016235,
-2.022717237472534,
-0.7386430501937866,
-0.9573150277137756,
-0.11486218124628067,
-0.7130030989646912,
0.8864439725875854,
-0.38706448674201965,
-1.3204306364059448,
0.1807365119457245,
-0.6527091264724731,
0.18230944871902466,
-1.238046646118164,
0.2430986613035202,
0.7975801825523376,
-0.7066700458526611,
-0.0780596137046814,
-0.27914559841156006,
-1.2363730669021606,
-0.5448883771896362,
0.4017917513847351,
1.9406784772872925,
-0.6895784139633179,
0.9324702024459839,
0.9553683400154114,
-0.6173019409179688,
0.002933335490524769,
0.391560435295105,
-0.31491026282310486,
0.8441766500473022,
-1.010079026222229,
-0.37074536085128784,
1.1555572748184204,
-0.17279282212257385,
-0.6507415771484375,
1.5231553316116333,
0.7649340033531189,
-0.9742590188980103,
-0.29643499851226807,
-0.17177148163318634,
-0.8131747245788574,
-0.05170876905322075,
-1.6176985502243042,
-0.1622714251279831,
0.05210164189338684,
-1.5944464206695557,
-0.5023610591888428,
-0.19088853895664215,
1.3361361026763916,
-0.1401669681072235,
1.3840478658676147,
-0.32254043221473694,
-0.24850298464298248,
-0.33580511808395386,
-0.4964665472507477,
0.1552257537841797,
-0.2191389799118042,
-0.580963671207428,
0.290136456489563,
-0.81668621301651,
0.2910584807395935,
1.409372091293335,
0.3702055513858795,
0.08612924814224243,
0.5852989554405212,
1.1682218313217163,
0.35049018263816833,
-0.01819080486893654,
-0.8749823570251465,
-1.6327368021011353,
2.002387285232544,
-1.4180920124053955,
1.9658323526382446,
0.7821872234344482,
-0.07937568426132202,
-1.7961599826812744,
-1.8859305381774902,
1.4015522003173828,
1.1773017644882202,
2.2643606662750244,
0.5634979009628296,
0.2830914855003357,
-0.8158997893333435,
-0.7096359133720398,
0.37397500872612,
-0.9434818029403687,
-0.7808833122253418,
0.025689762085676193,
2.366669178009033,
1.7801027297973633,
-0.507517397403717,
-0.2652549147605896,
-1.0008591413497925,
1.2626032829284668,
-0.0970703661441803,
0.12468577176332474,
1.9966892004013062,
-0.21384525299072266,
-1.0960034132003784,
1.2411525249481201,
-2.3844287395477295,
0.2425994724035263,
2.007120370864868,
0.3622360825538635,
0.07532371580600739,
-1.4354714155197144,
-0.7037383913993835,
-0.1757877618074417,
-0.4386664927005768,
-1.1788647174835205,
0.5562152862548828,
-0.3639879524707794,
-0.921943724155426,
-1.5069866180419922,
-0.014209652319550514,
-1.1311665773391724,
-1.6975257396697998,
0.40635016560554504,
1.820786476135254,
1.9926522970199585,
-0.6826892495155334,
1.4669338464736938,
-0.23399494588375092,
0.11029301583766937,
1.3977123498916626,
1.285705804824829,
3.2174108028411865,
1.8975721597671509,
-1.2373764514923096,
0.7619636058807373,
-0.12150704860687256,
-0.47703367471694946,
1.1967172622680664,
-1.0797607898712158,
1.1758052110671997,
-0.2899790108203888,
-1.2551765441894531,
-1.2762659788131714,
1.0245946645736694,
0.5167615413665771,
0.04014862701296806,
-0.5287290811538696,
1.3414983749389648,
0.0637088343501091,
1.2585891485214233,
0.532991349697113,
-0.42048680782318115,
0.5390394926071167,
-0.417514830827713,
-0.6001740097999573,
1.591996669769287,
0.14907631278038025,
-1.5084599256515503,
-2.273392915725708,
-0.21582478284835815,
-0.777754008769989,
-0.13566285371780396,
-0.6066960692405701,
-1.0791518688201904,
1.6067928075790405,
0.4131677448749542,
-1.2513275146484375,
-0.2690621018409729,
-0.42127829790115356,
-0.6724615693092346,
2.6434545516967773,
-1.4747408628463745,
-0.2383473515510559,
-1.0339053869247437,
-0.4641845226287842,
1.6356369256973267,
-1.269679069519043,
-0.1971072554588318,
-1.007811427116394,
-0.6760911345481873,
-1.3589493036270142,
-0.4422157406806946,
-0.08256436884403229,
-0.8371611833572388,
0.7340809106826782,
0.03807750716805458,
-1.0200793743133545,
-0.17793233692646027,
-0.8081545829772949,
0.9158065915107727,
-0.035241272300481796,
0.2571210563182831,
1.945909857749939,
0.3852844834327698,
-0.4510728120803833,
0.6462979316711426,
1.2225505113601685,
0.665726363658905,
-0.6908310651779175,
0.253418892621994,
-0.5888127684593201,
0.33469587564468384,
-1.3748639822006226,
0.26530271768569946,
-2.858621597290039,
0.6724380850791931,
-0.030296754091978073,
-0.09858670830726624,
-0.045437291264534,
-1.3519196510314941,
1.1252237558364868,
2.5731751918792725,
-1.1501356363296509,
0.43711838126182556,
0.3390255868434906,
1.1889002323150635,
-1.6196472644805908,
0.3964866101741791,
-0.4695895314216614,
2.024873733520508,
0.16668258607387543,
1.1623202562332153,
-0.44268229603767395,
-2.2398571968078613,
0.6747844815254211,
-1.2878724336624146,
-1.0218039751052856,
0.8009629845619202,
-0.7856685519218445,
0.13348256051540375,
-1.4485344886779785,
-0.05199011042714119,
-0.9116664528846741,
-1.2386090755462646,
0.8451848030090332,
0.12472730129957199,
0.4077332615852356,
-0.5785133838653564,
0.32944226264953613,
-2.134381055831909,
-1.3915808200836182,
-0.1383683830499649,
-0.9831704497337341,
0.44074341654777527,
-0.3435628116130829,
0.6154228448867798,
-0.15356014668941498,
0.17589905858039856,
0.32320839166641235,
1.3661209344863892,
3.4395370483398438,
0.18083274364471436,
0.3853223919868469,
-0.09726054221391678,
-1.0183610916137695,
1.4844889640808105,
0.9347977638244629,
-0.10640506446361542,
-0.5383756160736084,
-1.0127302408218384,
1.333282232284546,
1.9910928010940552,
1.1432548761367798,
0.1621178388595581,
-0.8481608033180237,
-0.7298121452331543,
0.052829232066869736,
0.22496138513088226,
0.5137699842453003,
0.931386411190033,
-0.04996789991855621,
0.1672811657190323,
1.3865010738372803,
1.1912118196487427,
-0.33579114079475403,
0.39921703934669495,
-0.8524710536003113,
-0.37254828214645386,
0.5021514296531677,
0.36461663246154785,
-0.06403129547834396,
0.5045325756072998,
-0.9920846819877625,
-0.25544488430023193,
-0.29907068610191345,
-0.9375521540641785,
-0.6527178287506104,
-0.39166271686553955,
-0.3798111081123352,
1.6516757011413574,
0.0713159590959549,
-0.4516808092594147,
-0.05490788444876671,
-0.8451345562934875,
-0.1716303676366806,
-1.1034780740737915,
0.2677861452102661,
-0.08651833981275558,
-0.03202209994196892,
-0.0334327332675457,
1.716727375984192,
-0.9878864288330078,
-2.1447393894195557,
0.3153492510318756,
0.2905447483062744,
-0.4175172746181488,
0.14847880601882935,
1.66856050491333,
0.4631074070930481,
1.3584483861923218,
1.4087421894073486,
0.9784945845603943,
-0.6632156372070312,
-1.3507745265960693,
0.6059607863426208,
0.9850456714630127,
-1.4474740028381348,
0.9270074367523193,
-0.11807253211736679,
-0.5646191239356995,
0.6799244284629822,
1.385321855545044,
0.4317874312400818,
-1.877865195274353,
0.796959638595581,
-0.7556755542755127,
0.8437578082084656,
0.6253473162651062,
0.853776752948761,
0.1649026870727539,
0.8566617965698242,
-1.287773609161377,
-1.1465946435928345,
-0.8113307952880859,
-0.5940178036689758,
1.9031254053115845,
-0.12514181435108185,
0.4984460175037384,
-0.1352682113647461,
-1.311651349067688,
-0.1071198582649231,
0.6509532928466797,
0.28617703914642334,
-0.417280375957489,
0.8975868225097656,
-0.7742964029312134,
-1.0910109281539917,
-1.3524826765060425,
-0.47747787833213806,
-0.8875580430030823,
-0.8207404613494873,
1.123634696006775,
0.8178443908691406,
0.26375648379325867,
1.9677420854568481,
0.5134650468826294,
0.27418193221092224,
-2.6614153385162354,
0.8469650745391846,
0.242397740483284,
0.039441317319869995,
0.9927915930747986,
0.20700913667678833,
1.1550519466400146,
0.04769448935985565,
0.6171130537986755,
-2.2733218669891357,
2.2527525424957275,
-0.2491583675146103,
0.7061359286308289,
-0.0019600242376327515,
-0.12297942489385605,
1.1806219816207886,
0.6450254917144775,
0.6485968232154846,
-1.1133313179016113,
0.8444065451622009,
-0.5538857579231262,
1.1352875232696533,
0.9117880463600159,
-0.858778178691864,
-0.006406149826943874,
1.3027321100234985,
0.5156316161155701,
-0.5048984289169312,
-0.901378333568573,
-0.8409722447395325,
0.9136481285095215,
1.740234136581421,
0.07347384095191956,
0.025593198835849762,
0.8263823390007019,
0.5723031759262085,
-1.235154628753662,
0.0917612686753273,
-0.8158799409866333,
-0.7433443665504456,
1.6674528121948242,
1.9815999269485474,
-0.05681701377034187,
-0.1385592669248581,
-0.7169498205184937,
-1.195182204246521,
0.6435985565185547,
-0.018337063491344452,
0.12162040919065475,
0.6792225241661072,
-0.6692646145820618,
1.1523072719573975,
0.8134136199951172,
0.9745243787765503,
-0.03947749733924866,
0.3361603319644928,
0.33562660217285156,
-0.30083298683166504,
-1.1783334016799927,
-0.32773688435554504,
-1.0848000049591064,
-2.530503273010254,
0.5269102454185486,
-0.2957291603088379,
-1.4585365056991577,
0.06994660943746567,
-1.082300066947937,
0.9179413914680481,
-0.6445847749710083,
-1.093019723892212,
-1.4033424854278564,
0.22693637013435364,
-0.2655191421508789,
0.866279661655426,
-1.5898486375808716,
-0.037570420652627945,
1.3218342065811157,
0.8299548625946045,
-0.5458312630653381,
0.9887829422950745,
0.2259991317987442,
1.051594614982605,
0.8263806104660034,
-0.39560043811798096,
0.38600265979766846,
0.22785785794258118,
-1.3625129461288452,
0.4293598532676697,
1.108915090560913,
0.17544437944889069,
1.4432581663131714,
-0.5339945554733276,
0.11957616358995438,
0.5600509643554688,
-0.5508773922920227,
-0.4520385265350342,
-0.6153858304023743,
0.7632805705070496,
0.039392195641994476,
-0.9393934011459351,
0.0007249023765325546,
-0.1857171654701233,
-0.22716248035430908,
0.21557991206645966,
-1.5349973440170288,
-0.2314053475856781,
-0.39253225922584534,
-0.5164612531661987,
-1.3669191598892212,
0.03110343962907791,
1.3098288774490356,
-0.8097342252731323,
-0.1478555053472519,
0.5045226812362671,
0.34581470489501953,
0.46596041321754456,
0.695565402507782,
-0.6599820256233215,
-0.3409029543399811,
-0.24625970423221588,
-0.3487224280834198,
0.23751291632652283,
1.1372287273406982,
-0.23074546456336975,
-1.0165261030197144,
0.7218202948570251,
-0.3642979860305786,
0.08137970417737961,
1.9455844163894653,
-0.015647783875465393,
-0.736598551273346,
0.3457674980163574,
-0.6189163327217102,
1.8964065313339233,
1.6372877359390259,
1.3531363010406494,
-0.10289734601974487,
-0.9058253765106201,
0.6314173340797424,
-0.1513110101222992,
-0.27388739585876465,
0.9220641255378723,
0.5216283202171326,
-0.19424787163734436,
-1.4383825063705444,
0.5452041029930115,
1.2617595195770264,
-0.9576019644737244,
-0.7386394143104553,
0.060645654797554016,
-0.8015007376670837,
1.0343589782714844,
0.639340341091156,
0.4068269729614258,
0.2787107229232788,
1.5994837284088135,
0.6436394453048706,
-0.6125915050506592,
0.4187507927417755,
0.4316272437572479,
-0.1964385062456131,
-2.0392963886260986,
-0.9331511855125427,
0.3089510202407837,
-0.42288562655448914,
-1.5947538614273071,
1.3113588094711304,
-1.2327749729156494,
-0.8195849061012268,
0.4914642870426178,
0.14005382359027863,
1.3958942890167236,
0.20549209415912628,
1.7471474409103394,
2.0199697017669678,
0.7871119976043701,
0.23394189774990082,
1.3110935688018799,
-0.0042201075702905655,
-0.3705233037471771,
1.7481662034988403,
-0.4059235155582428,
0.572218656539917,
1.0607683658599854,
-0.43249988555908203,
-1.0676000118255615,
-0.7864622473716736,
-1.1247985363006592,
-0.6446270942687988,
1.1161742210388184,
0.16253580152988434,
-1.1621061563491821,
0.17266707122325897,
1.5783861875534058,
0.09457120299339294,
-0.20982180535793304,
0.5668171644210815,
0.5071282982826233,
-0.7223218679428101,
-0.08381173759698868,
-0.9897645711898804,
0.5701204538345337,
-0.07186950743198395,
-0.3666608929634094,
0.3050142824649811,
0.43521514534950256,
1.2099156379699707,
0.03143461421132088,
0.21388964354991913,
1.313374638557434,
-1.3554500341415405,
1.474081039428711,
-0.6339018940925598,
0.310868501663208,
-2.489727258682251,
1.411568522453308,
-0.8167149424552917,
1.953580617904663,
-2.5429677963256836,
0.42381593585014343,
-0.6657842397689819,
-0.4770641326904297,
0.37882402539253235,
-0.3313950002193451,
0.13022617995738983,
-0.22643545269966125,
-0.928339421749115,
-0.027978375554084778,
-0.8102462887763977,
0.5955457091331482,
1.303411602973938,
1.3125696182250977,
-1.0948971509933472,
-0.2389257848262787,
-1.785947561264038,
-0.2584754228591919,
-0.7024748921394348,
0.3731289505958557,
-2.0350866317749023,
-0.10707015544176102,
-2.061882734298706,
-2.335005044937134,
-1.4447603225708008,
-0.9017112255096436,
1.075570821762085,
0.21098777651786804,
-0.9579817056655884,
1.0335885286331177,
-0.3388693034648895,
-1.6810258626937866,
1.0825462341308594,
-2.1287548542022705
] |
https://github.com/huggingface/datasets/issues/4721 | PyArrow Dataset error when calling `load_dataset` | Hi ! It looks like a bug in `pyarrow`. If you manage to end up with only one chunk per parquet file it should workaround this issue.
To achieve that you can try to lower the value of `max_shard_size` and also don't use `map` before `push_to_hub`.
Do you have a minimum reproducible example that we can share with the Arrow team for further debugging ? | ## Describe the bug
I am fine tuning a wav2vec2 model following the script here using my own dataset: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
Loading my Audio dataset from the hub which was originally generated from disk results in the following PyArrow error:
```sh
File "/home/ubuntu/w2v2/run_speech_recognition_ctc.py", line 227, in main
raw_datasets = load_dataset(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/load.py", line 1679, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 1268, in _prepare_split
for key, table in logging.tqdm(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/packaged_modules/parquet/parquet.py", line 68, in _generate_tables
for batch_idx, record_batch in enumerate(
File "pyarrow/_parquet.pyx", line 1309, in iter_batches
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
```
## Steps to reproduce the bug
I created a dataset from a JSON lines manifest of `audio_filepath`, `text`, and `duration`.
When creating the dataset, I do something like this:
```python
import json
from datasets import Dataset, Audio
# manifest_lines is a list of dicts w/ "audio_filepath", "duration", and "text
for line in manifest_lines:
line = line.strip()
if line:
line_dict = json.loads(line)
manifest_dict["audio"].append(f"{root_path}/{line_dict['audio_filepath']}")
manifest_dict["duration"].append(line_dict["duration"])
manifest_dict["transcription"].append(line_dict["text"])
# Create a HF dataset
dataset = Dataset.from_dict(manifest_dict).cast_column(
"audio", Audio(sampling_rate=16_000),
)
# From the docs for saving to disk
# https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.save_to_disk
def read_audio_file(example):
with open(example["audio"]["path"], "rb") as f:
return {"audio": {"bytes": f.read()}}
dataset = dataset.map(read_audio_file, num_proc=70)
dataset.save_to_disk(f"/audio-data/hf/{artifact_name}")
dataset.push_to_hub(f"{org-name}/{artifact_name}", max_shard_size="5GB", private=True)
```
Then when I call `load_dataset()` in my training script, with the same dataset I generated above, and download from the huggingface hub I get the above stack trace.
I am able to load the dataset fine if I use `load_from_disk()`.
## Expected results
`load_dataset()` should behave just like `load_from_disk()` and not cause any errors.
## Actual results
See above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
I am using the `huggingface/transformers-pytorch-gpu:latest` image
- `datasets` version: 2.3.0
- Platform: Docker/Ubuntu 20.04
- Python version: 3.8
- PyArrow version: 8.0.0
| 617 | 65 | PyArrow Dataset error when calling `load_dataset`
## Describe the bug
I am fine tuning a wav2vec2 model following the script here using my own dataset: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
Loading my Audio dataset from the hub which was originally generated from disk results in the following PyArrow error:
```sh
File "/home/ubuntu/w2v2/run_speech_recognition_ctc.py", line 227, in main
raw_datasets = load_dataset(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/load.py", line 1679, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 1268, in _prepare_split
for key, table in logging.tqdm(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/packaged_modules/parquet/parquet.py", line 68, in _generate_tables
for batch_idx, record_batch in enumerate(
File "pyarrow/_parquet.pyx", line 1309, in iter_batches
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
```
## Steps to reproduce the bug
I created a dataset from a JSON lines manifest of `audio_filepath`, `text`, and `duration`.
When creating the dataset, I do something like this:
```python
import json
from datasets import Dataset, Audio
# manifest_lines is a list of dicts w/ "audio_filepath", "duration", and "text
for line in manifest_lines:
line = line.strip()
if line:
line_dict = json.loads(line)
manifest_dict["audio"].append(f"{root_path}/{line_dict['audio_filepath']}")
manifest_dict["duration"].append(line_dict["duration"])
manifest_dict["transcription"].append(line_dict["text"])
# Create a HF dataset
dataset = Dataset.from_dict(manifest_dict).cast_column(
"audio", Audio(sampling_rate=16_000),
)
# From the docs for saving to disk
# https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.save_to_disk
def read_audio_file(example):
with open(example["audio"]["path"], "rb") as f:
return {"audio": {"bytes": f.read()}}
dataset = dataset.map(read_audio_file, num_proc=70)
dataset.save_to_disk(f"/audio-data/hf/{artifact_name}")
dataset.push_to_hub(f"{org-name}/{artifact_name}", max_shard_size="5GB", private=True)
```
Then when I call `load_dataset()` in my training script, with the same dataset I generated above, and download from the huggingface hub I get the above stack trace.
I am able to load the dataset fine if I use `load_from_disk()`.
## Expected results
`load_dataset()` should behave just like `load_from_disk()` and not cause any errors.
## Actual results
See above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
I am using the `huggingface/transformers-pytorch-gpu:latest` image
- `datasets` version: 2.3.0
- Platform: Docker/Ubuntu 20.04
- Python version: 3.8
- PyArrow version: 8.0.0
Hi ! It looks like a bug in `pyarrow`. If you manage to end up with only one chunk per parquet file it should workaround this issue.
To achieve that you can try to lower the value of `max_shard_size` and also don't use `map` before `push_to_hub`.
Do you have a minimum reproducible example that we can share with the Arrow team for further debugging ? | [
-1.236140489578247,
-0.8976573348045349,
-0.6514850854873657,
1.4673811197280884,
-0.1040658950805664,
-1.3017088174819946,
0.08813155442476273,
-1.0702898502349854,
1.4283608198165894,
-0.706923246383667,
0.23487603664398193,
-1.5778093338012695,
-0.13177281618118286,
-0.4798608422279358,
-0.6909095644950867,
-0.9149924516677856,
-0.37386012077331543,
-0.9450047016143799,
1.0732358694076538,
2.4859585762023926,
1.3437855243682861,
-1.3169407844543457,
2.77012300491333,
0.5935490131378174,
-0.30546051263809204,
-1.0445334911346436,
0.6253505945205688,
0.05660486966371536,
-1.2251733541488647,
-0.4492775797843933,
-0.8840377926826477,
-0.03945335000753403,
-0.509475827217102,
-0.2950077950954437,
0.13661883771419525,
0.5124212503433228,
-0.23761644959449768,
-0.2070501446723938,
-0.6800119280815125,
-0.7277126312255859,
0.5635502338409424,
-0.2698840796947479,
0.9317764639854431,
-0.3128589391708374,
1.7134037017822266,
-0.5680628418922424,
0.4158112108707428,
0.7151389122009277,
1.32896089553833,
0.11461077630519867,
0.15654490888118744,
0.19099727272987366,
0.3277711570262909,
0.014475599862635136,
0.6352052092552185,
1.2516472339630127,
0.5838130116462708,
0.48627763986587524,
0.595055341720581,
-2.1745660305023193,
1.2745894193649292,
-0.7960253953933716,
0.2382146716117859,
1.3075324296951294,
-0.800521969795227,
0.3244093656539917,
-1.7894388437271118,
-0.09470470994710922,
0.6302048563957214,
-2.2421000003814697,
0.24891585111618042,
-1.2367066144943237,
-0.5252504944801331,
0.8642247915267944,
0.3056314289569855,
-1.1792278289794922,
0.2730451822280884,
-0.6121072173118591,
1.1591918468475342,
0.5387254357337952,
1.0831654071807861,
-1.6211802959442139,
-0.055818118155002594,
-0.04716101288795471,
0.0684312954545021,
-1.2925509214401245,
-1.692375898361206,
0.5438826680183411,
0.5548874735832214,
0.6555864214897156,
-0.0894593819975853,
0.994619607925415,
-1.1008485555648804,
0.8483734130859375,
-1.0243197679519653,
-1.5370795726776123,
-1.3470582962036133,
-2.512362480163574,
-2.31207275390625,
0.8326904773712158,
-0.546074628829956,
-0.5049406290054321,
1.967134714126587,
-0.8869925141334534,
-1.746500015258789,
1.0286856889724731,
0.2784574031829834,
0.17456039786338806,
2.3570096492767334,
0.1566736400127411,
-0.806014358997345,
0.4505825340747833,
-0.6809267401695251,
0.8013843894004822,
-0.3394560217857361,
1.275979995727539,
0.5384684205055237,
-0.948277473449707,
1.5364559888839722,
-0.4326614439487457,
0.5723617672920227,
-0.6918460130691528,
-0.5065100789070129,
-0.7634484767913818,
0.2505335509777069,
1.8708372116088867,
-0.3780439496040344,
1.559182047843933,
-0.2918817698955536,
-1.5229684114456177,
-1.5686920881271362,
0.7689704298973083,
0.47554242610931396,
-0.8484501838684082,
0.029258806258440018,
-0.564808189868927,
0.2271805703639984,
-0.05962986499071121,
1.1464054584503174,
1.2050323486328125,
0.7375795245170593,
-0.3522105813026428,
-0.826939046382904,
0.2508840560913086,
-0.28935179114341736,
-0.6253093481063843,
-1.8422707319259644,
-0.2862360179424286,
0.27406784892082214,
0.6334377527236938,
-1.2817248106002808,
1.8537490367889404,
0.9089974164962769,
2.056363821029663,
0.9041198492050171,
-0.415313184261322,
1.4857791662216187,
-0.0342269204556942,
1.8782752752304077,
-0.48116374015808105,
0.5106477737426758,
-0.3964135944843292,
-1.1601264476776123,
0.8672345876693726,
-0.3940982222557068,
-1.8959598541259766,
-0.8608563542366028,
-0.7980331778526306,
-0.22582821547985077,
-0.7484488487243652,
0.8055219650268555,
-0.3604055643081665,
-1.509078860282898,
0.008718765340745449,
-0.719476580619812,
0.18448418378829956,
-1.1913213729858398,
0.16268905997276306,
0.7594829797744751,
-0.6747019290924072,
-0.13617956638336182,
-0.28200116753578186,
-1.245026707649231,
-0.6123893857002258,
0.3759815990924835,
2.0200257301330566,
-0.5465085506439209,
0.9748766422271729,
1.0371744632720947,
-0.7623412013053894,
0.2306421399116516,
0.1557694971561432,
-0.36325255036354065,
0.7571049332618713,
-1.158190131187439,
-0.4440194368362427,
1.212975025177002,
-0.30805280804634094,
-0.788978099822998,
1.4680182933807373,
0.891981303691864,
-1.1376667022705078,
-0.2673887610435486,
-0.21643191576004028,
-0.8491933941841125,
-0.05955918878316879,
-1.44672429561615,
-0.221273273229599,
0.33470478653907776,
-1.5051249265670776,
-0.3333503007888794,
-0.1805088073015213,
1.3572182655334473,
-0.24072076380252838,
1.5504595041275024,
-0.2636655569076538,
-0.14713455736637115,
-0.25665101408958435,
-0.5736295580863953,
0.20112507045269012,
-0.20950454473495483,
-0.557771623134613,
0.1990865170955658,
-0.8666573762893677,
0.25219443440437317,
1.5279951095581055,
0.38242292404174805,
0.07421141117811203,
0.5088844895362854,
1.138043999671936,
0.3967205286026001,
-0.0736861452460289,
-0.8364737629890442,
-1.539739966392517,
1.924851655960083,
-1.4135587215423584,
1.9194799661636353,
0.834851086139679,
-0.11643913388252258,
-1.7546993494033813,
-1.8502898216247559,
1.2259966135025024,
1.0508296489715576,
2.404021739959717,
0.4328385591506958,
0.4023718535900116,
-0.7703365683555603,
-0.8533528447151184,
0.29219678044319153,
-0.965185284614563,
-0.6305404901504517,
0.13312727212905884,
2.373051881790161,
1.8242360353469849,
-0.6005220413208008,
-0.31343740224838257,
-0.7779904007911682,
1.3041229248046875,
-0.2335912138223648,
0.2812635600566864,
2.0802063941955566,
-0.27767837047576904,
-0.9682127237319946,
1.3124414682388306,
-2.5277116298675537,
0.3319704532623291,
2.1564149856567383,
0.2795407772064209,
0.12462935596704483,
-1.447417974472046,
-0.6524596810340881,
-0.31870797276496887,
-0.48362210392951965,
-1.2408360242843628,
0.5560638308525085,
-0.2587689757347107,
-0.904797375202179,
-1.4228754043579102,
-0.03976500779390335,
-1.2145087718963623,
-1.8567488193511963,
0.34786027669906616,
2.03063702583313,
2.126957654953003,
-0.7794052362442017,
1.3515071868896484,
-0.2005816251039505,
-0.08693434298038483,
1.3325480222702026,
1.3706450462341309,
3.0764214992523193,
1.8238784074783325,
-1.262045979499817,
0.8157594799995422,
-0.2988782823085785,
-0.5437811017036438,
1.0939877033233643,
-1.1222131252288818,
1.0181809663772583,
-0.2190704196691513,
-1.205432653427124,
-1.2238047122955322,
1.1134672164916992,
0.5594494938850403,
-0.014438580721616745,
-0.5103616714477539,
1.2690863609313965,
0.1929546445608139,
1.3831114768981934,
0.5811321139335632,
-0.42453286051750183,
0.5761485695838928,
-0.34732699394226074,
-0.6470221281051636,
1.6897344589233398,
0.21496455371379852,
-1.5399293899536133,
-2.374584197998047,
-0.3296996057033539,
-1.0076063871383667,
-0.060522451996803284,
-0.628057062625885,
-1.073634147644043,
1.5239777565002441,
0.40238842368125916,
-1.2054709196090698,
-0.2483498454093933,
-0.26869168877601624,
-0.5310953855514526,
2.618159294128418,
-1.233527421951294,
-0.06215532869100571,
-0.9350777864456177,
-0.5205803513526917,
1.595126986503601,
-1.2269617319107056,
-0.26447150111198425,
-0.9841166138648987,
-0.6454684734344482,
-1.2373933792114258,
-0.39666205644607544,
0.07751557230949402,
-1.0071274042129517,
0.7530602216720581,
0.18159443140029907,
-1.1177599430084229,
-0.28104227781295776,
-0.833750307559967,
1.1230612993240356,
0.02678544446825981,
0.2113567441701889,
1.8227826356887817,
0.3273591995239258,
-0.47589999437332153,
0.7212732434272766,
1.2148128747940063,
0.625792384147644,
-0.6840793490409851,
0.003584550693631172,
-0.6807453036308289,
0.4071817398071289,
-1.4480971097946167,
0.17823638021945953,
-3.009629964828491,
0.7806179523468018,
-0.24576297402381897,
-0.20485293865203857,
-0.13637785613536835,
-1.2995145320892334,
1.116426706314087,
2.6072001457214355,
-1.1501755714416504,
0.42437198758125305,
0.48047971725463867,
1.0868033170700073,
-1.6030278205871582,
0.3231514096260071,
-0.5164470672607422,
2.0006027221679688,
0.15387560427188873,
1.1984833478927612,
-0.5328941941261292,
-2.1691477298736572,
0.5748136043548584,
-1.215888500213623,
-0.9534978866577148,
0.7522413730621338,
-0.8490758538246155,
0.37494581937789917,
-1.462006688117981,
-0.11315641552209854,
-0.958126962184906,
-1.264357089996338,
0.6786752939224243,
0.04983808472752571,
0.3292185068130493,
-0.538081705570221,
0.3426191210746765,
-2.1158618927001953,
-1.3931139707565308,
-0.1849859654903412,
-1.0291874408721924,
0.5769779086112976,
-0.5019438862800598,
0.6116104125976562,
0.03383902460336685,
0.12176743894815445,
0.19192659854888916,
1.4398787021636963,
3.3846027851104736,
0.0965014323592186,
0.11499433219432831,
-0.06340384483337402,
-1.1061080694198608,
1.5100911855697632,
0.8408690690994263,
-0.16397862136363983,
-0.581544816493988,
-0.9866629838943481,
1.2737329006195068,
2.0504775047302246,
1.149154782295227,
0.13565585017204285,
-0.7860920429229736,
-0.7634684443473816,
0.04057607799768448,
0.1799546778202057,
0.571452796459198,
0.9527946710586548,
-0.12476486712694168,
0.05774228274822235,
1.2719645500183105,
1.1935336589813232,
-0.24169623851776123,
0.33695274591445923,
-1.0269525051116943,
-0.3431297838687897,
0.35763317346572876,
0.13032861053943634,
0.043563731014728546,
0.5253087878227234,
-1.0302956104278564,
-0.3462083041667938,
-0.2572193145751953,
-0.8411364555358887,
-0.7589961290359497,
-0.39877307415008545,
-0.4289594888687134,
1.6058847904205322,
0.08056267350912094,
-0.5189400911331177,
0.12280067056417465,
-0.6287433505058289,
-0.13999588787555695,
-1.175663709640503,
0.1288880705833435,
-0.1265445351600647,
-0.07070747017860413,
-0.0901460349559784,
1.6504400968551636,
-0.9042749404907227,
-2.1937475204467773,
0.1788875162601471,
0.3447372317314148,
-0.3509947657585144,
0.2084036022424698,
1.7565001249313354,
0.5178892612457275,
1.3028572797775269,
1.2542335987091064,
1.0014809370040894,
-0.5679874420166016,
-1.202632188796997,
0.8280634880065918,
0.9047338962554932,
-1.3330631256103516,
0.9760868549346924,
-0.26018795371055603,
-0.5037516951560974,
0.6753920316696167,
1.2792179584503174,
0.41672003269195557,
-2.0478501319885254,
0.9695468544960022,
-0.8898391127586365,
0.7350292205810547,
0.6704995632171631,
0.779484748840332,
0.2751229405403137,
0.9146996736526489,
-1.2429479360580444,
-1.142295002937317,
-0.6411949396133423,
-0.7273725867271423,
1.8931045532226562,
-0.28363820910453796,
0.5743126273155212,
-0.13231240212917328,
-1.1194638013839722,
-0.1667376607656479,
0.8085223436355591,
0.33498242497444153,
-0.4303992986679077,
0.9467547535896301,
-0.6943365931510925,
-0.9195082187652588,
-1.2281121015548706,
-0.38063329458236694,
-1.085684895515442,
-0.8547648787498474,
1.0433968305587769,
0.7954462170600891,
0.5369207262992859,
2.012824058532715,
0.6017675399780273,
0.3927669823169708,
-2.6419670581817627,
0.8469818830490112,
0.2991735637187958,
-0.03489942103624344,
0.8881527185440063,
0.17071114480495453,
1.1897574663162231,
0.05917709320783615,
0.6132873296737671,
-2.3114092350006104,
2.201763868331909,
-0.11135678738355637,
0.6078150272369385,
0.04544023051857948,
-0.18280437588691711,
1.174048662185669,
0.6246331930160522,
0.5902448296546936,
-1.2313129901885986,
0.7536992430686951,
-0.544880747795105,
1.0463075637817383,
0.9239858388900757,
-0.9838756918907166,
0.1400853395462036,
1.4256713390350342,
0.5574058890342712,
-0.448438435792923,
-0.9710773825645447,
-0.7848336100578308,
0.9640083909034729,
1.7150853872299194,
0.02139570564031601,
0.026151388883590698,
0.8733381628990173,
0.5793540477752686,
-1.2294474840164185,
0.04853175953030586,
-0.6823433041572571,
-0.6110846400260925,
1.7453933954238892,
2.0270943641662598,
-0.10721582919359207,
-0.15320143103599548,
-0.755107045173645,
-1.2835867404937744,
0.6924282908439636,
-0.12459397315979004,
0.09133174270391464,
0.6314209699630737,
-0.7232581377029419,
1.116318941116333,
0.5222037434577942,
1.0171869993209839,
-0.06764176487922668,
0.271913081407547,
0.38472309708595276,
-0.39527660608291626,
-1.1484863758087158,
-0.3231704831123352,
-1.1017613410949707,
-2.658489465713501,
0.34685733914375305,
-0.24892984330654144,
-1.4850661754608154,
0.03359701856970787,
-1.0324543714523315,
0.9225965738296509,
-0.5962755680084229,
-1.155375361442566,
-1.3541228771209717,
0.3753742575645447,
-0.20267748832702637,
0.8954982757568359,
-1.713340163230896,
-0.24495305120944977,
1.2348734140396118,
0.8374533653259277,
-0.5699626803398132,
0.9494417905807495,
0.23402751982212067,
0.9309327006340027,
0.702449381351471,
-0.3443491756916046,
0.6388607025146484,
0.0028229886665940285,
-1.3402773141860962,
0.43573716282844543,
1.2488009929656982,
0.10395459830760956,
1.2766538858413696,
-0.3750639855861664,
0.1599494218826294,
0.4500780999660492,
-0.6929583549499512,
-0.5968225598335266,
-0.32280609011650085,
0.7325177788734436,
-0.05224720388650894,
-1.0670192241668701,
-0.16573765873908997,
-0.07971782982349396,
-0.35805320739746094,
0.19085991382598877,
-1.4326775074005127,
-0.3944891691207886,
-0.36127176880836487,
-0.41770118474960327,
-1.4119755029678345,
0.18363115191459656,
1.2475523948669434,
-0.8098419904708862,
-0.251977801322937,
0.33319345116615295,
0.3607912063598633,
0.6502254605293274,
0.5966920852661133,
-0.811745822429657,
-0.27067074179649353,
-0.35765498876571655,
-0.2861956059932709,
0.25736004114151,
1.2195042371749878,
-0.09546413272619247,
-0.9275662899017334,
0.6667647957801819,
-0.34441545605659485,
0.18670961260795593,
2.0433709621429443,
0.04265749081969261,
-0.6148337125778198,
0.32031434774398804,
-0.7433726191520691,
1.6719038486480713,
1.6920114755630493,
1.3044142723083496,
-0.10174921154975891,
-0.7765145897865295,
0.4845663905143738,
-0.28624072670936584,
-0.28453296422958374,
0.8988845944404602,
0.4211828410625458,
-0.27772650122642517,
-1.4533495903015137,
0.6137751340866089,
1.2434808015823364,
-0.7229658961296082,
-0.6841393113136292,
0.08874503523111343,
-0.9304520487785339,
1.2930048704147339,
0.5307133793830872,
0.3328261375427246,
0.26826241612434387,
1.5336912870407104,
0.7576741576194763,
-0.5005836486816406,
0.46963322162628174,
0.5664275884628296,
-0.23067612946033478,
-2.1264662742614746,
-0.9882438778877258,
0.31901055574417114,
-0.4015892446041107,
-1.5735833644866943,
1.3142725229263306,
-1.1282806396484375,
-1.0356262922286987,
0.5047031044960022,
0.10957236588001251,
1.3383150100708008,
0.3659301698207855,
1.7792121171951294,
2.139451503753662,
0.9220398664474487,
0.3502297103404999,
1.24476158618927,
-0.032467786222696304,
-0.4667391777038574,
1.8740711212158203,
-0.413799524307251,
0.4770118296146393,
1.0159499645233154,
-0.39044663310050964,
-1.1045576333999634,
-0.796872615814209,
-1.1170473098754883,
-0.5288434028625488,
1.2120996713638306,
0.07275950908660889,
-0.9987437725067139,
0.1829170286655426,
1.6610898971557617,
0.14316019415855408,
-0.11003976315259933,
0.6966744661331177,
0.4222261607646942,
-0.6696764826774597,
-0.04204030707478523,
-0.8510966300964355,
0.49482473731040955,
-0.09366198629140854,
-0.34627649188041687,
0.2365494668483734,
0.571919858455658,
1.3240939378738403,
-0.07457094639539719,
0.13654133677482605,
1.1063657999038696,
-1.42939031124115,
1.5794692039489746,
-0.5720154047012329,
0.3841182589530945,
-2.457467794418335,
1.3930193185806274,
-0.7584989070892334,
2.0121994018554688,
-2.4709503650665283,
0.43623101711273193,
-0.5728759765625,
-0.5286867022514343,
0.3115956485271454,
-0.4552401304244995,
0.03104911372065544,
-0.15826863050460815,
-0.8765381574630737,
-0.01094480138272047,
-0.7847449779510498,
0.6600971817970276,
1.230019211769104,
1.4295544624328613,
-1.1042423248291016,
-0.28871673345565796,
-1.7076796293258667,
-0.175613671541214,
-0.8514861464500427,
0.3580069839954376,
-1.9642564058303833,
-0.16853216290473938,
-2.056938409805298,
-2.2330920696258545,
-1.3227823972702026,
-0.8953500390052795,
0.9635237455368042,
0.20295093953609467,
-0.9547580480575562,
1.162502408027649,
-0.41318708658218384,
-1.7995156049728394,
1.2087737321853638,
-2.1989364624023438
] |
https://github.com/huggingface/datasets/issues/4721 | PyArrow Dataset error when calling `load_dataset` | > If you manage to end up with only one chunk per parquet file it should workaround this issue.
Yup, I did not encounter this bug when I was testing my script with a slice of <1000 samples for my dataset.
> Do you have a minimum reproducible example...
Not sure if I can get more minimal than the script I shared above. Are you asking for a sample json file?
Just generate a random manifest list, I can add that to the above script if that's what you mean?
| ## Describe the bug
I am fine tuning a wav2vec2 model following the script here using my own dataset: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
Loading my Audio dataset from the hub which was originally generated from disk results in the following PyArrow error:
```sh
File "/home/ubuntu/w2v2/run_speech_recognition_ctc.py", line 227, in main
raw_datasets = load_dataset(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/load.py", line 1679, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 1268, in _prepare_split
for key, table in logging.tqdm(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/packaged_modules/parquet/parquet.py", line 68, in _generate_tables
for batch_idx, record_batch in enumerate(
File "pyarrow/_parquet.pyx", line 1309, in iter_batches
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
```
## Steps to reproduce the bug
I created a dataset from a JSON lines manifest of `audio_filepath`, `text`, and `duration`.
When creating the dataset, I do something like this:
```python
import json
from datasets import Dataset, Audio
# manifest_lines is a list of dicts w/ "audio_filepath", "duration", and "text
for line in manifest_lines:
line = line.strip()
if line:
line_dict = json.loads(line)
manifest_dict["audio"].append(f"{root_path}/{line_dict['audio_filepath']}")
manifest_dict["duration"].append(line_dict["duration"])
manifest_dict["transcription"].append(line_dict["text"])
# Create a HF dataset
dataset = Dataset.from_dict(manifest_dict).cast_column(
"audio", Audio(sampling_rate=16_000),
)
# From the docs for saving to disk
# https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.save_to_disk
def read_audio_file(example):
with open(example["audio"]["path"], "rb") as f:
return {"audio": {"bytes": f.read()}}
dataset = dataset.map(read_audio_file, num_proc=70)
dataset.save_to_disk(f"/audio-data/hf/{artifact_name}")
dataset.push_to_hub(f"{org-name}/{artifact_name}", max_shard_size="5GB", private=True)
```
Then when I call `load_dataset()` in my training script, with the same dataset I generated above, and download from the huggingface hub I get the above stack trace.
I am able to load the dataset fine if I use `load_from_disk()`.
## Expected results
`load_dataset()` should behave just like `load_from_disk()` and not cause any errors.
## Actual results
See above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
I am using the `huggingface/transformers-pytorch-gpu:latest` image
- `datasets` version: 2.3.0
- Platform: Docker/Ubuntu 20.04
- Python version: 3.8
- PyArrow version: 8.0.0
| 617 | 90 | PyArrow Dataset error when calling `load_dataset`
## Describe the bug
I am fine tuning a wav2vec2 model following the script here using my own dataset: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
Loading my Audio dataset from the hub which was originally generated from disk results in the following PyArrow error:
```sh
File "/home/ubuntu/w2v2/run_speech_recognition_ctc.py", line 227, in main
raw_datasets = load_dataset(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/load.py", line 1679, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 1268, in _prepare_split
for key, table in logging.tqdm(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/packaged_modules/parquet/parquet.py", line 68, in _generate_tables
for batch_idx, record_batch in enumerate(
File "pyarrow/_parquet.pyx", line 1309, in iter_batches
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
```
## Steps to reproduce the bug
I created a dataset from a JSON lines manifest of `audio_filepath`, `text`, and `duration`.
When creating the dataset, I do something like this:
```python
import json
from datasets import Dataset, Audio
# manifest_lines is a list of dicts w/ "audio_filepath", "duration", and "text
for line in manifest_lines:
line = line.strip()
if line:
line_dict = json.loads(line)
manifest_dict["audio"].append(f"{root_path}/{line_dict['audio_filepath']}")
manifest_dict["duration"].append(line_dict["duration"])
manifest_dict["transcription"].append(line_dict["text"])
# Create a HF dataset
dataset = Dataset.from_dict(manifest_dict).cast_column(
"audio", Audio(sampling_rate=16_000),
)
# From the docs for saving to disk
# https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.save_to_disk
def read_audio_file(example):
with open(example["audio"]["path"], "rb") as f:
return {"audio": {"bytes": f.read()}}
dataset = dataset.map(read_audio_file, num_proc=70)
dataset.save_to_disk(f"/audio-data/hf/{artifact_name}")
dataset.push_to_hub(f"{org-name}/{artifact_name}", max_shard_size="5GB", private=True)
```
Then when I call `load_dataset()` in my training script, with the same dataset I generated above, and download from the huggingface hub I get the above stack trace.
I am able to load the dataset fine if I use `load_from_disk()`.
## Expected results
`load_dataset()` should behave just like `load_from_disk()` and not cause any errors.
## Actual results
See above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
I am using the `huggingface/transformers-pytorch-gpu:latest` image
- `datasets` version: 2.3.0
- Platform: Docker/Ubuntu 20.04
- Python version: 3.8
- PyArrow version: 8.0.0
> If you manage to end up with only one chunk per parquet file it should workaround this issue.
Yup, I did not encounter this bug when I was testing my script with a slice of <1000 samples for my dataset.
> Do you have a minimum reproducible example...
Not sure if I can get more minimal than the script I shared above. Are you asking for a sample json file?
Just generate a random manifest list, I can add that to the above script if that's what you mean?
| [
-1.236140489578247,
-0.8976573348045349,
-0.6514850854873657,
1.4673811197280884,
-0.1040658950805664,
-1.3017088174819946,
0.08813155442476273,
-1.0702898502349854,
1.4283608198165894,
-0.706923246383667,
0.23487603664398193,
-1.5778093338012695,
-0.13177281618118286,
-0.4798608422279358,
-0.6909095644950867,
-0.9149924516677856,
-0.37386012077331543,
-0.9450047016143799,
1.0732358694076538,
2.4859585762023926,
1.3437855243682861,
-1.3169407844543457,
2.77012300491333,
0.5935490131378174,
-0.30546051263809204,
-1.0445334911346436,
0.6253505945205688,
0.05660486966371536,
-1.2251733541488647,
-0.4492775797843933,
-0.8840377926826477,
-0.03945335000753403,
-0.509475827217102,
-0.2950077950954437,
0.13661883771419525,
0.5124212503433228,
-0.23761644959449768,
-0.2070501446723938,
-0.6800119280815125,
-0.7277126312255859,
0.5635502338409424,
-0.2698840796947479,
0.9317764639854431,
-0.3128589391708374,
1.7134037017822266,
-0.5680628418922424,
0.4158112108707428,
0.7151389122009277,
1.32896089553833,
0.11461077630519867,
0.15654490888118744,
0.19099727272987366,
0.3277711570262909,
0.014475599862635136,
0.6352052092552185,
1.2516472339630127,
0.5838130116462708,
0.48627763986587524,
0.595055341720581,
-2.1745660305023193,
1.2745894193649292,
-0.7960253953933716,
0.2382146716117859,
1.3075324296951294,
-0.800521969795227,
0.3244093656539917,
-1.7894388437271118,
-0.09470470994710922,
0.6302048563957214,
-2.2421000003814697,
0.24891585111618042,
-1.2367066144943237,
-0.5252504944801331,
0.8642247915267944,
0.3056314289569855,
-1.1792278289794922,
0.2730451822280884,
-0.6121072173118591,
1.1591918468475342,
0.5387254357337952,
1.0831654071807861,
-1.6211802959442139,
-0.055818118155002594,
-0.04716101288795471,
0.0684312954545021,
-1.2925509214401245,
-1.692375898361206,
0.5438826680183411,
0.5548874735832214,
0.6555864214897156,
-0.0894593819975853,
0.994619607925415,
-1.1008485555648804,
0.8483734130859375,
-1.0243197679519653,
-1.5370795726776123,
-1.3470582962036133,
-2.512362480163574,
-2.31207275390625,
0.8326904773712158,
-0.546074628829956,
-0.5049406290054321,
1.967134714126587,
-0.8869925141334534,
-1.746500015258789,
1.0286856889724731,
0.2784574031829834,
0.17456039786338806,
2.3570096492767334,
0.1566736400127411,
-0.806014358997345,
0.4505825340747833,
-0.6809267401695251,
0.8013843894004822,
-0.3394560217857361,
1.275979995727539,
0.5384684205055237,
-0.948277473449707,
1.5364559888839722,
-0.4326614439487457,
0.5723617672920227,
-0.6918460130691528,
-0.5065100789070129,
-0.7634484767913818,
0.2505335509777069,
1.8708372116088867,
-0.3780439496040344,
1.559182047843933,
-0.2918817698955536,
-1.5229684114456177,
-1.5686920881271362,
0.7689704298973083,
0.47554242610931396,
-0.8484501838684082,
0.029258806258440018,
-0.564808189868927,
0.2271805703639984,
-0.05962986499071121,
1.1464054584503174,
1.2050323486328125,
0.7375795245170593,
-0.3522105813026428,
-0.826939046382904,
0.2508840560913086,
-0.28935179114341736,
-0.6253093481063843,
-1.8422707319259644,
-0.2862360179424286,
0.27406784892082214,
0.6334377527236938,
-1.2817248106002808,
1.8537490367889404,
0.9089974164962769,
2.056363821029663,
0.9041198492050171,
-0.415313184261322,
1.4857791662216187,
-0.0342269204556942,
1.8782752752304077,
-0.48116374015808105,
0.5106477737426758,
-0.3964135944843292,
-1.1601264476776123,
0.8672345876693726,
-0.3940982222557068,
-1.8959598541259766,
-0.8608563542366028,
-0.7980331778526306,
-0.22582821547985077,
-0.7484488487243652,
0.8055219650268555,
-0.3604055643081665,
-1.509078860282898,
0.008718765340745449,
-0.719476580619812,
0.18448418378829956,
-1.1913213729858398,
0.16268905997276306,
0.7594829797744751,
-0.6747019290924072,
-0.13617956638336182,
-0.28200116753578186,
-1.245026707649231,
-0.6123893857002258,
0.3759815990924835,
2.0200257301330566,
-0.5465085506439209,
0.9748766422271729,
1.0371744632720947,
-0.7623412013053894,
0.2306421399116516,
0.1557694971561432,
-0.36325255036354065,
0.7571049332618713,
-1.158190131187439,
-0.4440194368362427,
1.212975025177002,
-0.30805280804634094,
-0.788978099822998,
1.4680182933807373,
0.891981303691864,
-1.1376667022705078,
-0.2673887610435486,
-0.21643191576004028,
-0.8491933941841125,
-0.05955918878316879,
-1.44672429561615,
-0.221273273229599,
0.33470478653907776,
-1.5051249265670776,
-0.3333503007888794,
-0.1805088073015213,
1.3572182655334473,
-0.24072076380252838,
1.5504595041275024,
-0.2636655569076538,
-0.14713455736637115,
-0.25665101408958435,
-0.5736295580863953,
0.20112507045269012,
-0.20950454473495483,
-0.557771623134613,
0.1990865170955658,
-0.8666573762893677,
0.25219443440437317,
1.5279951095581055,
0.38242292404174805,
0.07421141117811203,
0.5088844895362854,
1.138043999671936,
0.3967205286026001,
-0.0736861452460289,
-0.8364737629890442,
-1.539739966392517,
1.924851655960083,
-1.4135587215423584,
1.9194799661636353,
0.834851086139679,
-0.11643913388252258,
-1.7546993494033813,
-1.8502898216247559,
1.2259966135025024,
1.0508296489715576,
2.404021739959717,
0.4328385591506958,
0.4023718535900116,
-0.7703365683555603,
-0.8533528447151184,
0.29219678044319153,
-0.965185284614563,
-0.6305404901504517,
0.13312727212905884,
2.373051881790161,
1.8242360353469849,
-0.6005220413208008,
-0.31343740224838257,
-0.7779904007911682,
1.3041229248046875,
-0.2335912138223648,
0.2812635600566864,
2.0802063941955566,
-0.27767837047576904,
-0.9682127237319946,
1.3124414682388306,
-2.5277116298675537,
0.3319704532623291,
2.1564149856567383,
0.2795407772064209,
0.12462935596704483,
-1.447417974472046,
-0.6524596810340881,
-0.31870797276496887,
-0.48362210392951965,
-1.2408360242843628,
0.5560638308525085,
-0.2587689757347107,
-0.904797375202179,
-1.4228754043579102,
-0.03976500779390335,
-1.2145087718963623,
-1.8567488193511963,
0.34786027669906616,
2.03063702583313,
2.126957654953003,
-0.7794052362442017,
1.3515071868896484,
-0.2005816251039505,
-0.08693434298038483,
1.3325480222702026,
1.3706450462341309,
3.0764214992523193,
1.8238784074783325,
-1.262045979499817,
0.8157594799995422,
-0.2988782823085785,
-0.5437811017036438,
1.0939877033233643,
-1.1222131252288818,
1.0181809663772583,
-0.2190704196691513,
-1.205432653427124,
-1.2238047122955322,
1.1134672164916992,
0.5594494938850403,
-0.014438580721616745,
-0.5103616714477539,
1.2690863609313965,
0.1929546445608139,
1.3831114768981934,
0.5811321139335632,
-0.42453286051750183,
0.5761485695838928,
-0.34732699394226074,
-0.6470221281051636,
1.6897344589233398,
0.21496455371379852,
-1.5399293899536133,
-2.374584197998047,
-0.3296996057033539,
-1.0076063871383667,
-0.060522451996803284,
-0.628057062625885,
-1.073634147644043,
1.5239777565002441,
0.40238842368125916,
-1.2054709196090698,
-0.2483498454093933,
-0.26869168877601624,
-0.5310953855514526,
2.618159294128418,
-1.233527421951294,
-0.06215532869100571,
-0.9350777864456177,
-0.5205803513526917,
1.595126986503601,
-1.2269617319107056,
-0.26447150111198425,
-0.9841166138648987,
-0.6454684734344482,
-1.2373933792114258,
-0.39666205644607544,
0.07751557230949402,
-1.0071274042129517,
0.7530602216720581,
0.18159443140029907,
-1.1177599430084229,
-0.28104227781295776,
-0.833750307559967,
1.1230612993240356,
0.02678544446825981,
0.2113567441701889,
1.8227826356887817,
0.3273591995239258,
-0.47589999437332153,
0.7212732434272766,
1.2148128747940063,
0.625792384147644,
-0.6840793490409851,
0.003584550693631172,
-0.6807453036308289,
0.4071817398071289,
-1.4480971097946167,
0.17823638021945953,
-3.009629964828491,
0.7806179523468018,
-0.24576297402381897,
-0.20485293865203857,
-0.13637785613536835,
-1.2995145320892334,
1.116426706314087,
2.6072001457214355,
-1.1501755714416504,
0.42437198758125305,
0.48047971725463867,
1.0868033170700073,
-1.6030278205871582,
0.3231514096260071,
-0.5164470672607422,
2.0006027221679688,
0.15387560427188873,
1.1984833478927612,
-0.5328941941261292,
-2.1691477298736572,
0.5748136043548584,
-1.215888500213623,
-0.9534978866577148,
0.7522413730621338,
-0.8490758538246155,
0.37494581937789917,
-1.462006688117981,
-0.11315641552209854,
-0.958126962184906,
-1.264357089996338,
0.6786752939224243,
0.04983808472752571,
0.3292185068130493,
-0.538081705570221,
0.3426191210746765,
-2.1158618927001953,
-1.3931139707565308,
-0.1849859654903412,
-1.0291874408721924,
0.5769779086112976,
-0.5019438862800598,
0.6116104125976562,
0.03383902460336685,
0.12176743894815445,
0.19192659854888916,
1.4398787021636963,
3.3846027851104736,
0.0965014323592186,
0.11499433219432831,
-0.06340384483337402,
-1.1061080694198608,
1.5100911855697632,
0.8408690690994263,
-0.16397862136363983,
-0.581544816493988,
-0.9866629838943481,
1.2737329006195068,
2.0504775047302246,
1.149154782295227,
0.13565585017204285,
-0.7860920429229736,
-0.7634684443473816,
0.04057607799768448,
0.1799546778202057,
0.571452796459198,
0.9527946710586548,
-0.12476486712694168,
0.05774228274822235,
1.2719645500183105,
1.1935336589813232,
-0.24169623851776123,
0.33695274591445923,
-1.0269525051116943,
-0.3431297838687897,
0.35763317346572876,
0.13032861053943634,
0.043563731014728546,
0.5253087878227234,
-1.0302956104278564,
-0.3462083041667938,
-0.2572193145751953,
-0.8411364555358887,
-0.7589961290359497,
-0.39877307415008545,
-0.4289594888687134,
1.6058847904205322,
0.08056267350912094,
-0.5189400911331177,
0.12280067056417465,
-0.6287433505058289,
-0.13999588787555695,
-1.175663709640503,
0.1288880705833435,
-0.1265445351600647,
-0.07070747017860413,
-0.0901460349559784,
1.6504400968551636,
-0.9042749404907227,
-2.1937475204467773,
0.1788875162601471,
0.3447372317314148,
-0.3509947657585144,
0.2084036022424698,
1.7565001249313354,
0.5178892612457275,
1.3028572797775269,
1.2542335987091064,
1.0014809370040894,
-0.5679874420166016,
-1.202632188796997,
0.8280634880065918,
0.9047338962554932,
-1.3330631256103516,
0.9760868549346924,
-0.26018795371055603,
-0.5037516951560974,
0.6753920316696167,
1.2792179584503174,
0.41672003269195557,
-2.0478501319885254,
0.9695468544960022,
-0.8898391127586365,
0.7350292205810547,
0.6704995632171631,
0.779484748840332,
0.2751229405403137,
0.9146996736526489,
-1.2429479360580444,
-1.142295002937317,
-0.6411949396133423,
-0.7273725867271423,
1.8931045532226562,
-0.28363820910453796,
0.5743126273155212,
-0.13231240212917328,
-1.1194638013839722,
-0.1667376607656479,
0.8085223436355591,
0.33498242497444153,
-0.4303992986679077,
0.9467547535896301,
-0.6943365931510925,
-0.9195082187652588,
-1.2281121015548706,
-0.38063329458236694,
-1.085684895515442,
-0.8547648787498474,
1.0433968305587769,
0.7954462170600891,
0.5369207262992859,
2.012824058532715,
0.6017675399780273,
0.3927669823169708,
-2.6419670581817627,
0.8469818830490112,
0.2991735637187958,
-0.03489942103624344,
0.8881527185440063,
0.17071114480495453,
1.1897574663162231,
0.05917709320783615,
0.6132873296737671,
-2.3114092350006104,
2.201763868331909,
-0.11135678738355637,
0.6078150272369385,
0.04544023051857948,
-0.18280437588691711,
1.174048662185669,
0.6246331930160522,
0.5902448296546936,
-1.2313129901885986,
0.7536992430686951,
-0.544880747795105,
1.0463075637817383,
0.9239858388900757,
-0.9838756918907166,
0.1400853395462036,
1.4256713390350342,
0.5574058890342712,
-0.448438435792923,
-0.9710773825645447,
-0.7848336100578308,
0.9640083909034729,
1.7150853872299194,
0.02139570564031601,
0.026151388883590698,
0.8733381628990173,
0.5793540477752686,
-1.2294474840164185,
0.04853175953030586,
-0.6823433041572571,
-0.6110846400260925,
1.7453933954238892,
2.0270943641662598,
-0.10721582919359207,
-0.15320143103599548,
-0.755107045173645,
-1.2835867404937744,
0.6924282908439636,
-0.12459397315979004,
0.09133174270391464,
0.6314209699630737,
-0.7232581377029419,
1.116318941116333,
0.5222037434577942,
1.0171869993209839,
-0.06764176487922668,
0.271913081407547,
0.38472309708595276,
-0.39527660608291626,
-1.1484863758087158,
-0.3231704831123352,
-1.1017613410949707,
-2.658489465713501,
0.34685733914375305,
-0.24892984330654144,
-1.4850661754608154,
0.03359701856970787,
-1.0324543714523315,
0.9225965738296509,
-0.5962755680084229,
-1.155375361442566,
-1.3541228771209717,
0.3753742575645447,
-0.20267748832702637,
0.8954982757568359,
-1.713340163230896,
-0.24495305120944977,
1.2348734140396118,
0.8374533653259277,
-0.5699626803398132,
0.9494417905807495,
0.23402751982212067,
0.9309327006340027,
0.702449381351471,
-0.3443491756916046,
0.6388607025146484,
0.0028229886665940285,
-1.3402773141860962,
0.43573716282844543,
1.2488009929656982,
0.10395459830760956,
1.2766538858413696,
-0.3750639855861664,
0.1599494218826294,
0.4500780999660492,
-0.6929583549499512,
-0.5968225598335266,
-0.32280609011650085,
0.7325177788734436,
-0.05224720388650894,
-1.0670192241668701,
-0.16573765873908997,
-0.07971782982349396,
-0.35805320739746094,
0.19085991382598877,
-1.4326775074005127,
-0.3944891691207886,
-0.36127176880836487,
-0.41770118474960327,
-1.4119755029678345,
0.18363115191459656,
1.2475523948669434,
-0.8098419904708862,
-0.251977801322937,
0.33319345116615295,
0.3607912063598633,
0.6502254605293274,
0.5966920852661133,
-0.811745822429657,
-0.27067074179649353,
-0.35765498876571655,
-0.2861956059932709,
0.25736004114151,
1.2195042371749878,
-0.09546413272619247,
-0.9275662899017334,
0.6667647957801819,
-0.34441545605659485,
0.18670961260795593,
2.0433709621429443,
0.04265749081969261,
-0.6148337125778198,
0.32031434774398804,
-0.7433726191520691,
1.6719038486480713,
1.6920114755630493,
1.3044142723083496,
-0.10174921154975891,
-0.7765145897865295,
0.4845663905143738,
-0.28624072670936584,
-0.28453296422958374,
0.8988845944404602,
0.4211828410625458,
-0.27772650122642517,
-1.4533495903015137,
0.6137751340866089,
1.2434808015823364,
-0.7229658961296082,
-0.6841393113136292,
0.08874503523111343,
-0.9304520487785339,
1.2930048704147339,
0.5307133793830872,
0.3328261375427246,
0.26826241612434387,
1.5336912870407104,
0.7576741576194763,
-0.5005836486816406,
0.46963322162628174,
0.5664275884628296,
-0.23067612946033478,
-2.1264662742614746,
-0.9882438778877258,
0.31901055574417114,
-0.4015892446041107,
-1.5735833644866943,
1.3142725229263306,
-1.1282806396484375,
-1.0356262922286987,
0.5047031044960022,
0.10957236588001251,
1.3383150100708008,
0.3659301698207855,
1.7792121171951294,
2.139451503753662,
0.9220398664474487,
0.3502297103404999,
1.24476158618927,
-0.032467786222696304,
-0.4667391777038574,
1.8740711212158203,
-0.413799524307251,
0.4770118296146393,
1.0159499645233154,
-0.39044663310050964,
-1.1045576333999634,
-0.796872615814209,
-1.1170473098754883,
-0.5288434028625488,
1.2120996713638306,
0.07275950908660889,
-0.9987437725067139,
0.1829170286655426,
1.6610898971557617,
0.14316019415855408,
-0.11003976315259933,
0.6966744661331177,
0.4222261607646942,
-0.6696764826774597,
-0.04204030707478523,
-0.8510966300964355,
0.49482473731040955,
-0.09366198629140854,
-0.34627649188041687,
0.2365494668483734,
0.571919858455658,
1.3240939378738403,
-0.07457094639539719,
0.13654133677482605,
1.1063657999038696,
-1.42939031124115,
1.5794692039489746,
-0.5720154047012329,
0.3841182589530945,
-2.457467794418335,
1.3930193185806274,
-0.7584989070892334,
2.0121994018554688,
-2.4709503650665283,
0.43623101711273193,
-0.5728759765625,
-0.5286867022514343,
0.3115956485271454,
-0.4552401304244995,
0.03104911372065544,
-0.15826863050460815,
-0.8765381574630737,
-0.01094480138272047,
-0.7847449779510498,
0.6600971817970276,
1.230019211769104,
1.4295544624328613,
-1.1042423248291016,
-0.28871673345565796,
-1.7076796293258667,
-0.175613671541214,
-0.8514861464500427,
0.3580069839954376,
-1.9642564058303833,
-0.16853216290473938,
-2.056938409805298,
-2.2330920696258545,
-1.3227823972702026,
-0.8953500390052795,
0.9635237455368042,
0.20295093953609467,
-0.9547580480575562,
1.162502408027649,
-0.41318708658218384,
-1.7995156049728394,
1.2087737321853638,
-2.1989364624023438
] |
https://github.com/huggingface/datasets/issues/4721 | PyArrow Dataset error when calling `load_dataset` | Actually this is probably linked to this open issue: https://issues.apache.org/jira/browse/ARROW-5030.
setting `max_shard_size="2GB"` should do the job (or `max_shard_size="1GB"` if you want to be on the safe side, especially given that there can be some variance in the shard sizes if the dataset is not evenly distributed) | ## Describe the bug
I am fine tuning a wav2vec2 model following the script here using my own dataset: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
Loading my Audio dataset from the hub which was originally generated from disk results in the following PyArrow error:
```sh
File "/home/ubuntu/w2v2/run_speech_recognition_ctc.py", line 227, in main
raw_datasets = load_dataset(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/load.py", line 1679, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 1268, in _prepare_split
for key, table in logging.tqdm(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/packaged_modules/parquet/parquet.py", line 68, in _generate_tables
for batch_idx, record_batch in enumerate(
File "pyarrow/_parquet.pyx", line 1309, in iter_batches
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
```
## Steps to reproduce the bug
I created a dataset from a JSON lines manifest of `audio_filepath`, `text`, and `duration`.
When creating the dataset, I do something like this:
```python
import json
from datasets import Dataset, Audio
# manifest_lines is a list of dicts w/ "audio_filepath", "duration", and "text
for line in manifest_lines:
line = line.strip()
if line:
line_dict = json.loads(line)
manifest_dict["audio"].append(f"{root_path}/{line_dict['audio_filepath']}")
manifest_dict["duration"].append(line_dict["duration"])
manifest_dict["transcription"].append(line_dict["text"])
# Create a HF dataset
dataset = Dataset.from_dict(manifest_dict).cast_column(
"audio", Audio(sampling_rate=16_000),
)
# From the docs for saving to disk
# https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.save_to_disk
def read_audio_file(example):
with open(example["audio"]["path"], "rb") as f:
return {"audio": {"bytes": f.read()}}
dataset = dataset.map(read_audio_file, num_proc=70)
dataset.save_to_disk(f"/audio-data/hf/{artifact_name}")
dataset.push_to_hub(f"{org-name}/{artifact_name}", max_shard_size="5GB", private=True)
```
Then when I call `load_dataset()` in my training script, with the same dataset I generated above, and download from the huggingface hub I get the above stack trace.
I am able to load the dataset fine if I use `load_from_disk()`.
## Expected results
`load_dataset()` should behave just like `load_from_disk()` and not cause any errors.
## Actual results
See above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
I am using the `huggingface/transformers-pytorch-gpu:latest` image
- `datasets` version: 2.3.0
- Platform: Docker/Ubuntu 20.04
- Python version: 3.8
- PyArrow version: 8.0.0
| 617 | 46 | PyArrow Dataset error when calling `load_dataset`
## Describe the bug
I am fine tuning a wav2vec2 model following the script here using my own dataset: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
Loading my Audio dataset from the hub which was originally generated from disk results in the following PyArrow error:
```sh
File "/home/ubuntu/w2v2/run_speech_recognition_ctc.py", line 227, in main
raw_datasets = load_dataset(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/load.py", line 1679, in load_dataset
builder_instance.download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/builder.py", line 1268, in _prepare_split
for key, table in logging.tqdm(
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/home/ubuntu/.virtualenvs/meval/lib/python3.8/site-packages/datasets/packaged_modules/parquet/parquet.py", line 68, in _generate_tables
for batch_idx, record_batch in enumerate(
File "pyarrow/_parquet.pyx", line 1309, in iter_batches
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
```
## Steps to reproduce the bug
I created a dataset from a JSON lines manifest of `audio_filepath`, `text`, and `duration`.
When creating the dataset, I do something like this:
```python
import json
from datasets import Dataset, Audio
# manifest_lines is a list of dicts w/ "audio_filepath", "duration", and "text
for line in manifest_lines:
line = line.strip()
if line:
line_dict = json.loads(line)
manifest_dict["audio"].append(f"{root_path}/{line_dict['audio_filepath']}")
manifest_dict["duration"].append(line_dict["duration"])
manifest_dict["transcription"].append(line_dict["text"])
# Create a HF dataset
dataset = Dataset.from_dict(manifest_dict).cast_column(
"audio", Audio(sampling_rate=16_000),
)
# From the docs for saving to disk
# https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.save_to_disk
def read_audio_file(example):
with open(example["audio"]["path"], "rb") as f:
return {"audio": {"bytes": f.read()}}
dataset = dataset.map(read_audio_file, num_proc=70)
dataset.save_to_disk(f"/audio-data/hf/{artifact_name}")
dataset.push_to_hub(f"{org-name}/{artifact_name}", max_shard_size="5GB", private=True)
```
Then when I call `load_dataset()` in my training script, with the same dataset I generated above, and download from the huggingface hub I get the above stack trace.
I am able to load the dataset fine if I use `load_from_disk()`.
## Expected results
`load_dataset()` should behave just like `load_from_disk()` and not cause any errors.
## Actual results
See above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
I am using the `huggingface/transformers-pytorch-gpu:latest` image
- `datasets` version: 2.3.0
- Platform: Docker/Ubuntu 20.04
- Python version: 3.8
- PyArrow version: 8.0.0
Actually this is probably linked to this open issue: https://issues.apache.org/jira/browse/ARROW-5030.
setting `max_shard_size="2GB"` should do the job (or `max_shard_size="1GB"` if you want to be on the safe side, especially given that there can be some variance in the shard sizes if the dataset is not evenly distributed) | [
-1.236140489578247,
-0.8976573348045349,
-0.6514850854873657,
1.4673811197280884,
-0.1040658950805664,
-1.3017088174819946,
0.08813155442476273,
-1.0702898502349854,
1.4283608198165894,
-0.706923246383667,
0.23487603664398193,
-1.5778093338012695,
-0.13177281618118286,
-0.4798608422279358,
-0.6909095644950867,
-0.9149924516677856,
-0.37386012077331543,
-0.9450047016143799,
1.0732358694076538,
2.4859585762023926,
1.3437855243682861,
-1.3169407844543457,
2.77012300491333,
0.5935490131378174,
-0.30546051263809204,
-1.0445334911346436,
0.6253505945205688,
0.05660486966371536,
-1.2251733541488647,
-0.4492775797843933,
-0.8840377926826477,
-0.03945335000753403,
-0.509475827217102,
-0.2950077950954437,
0.13661883771419525,
0.5124212503433228,
-0.23761644959449768,
-0.2070501446723938,
-0.6800119280815125,
-0.7277126312255859,
0.5635502338409424,
-0.2698840796947479,
0.9317764639854431,
-0.3128589391708374,
1.7134037017822266,
-0.5680628418922424,
0.4158112108707428,
0.7151389122009277,
1.32896089553833,
0.11461077630519867,
0.15654490888118744,
0.19099727272987366,
0.3277711570262909,
0.014475599862635136,
0.6352052092552185,
1.2516472339630127,
0.5838130116462708,
0.48627763986587524,
0.595055341720581,
-2.1745660305023193,
1.2745894193649292,
-0.7960253953933716,
0.2382146716117859,
1.3075324296951294,
-0.800521969795227,
0.3244093656539917,
-1.7894388437271118,
-0.09470470994710922,
0.6302048563957214,
-2.2421000003814697,
0.24891585111618042,
-1.2367066144943237,
-0.5252504944801331,
0.8642247915267944,
0.3056314289569855,
-1.1792278289794922,
0.2730451822280884,
-0.6121072173118591,
1.1591918468475342,
0.5387254357337952,
1.0831654071807861,
-1.6211802959442139,
-0.055818118155002594,
-0.04716101288795471,
0.0684312954545021,
-1.2925509214401245,
-1.692375898361206,
0.5438826680183411,
0.5548874735832214,
0.6555864214897156,
-0.0894593819975853,
0.994619607925415,
-1.1008485555648804,
0.8483734130859375,
-1.0243197679519653,
-1.5370795726776123,
-1.3470582962036133,
-2.512362480163574,
-2.31207275390625,
0.8326904773712158,
-0.546074628829956,
-0.5049406290054321,
1.967134714126587,
-0.8869925141334534,
-1.746500015258789,
1.0286856889724731,
0.2784574031829834,
0.17456039786338806,
2.3570096492767334,
0.1566736400127411,
-0.806014358997345,
0.4505825340747833,
-0.6809267401695251,
0.8013843894004822,
-0.3394560217857361,
1.275979995727539,
0.5384684205055237,
-0.948277473449707,
1.5364559888839722,
-0.4326614439487457,
0.5723617672920227,
-0.6918460130691528,
-0.5065100789070129,
-0.7634484767913818,
0.2505335509777069,
1.8708372116088867,
-0.3780439496040344,
1.559182047843933,
-0.2918817698955536,
-1.5229684114456177,
-1.5686920881271362,
0.7689704298973083,
0.47554242610931396,
-0.8484501838684082,
0.029258806258440018,
-0.564808189868927,
0.2271805703639984,
-0.05962986499071121,
1.1464054584503174,
1.2050323486328125,
0.7375795245170593,
-0.3522105813026428,
-0.826939046382904,
0.2508840560913086,
-0.28935179114341736,
-0.6253093481063843,
-1.8422707319259644,
-0.2862360179424286,
0.27406784892082214,
0.6334377527236938,
-1.2817248106002808,
1.8537490367889404,
0.9089974164962769,
2.056363821029663,
0.9041198492050171,
-0.415313184261322,
1.4857791662216187,
-0.0342269204556942,
1.8782752752304077,
-0.48116374015808105,
0.5106477737426758,
-0.3964135944843292,
-1.1601264476776123,
0.8672345876693726,
-0.3940982222557068,
-1.8959598541259766,
-0.8608563542366028,
-0.7980331778526306,
-0.22582821547985077,
-0.7484488487243652,
0.8055219650268555,
-0.3604055643081665,
-1.509078860282898,
0.008718765340745449,
-0.719476580619812,
0.18448418378829956,
-1.1913213729858398,
0.16268905997276306,
0.7594829797744751,
-0.6747019290924072,
-0.13617956638336182,
-0.28200116753578186,
-1.245026707649231,
-0.6123893857002258,
0.3759815990924835,
2.0200257301330566,
-0.5465085506439209,
0.9748766422271729,
1.0371744632720947,
-0.7623412013053894,
0.2306421399116516,
0.1557694971561432,
-0.36325255036354065,
0.7571049332618713,
-1.158190131187439,
-0.4440194368362427,
1.212975025177002,
-0.30805280804634094,
-0.788978099822998,
1.4680182933807373,
0.891981303691864,
-1.1376667022705078,
-0.2673887610435486,
-0.21643191576004028,
-0.8491933941841125,
-0.05955918878316879,
-1.44672429561615,
-0.221273273229599,
0.33470478653907776,
-1.5051249265670776,
-0.3333503007888794,
-0.1805088073015213,
1.3572182655334473,
-0.24072076380252838,
1.5504595041275024,
-0.2636655569076538,
-0.14713455736637115,
-0.25665101408958435,
-0.5736295580863953,
0.20112507045269012,
-0.20950454473495483,
-0.557771623134613,
0.1990865170955658,
-0.8666573762893677,
0.25219443440437317,
1.5279951095581055,
0.38242292404174805,
0.07421141117811203,
0.5088844895362854,
1.138043999671936,
0.3967205286026001,
-0.0736861452460289,
-0.8364737629890442,
-1.539739966392517,
1.924851655960083,
-1.4135587215423584,
1.9194799661636353,
0.834851086139679,
-0.11643913388252258,
-1.7546993494033813,
-1.8502898216247559,
1.2259966135025024,
1.0508296489715576,
2.404021739959717,
0.4328385591506958,
0.4023718535900116,
-0.7703365683555603,
-0.8533528447151184,
0.29219678044319153,
-0.965185284614563,
-0.6305404901504517,
0.13312727212905884,
2.373051881790161,
1.8242360353469849,
-0.6005220413208008,
-0.31343740224838257,
-0.7779904007911682,
1.3041229248046875,
-0.2335912138223648,
0.2812635600566864,
2.0802063941955566,
-0.27767837047576904,
-0.9682127237319946,
1.3124414682388306,
-2.5277116298675537,
0.3319704532623291,
2.1564149856567383,
0.2795407772064209,
0.12462935596704483,
-1.447417974472046,
-0.6524596810340881,
-0.31870797276496887,
-0.48362210392951965,
-1.2408360242843628,
0.5560638308525085,
-0.2587689757347107,
-0.904797375202179,
-1.4228754043579102,
-0.03976500779390335,
-1.2145087718963623,
-1.8567488193511963,
0.34786027669906616,
2.03063702583313,
2.126957654953003,
-0.7794052362442017,
1.3515071868896484,
-0.2005816251039505,
-0.08693434298038483,
1.3325480222702026,
1.3706450462341309,
3.0764214992523193,
1.8238784074783325,
-1.262045979499817,
0.8157594799995422,
-0.2988782823085785,
-0.5437811017036438,
1.0939877033233643,
-1.1222131252288818,
1.0181809663772583,
-0.2190704196691513,
-1.205432653427124,
-1.2238047122955322,
1.1134672164916992,
0.5594494938850403,
-0.014438580721616745,
-0.5103616714477539,
1.2690863609313965,
0.1929546445608139,
1.3831114768981934,
0.5811321139335632,
-0.42453286051750183,
0.5761485695838928,
-0.34732699394226074,
-0.6470221281051636,
1.6897344589233398,
0.21496455371379852,
-1.5399293899536133,
-2.374584197998047,
-0.3296996057033539,
-1.0076063871383667,
-0.060522451996803284,
-0.628057062625885,
-1.073634147644043,
1.5239777565002441,
0.40238842368125916,
-1.2054709196090698,
-0.2483498454093933,
-0.26869168877601624,
-0.5310953855514526,
2.618159294128418,
-1.233527421951294,
-0.06215532869100571,
-0.9350777864456177,
-0.5205803513526917,
1.595126986503601,
-1.2269617319107056,
-0.26447150111198425,
-0.9841166138648987,
-0.6454684734344482,
-1.2373933792114258,
-0.39666205644607544,
0.07751557230949402,
-1.0071274042129517,
0.7530602216720581,
0.18159443140029907,
-1.1177599430084229,
-0.28104227781295776,
-0.833750307559967,
1.1230612993240356,
0.02678544446825981,
0.2113567441701889,
1.8227826356887817,
0.3273591995239258,
-0.47589999437332153,
0.7212732434272766,
1.2148128747940063,
0.625792384147644,
-0.6840793490409851,
0.003584550693631172,
-0.6807453036308289,
0.4071817398071289,
-1.4480971097946167,
0.17823638021945953,
-3.009629964828491,
0.7806179523468018,
-0.24576297402381897,
-0.20485293865203857,
-0.13637785613536835,
-1.2995145320892334,
1.116426706314087,
2.6072001457214355,
-1.1501755714416504,
0.42437198758125305,
0.48047971725463867,
1.0868033170700073,
-1.6030278205871582,
0.3231514096260071,
-0.5164470672607422,
2.0006027221679688,
0.15387560427188873,
1.1984833478927612,
-0.5328941941261292,
-2.1691477298736572,
0.5748136043548584,
-1.215888500213623,
-0.9534978866577148,
0.7522413730621338,
-0.8490758538246155,
0.37494581937789917,
-1.462006688117981,
-0.11315641552209854,
-0.958126962184906,
-1.264357089996338,
0.6786752939224243,
0.04983808472752571,
0.3292185068130493,
-0.538081705570221,
0.3426191210746765,
-2.1158618927001953,
-1.3931139707565308,
-0.1849859654903412,
-1.0291874408721924,
0.5769779086112976,
-0.5019438862800598,
0.6116104125976562,
0.03383902460336685,
0.12176743894815445,
0.19192659854888916,
1.4398787021636963,
3.3846027851104736,
0.0965014323592186,
0.11499433219432831,
-0.06340384483337402,
-1.1061080694198608,
1.5100911855697632,
0.8408690690994263,
-0.16397862136363983,
-0.581544816493988,
-0.9866629838943481,
1.2737329006195068,
2.0504775047302246,
1.149154782295227,
0.13565585017204285,
-0.7860920429229736,
-0.7634684443473816,
0.04057607799768448,
0.1799546778202057,
0.571452796459198,
0.9527946710586548,
-0.12476486712694168,
0.05774228274822235,
1.2719645500183105,
1.1935336589813232,
-0.24169623851776123,
0.33695274591445923,
-1.0269525051116943,
-0.3431297838687897,
0.35763317346572876,
0.13032861053943634,
0.043563731014728546,
0.5253087878227234,
-1.0302956104278564,
-0.3462083041667938,
-0.2572193145751953,
-0.8411364555358887,
-0.7589961290359497,
-0.39877307415008545,
-0.4289594888687134,
1.6058847904205322,
0.08056267350912094,
-0.5189400911331177,
0.12280067056417465,
-0.6287433505058289,
-0.13999588787555695,
-1.175663709640503,
0.1288880705833435,
-0.1265445351600647,
-0.07070747017860413,
-0.0901460349559784,
1.6504400968551636,
-0.9042749404907227,
-2.1937475204467773,
0.1788875162601471,
0.3447372317314148,
-0.3509947657585144,
0.2084036022424698,
1.7565001249313354,
0.5178892612457275,
1.3028572797775269,
1.2542335987091064,
1.0014809370040894,
-0.5679874420166016,
-1.202632188796997,
0.8280634880065918,
0.9047338962554932,
-1.3330631256103516,
0.9760868549346924,
-0.26018795371055603,
-0.5037516951560974,
0.6753920316696167,
1.2792179584503174,
0.41672003269195557,
-2.0478501319885254,
0.9695468544960022,
-0.8898391127586365,
0.7350292205810547,
0.6704995632171631,
0.779484748840332,
0.2751229405403137,
0.9146996736526489,
-1.2429479360580444,
-1.142295002937317,
-0.6411949396133423,
-0.7273725867271423,
1.8931045532226562,
-0.28363820910453796,
0.5743126273155212,
-0.13231240212917328,
-1.1194638013839722,
-0.1667376607656479,
0.8085223436355591,
0.33498242497444153,
-0.4303992986679077,
0.9467547535896301,
-0.6943365931510925,
-0.9195082187652588,
-1.2281121015548706,
-0.38063329458236694,
-1.085684895515442,
-0.8547648787498474,
1.0433968305587769,
0.7954462170600891,
0.5369207262992859,
2.012824058532715,
0.6017675399780273,
0.3927669823169708,
-2.6419670581817627,
0.8469818830490112,
0.2991735637187958,
-0.03489942103624344,
0.8881527185440063,
0.17071114480495453,
1.1897574663162231,
0.05917709320783615,
0.6132873296737671,
-2.3114092350006104,
2.201763868331909,
-0.11135678738355637,
0.6078150272369385,
0.04544023051857948,
-0.18280437588691711,
1.174048662185669,
0.6246331930160522,
0.5902448296546936,
-1.2313129901885986,
0.7536992430686951,
-0.544880747795105,
1.0463075637817383,
0.9239858388900757,
-0.9838756918907166,
0.1400853395462036,
1.4256713390350342,
0.5574058890342712,
-0.448438435792923,
-0.9710773825645447,
-0.7848336100578308,
0.9640083909034729,
1.7150853872299194,
0.02139570564031601,
0.026151388883590698,
0.8733381628990173,
0.5793540477752686,
-1.2294474840164185,
0.04853175953030586,
-0.6823433041572571,
-0.6110846400260925,
1.7453933954238892,
2.0270943641662598,
-0.10721582919359207,
-0.15320143103599548,
-0.755107045173645,
-1.2835867404937744,
0.6924282908439636,
-0.12459397315979004,
0.09133174270391464,
0.6314209699630737,
-0.7232581377029419,
1.116318941116333,
0.5222037434577942,
1.0171869993209839,
-0.06764176487922668,
0.271913081407547,
0.38472309708595276,
-0.39527660608291626,
-1.1484863758087158,
-0.3231704831123352,
-1.1017613410949707,
-2.658489465713501,
0.34685733914375305,
-0.24892984330654144,
-1.4850661754608154,
0.03359701856970787,
-1.0324543714523315,
0.9225965738296509,
-0.5962755680084229,
-1.155375361442566,
-1.3541228771209717,
0.3753742575645447,
-0.20267748832702637,
0.8954982757568359,
-1.713340163230896,
-0.24495305120944977,
1.2348734140396118,
0.8374533653259277,
-0.5699626803398132,
0.9494417905807495,
0.23402751982212067,
0.9309327006340027,
0.702449381351471,
-0.3443491756916046,
0.6388607025146484,
0.0028229886665940285,
-1.3402773141860962,
0.43573716282844543,
1.2488009929656982,
0.10395459830760956,
1.2766538858413696,
-0.3750639855861664,
0.1599494218826294,
0.4500780999660492,
-0.6929583549499512,
-0.5968225598335266,
-0.32280609011650085,
0.7325177788734436,
-0.05224720388650894,
-1.0670192241668701,
-0.16573765873908997,
-0.07971782982349396,
-0.35805320739746094,
0.19085991382598877,
-1.4326775074005127,
-0.3944891691207886,
-0.36127176880836487,
-0.41770118474960327,
-1.4119755029678345,
0.18363115191459656,
1.2475523948669434,
-0.8098419904708862,
-0.251977801322937,
0.33319345116615295,
0.3607912063598633,
0.6502254605293274,
0.5966920852661133,
-0.811745822429657,
-0.27067074179649353,
-0.35765498876571655,
-0.2861956059932709,
0.25736004114151,
1.2195042371749878,
-0.09546413272619247,
-0.9275662899017334,
0.6667647957801819,
-0.34441545605659485,
0.18670961260795593,
2.0433709621429443,
0.04265749081969261,
-0.6148337125778198,
0.32031434774398804,
-0.7433726191520691,
1.6719038486480713,
1.6920114755630493,
1.3044142723083496,
-0.10174921154975891,
-0.7765145897865295,
0.4845663905143738,
-0.28624072670936584,
-0.28453296422958374,
0.8988845944404602,
0.4211828410625458,
-0.27772650122642517,
-1.4533495903015137,
0.6137751340866089,
1.2434808015823364,
-0.7229658961296082,
-0.6841393113136292,
0.08874503523111343,
-0.9304520487785339,
1.2930048704147339,
0.5307133793830872,
0.3328261375427246,
0.26826241612434387,
1.5336912870407104,
0.7576741576194763,
-0.5005836486816406,
0.46963322162628174,
0.5664275884628296,
-0.23067612946033478,
-2.1264662742614746,
-0.9882438778877258,
0.31901055574417114,
-0.4015892446041107,
-1.5735833644866943,
1.3142725229263306,
-1.1282806396484375,
-1.0356262922286987,
0.5047031044960022,
0.10957236588001251,
1.3383150100708008,
0.3659301698207855,
1.7792121171951294,
2.139451503753662,
0.9220398664474487,
0.3502297103404999,
1.24476158618927,
-0.032467786222696304,
-0.4667391777038574,
1.8740711212158203,
-0.413799524307251,
0.4770118296146393,
1.0159499645233154,
-0.39044663310050964,
-1.1045576333999634,
-0.796872615814209,
-1.1170473098754883,
-0.5288434028625488,
1.2120996713638306,
0.07275950908660889,
-0.9987437725067139,
0.1829170286655426,
1.6610898971557617,
0.14316019415855408,
-0.11003976315259933,
0.6966744661331177,
0.4222261607646942,
-0.6696764826774597,
-0.04204030707478523,
-0.8510966300964355,
0.49482473731040955,
-0.09366198629140854,
-0.34627649188041687,
0.2365494668483734,
0.571919858455658,
1.3240939378738403,
-0.07457094639539719,
0.13654133677482605,
1.1063657999038696,
-1.42939031124115,
1.5794692039489746,
-0.5720154047012329,
0.3841182589530945,
-2.457467794418335,
1.3930193185806274,
-0.7584989070892334,
2.0121994018554688,
-2.4709503650665283,
0.43623101711273193,
-0.5728759765625,
-0.5286867022514343,
0.3115956485271454,
-0.4552401304244995,
0.03104911372065544,
-0.15826863050460815,
-0.8765381574630737,
-0.01094480138272047,
-0.7847449779510498,
0.6600971817970276,
1.230019211769104,
1.4295544624328613,
-1.1042423248291016,
-0.28871673345565796,
-1.7076796293258667,
-0.175613671541214,
-0.8514861464500427,
0.3580069839954376,
-1.9642564058303833,
-0.16853216290473938,
-2.056938409805298,
-2.2330920696258545,
-1.3227823972702026,
-0.8953500390052795,
0.9635237455368042,
0.20295093953609467,
-0.9547580480575562,
1.162502408027649,
-0.41318708658218384,
-1.7995156049728394,
1.2087737321853638,
-2.1989364624023438
] |
https://github.com/huggingface/datasets/issues/4720 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks | It seems like the list of splits could not be obtained:
```python
>>> from datasets import get_dataset_split_names
>>> get_dataset_split_names("shamikbose89/lancaster_newsbooks", "default")
Using custom data configuration default
Traceback (most recent call last):
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 354, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/shamikbose89--lancaster_newsbooks/2d1c63d269bf7b9342accce0a95960b1710ab4bc774248878bd80eb96c1afaf7/lancaster_newsbooks.py", line 73, in _split_generators
data_dir = dl_manager.download_and_extract(_URL)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 916, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 879, in extract
urlpaths = map_nested(self._extract, path_or_paths, map_tuple=True)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 348, in map_nested
return function(data_struct)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 884, in _extract
protocol = _get_extraction_protocol(urlpath, use_auth_token=self.download_config.use_auth_token)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 388, in _get_extraction_protocol
return _get_extraction_protocol_with_magic_number(f)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 354, in _get_extraction_protocol_with_magic_number
f.seek(0)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 684, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
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-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 404, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 359, 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.
```
ping @huggingface/datasets | ### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes | 618 | 185 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks
### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes
It seems like the list of splits could not be obtained:
```python
>>> from datasets import get_dataset_split_names
>>> get_dataset_split_names("shamikbose89/lancaster_newsbooks", "default")
Using custom data configuration default
Traceback (most recent call last):
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 354, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/shamikbose89--lancaster_newsbooks/2d1c63d269bf7b9342accce0a95960b1710ab4bc774248878bd80eb96c1afaf7/lancaster_newsbooks.py", line 73, in _split_generators
data_dir = dl_manager.download_and_extract(_URL)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 916, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 879, in extract
urlpaths = map_nested(self._extract, path_or_paths, map_tuple=True)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 348, in map_nested
return function(data_struct)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 884, in _extract
protocol = _get_extraction_protocol(urlpath, use_auth_token=self.download_config.use_auth_token)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 388, in _get_extraction_protocol
return _get_extraction_protocol_with_magic_number(f)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 354, in _get_extraction_protocol_with_magic_number
f.seek(0)
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 684, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
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-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 404, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 359, 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.
```
ping @huggingface/datasets | [
-1.1673318147659302,
-0.9070332646369934,
-0.7052090167999268,
1.4444353580474854,
-0.0818796157836914,
-1.2904590368270874,
0.07403601706027985,
-1.0434945821762085,
1.5063657760620117,
-0.6846597194671631,
0.16860264539718628,
-1.666364312171936,
-0.15071380138397217,
-0.4962672293186188,
-0.6722771525382996,
-0.8638104796409607,
-0.3613060712814331,
-0.935401976108551,
1.0127497911453247,
2.5124919414520264,
1.3063784837722778,
-1.319212794303894,
2.7799813747406006,
0.6376823782920837,
-0.29873427748680115,
-1.0617759227752686,
0.5810858607292175,
-0.03117983601987362,
-1.21449613571167,
-0.4394294023513794,
-0.9421383738517761,
0.07282311469316483,
-0.5735458731651306,
-0.34545794129371643,
0.11230571568012238,
0.4474186599254608,
-0.28492873907089233,
-0.20749324560165405,
-0.6504952907562256,
-0.7343845963478088,
0.535601019859314,
-0.30178454518318176,
0.9624767899513245,
-0.30492568016052246,
1.773759126663208,
-0.6071073412895203,
0.327358603477478,
0.7212206721305847,
1.2559171915054321,
0.13698852062225342,
0.06579843908548355,
0.2767093777656555,
0.30218496918678284,
-0.019948361441493034,
0.5154556632041931,
1.261890172958374,
0.48530542850494385,
0.5147437453269958,
0.573914647102356,
-2.2309975624084473,
1.3455722332000732,
-0.8232447504997253,
0.20094385743141174,
1.3844866752624512,
-0.8789346814155579,
0.3921615779399872,
-1.8093914985656738,
-0.017439216375350952,
0.6759381294250488,
-2.3085803985595703,
0.33486324548721313,
-1.2715390920639038,
-0.5763380527496338,
0.9352898597717285,
0.2903650403022766,
-1.1560933589935303,
0.18117767572402954,
-0.5856269598007202,
1.1217283010482788,
0.5100722312927246,
1.071310043334961,
-1.716912865638733,
-0.021978922188282013,
-0.09167544543743134,
0.06821069121360779,
-1.3474831581115723,
-1.7370710372924805,
0.556092381477356,
0.6414436101913452,
0.7644330263137817,
-0.08768313378095627,
1.0345059633255005,
-1.0687626600265503,
0.8354400992393494,
-0.8901205658912659,
-1.6151212453842163,
-1.3555309772491455,
-2.41861629486084,
-2.244173288345337,
0.814070999622345,
-0.5513131618499756,
-0.4759925603866577,
2.0194742679595947,
-1.031209945678711,
-1.779453158378601,
1.0968743562698364,
0.26015907526016235,
0.08631034940481186,
2.375603675842285,
0.27049189805984497,
-0.7926079630851746,
0.43033260107040405,
-0.6680267453193665,
0.8067572116851807,
-0.2890697121620178,
1.2798305749893188,
0.576554000377655,
-1.0067328214645386,
1.622983694076538,
-0.43221959471702576,
0.5832602977752686,
-0.6526193022727966,
-0.5773541927337646,
-0.8456034660339355,
0.2900092303752899,
1.8552165031433105,
-0.4238438606262207,
1.6301966905593872,
-0.27196937799453735,
-1.5540794134140015,
-1.5494511127471924,
0.845039963722229,
0.5131127834320068,
-0.8831899166107178,
0.06775495409965515,
-0.5713109374046326,
0.14833885431289673,
-0.06686738133430481,
1.1118290424346924,
1.198311448097229,
0.6826186776161194,
-0.28891414403915405,
-0.8108861446380615,
0.23810571432113647,
-0.1249668225646019,
-0.5709514021873474,
-1.842034101486206,
-0.2926360070705414,
0.26301392912864685,
0.6565771102905273,
-1.2106956243515015,
1.7545368671417236,
0.865929901599884,
1.9849555492401123,
1.0007350444793701,
-0.35206514596939087,
1.4687985181808472,
-0.02024233341217041,
1.8341999053955078,
-0.49643921852111816,
0.5908804535865784,
-0.3086254298686981,
-1.2012828588485718,
0.8379092812538147,
-0.3582344949245453,
-1.975545048713684,
-0.8192134499549866,
-0.8465006947517395,
-0.1690959334373474,
-0.7153701782226562,
0.901287853717804,
-0.28831589221954346,
-1.441694974899292,
0.08281654864549637,
-0.6672106385231018,
0.2071283459663391,
-1.280486822128296,
0.15261992812156677,
0.7346528172492981,
-0.7057381272315979,
-0.10806912183761597,
-0.280416339635849,
-1.3243600130081177,
-0.46297112107276917,
0.4110832214355469,
1.9764432907104492,
-0.5560084581375122,
0.9913814663887024,
0.9791790843009949,
-0.7475939989089966,
0.1865852177143097,
0.19206151366233826,
-0.29632821679115295,
0.8514021039009094,
-1.1902680397033691,
-0.419755756855011,
1.136056900024414,
-0.27006423473358154,
-0.6939179301261902,
1.418542742729187,
0.763830304145813,
-1.0829459428787231,
-0.3468538224697113,
-0.23945704102516174,
-0.8277162313461304,
-0.040516674518585205,
-1.511773705482483,
-0.2138918936252594,
0.3787235915660858,
-1.4949485063552856,
-0.3258151412010193,
-0.18687322735786438,
1.3957598209381104,
-0.20897191762924194,
1.4684070348739624,
-0.30314159393310547,
-0.10610663145780563,
-0.2694958746433258,
-0.5064947009086609,
0.18125969171524048,
-0.22385257482528687,
-0.5501255989074707,
0.1949654221534729,
-0.8768831491470337,
0.2518550455570221,
1.5149346590042114,
0.3432258665561676,
0.05529031157493591,
0.5589962601661682,
1.1149930953979492,
0.38928815722465515,
-0.0821814239025116,
-0.867224395275116,
-1.6028971672058105,
1.9520604610443115,
-1.4651658535003662,
1.9305527210235596,
0.8033593893051147,
-0.08473481982946396,
-1.8055914640426636,
-1.8686259984970093,
1.2261321544647217,
1.1154178380966187,
2.349116563796997,
0.513346791267395,
0.39696890115737915,
-0.7165120244026184,
-0.8104869723320007,
0.39903849363327026,
-1.000576376914978,
-0.607532799243927,
0.19148707389831543,
2.311401605606079,
1.7645230293273926,
-0.5676670670509338,
-0.3121170699596405,
-0.8362752795219421,
1.1946449279785156,
-0.22698983550071716,
0.2258291244506836,
2.0695436000823975,
-0.2497211992740631,
-1.0300084352493286,
1.3424649238586426,
-2.3546173572540283,
0.3352610468864441,
2.040916919708252,
0.270297646522522,
0.15569815039634705,
-1.36271333694458,
-0.6164923906326294,
-0.26422014832496643,
-0.44318410754203796,
-1.232008934020996,
0.6514188647270203,
-0.34661445021629333,
-0.896731436252594,
-1.4529625177383423,
0.03680789843201637,
-1.128950834274292,
-1.8141731023788452,
0.3584517538547516,
1.988772988319397,
2.196061372756958,
-0.8588113784790039,
1.3848079442977905,
-0.20326676964759827,
0.014615431427955627,
1.2338743209838867,
1.366765022277832,
3.10990047454834,
1.7910689115524292,
-1.3267532587051392,
0.7543288469314575,
-0.14826905727386475,
-0.4551751911640167,
1.1767877340316772,
-1.1349108219146729,
1.1017450094223022,
-0.27096471190452576,
-1.2889738082885742,
-1.2213941812515259,
1.1228113174438477,
0.4878182113170624,
0.007332621142268181,
-0.5083308815956116,
1.2897882461547852,
0.06326645612716675,
1.3195706605911255,
0.6472801566123962,
-0.4971136450767517,
0.5606661438941956,
-0.40991780161857605,
-0.6328734159469604,
1.5972434282302856,
0.15696358680725098,
-1.544596552848816,
-2.307936906814575,
-0.2716752588748932,
-0.8589464426040649,
-0.06507708132266998,
-0.6925334334373474,
-1.042636752128601,
1.5358794927597046,
0.43904945254325867,
-1.2066433429718018,
-0.34611961245536804,
-0.3627677261829376,
-0.5333842039108276,
2.587496757507324,
-1.2319444417953491,
-0.11492014676332474,
-0.9479933977127075,
-0.508645236492157,
1.6033378839492798,
-1.1862982511520386,
-0.2165466845035553,
-1.0517722368240356,
-0.6965157985687256,
-1.3444679975509644,
-0.49432215094566345,
0.06192994862794876,
-0.9612097144126892,
0.7116361260414124,
0.15485477447509766,
-1.0961251258850098,
-0.21766117215156555,
-0.8527669906616211,
1.118410348892212,
-0.12774446606636047,
0.26943594217300415,
1.8379710912704468,
0.27265796065330505,
-0.43225914239883423,
0.7210620641708374,
1.209549069404602,
0.6366496086120605,
-0.6404573917388916,
-0.02609618939459324,
-0.6869463324546814,
0.32409021258354187,
-1.4613096714019775,
0.24583503603935242,
-2.9548659324645996,
0.755868136882782,
-0.11287162452936172,
-0.07965975254774094,
-0.10976878553628922,
-1.3455896377563477,
1.0570883750915527,
2.5798027515411377,
-1.2032843828201294,
0.5344963669776917,
0.49090197682380676,
1.0861539840698242,
-1.6563838720321655,
0.2533680200576782,
-0.5082834959030151,
2.0751712322235107,
0.08322067558765411,
1.2839308977127075,
-0.46706879138946533,
-2.130620002746582,
0.6739079356193542,
-1.2207003831863403,
-1.0092682838439941,
0.8668694496154785,
-0.9269338250160217,
0.32212644815444946,
-1.4301904439926147,
-0.19334694743156433,
-0.9752163887023926,
-1.2702789306640625,
0.7199907302856445,
0.01863560825586319,
0.4004536271095276,
-0.4852106273174286,
0.38087689876556396,
-2.1353111267089844,
-1.395435094833374,
-0.196051687002182,
-1.0241938829421997,
0.547457218170166,
-0.43244507908821106,
0.5675421953201294,
-0.059462178498506546,
0.12574872374534607,
0.2917174696922302,
1.4368902444839478,
3.4303436279296875,
0.141834557056427,
0.19364765286445618,
-0.07063634693622589,
-1.0213994979858398,
1.4379338026046753,
0.9416366219520569,
-0.15566980838775635,
-0.6465505361557007,
-1.0006815195083618,
1.3056224584579468,
2.02264404296875,
1.0862767696380615,
0.16985037922859192,
-0.8988300561904907,
-0.7321330308914185,
0.04617822915315628,
0.18492451310157776,
0.6058889031410217,
0.926196277141571,
-0.030599599704146385,
0.16370874643325806,
1.338577389717102,
1.166345238685608,
-0.2760150134563446,
0.41583937406539917,
-0.9506236910820007,
-0.43500185012817383,
0.3664967715740204,
0.17426776885986328,
0.08381625264883041,
0.5408233404159546,
-1.06812584400177,
-0.25358980894088745,
-0.29767128825187683,
-0.8657078146934509,
-0.7467038631439209,
-0.3752132058143616,
-0.3808673620223999,
1.616291880607605,
0.06985887140035629,
-0.4425792992115021,
0.025508806109428406,
-0.7061102390289307,
-0.2683493196964264,
-1.0973657369613647,
0.15649491548538208,
-0.09017075598239899,
-0.08755117654800415,
-0.20877453684806824,
1.6063220500946045,
-0.9876353740692139,
-2.141441583633423,
0.13693109154701233,
0.2890990972518921,
-0.3927253186702728,
0.12170042842626572,
1.807187795639038,
0.5052230954170227,
1.3886616230010986,
1.270596981048584,
0.9973896145820618,
-0.5797491669654846,
-1.1481759548187256,
0.6597678661346436,
0.9410156011581421,
-1.3623417615890503,
0.914784848690033,
-0.2327103316783905,
-0.5362126231193542,
0.643129289150238,
1.387475609779358,
0.4437009394168854,
-1.9631296396255493,
0.9251713752746582,
-0.9355179071426392,
0.7769061326980591,
0.7196963429450989,
0.8496928811073303,
0.23125246167182922,
0.9224715232849121,
-1.2771801948547363,
-1.1464428901672363,
-0.7272586226463318,
-0.6068547964096069,
1.9281173944473267,
-0.26481494307518005,
0.5033131837844849,
-0.1876155436038971,
-1.2200263738632202,
-0.11759667098522186,
0.8061107397079468,
0.3535056710243225,
-0.3394602835178375,
0.8990595936775208,
-0.660334050655365,
-0.9065230488777161,
-1.25230872631073,
-0.36161017417907715,
-0.9904667735099792,
-0.874941885471344,
0.9930769801139832,
0.7376089692115784,
0.3980322480201721,
1.926212191581726,
0.5710872411727905,
0.30750972032546997,
-2.6620030403137207,
0.8750705122947693,
0.26837804913520813,
-0.07112495601177216,
0.9794395565986633,
0.20584502816200256,
1.1982516050338745,
0.030720509588718414,
0.5533461570739746,
-2.3015782833099365,
2.15092396736145,
-0.2144191861152649,
0.6503146886825562,
0.02041182480752468,
-0.2570524215698242,
1.1417889595031738,
0.5810675621032715,
0.6199241280555725,
-1.1208977699279785,
0.8584124445915222,
-0.5291484594345093,
1.008498191833496,
0.9570417404174805,
-0.9570760130882263,
0.0896078571677208,
1.427043080329895,
0.4843235909938812,
-0.4945133924484253,
-0.9756054282188416,
-0.8171185851097107,
0.9516152143478394,
1.6793216466903687,
-0.024238597601652145,
0.04499314725399017,
0.820135772228241,
0.6017578840255737,
-1.167685866355896,
0.11759508401155472,
-0.600865364074707,
-0.7062028050422668,
1.7040618658065796,
2.032548427581787,
-0.060476258397102356,
-0.2124652862548828,
-0.7065964937210083,
-1.2472022771835327,
0.7753999829292297,
-0.1157040223479271,
0.059930749237537384,
0.6710736155509949,
-0.6498419642448425,
1.1229240894317627,
0.5317295789718628,
1.0124880075454712,
-0.05375371873378754,
0.27267929911613464,
0.45637017488479614,
-0.32908183336257935,
-1.1571290493011475,
-0.4314691424369812,
-1.1346865892410278,
-2.5590248107910156,
0.4355276823043823,
-0.25711315870285034,
-1.4745261669158936,
0.040960460901260376,
-1.0387253761291504,
0.933196485042572,
-0.6584851145744324,
-1.105217456817627,
-1.483018159866333,
0.35837095975875854,
-0.2491798996925354,
0.926978349685669,
-1.6327451467514038,
-0.26372283697128296,
1.209990382194519,
0.9002604484558105,
-0.6265575289726257,
0.9696500301361084,
0.19726833701133728,
0.9823189377784729,
0.7605965733528137,
-0.4043598473072052,
0.5865814089775085,
0.12548109889030457,
-1.3778916597366333,
0.470191091299057,
1.217820644378662,
0.19922170042991638,
1.4354851245880127,
-0.3333602249622345,
0.038177937269210815,
0.4970766007900238,
-0.6320030093193054,
-0.5240028500556946,
-0.36233267188072205,
0.7361376285552979,
0.04656305909156799,
-1.0074081420898438,
-0.15409639477729797,
-0.1795949637889862,
-0.2869857847690582,
0.2103199064731598,
-1.5279284715652466,
-0.26213279366493225,
-0.37110844254493713,
-0.4603320062160492,
-1.3535504341125488,
0.06778282672166824,
1.304817795753479,
-0.8150283694267273,
-0.26409175992012024,
0.4452340304851532,
0.41737639904022217,
0.5318135023117065,
0.5580428838729858,
-0.754104495048523,
-0.24246016144752502,
-0.39449363946914673,
-0.29229071736335754,
0.2940555512905121,
1.1368141174316406,
-0.05150683596730232,
-0.9817355871200562,
0.6668503284454346,
-0.34638136625289917,
0.14101290702819824,
1.952193260192871,
-0.01747334748506546,
-0.6715723276138306,
0.32842719554901123,
-0.6372107267379761,
1.811747670173645,
1.645285725593567,
1.2904309034347534,
-0.09339843690395355,
-0.7732769250869751,
0.5645292401313782,
-0.24308261275291443,
-0.30869996547698975,
0.9427624344825745,
0.507213830947876,
-0.20258411765098572,
-1.518186092376709,
0.6587175726890564,
1.2301719188690186,
-0.870270848274231,
-0.6809270977973938,
0.013056537136435509,
-0.9065001010894775,
1.1869218349456787,
0.509112536907196,
0.3065992593765259,
0.268055260181427,
1.5538495779037476,
0.6990456581115723,
-0.4982646107673645,
0.5117102861404419,
0.47390520572662354,
-0.22642093896865845,
-2.0835487842559814,
-1.0050286054611206,
0.3411448001861572,
-0.36329448223114014,
-1.5585737228393555,
1.3543553352355957,
-1.082369089126587,
-0.990395724773407,
0.49780264496803284,
0.128972589969635,
1.3357528448104858,
0.34830519556999207,
1.7593014240264893,
2.1120996475219727,
0.9048014879226685,
0.31842848658561707,
1.2676230669021606,
-0.07860752940177917,
-0.3944377601146698,
1.8427820205688477,
-0.45784279704093933,
0.5471576452255249,
1.015350341796875,
-0.4239189922809601,
-1.1340882778167725,
-0.7903977632522583,
-1.199091911315918,
-0.5606898069381714,
1.1431939601898193,
0.10472040623426437,
-1.029390811920166,
0.2166728675365448,
1.6169565916061401,
0.15430712699890137,
-0.13926109671592712,
0.6968369483947754,
0.41910696029663086,
-0.7544106245040894,
-0.08347111940383911,
-0.845568060874939,
0.5098645687103271,
-0.12657538056373596,
-0.3060995042324066,
0.26535895466804504,
0.5372896790504456,
1.319400429725647,
-0.08757884800434113,
0.08551320433616638,
1.1530301570892334,
-1.3993349075317383,
1.5499309301376343,
-0.6244975924491882,
0.2787442207336426,
-2.48679780960083,
1.3241057395935059,
-0.7724922299385071,
1.998924732208252,
-2.5391602516174316,
0.45298582315444946,
-0.582983672618866,
-0.5173782110214233,
0.2911088764667511,
-0.4287630021572113,
0.10745324194431305,
-0.14504894614219666,
-1.004330039024353,
-0.09449975192546844,
-0.7176980376243591,
0.6467394828796387,
1.221648097038269,
1.424022912979126,
-1.0876693725585938,
-0.19322097301483154,
-1.7827343940734863,
-0.20529094338417053,
-0.8149698972702026,
0.2837460935115814,
-1.9259060621261597,
-0.20821750164031982,
-2.0113158226013184,
-2.4068384170532227,
-1.3280446529388428,
-0.8224704265594482,
1.0371146202087402,
0.1854056715965271,
-1.0110238790512085,
1.1937958002090454,
-0.3518078327178955,
-1.7171800136566162,
1.1982543468475342,
-2.19085431098938
] |
https://github.com/huggingface/datasets/issues/4720 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks | Oh, I removed the 'split' key from `kwargs`. I put it back in, but there's still the same error | ### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes | 618 | 19 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks
### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes
Oh, I removed the 'split' key from `kwargs`. I put it back in, but there's still the same error | [
-1.2367476224899292,
-0.885894238948822,
-0.9820026159286499,
1.5369352102279663,
-0.18550729751586914,
-1.2550092935562134,
0.11865493655204773,
-1.0541982650756836,
1.5195460319519043,
-0.6886404752731323,
0.11567007005214691,
-1.6500351428985596,
-0.07760874927043915,
-0.5217729210853577,
-0.6430557370185852,
-0.9176643490791321,
-0.4536140561103821,
-0.7809708714485168,
1.0848424434661865,
2.49882435798645,
1.100556492805481,
-1.436794638633728,
2.723247528076172,
0.6661770343780518,
-0.27516862750053406,
-1.138803243637085,
0.5883959531784058,
0.06728207319974899,
-1.0718166828155518,
-0.5205327868461609,
-0.9974501729011536,
0.01520893257111311,
-0.4671746790409088,
-0.4644429087638855,
-0.06530193984508514,
0.42215391993522644,
-0.16240090131759644,
-0.40407201647758484,
-0.4047307074069977,
-0.7380778193473816,
0.4442663788795471,
-0.2953241765499115,
0.8520446419715881,
-0.42117011547088623,
1.8896845579147339,
-0.3443036377429962,
0.3468477725982666,
0.7729794383049011,
1.5345515012741089,
0.1306459903717041,
-0.1489313244819641,
0.3012416660785675,
0.42209795117378235,
-0.1647767424583435,
0.4619266986846924,
1.0219920873641968,
0.4052187204360962,
0.6428530216217041,
0.6029136776924133,
-2.1254444122314453,
1.293429970741272,
-0.9113034605979919,
0.29233646392822266,
1.5736528635025024,
-1.1944059133529663,
0.3925372064113617,
-1.737004280090332,
0.05221191421151161,
0.5051987171173096,
-2.2108800411224365,
0.44272759556770325,
-1.0413533449172974,
-0.5418043732643127,
0.979130208492279,
0.37915876507759094,
-1.383601188659668,
0.012892882339656353,
-0.36773666739463806,
1.1057950258255005,
0.5320942401885986,
1.1307716369628906,
-1.4598801136016846,
0.15210016071796417,
-0.21817776560783386,
-0.04468577355146408,
-1.3372764587402344,
-1.5261991024017334,
0.39922618865966797,
0.6359817981719971,
0.7395943999290466,
-0.016881156712770462,
0.9011859893798828,
-0.905907928943634,
0.7980947494506836,
-0.8014481663703918,
-1.665077805519104,
-1.2597171068191528,
-2.425485610961914,
-2.225144624710083,
0.9713337421417236,
-0.5168574452400208,
-0.5232698917388916,
2.053335428237915,
-1.0005780458450317,
-1.8398188352584839,
1.3359429836273193,
0.2552984058856964,
0.06771880388259888,
2.354471445083618,
0.34650182723999023,
-0.6794507503509521,
0.39698946475982666,
-0.7620317339897156,
0.9084532856941223,
-0.6543108820915222,
1.470518708229065,
0.5688299536705017,
-0.8700212836265564,
1.7394335269927979,
-0.27172088623046875,
0.6836801767349243,
-0.722788393497467,
-0.6347751617431641,
-0.9833889603614807,
0.4962182939052582,
1.9621068239212036,
-0.40151354670524597,
1.5951865911483765,
-0.35279518365859985,
-1.5353342294692993,
-1.5771764516830444,
0.9925107955932617,
0.4144596457481384,
-0.7757400274276733,
0.30252304673194885,
-0.32532915472984314,
0.026882678270339966,
-0.10889212042093277,
0.986979067325592,
1.2899916172027588,
0.5142180323600769,
-0.29160475730895996,
-0.9607546925544739,
0.2651795744895935,
-0.02164028398692608,
-0.5964729189872742,
-1.7514528036117554,
-0.3421928286552429,
0.013876945711672306,
0.6461225748062134,
-1.2285025119781494,
1.5372910499572754,
0.8261198401451111,
2.0316057205200195,
0.9833824634552002,
-0.3368350565433502,
1.475476622581482,
0.02639232575893402,
1.8735158443450928,
-0.4490833580493927,
0.6683655977249146,
-0.19249430298805237,
-1.2619503736495972,
0.8187512159347534,
-0.5073014497756958,
-1.8999123573303223,
-0.9876311421394348,
-1.0484473705291748,
-0.17787286639213562,
-0.6423221230506897,
1.039865255355835,
-0.2862464487552643,
-1.3677228689193726,
0.19951067864894867,
-0.667284369468689,
0.29648634791374207,
-1.3654754161834717,
0.2706565856933594,
0.7176532745361328,
-0.5324906706809998,
-0.07972051203250885,
-0.2456323206424713,
-1.3097907304763794,
-0.4254412353038788,
0.36346614360809326,
1.922969937324524,
-0.7821616530418396,
0.973037838935852,
0.8352970480918884,
-0.7826412320137024,
0.03619501739740372,
0.26449787616729736,
-0.23943303525447845,
0.9386993646621704,
-1.170894980430603,
-0.5142461657524109,
1.2252311706542969,
-0.2580607831478119,
-0.598606526851654,
1.470908761024475,
0.827835738658905,
-1.026662826538086,
-0.1444537192583084,
-0.1955849975347519,
-0.8021345138549805,
-0.07808375358581543,
-1.606745719909668,
-0.17992164194583893,
0.18625038862228394,
-1.4968172311782837,
-0.4899649918079376,
-0.22054973244667053,
1.4280964136123657,
-0.06790665537118912,
1.5073418617248535,
-0.3411526679992676,
-0.14643067121505737,
-0.3357333540916443,
-0.4857858121395111,
0.2364843636751175,
-0.32860785722732544,
-0.5197849273681641,
0.1938549131155014,
-0.7123345136642456,
0.26861467957496643,
1.373504400253296,
0.3648754060268402,
0.1050824448466301,
0.7022166848182678,
1.0623533725738525,
0.4180651903152466,
-0.03393111005425453,
-0.9913161993026733,
-1.5318737030029297,
1.930249810218811,
-1.5060429573059082,
1.9558446407318115,
0.7722819447517395,
-0.047510866075754166,
-1.7082551717758179,
-1.9064289331436157,
1.446249008178711,
1.2749131917953491,
2.2049620151519775,
0.6771577000617981,
0.38664498925209045,
-0.8534751534461975,
-0.7999088168144226,
0.16622471809387207,
-1.0916783809661865,
-0.6530745029449463,
0.08429806679487228,
2.238321304321289,
1.7865402698516846,
-0.4744400978088379,
-0.18755212426185608,
-0.9972984790802002,
1.2228490114212036,
-0.16736364364624023,
0.2297239601612091,
1.9536529779434204,
-0.18740162253379822,
-1.0827864408493042,
1.1236377954483032,
-2.3707876205444336,
0.17490805685520172,
2.0785961151123047,
0.2623400092124939,
0.16834063827991486,
-1.5156219005584717,
-0.7192243337631226,
-0.015741217881441116,
-0.4304467439651489,
-1.1541575193405151,
0.7713515758514404,
-0.3321641981601715,
-0.8030828833580017,
-1.4750381708145142,
0.19859997928142548,
-1.0195890665054321,
-1.6888376474380493,
0.36252453923225403,
1.9589519500732422,
2.0222866535186768,
-0.9050171971321106,
1.5847257375717163,
-0.08962218463420868,
0.21166232228279114,
1.302652359008789,
1.1721858978271484,
2.9835124015808105,
1.899916648864746,
-1.2197017669677734,
0.656025230884552,
-0.0452713705599308,
-0.48609215021133423,
1.198665738105774,
-1.0319113731384277,
1.2919267416000366,
-0.30122169852256775,
-1.198498010635376,
-1.2456152439117432,
0.8520587086677551,
0.4655374586582184,
0.0991818830370903,
-0.46040111780166626,
1.3995193243026733,
-0.03513515740633011,
1.300730586051941,
0.6168493032455444,
-0.4839377701282501,
0.6132266521453857,
-0.4310247302055359,
-0.40981486439704895,
1.6006182432174683,
0.20159202814102173,
-1.5224039554595947,
-2.2449941635131836,
-0.24355226755142212,
-0.814680278301239,
-0.1088959127664566,
-0.7056592702865601,
-1.0586084127426147,
1.4831862449645996,
0.5692504644393921,
-1.0042468309402466,
-0.531811535358429,
-0.39178594946861267,
-0.60493403673172,
2.669987916946411,
-1.454283356666565,
-0.4045035243034363,
-0.9178609848022461,
-0.5022287964820862,
1.7489383220672607,
-1.13639497756958,
-0.11705063283443451,
-1.149703860282898,
-0.6643491387367249,
-1.2992388010025024,
-0.49060744047164917,
-0.03400515392422676,
-0.9903376698493958,
0.7770383954048157,
0.1767519861459732,
-1.105004906654358,
-0.07373394817113876,
-0.8054670691490173,
0.8828648328781128,
-0.10031677037477493,
0.39448240399360657,
1.8599164485931396,
0.3109968602657318,
-0.5004111528396606,
0.86797696352005,
1.1793030500411987,
0.5147671699523926,
-0.6354817152023315,
0.19602417945861816,
-0.6076346635818481,
0.3694840967655182,
-1.3626580238342285,
0.21793559193611145,
-2.939164161682129,
0.6082333922386169,
-0.1083144098520279,
-0.03040812537074089,
-0.14555470645427704,
-1.3563733100891113,
1.1456314325332642,
2.48476243019104,
-1.2294244766235352,
0.526130199432373,
0.4095321595668793,
1.3360426425933838,
-1.6167446374893188,
0.34528037905693054,
-0.45499497652053833,
2.1604225635528564,
0.041919272392988205,
1.2578721046447754,
-0.39795196056365967,
-2.2238028049468994,
0.6500650644302368,
-1.3233814239501953,
-1.1205843687057495,
0.7004351019859314,
-0.8214915990829468,
-0.018986009061336517,
-1.4377026557922363,
-0.18646328151226044,
-0.8005940914154053,
-1.287241816520691,
0.7532778382301331,
0.1278284639120102,
0.3982549011707306,
-0.5433630347251892,
0.34583133459091187,
-2.104691505432129,
-1.480036735534668,
-0.13515101373195648,
-0.9712632298469543,
0.3273952305316925,
-0.5038206577301025,
0.6663437485694885,
-0.2515154182910919,
0.13384874165058136,
0.252030611038208,
1.3510253429412842,
3.4655826091766357,
0.17355261743068695,
0.378361314535141,
-0.08339744061231613,
-0.9117175340652466,
1.5575432777404785,
1.0888479948043823,
-0.055258844047784805,
-0.6509227156639099,
-0.9626169204711914,
1.3074736595153809,
2.015010356903076,
0.9414452314376831,
0.13156720995903015,
-0.7920156717300415,
-0.4679413139820099,
-0.16835080087184906,
0.12450890243053436,
0.5489166378974915,
0.865675151348114,
0.005168660543859005,
0.1548709273338318,
1.3419013023376465,
1.1796832084655762,
-0.4076986014842987,
0.48200878500938416,
-0.9273874759674072,
-0.3556775152683258,
0.4029656946659088,
0.3670382499694824,
0.0031757159158587456,
0.3781353831291199,
-0.978512167930603,
-0.22571112215518951,
-0.21312083303928375,
-0.9523594379425049,
-0.7236735820770264,
-0.2581849992275238,
-0.3234861195087433,
1.6585277318954468,
0.21238188445568085,
-0.5702248215675354,
-0.11498390883207321,
-0.7622945308685303,
-0.07086130976676941,
-1.1005257368087769,
0.1362871378660202,
-0.1210552230477333,
-0.07596547156572342,
-0.0466630794107914,
1.7167803049087524,
-1.108319878578186,
-2.2181925773620605,
0.1453678458929062,
0.326696515083313,
-0.31647202372550964,
0.1186867356300354,
1.6368534564971924,
0.4984230101108551,
1.5406742095947266,
1.3590084314346313,
0.9953160285949707,
-0.7626597881317139,
-1.3040963411331177,
0.6332994103431702,
0.9998044967651367,
-1.4387997388839722,
0.7318832278251648,
0.06628574430942535,
-0.5446933507919312,
0.5621005892753601,
1.3801093101501465,
0.46565526723861694,
-1.960150122642517,
0.7857511043548584,
-0.8718339204788208,
0.9685796499252319,
0.6576271057128906,
0.830192506313324,
0.3223009705543518,
0.8364983797073364,
-1.2294914722442627,
-1.2408784627914429,
-0.808797299861908,
-0.6616374254226685,
2.0025031566619873,
-0.2935708463191986,
0.5886428952217102,
-0.16785095632076263,
-1.2825852632522583,
-0.1813305765390396,
0.660311758518219,
0.25379082560539246,
-0.29123401641845703,
0.7469162344932556,
-0.7243532538414001,
-1.0703216791152954,
-1.4775543212890625,
-0.4441532790660858,
-0.8903047442436218,
-1.058746576309204,
1.1040077209472656,
0.7043606638908386,
0.19918684661388397,
1.8585200309753418,
0.5618506073951721,
0.2039726823568344,
-2.669921636581421,
0.9312262535095215,
0.2717970907688141,
-0.06076056510210037,
0.8645238280296326,
0.29386553168296814,
1.1964164972305298,
0.0778525322675705,
0.4551427662372589,
-2.271714448928833,
2.146007776260376,
-0.26105740666389465,
0.5301098227500916,
-0.001091131940484047,
-0.1516706347465515,
1.1413841247558594,
0.5130773186683655,
0.6529304385185242,
-1.0693438053131104,
0.8826156258583069,
-0.6085121035575867,
1.269808292388916,
0.9704381227493286,
-0.7043567299842834,
0.00737552996724844,
1.4047846794128418,
0.6002506613731384,
-0.5004209280014038,
-0.9670282602310181,
-0.7758383750915527,
0.9933972358703613,
1.6848334074020386,
-0.06207327917218208,
0.1433970183134079,
0.7675924301147461,
0.44716987013816833,
-1.230149269104004,
0.0004949923604726791,
-0.6301400661468506,
-0.6812002062797546,
1.6542500257492065,
2.0177159309387207,
-0.11777366697788239,
-0.2647285759449005,
-0.8860371708869934,
-1.2813465595245361,
0.7412666082382202,
-0.13095316290855408,
0.06313025951385498,
0.6962854862213135,
-0.6267752051353455,
1.1170512437820435,
0.5847692489624023,
0.7341330051422119,
0.01151201780885458,
0.21335572004318237,
0.42091798782348633,
-0.2674620449542999,
-1.1153464317321777,
-0.26984909176826477,
-1.1409666538238525,
-2.5508058071136475,
0.3729417622089386,
-0.3549308478832245,
-1.3840399980545044,
0.009730811230838299,
-1.0936263799667358,
1.0539652109146118,
-0.6403810381889343,
-1.0946083068847656,
-1.5643366575241089,
0.20505596697330475,
-0.21396934986114502,
0.8174357414245605,
-1.5382615327835083,
-0.15045608580112457,
1.2802391052246094,
0.8832963705062866,
-0.7320051789283752,
1.1226582527160645,
0.21362127363681793,
1.0913206338882446,
0.6744096875190735,
-0.3918846845626831,
0.5463041067123413,
0.05394083634018898,
-1.3826707601547241,
0.7404220104217529,
1.157346248626709,
0.07862774282693863,
1.5930144786834717,
-0.4598066806793213,
-0.23594796657562256,
0.5696448087692261,
-0.4801280200481415,
-0.6113797426223755,
-0.4210772216320038,
0.7988591194152832,
0.07303779572248459,
-0.939917802810669,
0.09343182295560837,
-0.15160436928272247,
-0.19592556357383728,
0.31097212433815,
-1.6430805921554565,
-0.2457425892353058,
-0.40675023198127747,
-0.5553908944129944,
-1.3632596731185913,
0.1754280924797058,
1.2737846374511719,
-0.5991958379745483,
-0.3058241605758667,
0.5318537950515747,
0.400713175535202,
0.3622357249259949,
0.49285808205604553,
-0.6598525047302246,
-0.2332351803779602,
-0.36206355690956116,
-0.340840607881546,
0.36807793378829956,
1.1853410005569458,
-0.3023231625556946,
-1.0813417434692383,
0.6899528503417969,
-0.33999791741371155,
-0.025802064687013626,
1.881258487701416,
0.10311099886894226,
-0.8402389287948608,
0.28469982743263245,
-0.6633857488632202,
2.065157651901245,
1.4379658699035645,
1.401820421218872,
-0.06570932269096375,
-0.8068462610244751,
0.5755879878997803,
-0.1371118575334549,
-0.25654852390289307,
0.8607204556465149,
0.5541061162948608,
-0.14601130783557892,
-1.6023330688476562,
0.5505909323692322,
1.1403251886367798,
-0.8948876857757568,
-0.8309539556503296,
-0.019937921315431595,
-0.7790895104408264,
1.0614928007125854,
0.6824077367782593,
0.5114814043045044,
0.19638992846012115,
1.5692452192306519,
0.6941518187522888,
-0.5701063275337219,
0.5000991821289062,
0.38800275325775146,
-0.09273091703653336,
-1.9583905935287476,
-1.0842641592025757,
0.29051473736763,
-0.4576939344406128,
-1.66423761844635,
1.338963508605957,
-1.0224997997283936,
-0.8566314578056335,
0.4049360454082489,
0.15855403244495392,
1.4100723266601562,
0.26427045464515686,
1.5895893573760986,
1.9419456720352173,
0.8761983513832092,
0.18671686947345734,
1.2536325454711914,
-0.2684888243675232,
-0.40830886363983154,
1.9186218976974487,
-0.4350964426994324,
0.47029000520706177,
1.0745477676391602,
-0.479516863822937,
-1.0545114278793335,
-0.7490069270133972,
-1.2352031469345093,
-0.5069082379341125,
1.017406940460205,
0.25091686844825745,
-1.1053400039672852,
0.18578647077083588,
1.4237436056137085,
0.08179953694343567,
-0.3194589912891388,
0.5581502318382263,
0.5373623371124268,
-0.9247822165489197,
0.02887503057718277,
-0.8929886817932129,
0.3903302550315857,
-0.13590945303440094,
-0.3652852475643158,
0.4724886417388916,
0.4853447675704956,
1.374513864517212,
-0.10857101529836655,
0.1686495542526245,
1.1596910953521729,
-1.4560272693634033,
1.5425865650177002,
-0.7428366541862488,
0.21179376542568207,
-2.323270559310913,
1.2256966829299927,
-0.7956063747406006,
1.9434072971343994,
-2.7006494998931885,
0.43124833703041077,
-0.7237904667854309,
-0.3912428021430969,
0.41122210025787354,
-0.4573056697845459,
0.09444701671600342,
-0.14435546100139618,
-1.1737335920333862,
-0.0033316416665911674,
-0.674428403377533,
0.5271660685539246,
1.1913588047027588,
1.314139485359192,
-0.9834517240524292,
-0.1726042777299881,
-1.8637677431106567,
-0.1559963822364807,
-0.7430781126022339,
0.41524478793144226,
-2.2021563053131104,
-0.2260686755180359,
-1.95179283618927,
-2.1987807750701904,
-1.2511111497879028,
-0.7590720653533936,
1.1058865785598755,
0.2528230845928192,
-1.0329774618148804,
1.188406229019165,
-0.28736448287963867,
-1.6011890172958374,
1.119729995727539,
-2.055453300476074
] |
https://github.com/huggingface/datasets/issues/4720 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks | It looks like the data host doesn't support http range requests, which is necessary to glob inside a ZIP archive in streaming mode. Can you try hosting the dataset elsewhere ? Or download each file separately from https://ota.bodleian.ox.ac.uk/repository/xmlui/handle/20.500.12024/2531 ? | ### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes | 618 | 39 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks
### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes
It looks like the data host doesn't support http range requests, which is necessary to glob inside a ZIP archive in streaming mode. Can you try hosting the dataset elsewhere ? Or download each file separately from https://ota.bodleian.ox.ac.uk/repository/xmlui/handle/20.500.12024/2531 ? | [
-1.0859171152114868,
-0.9618121385574341,
-0.9303275346755981,
1.5144058465957642,
-0.19125188887119293,
-1.2788972854614258,
0.04939224570989609,
-1.035442590713501,
1.5627870559692383,
-0.7116557359695435,
0.13326315581798553,
-1.6610242128372192,
-0.03179827705025673,
-0.5064189434051514,
-0.6348071098327637,
-0.8957486748695374,
-0.3974038362503052,
-0.8614777326583862,
1.0773266553878784,
2.6197335720062256,
1.112290382385254,
-1.3502379655838013,
2.7383768558502197,
0.6204169392585754,
-0.259150892496109,
-1.1388704776763916,
0.5737566947937012,
0.15521171689033508,
-1.10901939868927,
-0.4864366948604584,
-0.9830261468887329,
0.03611403703689575,
-0.47407427430152893,
-0.43062061071395874,
-0.003511650487780571,
0.38704127073287964,
-0.206844300031662,
-0.32775139808654785,
-0.5695078372955322,
-0.7581351399421692,
0.47445163130760193,
-0.36236870288848877,
0.9232378005981445,
-0.4273315966129303,
1.7853165864944458,
-0.46526604890823364,
0.32023313641548157,
0.7529407143592834,
1.430837631225586,
0.13514213263988495,
-0.03122471272945404,
0.22499744594097137,
0.3898017108440399,
-0.08345470577478409,
0.41253548860549927,
1.0728005170822144,
0.47918444871902466,
0.5698205232620239,
0.5476138591766357,
-2.1280922889709473,
1.3719252347946167,
-0.9115826487541199,
0.2431899905204773,
1.439295768737793,
-1.0372586250305176,
0.4212985932826996,
-1.7403873205184937,
-0.032210901379585266,
0.5642264485359192,
-2.277313232421875,
0.3488192856311798,
-1.17300546169281,
-0.588765025138855,
0.9292536377906799,
0.299772709608078,
-1.3053605556488037,
0.06994770467281342,
-0.54527348279953,
1.0392379760742188,
0.5699086785316467,
1.1316331624984741,
-1.5520092248916626,
0.06312796473503113,
-0.18064725399017334,
-0.036449842154979706,
-1.3986001014709473,
-1.5669444799423218,
0.482852041721344,
0.6881595253944397,
0.7383817434310913,
0.02439836785197258,
0.8831882476806641,
-0.9213191270828247,
0.8289739489555359,
-0.8299753665924072,
-1.671157956123352,
-1.3471271991729736,
-2.355319023132324,
-2.2674331665039062,
0.9310372471809387,
-0.5116186141967773,
-0.5302878618240356,
2.0497307777404785,
-1.004583716392517,
-1.860998272895813,
1.262420415878296,
0.17285355925559998,
0.030480071902275085,
2.3852264881134033,
0.28592023253440857,
-0.6698945760726929,
0.35949766635894775,
-0.6740710735321045,
0.8513693809509277,
-0.5265727639198303,
1.4532910585403442,
0.5687042474746704,
-0.9012939929962158,
1.7174152135849,
-0.3492783308029175,
0.5726313591003418,
-0.7231118679046631,
-0.6022581458091736,
-0.9739905595779419,
0.40470704436302185,
1.9509234428405762,
-0.44963327050209045,
1.6040629148483276,
-0.3452875018119812,
-1.5573680400848389,
-1.5842759609222412,
0.8854910731315613,
0.5100210309028625,
-0.8229889869689941,
0.19190913438796997,
-0.31662651896476746,
0.03964035212993622,
-0.08142072707414627,
0.9951635599136353,
1.2049087285995483,
0.6344223618507385,
-0.300137460231781,
-0.9006734490394592,
0.2974184453487396,
-0.11373621970415115,
-0.6126897931098938,
-1.8434202671051025,
-0.33116787672042847,
0.15686175227165222,
0.628051221370697,
-1.2856796979904175,
1.5679820775985718,
0.8055435419082642,
2.0439772605895996,
0.9766780138015747,
-0.30404749512672424,
1.4573085308074951,
-0.04677673801779747,
1.8450933694839478,
-0.5138218998908997,
0.6776999831199646,
-0.2361244559288025,
-1.2259833812713623,
0.8057669997215271,
-0.4348223805427551,
-1.9379078149795532,
-0.878894567489624,
-0.985137939453125,
-0.17226475477218628,
-0.7113524079322815,
0.9804747700691223,
-0.27784213423728943,
-1.3666692972183228,
0.17621131241321564,
-0.7097616195678711,
0.2123960256576538,
-1.3206335306167603,
0.22646145522594452,
0.7350805401802063,
-0.5974814891815186,
-0.033924564719200134,
-0.24396948516368866,
-1.3283982276916504,
-0.4021280109882355,
0.35013800859451294,
1.9568352699279785,
-0.7782109379768372,
0.9895380735397339,
0.8905428051948547,
-0.7407602071762085,
0.10032239556312561,
0.31756213307380676,
-0.2972952127456665,
0.911638617515564,
-1.1339420080184937,
-0.4368959069252014,
1.1897414922714233,
-0.26453739404678345,
-0.6162418723106384,
1.432792067527771,
0.8335665464401245,
-0.9948045611381531,
-0.22311973571777344,
-0.2352675050497055,
-0.7414100170135498,
-0.1059817299246788,
-1.6505101919174194,
-0.2442852407693863,
0.20677310228347778,
-1.4329700469970703,
-0.3840162456035614,
-0.23167844116687775,
1.37666654586792,
-0.10105601698160172,
1.4598172903060913,
-0.33958718180656433,
-0.2631845772266388,
-0.39050760865211487,
-0.45597538352012634,
0.2046317607164383,
-0.2940707802772522,
-0.5530730485916138,
0.22070840001106262,
-0.8398318290710449,
0.27650734782218933,
1.4203494787216187,
0.37161949276924133,
0.11147406697273254,
0.7224822044372559,
0.9955075979232788,
0.3974623382091522,
-0.0744510367512703,
-0.9757822155952454,
-1.5004831552505493,
1.96522855758667,
-1.4020304679870605,
1.954663872718811,
0.8065130114555359,
-0.05782967060804367,
-1.8399089574813843,
-1.9005186557769775,
1.4056637287139893,
1.2033456563949585,
2.2555387020111084,
0.6450529098510742,
0.3812918961048126,
-0.8695397973060608,
-0.7706279754638672,
0.20824038982391357,
-1.1490378379821777,
-0.7022538781166077,
0.13715329766273499,
2.327326536178589,
1.7652971744537354,
-0.512262761592865,
-0.22464454174041748,
-1.0081400871276855,
1.1873787641525269,
-0.11677560210227966,
0.1917034238576889,
2.0511481761932373,
-0.23615393042564392,
-1.0035110712051392,
1.1230509281158447,
-2.3123364448547363,
0.1788143664598465,
2.007242441177368,
0.25415390729904175,
0.13669633865356445,
-1.4788293838500977,
-0.6914833784103394,
-0.20382393896579742,
-0.399949848651886,
-1.1364637613296509,
0.6941439509391785,
-0.30372849106788635,
-0.8887535333633423,
-1.5583136081695557,
0.11447347700595856,
-1.0343507528305054,
-1.7579967975616455,
0.3273199796676636,
1.9418721199035645,
2.040703058242798,
-0.8876430988311768,
1.45197594165802,
-0.1768016368150711,
0.0873626321554184,
1.324747085571289,
1.185498833656311,
3.0734832286834717,
1.9271410703659058,
-1.3108323812484741,
0.7479436993598938,
-0.04920114204287529,
-0.40603628754615784,
1.1198060512542725,
-1.042344331741333,
1.229946494102478,
-0.3077486753463745,
-1.2675527334213257,
-1.251860499382019,
0.9988255500793457,
0.4583703875541687,
0.016775507479906082,
-0.5009507536888123,
1.3785556554794312,
0.046171050518751144,
1.355008602142334,
0.5925770401954651,
-0.4854385554790497,
0.633717954158783,
-0.3995620906352997,
-0.47197258472442627,
1.6224651336669922,
0.1728307008743286,
-1.5900185108184814,
-2.2729876041412354,
-0.2616521418094635,
-0.7674334645271301,
-0.13379943370819092,
-0.5987471342086792,
-1.053572416305542,
1.5888822078704834,
0.5572192668914795,
-1.1027010679244995,
-0.431345671415329,
-0.3619285225868225,
-0.5995454788208008,
2.6944124698638916,
-1.4024103879928589,
-0.2672789692878723,
-0.9343762993812561,
-0.4499576985836029,
1.7307499647140503,
-1.189384937286377,
-0.18913637101650238,
-1.0619046688079834,
-0.6919809579849243,
-1.3051139116287231,
-0.5598170757293701,
-0.047141700983047485,
-0.9301336407661438,
0.7411180138587952,
0.1532829850912094,
-1.1153010129928589,
-0.1513957530260086,
-0.7996708750724792,
0.9357859492301941,
-0.07006729394197464,
0.34725257754325867,
1.8951494693756104,
0.34509924054145813,
-0.4485645592212677,
0.7847294211387634,
1.1725505590438843,
0.5144398808479309,
-0.6975409984588623,
0.14871054887771606,
-0.645703911781311,
0.2922394871711731,
-1.4054450988769531,
0.23996718227863312,
-2.9618747234344482,
0.6213706135749817,
-0.11326117813587189,
-0.07565348595380783,
-0.07809798419475555,
-1.2583444118499756,
1.164013147354126,
2.5409955978393555,
-1.1892703771591187,
0.47540083527565,
0.40809664130210876,
1.1784136295318604,
-1.5422612428665161,
0.4040204882621765,
-0.35280197858810425,
2.0741589069366455,
0.1568729132413864,
1.286196231842041,
-0.49632492661476135,
-2.0874288082122803,
0.6778081655502319,
-1.3123528957366943,
-1.0581121444702148,
0.7043305039405823,
-0.851625919342041,
0.0970311164855957,
-1.4614598751068115,
-0.14780879020690918,
-0.7765995264053345,
-1.3585941791534424,
0.8025951385498047,
0.018599163740873337,
0.4479723274707794,
-0.4932743012905121,
0.3734726309776306,
-2.0891778469085693,
-1.421099066734314,
-0.2094702124595642,
-1.016305685043335,
0.3519211709499359,
-0.3938823342323303,
0.6781109571456909,
-0.20437975227832794,
0.12231963127851486,
0.286732941865921,
1.2771837711334229,
3.4595205783843994,
0.19335396587848663,
0.3364986181259155,
-0.08583664149045944,
-0.9562802314758301,
1.4796665906906128,
0.9974231719970703,
-0.07411911338567734,
-0.5948919653892517,
-0.9719020128250122,
1.3101149797439575,
1.9983690977096558,
1.0131162405014038,
0.2204979807138443,
-0.8493140935897827,
-0.6139788031578064,
-0.008693265728652477,
0.2275150865316391,
0.6210781931877136,
0.9215528964996338,
-0.07075640559196472,
0.12019477039575577,
1.478635311126709,
1.2661988735198975,
-0.43254971504211426,
0.4456811249256134,
-0.9391244649887085,
-0.4149959087371826,
0.39805853366851807,
0.3332079350948334,
0.026158437132835388,
0.4489861726760864,
-1.0352100133895874,
-0.2758729159832001,
-0.257196843624115,
-0.9736299514770508,
-0.6881172060966492,
-0.3494214117527008,
-0.3320135772228241,
1.623465657234192,
0.1690269410610199,
-0.4338851869106293,
-0.0779268890619278,
-0.7893221378326416,
-0.16713178157806396,
-1.046858549118042,
0.22473467886447906,
-0.041300248354673386,
-0.10108403861522675,
-0.09799765795469284,
1.8220279216766357,
-1.0987366437911987,
-2.197509765625,
0.28624606132507324,
0.2333276867866516,
-0.3907616138458252,
0.24513134360313416,
1.6556042432785034,
0.4874483346939087,
1.44392728805542,
1.2743844985961914,
0.9978983402252197,
-0.6890184283256531,
-1.2938261032104492,
0.6053573489189148,
0.980366051197052,
-1.4824467897415161,
0.7483026385307312,
-0.07787559926509857,
-0.5172303915023804,
0.6517999172210693,
1.3566157817840576,
0.4887220859527588,
-1.9252830743789673,
0.8064665198326111,
-0.820993959903717,
0.7906590700149536,
0.7227860689163208,
0.8289122581481934,
0.2994533181190491,
0.8152731657028198,
-1.3175042867660522,
-1.125664234161377,
-0.8601187467575073,
-0.558478593826294,
1.9138977527618408,
-0.28089654445648193,
0.502692699432373,
-0.16155070066452026,
-1.3095033168792725,
-0.10739300400018692,
0.7322635054588318,
0.29309529066085815,
-0.3518892824649811,
0.8001500964164734,
-0.7023687362670898,
-1.0463767051696777,
-1.3740707635879517,
-0.44528496265411377,
-0.9222241640090942,
-0.9399202466011047,
1.066344141960144,
0.7477779984474182,
0.2614714801311493,
1.915237307548523,
0.5224365592002869,
0.2542514503002167,
-2.74363112449646,
1.0004005432128906,
0.25443172454833984,
0.02964988723397255,
0.8691590428352356,
0.2662036120891571,
1.1479744911193848,
0.056555576622486115,
0.4709182381629944,
-2.36037540435791,
2.155669927597046,
-0.19481678307056427,
0.5816901922225952,
0.06091912090778351,
-0.16009093821048737,
1.131010890007019,
0.4633111357688904,
0.6505060791969299,
-1.0581459999084473,
0.8082886934280396,
-0.5602082014083862,
1.2511351108551025,
1.0303336381912231,
-0.7704446315765381,
-0.026535961776971817,
1.3293511867523193,
0.5594816207885742,
-0.4548843801021576,
-0.8986774682998657,
-0.8342581391334534,
1.0018237829208374,
1.697697639465332,
-0.07414842396974564,
0.0410204641520977,
0.7922440767288208,
0.5006871223449707,
-1.2556016445159912,
0.07650744169950485,
-0.7440183162689209,
-0.6473203897476196,
1.6578880548477173,
2.0340356826782227,
-0.07896905392408371,
-0.2247171550989151,
-0.7908846139907837,
-1.1649508476257324,
0.7258400321006775,
-0.10302332043647766,
0.08176396042108536,
0.7162995338439941,
-0.6050586700439453,
1.1502498388290405,
0.6481372117996216,
0.8538950085639954,
0.0016963351517915726,
0.33329156041145325,
0.37589505314826965,
-0.29528042674064636,
-1.1756483316421509,
-0.3067314326763153,
-1.1556013822555542,
-2.5164167881011963,
0.4119548499584198,
-0.36324283480644226,
-1.3611342906951904,
0.02029210329055786,
-1.1295627355575562,
0.9276567101478577,
-0.6253564953804016,
-1.0094835758209229,
-1.5297001600265503,
0.21897991001605988,
-0.320001482963562,
0.9057770371437073,
-1.5411839485168457,
-0.11636936664581299,
1.305467128753662,
0.8763008713722229,
-0.7267476320266724,
1.1119545698165894,
0.23610657453536987,
1.08710777759552,
0.7490806579589844,
-0.34288322925567627,
0.5472049713134766,
0.11480762809515,
-1.2915863990783691,
0.5844746232032776,
1.1296141147613525,
0.2461683750152588,
1.5190675258636475,
-0.5123416185379028,
-0.10374373942613602,
0.5852816104888916,
-0.5176998972892761,
-0.5168213248252869,
-0.41708940267562866,
0.8280832171440125,
0.08459193259477615,
-0.9538112282752991,
0.09902972728013992,
-0.17653122544288635,
-0.23581068217754364,
0.28829485177993774,
-1.5993068218231201,
-0.2451658546924591,
-0.27879592776298523,
-0.5711734890937805,
-1.3092124462127686,
0.085497185587883,
1.3033227920532227,
-0.7642536759376526,
-0.27089959383010864,
0.49769461154937744,
0.3663250505924225,
0.49903595447540283,
0.5600826740264893,
-0.6563259959220886,
-0.34425029158592224,
-0.31232473254203796,
-0.24368193745613098,
0.38831913471221924,
1.201656699180603,
-0.17854930460453033,
-1.1278437376022339,
0.7568149566650391,
-0.4027644693851471,
0.042997393757104874,
1.984722375869751,
0.049154069274663925,
-0.8736706376075745,
0.2538386285305023,
-0.596733808517456,
1.9894614219665527,
1.509773850440979,
1.3151004314422607,
-0.08495865762233734,
-0.844285786151886,
0.5847688317298889,
-0.05908949673175812,
-0.3455856144428253,
0.9065287709236145,
0.6079423427581787,
-0.1452602595090866,
-1.5178297758102417,
0.5134475827217102,
1.248405933380127,
-0.9040491580963135,
-0.8154338002204895,
0.007445448078215122,
-0.8429229259490967,
1.0088616609573364,
0.6859714984893799,
0.42340853810310364,
0.2057599127292633,
1.5217194557189941,
0.7178269028663635,
-0.6085541248321533,
0.4430646598339081,
0.41635626554489136,
-0.18734723329544067,
-2.0645081996917725,
-1.0050163269042969,
0.30215734243392944,
-0.4242219626903534,
-1.6030584573745728,
1.3236249685287476,
-1.1316580772399902,
-0.854779839515686,
0.44241225719451904,
0.17096902430057526,
1.3968359231948853,
0.2311154007911682,
1.5801355838775635,
2.018794536590576,
1.0122369527816772,
0.20907479524612427,
1.3804084062576294,
-0.145720973610878,
-0.473459929227829,
1.8264262676239014,
-0.44323310256004333,
0.5167379379272461,
1.0338144302368164,
-0.4862305521965027,
-1.0364711284637451,
-0.7060238718986511,
-1.1662310361862183,
-0.5229228138923645,
1.128167748451233,
0.2343781590461731,
-1.1028963327407837,
0.16328874230384827,
1.4757928848266602,
0.14999277889728546,
-0.3213113844394684,
0.612835705280304,
0.49329495429992676,
-0.8181150555610657,
0.0027139224112033844,
-0.8562204241752625,
0.4407788813114166,
-0.13918936252593994,
-0.3190512955188751,
0.3999824821949005,
0.4050138294696808,
1.2772189378738403,
-0.0860825777053833,
0.13400261104106903,
1.183339238166809,
-1.3888310194015503,
1.5196038484573364,
-0.5681482553482056,
0.2280055582523346,
-2.4395813941955566,
1.3409380912780762,
-0.7977603077888489,
1.9120765924453735,
-2.618508815765381,
0.43657588958740234,
-0.7674211263656616,
-0.3710065186023712,
0.3372495770454407,
-0.463182270526886,
0.08910270035266876,
-0.14383086562156677,
-1.1305744647979736,
-0.08085750788450241,
-0.7260876893997192,
0.5525790452957153,
1.2224785089492798,
1.2830238342285156,
-1.049291729927063,
-0.1941726803779602,
-1.8654202222824097,
-0.18430933356285095,
-0.7930252552032471,
0.34154072403907776,
-2.1478021144866943,
-0.17294523119926453,
-1.9061965942382812,
-2.228984832763672,
-1.3231335878372192,
-0.7424909472465515,
1.0618160963058472,
0.25424131751060486,
-0.975091278553009,
1.1198558807373047,
-0.2587518095970154,
-1.6867880821228027,
1.1700886487960815,
-2.1517691612243652
] |
https://github.com/huggingface/datasets/issues/4720 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks | @lhoestq Thanks! That seems to have solved it. I can get the splits with the `get_dataset_split_names()` function. The dataset viewer is still not loading properly, though. The new error is
```
Status code: 400
Exception: BadZipFile
Message: File is not a zip file
```
PS. The dataset loads properly and can be accessed | ### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes | 618 | 53 | Dataset Viewer issue for shamikbose89/lancaster_newsbooks
### Link
https://huggingface.co/datasets/shamikbose89/lancaster_newsbooks
### Description
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
I am able to use the dataset loading script locally and it also runs when I'm using the one from the hub, but the viewer still doesn't load
### Owner
Yes
@lhoestq Thanks! That seems to have solved it. I can get the splits with the `get_dataset_split_names()` function. The dataset viewer is still not loading properly, though. The new error is
```
Status code: 400
Exception: BadZipFile
Message: File is not a zip file
```
PS. The dataset loads properly and can be accessed | [
-1.1545742750167847,
-0.8899912238121033,
-0.9223202466964722,
1.524796724319458,
-0.22543011605739594,
-1.279465675354004,
0.08171549439430237,
-1.1086361408233643,
1.618424415588379,
-0.7888776659965515,
0.2833697199821472,
-1.6625585556030273,
-0.00959211215376854,
-0.5104536414146423,
-0.7119906544685364,
-0.9092668294906616,
-0.43673357367515564,
-0.847381591796875,
1.046876072883606,
2.535458564758301,
1.1277388334274292,
-1.3916229009628296,
2.7422657012939453,
0.5985420346260071,
-0.24574168026447296,
-1.1513404846191406,
0.5791314840316772,
0.04069630056619644,
-1.167417287826538,
-0.45147988200187683,
-0.9667478203773499,
-0.022868888452649117,
-0.5404993295669556,
-0.49334755539894104,
-0.024977408349514008,
0.4116972088813782,
-0.23240555822849274,
-0.36648163199424744,
-0.5220110416412354,
-0.8347464203834534,
0.5176211595535278,
-0.34538930654525757,
0.9307370781898499,
-0.44424712657928467,
1.8823034763336182,
-0.4336148500442505,
0.37538695335388184,
0.7472051978111267,
1.4353578090667725,
0.12684348225593567,
-0.10340960323810577,
0.23629005253314972,
0.40409165620803833,
-0.049024228006601334,
0.47677335143089294,
1.0413545370101929,
0.4563286304473877,
0.6104328632354736,
0.5982047915458679,
-2.1965556144714355,
1.3319861888885498,
-0.9149945974349976,
0.2686077654361725,
1.49318528175354,
-1.106999158859253,
0.33170658349990845,
-1.7374564409255981,
-0.012578042224049568,
0.467899888753891,
-2.2222988605499268,
0.3026900589466095,
-1.1648296117782593,
-0.5526095032691956,
1.0600099563598633,
0.36600014567375183,
-1.2978910207748413,
0.03956024348735809,
-0.4235100746154785,
1.0217853784561157,
0.51826411485672,
1.1394312381744385,
-1.635614037513733,
0.037416521459817886,
-0.2794972062110901,
0.00991789624094963,
-1.4000238180160522,
-1.5099825859069824,
0.5095230340957642,
0.6716489791870117,
0.7442176342010498,
-0.03696129471063614,
0.983445405960083,
-0.945622444152832,
0.8213295340538025,
-0.8909121155738831,
-1.6903727054595947,
-1.3242355585098267,
-2.251004934310913,
-2.251758575439453,
0.8476606607437134,
-0.5419909358024597,
-0.5400972366333008,
2.0517706871032715,
-1.022981882095337,
-1.7642251253128052,
1.2970366477966309,
0.1897612065076828,
0.08188961446285248,
2.315315008163452,
0.35150521993637085,
-0.6142804622650146,
0.33815741539001465,
-0.7065781950950623,
0.8449098467826843,
-0.450585275888443,
1.405311107635498,
0.49980106949806213,
-0.9835450649261475,
1.670622706413269,
-0.302383154630661,
0.6581281423568726,
-0.6868190169334412,
-0.6140127778053284,
-0.8724130988121033,
0.37950947880744934,
1.9305698871612549,
-0.46727508306503296,
1.5848379135131836,
-0.3279012143611908,
-1.5175460577011108,
-1.5945756435394287,
0.9761410355567932,
0.48278215527534485,
-0.7794924974441528,
0.22571833431720734,
-0.3010427951812744,
0.0075278375297784805,
-0.11262418329715729,
1.038945198059082,
1.195334553718567,
0.6746580600738525,
-0.3027805984020233,
-0.8971402645111084,
0.3049391210079193,
-0.030515944585204124,
-0.6969091892242432,
-1.7535858154296875,
-0.3632534444332123,
0.039962660521268845,
0.6576477885246277,
-1.1770657300949097,
1.6452453136444092,
0.8664623498916626,
1.98223876953125,
0.96943598985672,
-0.2861977815628052,
1.4384442567825317,
-0.018409183248877525,
1.838101863861084,
-0.45350441336631775,
0.6321886777877808,
-0.2956971526145935,
-1.2316783666610718,
0.7765916585922241,
-0.43344026803970337,
-1.9850819110870361,
-0.8906146883964539,
-0.9452601075172424,
-0.20844322443008423,
-0.7103574872016907,
0.9877100586891174,
-0.31622791290283203,
-1.4067862033843994,
0.1723787784576416,
-0.6869307160377502,
0.17604461312294006,
-1.3033376932144165,
0.29234960675239563,
0.7022814750671387,
-0.6416346430778503,
-0.020256822928786278,
-0.2178298830986023,
-1.2212978601455688,
-0.42465338110923767,
0.30285122990608215,
1.931286334991455,
-0.7906266450881958,
1.0332413911819458,
0.885159432888031,
-0.740121603012085,
-0.005983470007777214,
0.2671147286891937,
-0.2811717987060547,
0.9385570287704468,
-1.0967392921447754,
-0.5076435208320618,
1.2331559658050537,
-0.22022835910320282,
-0.6836403012275696,
1.5212981700897217,
0.7789626121520996,
-0.9943700432777405,
-0.19257250428199768,
-0.2277967929840088,
-0.7624497413635254,
-0.06163657456636429,
-1.6277709007263184,
-0.1700788140296936,
0.24802161753177643,
-1.4242538213729858,
-0.45016732811927795,
-0.17904680967330933,
1.349782943725586,
-0.08694420754909515,
1.4325531721115112,
-0.3859626352787018,
-0.24029222130775452,
-0.35911956429481506,
-0.36457398533821106,
0.13630187511444092,
-0.2576008141040802,
-0.567504346370697,
0.19390136003494263,
-0.7685258984565735,
0.27332568168640137,
1.4343008995056152,
0.37071093916893005,
0.11896984279155731,
0.6497798562049866,
1.086859107017517,
0.3662070035934448,
0.009449273347854614,
-1.0060040950775146,
-1.5135358572006226,
2.007153272628784,
-1.4394632577896118,
1.984559416770935,
0.8304959535598755,
-0.07303600013256073,
-1.8162062168121338,
-1.8818087577819824,
1.42115318775177,
1.2259176969528198,
2.1995692253112793,
0.6386627554893494,
0.40916168689727783,
-0.8523279428482056,
-0.720389187335968,
0.33395156264305115,
-1.0724947452545166,
-0.6804558634757996,
0.11698637902736664,
2.3385813236236572,
1.8086190223693848,
-0.467865526676178,
-0.19206266105175018,
-1.0042364597320557,
1.2328518629074097,
-0.09520125389099121,
0.20883320271968842,
1.9660202264785767,
-0.2395622879266739,
-1.0937694311141968,
1.115483283996582,
-2.291872024536133,
0.13394539058208466,
2.034132480621338,
0.26337704062461853,
0.09669096767902374,
-1.478529691696167,
-0.6573209166526794,
-0.06257563829421997,
-0.4030255973339081,
-1.182180404663086,
0.6409526467323303,
-0.38401979207992554,
-0.764995813369751,
-1.4622586965560913,
0.18840350210666656,
-1.0165318250656128,
-1.7378429174423218,
0.32526859641075134,
1.894229769706726,
1.9964202642440796,
-0.8466306924819946,
1.5632621049880981,
-0.22569487988948822,
0.19885317981243134,
1.3056892156600952,
1.22874116897583,
3.0493414402008057,
1.901437520980835,
-1.2822442054748535,
0.6516261100769043,
-0.03285638242959976,
-0.4701782166957855,
1.1789435148239136,
-1.0465662479400635,
1.2485783100128174,
-0.2887391746044159,
-1.2196592092514038,
-1.3022370338439941,
0.9265275001525879,
0.4542040228843689,
0.048854030668735504,
-0.46975257992744446,
1.3577461242675781,
0.031000427901744843,
1.3114579916000366,
0.601793110370636,
-0.44710496068000793,
0.7041406631469727,
-0.4389989376068115,
-0.41308605670928955,
1.6448326110839844,
0.20103870332241058,
-1.3903398513793945,
-2.2728464603424072,
-0.2918460965156555,
-0.7675950527191162,
-0.021953199058771133,
-0.6478171944618225,
-1.0340496301651,
1.5705116987228394,
0.5237798690795898,
-1.309267282485962,
-0.4881923496723175,
-0.40580084919929504,
-0.6112955808639526,
2.7059378623962402,
-1.4365081787109375,
-0.29451122879981995,
-0.9521000981330872,
-0.4916417598724365,
1.723706841468811,
-1.176125168800354,
-0.20079968869686127,
-1.1012189388275146,
-0.6593652367591858,
-1.309447169303894,
-0.559608519077301,
-0.020128760486841202,
-1.0043537616729736,
0.8238998055458069,
0.18946418166160583,
-1.1407535076141357,
-0.1944204717874527,
-0.7629255652427673,
0.8790167570114136,
-0.1655697226524353,
0.36314964294433594,
1.9073755741119385,
0.4319988191127777,
-0.4383730888366699,
0.7854195237159729,
1.1444871425628662,
0.5870734453201294,
-0.6832985877990723,
0.2511454224586487,
-0.6447359919548035,
0.3252646028995514,
-1.3580979108810425,
0.2208934724330902,
-2.925407648086548,
0.6364250779151917,
-0.08149299025535583,
-0.04113950580358505,
-0.030069006606936455,
-1.322335958480835,
1.0600337982177734,
2.5716233253479004,
-1.2355691194534302,
0.46406635642051697,
0.31730830669403076,
1.1859787702560425,
-1.6485587358474731,
0.32769376039505005,
-0.35975873470306396,
2.1097137928009033,
0.10281093418598175,
1.287947177886963,
-0.42188987135887146,
-2.2153396606445312,
0.6369531154632568,
-1.351656198501587,
-1.1577954292297363,
0.7707152962684631,
-0.8011057376861572,
0.034469928592443466,
-1.3862545490264893,
-0.19139207899570465,
-0.8180387020111084,
-1.2981969118118286,
0.7944819331169128,
0.12496890127658844,
0.4461447596549988,
-0.5612043738365173,
0.34976083040237427,
-2.0737690925598145,
-1.4420661926269531,
-0.1554153710603714,
-0.9389131665229797,
0.3274206519126892,
-0.4348931312561035,
0.7218061685562134,
-0.2966611981391907,
0.10237221419811249,
0.3733809292316437,
1.327497124671936,
3.5266175270080566,
0.19807153940200806,
0.3560733199119568,
-0.20902898907661438,
-0.8684937357902527,
1.4877667427062988,
0.9907683730125427,
-0.0512169785797596,
-0.5908722877502441,
-1.0162644386291504,
1.2491909265518188,
1.9655075073242188,
0.8961591720581055,
0.1374153345823288,
-0.7668224573135376,
-0.5591652393341064,
-0.09302707016468048,
0.16883862018585205,
0.6067264676094055,
0.8024400472640991,
0.021427612751722336,
0.14651915431022644,
1.326202154159546,
1.182345986366272,
-0.40461766719818115,
0.4192499816417694,
-0.8519735932350159,
-0.4051480293273926,
0.4685026705265045,
0.32824644446372986,
-0.01639588549733162,
0.37724724411964417,
-0.9791296720504761,
-0.27556610107421875,
-0.30104729533195496,
-1.0169975757598877,
-0.7022877335548401,
-0.35436493158340454,
-0.33300018310546875,
1.652504324913025,
0.11922316253185272,
-0.48554959893226624,
-0.11177830398082733,
-0.7705177664756775,
-0.12522193789482117,
-1.0999635457992554,
0.18248602747917175,
-0.15818841755390167,
-0.10414811968803406,
-0.09290376305580139,
1.777427077293396,
-1.061768889427185,
-2.130647897720337,
0.2965172231197357,
0.20840144157409668,
-0.38121336698532104,
0.21388182044029236,
1.6189868450164795,
0.5032410025596619,
1.4560701847076416,
1.3342797756195068,
0.9888248443603516,
-0.7425320744514465,
-1.3011234998703003,
0.608001172542572,
0.9962807297706604,
-1.4595955610275269,
0.7557794451713562,
0.04670089855790138,
-0.5057781934738159,
0.6584757566452026,
1.4240248203277588,
0.5604610443115234,
-1.9441457986831665,
0.7295824885368347,
-0.8183379769325256,
0.8713868260383606,
0.7932764291763306,
0.7629427909851074,
0.2766464352607727,
0.8130484819412231,
-1.2293367385864258,
-1.2404847145080566,
-0.778195858001709,
-0.6692360043525696,
2.019716262817383,
-0.25651147961616516,
0.5789995789527893,
-0.1359919160604477,
-1.3164292573928833,
-0.10176168382167816,
0.6970293521881104,
0.30089640617370605,
-0.3334232270717621,
0.7503710389137268,
-0.7011756300926208,
-1.0243985652923584,
-1.4518588781356812,
-0.4362544119358063,
-0.9539030194282532,
-1.0418260097503662,
1.09830904006958,
0.7699652910232544,
0.2125241458415985,
1.8460818529129028,
0.6196331977844238,
0.2061801254749298,
-2.6729776859283447,
0.9362198710441589,
0.3113766312599182,
-0.04634277895092964,
0.8976989388465881,
0.2825736999511719,
1.1016759872436523,
0.0420994907617569,
0.5067641735076904,
-2.332911491394043,
2.260711908340454,
-0.2089216709136963,
0.5138402581214905,
-0.037270378321409225,
-0.24747517704963684,
1.108339786529541,
0.488712340593338,
0.5704114437103271,
-1.0911469459533691,
0.7500907778739929,
-0.6265552639961243,
1.2317818403244019,
0.9478536248207092,
-0.7720852494239807,
0.0037173880264163017,
1.4125572443008423,
0.6040647625923157,
-0.5603623390197754,
-0.889685332775116,
-0.8801170587539673,
0.9643430709838867,
1.7409323453903198,
-0.02764284797012806,
0.00995028205215931,
0.8022713661193848,
0.5962608456611633,
-1.2285152673721313,
0.055180054157972336,
-0.6621880531311035,
-0.7784051299095154,
1.603173851966858,
2.0424928665161133,
-0.07804012298583984,
-0.2099943459033966,
-0.8138546347618103,
-1.182772159576416,
0.7746015191078186,
-0.053506385535001755,
0.06822364032268524,
0.653005063533783,
-0.6060165166854858,
1.1435726881027222,
0.7481921911239624,
0.7950842976570129,
0.053031694144010544,
0.293427050113678,
0.3654695451259613,
-0.27629148960113525,
-1.1597723960876465,
-0.21987409889698029,
-1.1296160221099854,
-2.519319534301758,
0.4922817051410675,
-0.31997454166412354,
-1.3672181367874146,
-0.05633232742547989,
-1.0886698961257935,
0.9878888726234436,
-0.6109689474105835,
-1.021767497062683,
-1.586707592010498,
0.1995408982038498,
-0.1939990371465683,
0.8607748746871948,
-1.561761736869812,
-0.08708749711513519,
1.2812714576721191,
0.8916643261909485,
-0.7866076827049255,
1.0390976667404175,
0.17416030168533325,
1.0697321891784668,
0.7425997257232666,
-0.3714640736579895,
0.5657422542572021,
0.04180915653705597,
-1.3898848295211792,
0.5714722275733948,
1.0897204875946045,
0.12118054926395416,
1.6294835805892944,
-0.44163310527801514,
-0.09068754315376282,
0.5511326789855957,
-0.46548721194267273,
-0.5057587027549744,
-0.520429790019989,
0.8199460506439209,
0.10699313879013062,
-0.8374474048614502,
0.15267564356327057,
-0.14324024319648743,
-0.2069837599992752,
0.232347771525383,
-1.5567371845245361,
-0.19449695944786072,
-0.36483868956565857,
-0.5388023853302002,
-1.2944321632385254,
0.04330119490623474,
1.364476203918457,
-0.6534258723258972,
-0.27693459391593933,
0.5048298835754395,
0.3510375916957855,
0.41642138361930847,
0.5949939489364624,
-0.7212147116661072,
-0.35023033618927,
-0.278632253408432,
-0.2522898316383362,
0.3942544162273407,
1.2270514965057373,
-0.2027265429496765,
-1.0301294326782227,
0.7525413036346436,
-0.34135279059410095,
0.041947465389966965,
1.947503685951233,
0.10881336033344269,
-0.8500211834907532,
0.30132243037223816,
-0.7109842896461487,
2.0213258266448975,
1.5472307205200195,
1.384169578552246,
-0.05056438967585564,
-0.932918906211853,
0.6340792775154114,
-0.21253910660743713,
-0.2687268853187561,
0.9285492300987244,
0.48287931084632874,
-0.1187753975391388,
-1.4822399616241455,
0.6099290251731873,
1.2102144956588745,
-0.80982905626297,
-0.8551422357559204,
0.00610811822116375,
-0.7512691617012024,
0.9965327382087708,
0.6350182890892029,
0.4660032391548157,
0.24410705268383026,
1.5078951120376587,
0.7446236610412598,
-0.4886583387851715,
0.5258113741874695,
0.3885827958583832,
-0.14195717871189117,
-1.9894202947616577,
-1.109192967414856,
0.3433644473552704,
-0.530934751033783,
-1.649351954460144,
1.3331471681594849,
-1.1110368967056274,
-0.8698322772979736,
0.446016401052475,
0.08289334177970886,
1.4827759265899658,
0.27578845620155334,
1.6168057918548584,
1.9715138673782349,
0.9248308539390564,
0.2296803593635559,
1.422802209854126,
-0.19494736194610596,
-0.48943889141082764,
1.867293357849121,
-0.5577167272567749,
0.4280116856098175,
1.0854272842407227,
-0.4497367739677429,
-1.0426669120788574,
-0.7834879159927368,
-1.1992478370666504,
-0.597560465335846,
1.078037977218628,
0.1737990379333496,
-1.1071867942810059,
0.17790372669696808,
1.4734222888946533,
0.12965084612369537,
-0.2574523985385895,
0.6342887878417969,
0.4427870213985443,
-0.8851950168609619,
0.061927277594804764,
-0.860244631767273,
0.44174179434776306,
-0.14418925344944,
-0.33844926953315735,
0.46280544996261597,
0.43795260787010193,
1.3151158094406128,
-0.10690347850322723,
0.07296396791934967,
1.1864017248153687,
-1.4151376485824585,
1.469643473625183,
-0.5846712589263916,
0.20467762649059296,
-2.3996996879577637,
1.3175318241119385,
-0.7968246340751648,
1.923305869102478,
-2.6460342407226562,
0.3775654137134552,
-0.6866190433502197,
-0.418768972158432,
0.38310861587524414,
-0.4522443115711212,
0.16112810373306274,
-0.17395560443401337,
-1.1750820875167847,
-0.06545896828174591,
-0.7191874980926514,
0.576051652431488,
1.2326167821884155,
1.3468124866485596,
-1.038865327835083,
-0.2574108839035034,
-1.8543355464935303,
-0.15858221054077148,
-0.7080308198928833,
0.350511372089386,
-2.1310343742370605,
-0.19468510150909424,
-1.9713095426559448,
-2.335184097290039,
-1.2476046085357666,
-0.7353414297103882,
1.0460751056671143,
0.21578633785247803,
-0.9074223041534424,
1.0867561101913452,
-0.3055676519870758,
-1.6796563863754272,
1.0740493535995483,
-2.075345277786255
] |
https://github.com/huggingface/datasets/issues/4719 | Issue loading TheNoob3131/mosquito-data dataset | I am also getting a ValueError: 'Couldn't cast' at the bottom. Is this because of some delimiter issue? My dataset is on the Huggingface Hub. If you could look at it, that would be greatly appreciated. | 
So my dataset is public in the Huggingface Hub, but when I try to load it using the load_dataset command, it shows that it is downloading the files, but throws a ValueError. When I went to my directory to see if the files were downloaded, the folder was blank.
Here is the error below:
ValueError Traceback (most recent call last)
Input In [8], in <cell line: 3>()
1 from datasets import load_dataset
----> 3 dataset = load_dataset("TheNoob3131/mosquito-data", split="train")
File ~\Anaconda3\lib\site-packages\datasets\load.py:1679, 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)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
Is the dataset in the wrong format or is there some security permission that I should enable? | 619 | 36 | Issue loading TheNoob3131/mosquito-data dataset

So my dataset is public in the Huggingface Hub, but when I try to load it using the load_dataset command, it shows that it is downloading the files, but throws a ValueError. When I went to my directory to see if the files were downloaded, the folder was blank.
Here is the error below:
ValueError Traceback (most recent call last)
Input In [8], in <cell line: 3>()
1 from datasets import load_dataset
----> 3 dataset = load_dataset("TheNoob3131/mosquito-data", split="train")
File ~\Anaconda3\lib\site-packages\datasets\load.py:1679, 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)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
Is the dataset in the wrong format or is there some security permission that I should enable?
I am also getting a ValueError: 'Couldn't cast' at the bottom. Is this because of some delimiter issue? My dataset is on the Huggingface Hub. If you could look at it, that would be greatly appreciated. | [
-1.2549904584884644,
-0.9240724444389343,
-0.5246778726577759,
1.3861123323440552,
-0.11287446320056915,
-1.2396937608718872,
0.18596121668815613,
-1.1226168870925903,
1.5740840435028076,
-0.8552613258361816,
0.21875876188278198,
-1.6764179468154907,
-0.00016365014016628265,
-0.6318760514259338,
-0.7343732118606567,
-0.8665634989738464,
-0.4724233150482178,
-0.8103460669517517,
1.1395514011383057,
2.4437472820281982,
1.2702219486236572,
-1.4276378154754639,
2.766284942626953,
0.651580810546875,
-0.20121988654136658,
-1.0418323278427124,
0.5225117206573486,
0.03423085808753967,
-1.2333124876022339,
-0.4569811522960663,
-0.9434368014335632,
-0.08887362480163574,
-0.6719274520874023,
-0.3310540020465851,
-0.09671515226364136,
0.40517565608024597,
-0.291464239358902,
-0.2860713601112366,
-0.5259228348731995,
-0.7616754770278931,
0.505755603313446,
-0.3312339186668396,
0.977438747882843,
-0.2552550435066223,
1.7823928594589233,
-0.541003406047821,
0.5189381837844849,
0.7698570489883423,
1.2262431383132935,
0.15279531478881836,
-0.01567443087697029,
0.2669546604156494,
0.30123230814933777,
-0.048630211502313614,
0.4834391474723816,
1.144417405128479,
0.6607678532600403,
0.5310431718826294,
0.644097626209259,
-2.1809399127960205,
1.3791275024414062,
-0.9564862847328186,
0.28879326581954956,
1.4046564102172852,
-0.9539559483528137,
0.3886241614818573,
-1.7761117219924927,
-0.09028032422065735,
0.6720690131187439,
-2.2509095668792725,
0.28515979647636414,
-1.2777576446533203,
-0.5293044447898865,
0.9622216820716858,
0.3860095143318176,
-1.152659296989441,
0.1778719127178192,
-0.49058037996292114,
1.1298655271530151,
0.40760156512260437,
1.0679774284362793,
-1.7254536151885986,
0.028862200677394867,
-0.2153770923614502,
0.18171584606170654,
-1.3139599561691284,
-1.6432225704193115,
0.6207195520401001,
0.5717259645462036,
0.6401671171188354,
-0.1546219289302826,
1.1069869995117188,
-1.1211143732070923,
0.8436280488967896,
-1.1031206846237183,
-1.5271496772766113,
-1.3836934566497803,
-2.45878005027771,
-2.382230281829834,
0.6913280487060547,
-0.5278730988502502,
-0.544660210609436,
2.1923046112060547,
-1.0430901050567627,
-1.6049435138702393,
1.1432535648345947,
0.19680887460708618,
0.04399123415350914,
2.4150748252868652,
0.19990524649620056,
-0.7376131415367126,
0.5021187663078308,
-0.8131021857261658,
0.8105313181877136,
-0.27762001752853394,
1.3159607648849487,
0.48518508672714233,
-1.089436411857605,
1.5369458198547363,
-0.3940619230270386,
0.5782279968261719,
-0.5907105803489685,
-0.568297266960144,
-0.7149767875671387,
0.2534347176551819,
1.8158836364746094,
-0.20054730772972107,
1.5717531442642212,
-0.36517277359962463,
-1.5447616577148438,
-1.598961591720581,
0.9583649039268494,
0.4226795434951782,
-0.9256650805473328,
0.11339419335126877,
-0.5002821683883667,
0.11159767955541611,
-0.0612756572663784,
1.1279118061065674,
1.336858868598938,
0.6341233849525452,
-0.39702779054641724,
-0.8269702792167664,
0.08325881510972977,
-0.1849239468574524,
-0.683582067489624,
-1.808308482170105,
-0.2650444805622101,
0.024534150958061218,
0.6698406934738159,
-1.067320704460144,
1.8794468641281128,
0.9911765456199646,
1.9250086545944214,
0.913830578327179,
-0.4051845073699951,
1.3752810955047607,
0.030567631125450134,
1.7484662532806396,
-0.552183210849762,
0.6318360567092896,
-0.36188316345214844,
-1.1796486377716064,
0.9398331642150879,
-0.2914181649684906,
-1.9848612546920776,
-0.7592744827270508,
-0.6610468626022339,
-0.20767515897750854,
-0.7912684082984924,
0.9058398604393005,
-0.21864566206932068,
-1.4590636491775513,
0.2479936182498932,
-0.6095661520957947,
0.26538607478141785,
-1.1870700120925903,
0.3088572025299072,
0.7058839201927185,
-0.6730067729949951,
-0.033871352672576904,
-0.17905709147453308,
-1.3030451536178589,
-0.4556017816066742,
0.4121438264846802,
1.831560730934143,
-0.6367349028587341,
0.8916056752204895,
1.0928986072540283,
-0.5622619986534119,
0.01448763906955719,
0.2305757999420166,
-0.2121056318283081,
0.7794515490531921,
-1.0434391498565674,
-0.5006262063980103,
1.1932507753372192,
-0.3819981515407562,
-0.5482392907142639,
1.441771388053894,
0.6860383749008179,
-1.0840435028076172,
-0.16539275646209717,
-0.14796656370162964,
-0.8998066186904907,
0.04654955118894577,
-1.5339105129241943,
-0.10976606607437134,
0.4671120047569275,
-1.588208556175232,
-0.3403989374637604,
-0.16805744171142578,
1.4071226119995117,
-0.16914504766464233,
1.4830607175827026,
-0.34237048029899597,
-0.06869146227836609,
-0.3517434298992157,
-0.402303010225296,
0.22910970449447632,
-0.1366543173789978,
-0.4372777044773102,
0.0630933865904808,
-0.8137432932853699,
0.3234008252620697,
1.4766334295272827,
0.22246068716049194,
0.07350218296051025,
0.35362786054611206,
1.122344970703125,
0.35153090953826904,
-0.05572018027305603,
-0.8171951174736023,
-1.4967821836471558,
1.962950348854065,
-1.524880290031433,
2.0110936164855957,
0.8351753950119019,
-0.038720160722732544,
-1.7755329608917236,
-1.733261227607727,
1.2952913045883179,
1.1462329626083374,
2.2926418781280518,
0.4258562922477722,
0.3044946491718292,
-0.8395459651947021,
-0.6735933423042297,
0.3900657892227173,
-0.9630927443504333,
-0.6294202208518982,
0.16742852330207825,
2.3399477005004883,
1.7716974020004272,
-0.39682748913764954,
-0.19310152530670166,
-0.8910314440727234,
1.3931936025619507,
-0.24258196353912354,
0.24280843138694763,
2.050089120864868,
-0.37669482827186584,
-1.0983493328094482,
1.3245400190353394,
-2.4755523204803467,
0.22130736708641052,
2.038393497467041,
0.3127114772796631,
0.12791791558265686,
-1.3192075490951538,
-0.5879254937171936,
-0.3907346725463867,
-0.48310986161231995,
-1.2546342611312866,
0.5465869903564453,
-0.3577633500099182,
-0.7770057320594788,
-1.41010582447052,
0.13087117671966553,
-1.1931530237197876,
-1.7970571517944336,
0.36042168736457825,
1.850046992301941,
2.0943331718444824,
-0.8005672097206116,
1.4827196598052979,
-0.3391948342323303,
0.1755097210407257,
1.1844336986541748,
1.3608286380767822,
3.0886306762695312,
1.8249226808547974,
-1.2859575748443604,
0.5664069056510925,
-0.1741216480731964,
-0.5185008645057678,
1.1200381517410278,
-1.1256458759307861,
1.3668237924575806,
-0.1359114646911621,
-1.2449856996536255,
-1.280830979347229,
1.045676589012146,
0.43186891078948975,
0.0849953219294548,
-0.529602587223053,
1.2224557399749756,
0.18597537279129028,
1.3609416484832764,
0.5695421695709229,
-0.3917454183101654,
0.5364994406700134,
-0.4543716013431549,
-0.6801787614822388,
1.55291748046875,
0.19182345271110535,
-1.5570173263549805,
-2.2329607009887695,
-0.35742151737213135,
-0.8619964718818665,
0.08440890908241272,
-0.7243116497993469,
-1.0110687017440796,
1.5387938022613525,
0.3254221975803375,
-1.2681814432144165,
-0.2959780693054199,
-0.3364148437976837,
-0.4947151839733124,
2.655301094055176,
-1.2368427515029907,
-0.12215980887413025,
-0.9141688346862793,
-0.6812149286270142,
1.6442821025848389,
-1.2501182556152344,
-0.27378755807876587,
-1.1254727840423584,
-0.637347936630249,
-1.2258505821228027,
-0.4002409279346466,
-0.011321306228637695,
-0.9720519185066223,
0.7282560467720032,
0.1874040961265564,
-1.210058569908142,
-0.34871259331703186,
-0.8215613961219788,
1.0433568954467773,
-0.16852164268493652,
0.18978679180145264,
1.7227787971496582,
0.27912867069244385,
-0.4887531101703644,
0.7945356965065002,
1.222013235092163,
0.6690598130226135,
-0.6471412181854248,
-0.007223299704492092,
-0.6986957788467407,
0.4569801092147827,
-1.2005120515823364,
0.3031788468360901,
-2.9862213134765625,
0.6476508378982544,
-0.09853589534759521,
-0.06744852662086487,
-0.09753723442554474,
-1.4359239339828491,
1.0369350910186768,
2.565293788909912,
-1.156086802482605,
0.5292481184005737,
0.4742395281791687,
1.1185498237609863,
-1.6674643754959106,
0.2816648781299591,
-0.5372728705406189,
2.095365524291992,
0.19177892804145813,
1.2381383180618286,
-0.5077815651893616,
-2.395937204360962,
0.6245551705360413,
-1.2538847923278809,
-1.1323716640472412,
0.8880595564842224,
-0.9569330215454102,
0.24005186557769775,
-1.3466522693634033,
-0.22676551342010498,
-0.9624217748641968,
-1.1732462644577026,
0.6295633316040039,
0.14010626077651978,
0.427360862493515,
-0.57818204164505,
0.24972373247146606,
-2.1880643367767334,
-1.2897554636001587,
-0.18895062804222107,
-0.9488124847412109,
0.5264182686805725,
-0.48574239015579224,
0.5259552001953125,
-0.11027076095342636,
0.08433923125267029,
0.3941320776939392,
1.5731130838394165,
3.375140905380249,
0.1382429301738739,
0.23761025071144104,
-0.16594821214675903,
-0.9305959343910217,
1.5172085762023926,
0.88214111328125,
-0.09227801114320755,
-0.5830138921737671,
-1.0117472410202026,
1.2608846426010132,
1.9669992923736572,
0.9792524576187134,
-0.043505460023880005,
-0.7720070481300354,
-0.6311744451522827,
-0.02706162817776203,
0.1640690565109253,
0.5528489351272583,
0.9769982695579529,
-0.0024744421243667603,
0.06580576300621033,
1.3707313537597656,
1.133567452430725,
-0.40015947818756104,
0.32418739795684814,
-0.8999779224395752,
-0.5113711953163147,
0.42468327283859253,
0.20643019676208496,
-0.011400016956031322,
0.4686950445175171,
-0.9342333674430847,
-0.2218087613582611,
-0.37345442175865173,
-0.8360707759857178,
-0.7129250764846802,
-0.3925594389438629,
-0.4225192964076996,
1.628955602645874,
0.11130127310752869,
-0.5004116296768188,
0.10751412063837051,
-0.6733546257019043,
-0.2691342830657959,
-1.1150431632995605,
0.19513186812400818,
-0.06628662347793579,
-0.08272112905979156,
-0.1676095426082611,
1.6854331493377686,
-0.9254255294799805,
-2.091167688369751,
0.1657882034778595,
0.2216423749923706,
-0.22185677289962769,
0.1713157594203949,
1.7186006307601929,
0.41494014859199524,
1.4737672805786133,
1.320547103881836,
0.9809183478355408,
-0.630619466304779,
-1.3009963035583496,
0.8601386547088623,
0.958840548992157,
-1.3736807107925415,
0.9254778623580933,
-0.1340705007314682,
-0.5292567014694214,
0.7255460023880005,
1.2626711130142212,
0.48524436354637146,
-2.0391998291015625,
0.9427284598350525,
-1.1687345504760742,
0.9216534495353699,
0.7190707921981812,
0.6669062972068787,
0.216959148645401,
0.9375522136688232,
-1.1104412078857422,
-1.1239550113677979,
-0.6753116846084595,
-0.7602057456970215,
1.9850720167160034,
-0.44655442237854004,
0.5978567600250244,
-0.20736569166183472,
-1.238505244255066,
-0.0456380732357502,
0.7972175478935242,
0.3270041346549988,
-0.4312933385372162,
0.7995748519897461,
-0.7051233649253845,
-1.0199140310287476,
-1.290149450302124,
-0.3306460678577423,
-1.0795505046844482,
-0.9160258769989014,
1.0469237565994263,
0.6871476173400879,
0.3283969759941101,
1.926400899887085,
0.6187462210655212,
0.34846243262290955,
-2.533216953277588,
0.8898463845252991,
0.22748339176177979,
-0.11962243169546127,
0.8848196864128113,
0.3258706033229828,
1.101096272468567,
0.061560243368148804,
0.5847885608673096,
-2.486599922180176,
2.293356418609619,
-0.23045554757118225,
0.6813837289810181,
0.021215680986642838,
-0.23147815465927124,
1.1589410305023193,
0.6626458168029785,
0.4404318332672119,
-1.068849802017212,
0.7642397284507751,
-0.42465296387672424,
1.140651822090149,
0.9036223292350769,
-0.839137077331543,
0.0396680124104023,
1.3803141117095947,
0.4756371080875397,
-0.5738974213600159,
-0.9848721623420715,
-0.9823909401893616,
0.8730159401893616,
1.6653443574905396,
-0.105079784989357,
-0.0606037974357605,
0.6726671457290649,
0.7653859257698059,
-1.1151341199874878,
0.10846524685621262,
-0.644943118095398,
-0.8107368350028992,
1.6588895320892334,
2.080094575881958,
-0.15818315744400024,
-0.08558716624975204,
-0.6899632215499878,
-1.2656875848770142,
0.8216622471809387,
-0.1289905309677124,
-0.008610764518380165,
0.5249199867248535,
-0.6399862170219421,
1.0323652029037476,
0.7347906231880188,
0.8919479250907898,
0.18856006860733032,
0.21041125059127808,
0.4675041735172272,
-0.26445284485816956,
-1.0878280401229858,
-0.2935735583305359,
-1.0952175855636597,
-2.5851852893829346,
0.4014161229133606,
-0.2758972942829132,
-1.4600684642791748,
0.01630573347210884,
-1.0189933776855469,
0.8736678957939148,
-0.5658900737762451,
-1.1411241292953491,
-1.5476524829864502,
0.23581254482269287,
-0.060641709715127945,
0.9932733178138733,
-1.5868337154388428,
-0.16009750962257385,
1.201575517654419,
0.7350559234619141,
-0.6287153363227844,
1.0193548202514648,
0.22681617736816406,
0.9917072653770447,
0.7627098560333252,
-0.403379887342453,
0.7137847542762756,
0.11002602428197861,
-1.3810685873031616,
0.4646144509315491,
1.2568738460540771,
0.15751099586486816,
1.4427490234375,
-0.3658312261104584,
-0.014258435927331448,
0.41421017050743103,
-0.660948634147644,
-0.5723779201507568,
-0.36895790696144104,
0.6768718361854553,
0.013589521870017052,
-0.8811426162719727,
-0.049489255994558334,
-0.19223642349243164,
-0.4267165958881378,
0.20934700965881348,
-1.49187433719635,
-0.21477434039115906,
-0.5207949280738831,
-0.424377977848053,
-1.3722844123840332,
-0.09524330496788025,
1.4935007095336914,
-0.6558486223220825,
-0.25010114908218384,
0.49279138445854187,
0.4381824731826782,
0.5082714557647705,
0.6940697431564331,
-0.6897767186164856,
-0.23505058884620667,
-0.3184594213962555,
-0.3062557280063629,
0.3617844581604004,
1.2943334579467773,
-0.095862977206707,
-0.8988684415817261,
0.631581723690033,
-0.3148200511932373,
0.16049855947494507,
1.9571202993392944,
0.08501027524471283,
-0.6934923529624939,
0.3901435434818268,
-0.7361977100372314,
1.8455790281295776,
1.7039854526519775,
1.2623807191848755,
-0.14956983923912048,
-0.9234569668769836,
0.631416916847229,
-0.41385123133659363,
-0.3042429983615875,
0.9219050407409668,
0.3975704312324524,
-0.2801015377044678,
-1.4243454933166504,
0.792955756187439,
1.2195388078689575,
-0.7461640238761902,
-0.7396417260169983,
0.10681497305631638,
-0.7792713046073914,
1.2001488208770752,
0.5460286736488342,
0.4142385721206665,
0.25049304962158203,
1.6653265953063965,
0.7804102897644043,
-0.5028431415557861,
0.5411366820335388,
0.4805637001991272,
-0.27249598503112793,
-2.111443042755127,
-1.1802858114242554,
0.2808566093444824,
-0.5873416662216187,
-1.5119130611419678,
1.4075239896774292,
-1.0962622165679932,
-1.0979244709014893,
0.47419071197509766,
-0.048073600977659225,
1.251282811164856,
0.3845727741718292,
1.6171656847000122,
2.0932412147521973,
0.8864149451255798,
0.559140682220459,
1.276790976524353,
-0.1657608151435852,
-0.4377426207065582,
1.8423881530761719,
-0.3740782141685486,
0.4162001609802246,
1.1931076049804688,
-0.3511175215244293,
-1.0801002979278564,
-0.8185046911239624,
-1.1449646949768066,
-0.6367373466491699,
1.1384183168411255,
0.02153753489255905,
-1.0490553379058838,
0.34099021553993225,
1.5457439422607422,
0.15408331155776978,
-0.2419000267982483,
0.6405503153800964,
0.33729758858680725,
-0.7343447804450989,
-0.15644431114196777,
-0.9406097531318665,
0.551044225692749,
-0.3203587532043457,
-0.38022860884666443,
0.3187204599380493,
0.5226366519927979,
1.301436424255371,
-0.08697181195020676,
0.2185647189617157,
1.022476315498352,
-1.4819436073303223,
1.3470603227615356,
-0.65293949842453,
0.25822463631629944,
-2.3437511920928955,
1.344602108001709,
-0.6218962073326111,
2.050135850906372,
-2.7103493213653564,
0.43102845549583435,
-0.5896745324134827,
-0.5973957180976868,
0.3705098032951355,
-0.29661133885383606,
0.12585535645484924,
-0.12309975177049637,
-1.084295630455017,
0.027512408792972565,
-0.6339849829673767,
0.6347033381462097,
1.1059776544570923,
1.3403228521347046,
-1.0583651065826416,
-0.2577217221260071,
-1.5579493045806885,
-0.17799317836761475,
-0.7721977233886719,
0.2027476727962494,
-1.954572081565857,
-0.12188604474067688,
-2.03532338142395,
-2.36933970451355,
-1.2506654262542725,
-0.8314789533615112,
1.160257339477539,
0.24321019649505615,
-0.9216834902763367,
1.322666883468628,
-0.3718220293521881,
-1.7852201461791992,
1.1668367385864258,
-2.0801234245300293
] |
https://github.com/huggingface/datasets/issues/4719 | Issue loading TheNoob3131/mosquito-data dataset | Hi @thenerd31, thanks for reporting.
Please note that your issue is not caused by the Hugging Face Datasets library, but it has to do with the specific implementation of your dataset on the Hub.
Therefore, I'm transferring this discussion to your own dataset Community tab: https://huggingface.co/datasets/TheNoob3131/mosquito-data/discussions/1 | 
So my dataset is public in the Huggingface Hub, but when I try to load it using the load_dataset command, it shows that it is downloading the files, but throws a ValueError. When I went to my directory to see if the files were downloaded, the folder was blank.
Here is the error below:
ValueError Traceback (most recent call last)
Input In [8], in <cell line: 3>()
1 from datasets import load_dataset
----> 3 dataset = load_dataset("TheNoob3131/mosquito-data", split="train")
File ~\Anaconda3\lib\site-packages\datasets\load.py:1679, 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)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
Is the dataset in the wrong format or is there some security permission that I should enable? | 619 | 46 | Issue loading TheNoob3131/mosquito-data dataset

So my dataset is public in the Huggingface Hub, but when I try to load it using the load_dataset command, it shows that it is downloading the files, but throws a ValueError. When I went to my directory to see if the files were downloaded, the folder was blank.
Here is the error below:
ValueError Traceback (most recent call last)
Input In [8], in <cell line: 3>()
1 from datasets import load_dataset
----> 3 dataset = load_dataset("TheNoob3131/mosquito-data", split="train")
File ~\Anaconda3\lib\site-packages\datasets\load.py:1679, 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)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
Is the dataset in the wrong format or is there some security permission that I should enable?
Hi @thenerd31, thanks for reporting.
Please note that your issue is not caused by the Hugging Face Datasets library, but it has to do with the specific implementation of your dataset on the Hub.
Therefore, I'm transferring this discussion to your own dataset Community tab: https://huggingface.co/datasets/TheNoob3131/mosquito-data/discussions/1 | [
-1.248188853263855,
-0.9185954332351685,
-0.5228260159492493,
1.3827552795410156,
-0.1171034649014473,
-1.247804045677185,
0.19224907457828522,
-1.117698311805725,
1.5641155242919922,
-0.8583731651306152,
0.2153657227754593,
-1.6779617071151733,
-0.00891626812517643,
-0.6336252689361572,
-0.7436414957046509,
-0.8647992014884949,
-0.4821699559688568,
-0.8068115711212158,
1.1360878944396973,
2.4449403285980225,
1.2673732042312622,
-1.4206997156143188,
2.7645351886749268,
0.6457924246788025,
-0.19903592765331268,
-1.042561650276184,
0.5234745740890503,
0.038387175649404526,
-1.229670524597168,
-0.4560736417770386,
-0.94950932264328,
-0.09663327783346176,
-0.6699614524841309,
-0.3336489200592041,
-0.09156625717878342,
0.4092774987220764,
-0.28700968623161316,
-0.2740718424320221,
-0.5269424915313721,
-0.7642924785614014,
0.501662015914917,
-0.3372825086116791,
0.9878361225128174,
-0.25507956743240356,
1.783679485321045,
-0.5488215684890747,
0.5259208083152771,
0.7628986835479736,
1.2292912006378174,
0.1547245979309082,
-0.006726256106048822,
0.2557678520679474,
0.30434414744377136,
-0.04835744947195053,
0.4822753965854645,
1.1375635862350464,
0.6671178936958313,
0.5296039581298828,
0.6358076930046082,
-2.185903787612915,
1.3735162019729614,
-0.9550923109054565,
0.286420613527298,
1.4248631000518799,
-0.9572954773902893,
0.3906109631061554,
-1.7820814847946167,
-0.09311797469854355,
0.6665911674499512,
-2.2512056827545166,
0.2884081304073334,
-1.2683311700820923,
-0.5188705921173096,
0.9603228569030762,
0.3967936635017395,
-1.1591744422912598,
0.18259118497371674,
-0.4889770448207855,
1.1302974224090576,
0.3948199450969696,
1.059760570526123,
-1.7353266477584839,
0.023236200213432312,
-0.22453345358371735,
0.17516884207725525,
-1.3114744424819946,
-1.6482800245285034,
0.6224645376205444,
0.5636284351348877,
0.6406615376472473,
-0.15234696865081787,
1.1015939712524414,
-1.1332218647003174,
0.8344182372093201,
-1.1074953079223633,
-1.5255892276763916,
-1.383772611618042,
-2.45892333984375,
-2.3837578296661377,
0.6924837231636047,
-0.5232517123222351,
-0.5532465577125549,
2.188594102859497,
-1.0439412593841553,
-1.5910571813583374,
1.1371619701385498,
0.18517066538333893,
0.042024996131658554,
2.422088861465454,
0.20087504386901855,
-0.7345800995826721,
0.504487931728363,
-0.8168108463287354,
0.810749351978302,
-0.27602002024650574,
1.3165404796600342,
0.48481279611587524,
-1.092856764793396,
1.5408990383148193,
-0.3955668807029724,
0.5724236369132996,
-0.5941119194030762,
-0.5752530097961426,
-0.7186493277549744,
0.24811652302742004,
1.8166191577911377,
-0.19503207504749298,
1.5698541402816772,
-0.35849103331565857,
-1.5462197065353394,
-1.5910956859588623,
0.9652372598648071,
0.4297822415828705,
-0.931675136089325,
0.11048664152622223,
-0.5054564476013184,
0.1154930517077446,
-0.061839863657951355,
1.1277613639831543,
1.3321006298065186,
0.6339994668960571,
-0.39840877056121826,
-0.8334314227104187,
0.08303262293338776,
-0.19250650703907013,
-0.6865690350532532,
-1.8083271980285645,
-0.26351553201675415,
0.019993137568235397,
0.6671355366706848,
-1.0624641180038452,
1.8780521154403687,
0.9876183867454529,
1.924662470817566,
0.9156054854393005,
-0.408088356256485,
1.3652927875518799,
0.037416763603687286,
1.7527002096176147,
-0.5620068311691284,
0.6374989151954651,
-0.3685682713985443,
-1.1859216690063477,
0.9475350975990295,
-0.29587504267692566,
-1.9867334365844727,
-0.7573956847190857,
-0.6564823985099792,
-0.21052713692188263,
-0.7889550924301147,
0.908420741558075,
-0.22450445592403412,
-1.4627267122268677,
0.25006845593452454,
-0.6006136536598206,
0.2727302014827728,
-1.1901638507843018,
0.31570523977279663,
0.7150871753692627,
-0.6700449585914612,
-0.04040047898888588,
-0.1770806908607483,
-1.3043054342269897,
-0.45031335949897766,
0.40984129905700684,
1.8379850387573242,
-0.6361640095710754,
0.900617778301239,
1.084384560585022,
-0.5608257055282593,
0.0027691861614584923,
0.22749441862106323,
-0.2161843329668045,
0.7769487500190735,
-1.0423887968063354,
-0.5022459626197815,
1.1935155391693115,
-0.38109132647514343,
-0.5493190288543701,
1.4424405097961426,
0.6895127296447754,
-1.0843026638031006,
-0.1693660169839859,
-0.14198990166187286,
-0.9060400128364563,
0.05002608522772789,
-1.5419789552688599,
-0.10093547403812408,
0.47249293327331543,
-1.5890636444091797,
-0.3373570144176483,
-0.16044318675994873,
1.4111418724060059,
-0.17543794214725494,
1.4801021814346313,
-0.3361406922340393,
-0.07362154126167297,
-0.36304107308387756,
-0.4113737940788269,
0.22490379214286804,
-0.13216425478458405,
-0.4313560426235199,
0.07346480339765549,
-0.8090583086013794,
0.3312918245792389,
1.4716917276382446,
0.22050584852695465,
0.06547477096319199,
0.3564421832561493,
1.121340274810791,
0.34487009048461914,
-0.052893511950969696,
-0.8223029375076294,
-1.5069783926010132,
1.9579983949661255,
-1.5282069444656372,
2.0143349170684814,
0.8322383761405945,
-0.04404532536864281,
-1.7666834592819214,
-1.7301841974258423,
1.296291470527649,
1.1474982500076294,
2.294093132019043,
0.4189590811729431,
0.31120800971984863,
-0.8349270820617676,
-0.6699726581573486,
0.392395555973053,
-0.9681283831596375,
-0.6324647068977356,
0.17386160790920258,
2.337991714477539,
1.7595157623291016,
-0.399361252784729,
-0.1964566856622696,
-0.8928303122520447,
1.3872387409210205,
-0.24346384406089783,
0.23949885368347168,
2.047896146774292,
-0.3792022168636322,
-1.0952165126800537,
1.3224796056747437,
-2.477175235748291,
0.22480110824108124,
2.0420610904693604,
0.3223649263381958,
0.12326427549123764,
-1.316257119178772,
-0.586685836315155,
-0.39210718870162964,
-0.4827502369880676,
-1.2632533311843872,
0.5476123094558716,
-0.34839192032814026,
-0.7794761061668396,
-1.415352463722229,
0.1308271586894989,
-1.1912941932678223,
-1.7861218452453613,
0.3646846413612366,
1.849186658859253,
2.0919384956359863,
-0.803352952003479,
1.4808762073516846,
-0.33863767981529236,
0.18054604530334473,
1.1780145168304443,
1.3604069948196411,
3.0868778228759766,
1.8367977142333984,
-1.2757468223571777,
0.5820188522338867,
-0.17601871490478516,
-0.5247852206230164,
1.126707673072815,
-1.1198904514312744,
1.360665202140808,
-0.13633152842521667,
-1.2495733499526978,
-1.2900723218917847,
1.038629174232483,
0.42598646879196167,
0.08200186491012573,
-0.5268635749816895,
1.224166989326477,
0.18673834204673767,
1.3640990257263184,
0.5704193711280823,
-0.38231557607650757,
0.5320031046867371,
-0.4612165689468384,
-0.6815356016159058,
1.5549075603485107,
0.19728538393974304,
-1.56360924243927,
-2.2424404621124268,
-0.36198922991752625,
-0.8598212003707886,
0.08351948857307434,
-0.7235191464424133,
-1.0123608112335205,
1.5462462902069092,
0.33105501532554626,
-1.2590739727020264,
-0.2938407063484192,
-0.3301280736923218,
-0.48966723680496216,
2.6591403484344482,
-1.2374175786972046,
-0.11559370905160904,
-0.9122416973114014,
-0.6881407499313354,
1.6537870168685913,
-1.256591796875,
-0.2663542926311493,
-1.1236538887023926,
-0.6342124938964844,
-1.222733974456787,
-0.38843834400177,
-0.009294148534536362,
-0.9774738550186157,
0.7285658717155457,
0.1855873018503189,
-1.2173384428024292,
-0.35002821683883667,
-0.8287336230278015,
1.0393187999725342,
-0.16773198544979095,
0.19152870774269104,
1.7242860794067383,
0.28735366463661194,
-0.49183258414268494,
0.792492151260376,
1.2291526794433594,
0.6740844249725342,
-0.6509535908699036,
-0.013238768093287945,
-0.6950810551643372,
0.45391845703125,
-1.1999045610427856,
0.29307690262794495,
-2.980052947998047,
0.64633709192276,
-0.09507375210523605,
-0.07182583957910538,
-0.09306762367486954,
-1.4336904287338257,
1.0405216217041016,
2.556623935699463,
-1.1537116765975952,
0.5237036943435669,
0.4742496609687805,
1.1255152225494385,
-1.660361886024475,
0.2805335521697998,
-0.5450267195701599,
2.094425916671753,
0.19156469404697418,
1.2339215278625488,
-0.507810652256012,
-2.391500234603882,
0.6240875720977783,
-1.261358618736267,
-1.1305729150772095,
0.8895232677459717,
-0.953750729560852,
0.24273613095283508,
-1.3474565744400024,
-0.22657179832458496,
-0.9647737741470337,
-1.1846551895141602,
0.6346306800842285,
0.13311243057250977,
0.41924917697906494,
-0.5745813846588135,
0.25602519512176514,
-2.188290596008301,
-1.2791677713394165,
-0.19250822067260742,
-0.9457020163536072,
0.5182886719703674,
-0.4746696650981903,
0.5194172859191895,
-0.11869144439697266,
0.08099136501550674,
0.3888288736343384,
1.5761055946350098,
3.370344400405884,
0.13249266147613525,
0.2360425740480423,
-0.1717914640903473,
-0.9339447617530823,
1.5203195810317993,
0.8881216049194336,
-0.07819972932338715,
-0.5882935523986816,
-1.0011508464813232,
1.256299614906311,
1.9624077081680298,
0.9904024004936218,
-0.0473053865134716,
-0.7726165652275085,
-0.6232743859291077,
-0.025902610272169113,
0.16454701125621796,
0.5514112710952759,
0.9814599752426147,
-0.0030156997963786125,
0.06094241142272949,
1.364050030708313,
1.1335091590881348,
-0.39469385147094727,
0.3127919137477875,
-0.8967483043670654,
-0.5107519626617432,
0.42687204480171204,
0.20564652979373932,
-0.008277670480310917,
0.47162917256355286,
-0.9321276545524597,
-0.220941960811615,
-0.36855408549308777,
-0.8378250598907471,
-0.710857629776001,
-0.40039557218551636,
-0.42913922667503357,
1.6341830492019653,
0.10654409974813461,
-0.49486348032951355,
0.1152518168091774,
-0.6786910891532898,
-0.26496729254722595,
-1.1182125806808472,
0.1975395828485489,
-0.06614536792039871,
-0.08354941755533218,
-0.16646568477153778,
1.6952272653579712,
-0.9296044707298279,
-2.0951147079467773,
0.1618879735469818,
0.2355230450630188,
-0.2242017388343811,
0.16764812171459198,
1.715672254562378,
0.4094349443912506,
1.4739738702774048,
1.3223432302474976,
0.9825677871704102,
-0.6276577711105347,
-1.3114289045333862,
0.8600619435310364,
0.9588622450828552,
-1.382404088973999,
0.9329305291175842,
-0.13593605160713196,
-0.5257470011711121,
0.7179558277130127,
1.2561092376708984,
0.4894476532936096,
-2.0261104106903076,
0.9419001340866089,
-1.1757173538208008,
0.9158846139907837,
0.7171452641487122,
0.6714021563529968,
0.22629472613334656,
0.9401077628135681,
-1.1109037399291992,
-1.1168664693832397,
-0.6723437309265137,
-0.7502294778823853,
1.9823431968688965,
-0.4482685625553131,
0.6012845039367676,
-0.20255739986896515,
-1.2316197156906128,
-0.04417410120368004,
0.803514301776886,
0.3274206221103668,
-0.42950674891471863,
0.8026820421218872,
-0.7024708390235901,
-1.0258750915527344,
-1.2869513034820557,
-0.3305562138557434,
-1.0870475769042969,
-0.9120138883590698,
1.0511324405670166,
0.6748420596122742,
0.3419954478740692,
1.9297598600387573,
0.6208438277244568,
0.356547087430954,
-2.539944887161255,
0.8825646042823792,
0.23048442602157593,
-0.12098512053489685,
0.8843247294425964,
0.3255288004875183,
1.1051883697509766,
0.046722933650016785,
0.5939148664474487,
-2.4931106567382812,
2.2952773571014404,
-0.236723855137825,
0.6829411387443542,
0.02322690188884735,
-0.22061707079410553,
1.1536282300949097,
0.6697553992271423,
0.4360519349575043,
-1.0685477256774902,
0.765679121017456,
-0.4273284077644348,
1.1431729793548584,
0.9011715054512024,
-0.8405813574790955,
0.039581675082445145,
1.3839223384857178,
0.4810256063938141,
-0.5653914213180542,
-0.984522819519043,
-0.9860727787017822,
0.8650115132331848,
1.6634750366210938,
-0.10373053699731827,
-0.06643915921449661,
0.6797483563423157,
0.7621283531188965,
-1.1102238893508911,
0.10904813557863235,
-0.6510962843894958,
-0.8096486330032349,
1.6630480289459229,
2.080483913421631,
-0.1583133041858673,
-0.08351118117570877,
-0.6902441382408142,
-1.2589324712753296,
0.820817768573761,
-0.12679237127304077,
-0.0007706368342041969,
0.5272009968757629,
-0.6340712904930115,
1.0272140502929688,
0.7252621650695801,
0.8883175253868103,
0.19075889885425568,
0.21197691559791565,
0.46121424436569214,
-0.2610709071159363,
-1.0836427211761475,
-0.2822328209877014,
-1.100572943687439,
-2.597526788711548,
0.39777693152427673,
-0.29019278287887573,
-1.456418514251709,
0.02908504381775856,
-1.0232927799224854,
0.868719756603241,
-0.5726754069328308,
-1.1511237621307373,
-1.5520551204681396,
0.23440676927566528,
-0.061514806002378464,
0.9975115656852722,
-1.59299635887146,
-0.15948262810707092,
1.2017642259597778,
0.727260947227478,
-0.6246122717857361,
1.021889090538025,
0.23114131391048431,
0.9956870675086975,
0.7601421475410461,
-0.3990522027015686,
0.7163675427436829,
0.11479715257883072,
-1.3828849792480469,
0.4716200828552246,
1.2578412294387817,
0.15309107303619385,
1.4428839683532715,
-0.3656429946422577,
-0.012079884298145771,
0.4123956263065338,
-0.6645111441612244,
-0.5719292163848877,
-0.3642510771751404,
0.6828871965408325,
0.026903390884399414,
-0.8839771151542664,
-0.05359062924981117,
-0.19906508922576904,
-0.4180860221385956,
0.20329830050468445,
-1.4857006072998047,
-0.21792733669281006,
-0.5273246765136719,
-0.4210715591907501,
-1.3713988065719604,
-0.09988028556108475,
1.4885170459747314,
-0.6583768129348755,
-0.24448926746845245,
0.49391964077949524,
0.43324074149131775,
0.5080558657646179,
0.6907238960266113,
-0.6886357069015503,
-0.23744361102581024,
-0.3196130096912384,
-0.311125248670578,
0.3557893931865692,
1.2951180934906006,
-0.09831133484840393,
-0.8951297402381897,
0.6308343410491943,
-0.30991172790527344,
0.15696057677268982,
1.9576313495635986,
0.08128981292247772,
-0.6975014209747314,
0.39284637570381165,
-0.7274559140205383,
1.8462002277374268,
1.691080093383789,
1.2596356868743896,
-0.1566249281167984,
-0.9129831194877625,
0.6316818594932556,
-0.406162828207016,
-0.30579960346221924,
0.9138697981834412,
0.39754921197891235,
-0.2778819501399994,
-1.4253815412521362,
0.7968462109565735,
1.2224098443984985,
-0.744025468826294,
-0.7362919449806213,
0.11847660690546036,
-0.7813053727149963,
1.1970118284225464,
0.5394102931022644,
0.416742205619812,
0.24613115191459656,
1.6585757732391357,
0.775414764881134,
-0.49510782957077026,
0.5415830016136169,
0.4797656536102295,
-0.2718293368816376,
-2.110773801803589,
-1.1811299324035645,
0.283805251121521,
-0.587192714214325,
-1.5070017576217651,
1.4064414501190186,
-1.0939736366271973,
-1.1003519296646118,
0.4743804633617401,
-0.04028227552771568,
1.2555155754089355,
0.3888283967971802,
1.6226726770401,
2.0924735069274902,
0.8885346055030823,
0.5583457946777344,
1.2807615995407104,
-0.15643000602722168,
-0.44813308119773865,
1.8407307863235474,
-0.37361273169517517,
0.417049378156662,
1.1978682279586792,
-0.34711307287216187,
-1.0814098119735718,
-0.8170024156570435,
-1.138846755027771,
-0.6325508952140808,
1.1401035785675049,
0.025068234652280807,
-1.042633056640625,
0.334166556596756,
1.5384790897369385,
0.1573943942785263,
-0.23893563449382782,
0.6460710763931274,
0.33342865109443665,
-0.7243713140487671,
-0.1522664874792099,
-0.9305762648582458,
0.5574125647544861,
-0.3222336173057556,
-0.3760508894920349,
0.31355586647987366,
0.5251719951629639,
1.303140640258789,
-0.08854260295629501,
0.22842486202716827,
1.0159310102462769,
-1.4856206178665161,
1.3381961584091187,
-0.6439065933227539,
0.24785229563713074,
-2.348706007003784,
1.3477294445037842,
-0.6210328340530396,
2.0420584678649902,
-2.7115955352783203,
0.4269903302192688,
-0.5833224058151245,
-0.5965514183044434,
0.368288516998291,
-0.3024500906467438,
0.12482092529535294,
-0.12656350433826447,
-1.0878198146820068,
0.03045051172375679,
-0.6322699785232544,
0.6354779005050659,
1.1006064414978027,
1.3399707078933716,
-1.0539710521697998,
-0.26338690519332886,
-1.5596436262130737,
-0.17183782160282135,
-0.7590641975402832,
0.19983531534671783,
-1.9495807886123657,
-0.11895348876714706,
-2.0367813110351562,
-2.366379499435425,
-1.2582311630249023,
-0.8270477056503296,
1.1580960750579834,
0.24647533893585205,
-0.9193623065948486,
1.3237403631210327,
-0.3641485571861267,
-1.789947509765625,
1.1683573722839355,
-2.0829780101776123
] |
https://github.com/huggingface/datasets/issues/4717 | Dataset Viewer issue for LawalAfeez/englishreview-ds-mini | It's currently working, as far as I understand
https://huggingface.co/datasets/LawalAfeez/englishreview-ds-mini/viewer/LawalAfeez--englishreview-ds-mini/train
<img width="1556" alt="Capture d’écran 2022-07-19 à 09 24 01" src="https://user-images.githubusercontent.com/1676121/179761130-2d7980b9-c0f6-4093-8b1d-f0a3872fef3f.png">
---
What was your issue? | ### Link
_No response_
### Description
Unable to view the split data
### Owner
_No response_ | 620 | 24 | Dataset Viewer issue for LawalAfeez/englishreview-ds-mini
### Link
_No response_
### Description
Unable to view the split data
### Owner
_No response_
It's currently working, as far as I understand
https://huggingface.co/datasets/LawalAfeez/englishreview-ds-mini/viewer/LawalAfeez--englishreview-ds-mini/train
<img width="1556" alt="Capture d’écran 2022-07-19 à 09 24 01" src="https://user-images.githubusercontent.com/1676121/179761130-2d7980b9-c0f6-4093-8b1d-f0a3872fef3f.png">
---
What was your issue? | [
-1.1853556632995605,
-0.8114874362945557,
-0.7995043396949768,
1.4316496849060059,
-0.0757480263710022,
-1.3159842491149902,
0.11929496377706528,
-0.9383077621459961,
1.5538742542266846,
-0.7450287938117981,
0.3659308850765228,
-1.6804466247558594,
0.008756439201533794,
-0.5830845236778259,
-0.6305611729621887,
-0.8384565711021423,
-0.29298028349876404,
-0.7773950099945068,
1.0780092477798462,
2.5758278369903564,
1.2685189247131348,
-1.2455440759658813,
2.789113759994507,
0.6263918876647949,
-0.29428011178970337,
-0.8765166401863098,
0.5304964780807495,
0.026499338448047638,
-1.2986513376235962,
-0.47216853499412537,
-0.98861163854599,
-0.0054831737652421,
-0.5597178339958191,
-0.37558361887931824,
0.14281120896339417,
0.5245147347450256,
-0.08704178780317307,
-0.36648356914520264,
-0.4083377420902252,
-0.9103623628616333,
0.4857408106327057,
-0.44883376359939575,
0.8358561992645264,
-0.35918980836868286,
1.7874226570129395,
-0.6797230243682861,
0.3737959563732147,
0.5368227362632751,
1.2525008916854858,
0.10839871317148209,
-0.06904725730419159,
0.23390734195709229,
0.30040231347084045,
-0.06903029978275299,
0.421956330537796,
1.2379778623580933,
0.479396790266037,
0.6024553775787354,
0.6613607406616211,
-2.2010674476623535,
1.349522590637207,
-0.8889941573143005,
0.1587567925453186,
1.4456578493118286,
-1.0605735778808594,
0.4093884825706482,
-1.843106746673584,
-0.06021485850214958,
0.4530152976512909,
-2.3887760639190674,
0.29989486932754517,
-1.283645510673523,
-0.6740606427192688,
0.9209635853767395,
0.32941731810569763,
-1.2772544622421265,
-0.062681645154953,
-0.4842914640903473,
0.9668726921081543,
0.42510589957237244,
1.1306648254394531,
-1.669722080230713,
-0.11881367117166519,
-0.24469773471355438,
0.07511314749717712,
-1.4526629447937012,
-1.644047498703003,
0.6316124200820923,
0.6457535028457642,
0.6875647306442261,
-0.13628913462162018,
0.9348312020301819,
-1.0751032829284668,
0.7878329753875732,
-0.8698764443397522,
-1.7036668062210083,
-1.4146980047225952,
-2.4065968990325928,
-2.3421037197113037,
0.7821773886680603,
-0.37135836482048035,
-0.5466529130935669,
1.963163137435913,
-1.1491596698760986,
-1.705502986907959,
1.1586273908615112,
0.24696668982505798,
-0.039337825030088425,
2.5487194061279297,
0.4227292835712433,
-0.8005880117416382,
0.5311488509178162,
-0.8613473176956177,
0.8041172027587891,
-0.47252559661865234,
1.381408452987671,
0.5099307894706726,
-1.0068861246109009,
1.6798566579818726,
-0.5011975765228271,
0.5212374329566956,
-0.7464140057563782,
-0.42698049545288086,
-0.7943434119224548,
0.2215210199356079,
1.9274717569351196,
-0.1736476719379425,
1.5978434085845947,
-0.20493493974208832,
-1.4884926080703735,
-1.4455864429473877,
0.7826291918754578,
0.5137398838996887,
-0.8720526099205017,
0.17085395753383636,
-0.39465948939323425,
0.26342839002609253,
0.1470007300376892,
1.0530146360397339,
1.2391434907913208,
0.5291509032249451,
-0.2683018743991852,
-0.9138191342353821,
0.24539756774902344,
-0.02613552287220955,
-0.6948261260986328,
-1.7375454902648926,
-0.29413411021232605,
0.172593891620636,
0.6872543692588806,
-1.3115015029907227,
1.799095869064331,
0.9097228646278381,
2.01350736618042,
0.9798091053962708,
-0.29185500741004944,
1.48183274269104,
0.003671085461974144,
1.7882027626037598,
-0.4748128354549408,
0.7562732696533203,
-0.39346063137054443,
-1.0591844320297241,
0.7128044366836548,
-0.38395941257476807,
-1.8937302827835083,
-0.7558194398880005,
-0.8701449632644653,
-0.14134716987609863,
-0.7598866820335388,
1.0290478467941284,
-0.3764784336090088,
-1.3714996576309204,
0.21608154475688934,
-0.6570070385932922,
0.06835687905550003,
-1.4326492547988892,
0.2590456008911133,
0.7154915928840637,
-0.6473605632781982,
0.03516838699579239,
-0.32333460450172424,
-1.3037941455841064,
-0.48898619413375854,
0.29982486367225647,
1.9781911373138428,
-0.6065093278884888,
0.9750697612762451,
0.942492663860321,
-0.6515843272209167,
0.08269333094358444,
0.4064180254936218,
-0.2855682969093323,
0.7992557883262634,
-1.0651013851165771,
-0.3168376386165619,
1.176369309425354,
-0.273240864276886,
-0.6349409222602844,
1.3730558156967163,
0.8423728942871094,
-1.0084956884384155,
-0.28107529878616333,
-0.24630363285541534,
-0.7939342856407166,
-0.02878667786717415,
-1.6065133810043335,
-0.10566936433315277,
0.2714942693710327,
-1.4201536178588867,
-0.5188673138618469,
-0.11566746234893799,
1.3021044731140137,
-0.1571991890668869,
1.3506555557250977,
-0.23828229308128357,
-0.12977421283721924,
-0.3722633421421051,
-0.5354132056236267,
0.12970469892024994,
-0.11926686763763428,
-0.6860735416412354,
0.3447422683238983,
-0.7677991986274719,
0.17252053320407867,
1.4810842275619507,
0.3065837621688843,
0.16691409051418304,
0.5559630990028381,
1.1692912578582764,
0.35828396677970886,
-0.1798597276210785,
-0.8608690500259399,
-1.6704304218292236,
1.9704385995864868,
-1.6095479726791382,
1.9265488386154175,
0.8253295421600342,
-0.0874137207865715,
-1.7623937129974365,
-1.8585519790649414,
1.3731125593185425,
1.2081345319747925,
2.4374632835388184,
0.6653831601142883,
0.3768504858016968,
-0.7748121023178101,
-0.7263513207435608,
0.36145687103271484,
-1.0686419010162354,
-0.8230849504470825,
0.09954844415187836,
2.219482898712158,
1.685530662536621,
-0.5017659068107605,
-0.20551125705242157,
-0.9346880316734314,
1.2022429704666138,
-0.19569562375545502,
0.2628900110721588,
1.916446328163147,
-0.39884212613105774,
-1.02064049243927,
1.1154711246490479,
-2.311140298843384,
0.20596612989902496,
2.04813814163208,
0.29788997769355774,
0.04840472713112831,
-1.337372064590454,
-0.6845759153366089,
-0.20559586584568024,
-0.27689382433891296,
-1.2325522899627686,
0.5893438458442688,
-0.29240915179252625,
-0.8838767409324646,
-1.4640288352966309,
0.14292123913764954,
-1.2104758024215698,
-1.6587976217269897,
0.42834410071372986,
1.8796310424804688,
2.190678834915161,
-0.8314789533615112,
1.362000823020935,
-0.2290535569190979,
0.17043378949165344,
1.1993101835250854,
1.2102266550064087,
3.1495046615600586,
1.8913946151733398,
-1.1368005275726318,
0.823548436164856,
-0.13605792820453644,
-0.4540899395942688,
1.2666584253311157,
-1.0619087219238281,
1.1717430353164673,
-0.19128847122192383,
-1.3116633892059326,
-1.2372784614562988,
0.810925304889679,
0.4393584728240967,
-0.1053333431482315,
-0.4451894164085388,
1.247594952583313,
0.07298170775175095,
1.3139904737472534,
0.5140342116355896,
-0.3266468048095703,
0.5775758624076843,
-0.4230528175830841,
-0.43496766686439514,
1.6378613710403442,
0.1309790313243866,
-1.6594669818878174,
-2.3159687519073486,
-0.16002638638019562,
-0.8990272879600525,
-0.023823346942663193,
-0.7870680093765259,
-1.0754449367523193,
1.6739126443862915,
0.4184243083000183,
-1.0564836263656616,
-0.1440216451883316,
-0.3877536356449127,
-0.6474735736846924,
2.6897506713867188,
-1.4515467882156372,
-0.2659776210784912,
-1.0151512622833252,
-0.49829864501953125,
1.5696982145309448,
-1.1842715740203857,
-0.19864016771316528,
-1.0135449171066284,
-0.4699057638645172,
-1.3525800704956055,
-0.40351399779319763,
-0.016752783209085464,
-0.8719216585159302,
0.7803850769996643,
0.026195932179689407,
-1.1334152221679688,
-0.2736569941043854,
-1.0008689165115356,
0.8068138360977173,
-0.16015368700027466,
0.1801745742559433,
1.7737408876419067,
0.37355291843414307,
-0.3885076344013214,
0.802162766456604,
1.2352551221847534,
0.566132128238678,
-0.6543123126029968,
0.10078950971364975,
-0.6315017342567444,
0.4231826961040497,
-1.3426978588104248,
0.3292028307914734,
-2.9194207191467285,
0.7205053567886353,
-0.08355426043272018,
-0.1356557458639145,
-0.08748847991228104,
-1.461221694946289,
1.095586895942688,
2.5101418495178223,
-1.152518630027771,
0.5999390482902527,
0.2568391263484955,
1.2338919639587402,
-1.6869332790374756,
0.22178038954734802,
-0.530326783657074,
2.062943696975708,
0.0889243558049202,
1.1738898754119873,
-0.5396360754966736,
-2.1735146045684814,
0.6403291821479797,
-1.155347466468811,
-1.0551127195358276,
0.7723818421363831,
-1.0330787897109985,
0.12941445410251617,
-1.2419359683990479,
-0.1179903894662857,
-0.9237267374992371,
-1.2471922636032104,
0.6373702883720398,
0.13124825060367584,
0.6080003380775452,
-0.49384430050849915,
0.3507547378540039,
-2.2551016807556152,
-1.3941035270690918,
-0.1868925392627716,
-0.9155696034431458,
0.45419198274612427,
-0.3665960729122162,
0.695111870765686,
-0.13761559128761292,
0.11036919802427292,
0.3453209102153778,
1.535797119140625,
3.249962568283081,
0.08725437521934509,
0.39143475890159607,
-0.1619059294462204,
-0.9803244471549988,
1.535217523574829,
0.9644007086753845,
-0.04368768259882927,
-0.646333634853363,
-0.9276121854782104,
1.3725961446762085,
1.8826141357421875,
1.0622612237930298,
0.07863415032625198,
-0.8194674253463745,
-0.6199211478233337,
-0.008553152903914452,
0.1615067720413208,
0.42139914631843567,
0.9631772041320801,
-0.00807934533804655,
0.10835462063550949,
1.420965552330017,
1.1821016073226929,
-0.3960583508014679,
0.5417718887329102,
-0.8527655601501465,
-0.2805456817150116,
0.4796035587787628,
0.29953721165657043,
-0.013819768093526363,
0.37186136841773987,
-0.9944380521774292,
-0.20921507477760315,
-0.206529438495636,
-0.9014607071876526,
-0.791244626045227,
-0.4282982051372528,
-0.369462251663208,
1.7230747938156128,
-0.022718962281942368,
-0.4399719536304474,
0.02154591679573059,
-0.8326655626296997,
-0.07393188029527664,
-1.1133300065994263,
0.17324353754520416,
-0.21817296743392944,
-0.027558885514736176,
-0.14712345600128174,
1.8182868957519531,
-0.9872849583625793,
-2.2912955284118652,
0.2043873816728592,
0.2337837666273117,
-0.3828091025352478,
0.05617035552859306,
1.7365204095840454,
0.48684024810791016,
1.299910306930542,
1.3911737203598022,
1.0333833694458008,
-0.6757636666297913,
-1.2385700941085815,
0.7061783671379089,
0.9372116923332214,
-1.3068844079971313,
0.9777160286903381,
-0.2039819359779358,
-0.4552215337753296,
0.5657945275306702,
1.2607799768447876,
0.5158812403678894,
-1.731184959411621,
0.8794219493865967,
-1.02962064743042,
0.8178188800811768,
0.803500235080719,
0.7806634306907654,
0.24650231003761292,
0.9213618636131287,
-1.2054003477096558,
-1.0656911134719849,
-0.686035692691803,
-0.5533899664878845,
1.7868343591690063,
-0.12387644499540329,
0.400722861289978,
-0.17545677721500397,
-1.2038780450820923,
0.07264101505279541,
0.6787252426147461,
0.3046037256717682,
-0.17433807253837585,
0.7295952439308167,
-0.6622592806816101,
-0.9696009159088135,
-1.384756326675415,
-0.4486273229122162,
-0.9234408736228943,
-0.961301326751709,
1.0932128429412842,
0.704979419708252,
0.34740063548088074,
1.9936811923980713,
0.6943477988243103,
0.30663445591926575,
-2.575613021850586,
0.8438854217529297,
0.35896721482276917,
0.11386499553918839,
0.8531804084777832,
0.2784855365753174,
1.218630075454712,
-0.0032161674462258816,
0.412407249212265,
-2.3129234313964844,
2.2222650051116943,
-0.3123559355735779,
0.7262391448020935,
0.06010953709483147,
-0.0002099163830280304,
1.069101095199585,
0.5447397232055664,
0.5483473539352417,
-1.0808888673782349,
0.7973451018333435,
-0.5580238103866577,
1.0764816999435425,
1.0135324001312256,
-0.8794302940368652,
0.24532431364059448,
1.2757513523101807,
0.4536123275756836,
-0.49942874908447266,
-0.927293598651886,
-0.7179995179176331,
0.87180495262146,
1.7571343183517456,
0.033894751220941544,
0.07549404352903366,
0.796545684337616,
0.5875113606452942,
-1.2666327953338623,
-0.06561959534883499,
-0.5665044188499451,
-0.7733734846115112,
1.809272050857544,
2.0609195232391357,
-0.018728166818618774,
-0.21297891438007355,
-0.7133008241653442,
-1.3206980228424072,
0.828481137752533,
0.024466272443532944,
-0.07192299515008926,
0.7924938201904297,
-0.7375759482383728,
1.0610730648040771,
0.7788468599319458,
0.8931605815887451,
0.05705227330327034,
0.12448333948850632,
0.46720045804977417,
-0.29444438219070435,
-1.1688288450241089,
-0.3673953413963318,
-1.1379270553588867,
-2.7541258335113525,
0.46631336212158203,
-0.42511099576950073,
-1.4049004316329956,
0.12600646913051605,
-1.153967261314392,
0.9335247278213501,
-0.5960021018981934,
-1.0498777627944946,
-1.481853723526001,
0.1282278597354889,
-0.2736954987049103,
0.7780616879463196,
-1.564719796180725,
-0.22965295612812042,
1.1739352941513062,
0.9637793898582458,
-0.6810852885246277,
1.0140931606292725,
0.25096726417541504,
0.9999226331710815,
0.8502302765846252,
-0.40859556198120117,
0.4430335760116577,
0.13477671146392822,
-1.398991346359253,
0.490031361579895,
1.3267155885696411,
0.15466880798339844,
1.3369874954223633,
-0.4683510661125183,
0.03615839406847954,
0.41636502742767334,
-0.4027203917503357,
-0.5479568839073181,
-0.6174912452697754,
0.8010580539703369,
0.08039186149835587,
-1.0167677402496338,
-0.13802595436573029,
-0.11375534534454346,
-0.16130097210407257,
0.31994667649269104,
-1.5843408107757568,
-0.20373013615608215,
-0.3311476707458496,
-0.5505260825157166,
-1.4197560548782349,
-0.06462983042001724,
1.2553093433380127,
-0.8669332265853882,
-0.2163735330104828,
0.522761344909668,
0.3464590609073639,
0.5073588490486145,
0.5054922103881836,
-0.8138143420219421,
-0.1789271980524063,
-0.2459544837474823,
-0.3791350722312927,
0.3574693202972412,
1.2539870738983154,
-0.12306531518697739,
-1.0720365047454834,
0.539429783821106,
-0.17678096890449524,
0.14701418578624725,
2.016693592071533,
0.08471795916557312,
-0.8217529058456421,
0.24867424368858337,
-0.6833552718162537,
1.8883298635482788,
1.5714738368988037,
1.350135326385498,
-0.12309384346008301,
-0.802579402923584,
0.6056413650512695,
-0.2271851897239685,
-0.3400722146034241,
0.8356435894966125,
0.46567535400390625,
-0.23445482552051544,
-1.459660530090332,
0.6020598411560059,
1.3058360815048218,
-0.8422461748123169,
-0.7985902428627014,
0.011360622011125088,
-0.8972288966178894,
1.1965264081954956,
0.7214980125427246,
0.498521625995636,
0.3316691815853119,
1.6758406162261963,
0.6670061945915222,
-0.6130205392837524,
0.38323691487312317,
0.42442771792411804,
-0.10360497981309891,
-2.119028091430664,
-0.9455731511116028,
0.40028733015060425,
-0.3138304054737091,
-1.4745559692382812,
1.4609215259552002,
-1.1974060535430908,
-0.9472494721412659,
0.5374116897583008,
0.21290592849254608,
1.381038784980774,
0.2649274468421936,
1.7606604099273682,
2.050546169281006,
0.8493385910987854,
0.3479018807411194,
1.2371875047683716,
-0.32180914282798767,
-0.38412630558013916,
1.7477601766586304,
-0.46373847126960754,
0.5210400819778442,
1.034738540649414,
-0.4391290545463562,
-1.0865694284439087,
-0.7550867795944214,
-1.1630136966705322,
-0.7476786375045776,
1.0426968336105347,
0.19964160025119781,
-1.1161717176437378,
0.17458173632621765,
1.576148271560669,
0.08483736217021942,
-0.10562931001186371,
0.7217565774917603,
0.5171776413917542,
-0.7314139008522034,
-0.0398423857986927,
-0.9814771413803101,
0.5746599435806274,
-0.1777414083480835,
-0.36059316992759705,
0.23267501592636108,
0.587279736995697,
1.2125614881515503,
0.07430814951658249,
0.09905432909727097,
1.3578014373779297,
-1.3082374334335327,
1.3049135208129883,
-0.7758002281188965,
0.19882410764694214,
-2.3317129611968994,
1.4659556150436401,
-0.8262819051742554,
1.8280662298202515,
-2.6838431358337402,
0.4802696108818054,
-0.5533602237701416,
-0.502830445766449,
0.18187473714351654,
-0.36211809515953064,
0.09455505758523941,
-0.15712426602840424,
-0.9786226153373718,
-0.032160043716430664,
-0.788672149181366,
0.5661254525184631,
1.262229561805725,
1.4108057022094727,
-0.961711585521698,
-0.33796247839927673,
-1.810987949371338,
-0.12727203965187073,
-0.6947165131568909,
0.20516033470630646,
-1.9470266103744507,
-0.1702193170785904,
-2.0575177669525146,
-2.2806437015533447,
-1.4645863771438599,
-0.9194837808609009,
1.2205313444137573,
0.23763467371463776,
-0.8985337018966675,
1.0664007663726807,
-0.381954550743103,
-1.7030926942825317,
1.113115668296814,
-2.192394971847534
] |
https://github.com/huggingface/datasets/issues/4711 | Document how to create a dataset loading script for audio/vision | I'm closing this issue as both the Audio and Image sections now have a "Create dataset" page that contains the info about writing the loading script version of a dataset. | Currently, in our docs for Audio/Vision/Text, we explain how to:
- Load data
- Process data
However we only explain how to *Create a dataset loading script* for text data.
I think it would be useful that we add the same for Audio/Vision as these have some specificities different from Text.
See, for example:
- #4697
- and comment there: https://github.com/huggingface/datasets/issues/4697#issuecomment-1191502492
CC: @stevhliu
| 621 | 30 | Document how to create a dataset loading script for audio/vision
Currently, in our docs for Audio/Vision/Text, we explain how to:
- Load data
- Process data
However we only explain how to *Create a dataset loading script* for text data.
I think it would be useful that we add the same for Audio/Vision as these have some specificities different from Text.
See, for example:
- #4697
- and comment there: https://github.com/huggingface/datasets/issues/4697#issuecomment-1191502492
CC: @stevhliu
I'm closing this issue as both the Audio and Image sections now have a "Create dataset" page that contains the info about writing the loading script version of a dataset. | [
-1.3012109994888306,
-0.9781354069709778,
-0.8534711599349976,
1.3295092582702637,
-0.14773693680763245,
-1.3101950883865356,
-0.05556647852063179,
-1.1214429140090942,
1.6286640167236328,
-0.7767705321311951,
0.29266923666000366,
-1.756459355354309,
0.03248218074440956,
-0.5365040302276611,
-0.6947599053382874,
-0.8770097494125366,
-0.4484069347381592,
-0.8428347110748291,
0.9515196084976196,
2.486124038696289,
1.1085904836654663,
-1.3881558179855347,
2.7484164237976074,
0.7997031807899475,
-0.21985863149166107,
-1.0287681818008423,
0.5966264009475708,
0.0501471608877182,
-1.2361876964569092,
-0.3918994963169098,
-0.9746274352073669,
0.10375989973545074,
-0.5428493618965149,
-0.43736204504966736,
0.04013906419277191,
0.3431837260723114,
-0.12286852300167084,
-0.3081790506839752,
-0.5344181060791016,
-0.679547905921936,
0.4936590790748596,
-0.29445403814315796,
0.9612612128257751,
-0.3694521188735962,
1.7552980184555054,
-0.5278010368347168,
0.3339793086051941,
0.5758169889450073,
1.3821016550064087,
0.18351034820079803,
0.08403471112251282,
0.1526646614074707,
0.37395480275154114,
-0.09961245954036713,
0.41533297300338745,
1.1287223100662231,
0.5819172859191895,
0.6372765302658081,
0.638282060623169,
-2.1402387619018555,
1.3352314233779907,
-0.9571256637573242,
0.341884046792984,
1.5124237537384033,
-0.9416429996490479,
0.4050021469593048,
-1.782741904258728,
-0.13556978106498718,
0.4666002690792084,
-2.278252124786377,
0.2544282078742981,
-1.1020089387893677,
-0.5856380462646484,
0.9626148343086243,
0.26863956451416016,
-1.2202532291412354,
0.1560261845588684,
-0.4943305253982544,
1.0141515731811523,
0.45128917694091797,
1.1677583456039429,
-1.6027625799179077,
0.14672645926475525,
-0.2993123233318329,
-0.07036259770393372,
-1.421264410018921,
-1.4749820232391357,
0.5308831930160522,
0.6550004482269287,
0.7544240355491638,
-0.018759632483124733,
0.8861353397369385,
-1.014236569404602,
0.9411186575889587,
-0.8962948322296143,
-1.6018949747085571,
-1.3121988773345947,
-2.4129889011383057,
-2.3640198707580566,
0.8951942324638367,
-0.49115779995918274,
-0.563321053981781,
2.017496109008789,
-1.0396416187286377,
-1.7344011068344116,
1.2390395402908325,
0.217258021235466,
0.08440306037664413,
2.4675512313842773,
0.2764577567577362,
-0.6486326456069946,
0.43374010920524597,
-0.6851347088813782,
0.9467523097991943,
-0.4190666675567627,
1.3578835725784302,
0.5535842776298523,
-0.9783012270927429,
1.6272380352020264,
-0.4261496365070343,
0.5620943903923035,
-0.609717607498169,
-0.5675289034843445,
-0.9356392025947571,
0.4574897289276123,
1.8113086223602295,
-0.2426191121339798,
1.616197109222412,
-0.34710708260536194,
-1.5767927169799805,
-1.541027545928955,
0.8447951078414917,
0.5332390666007996,
-0.8457406163215637,
0.13667301833629608,
-0.29214078187942505,
0.04144730791449547,
0.037234093993902206,
1.0506634712219238,
1.1852022409439087,
0.7412205934524536,
-0.3180181086063385,
-0.9506915807723999,
0.2179843932390213,
-0.008664080873131752,
-0.8024013638496399,
-1.7210882902145386,
-0.3196621239185333,
0.16793186962604523,
0.5810696482658386,
-1.272989273071289,
1.7093420028686523,
0.9435921311378479,
2.003363847732544,
0.9366603493690491,
-0.28709352016448975,
1.4471739530563354,
-0.09661969542503357,
1.8450442552566528,
-0.46921077370643616,
0.7009360194206238,
-0.3389911651611328,
-1.183631181716919,
0.7615006566047668,
-0.47099804878234863,
-2.0414984226226807,
-0.8109069466590881,
-0.9820187091827393,
-0.20867827534675598,
-0.743201732635498,
0.9946529865264893,
-0.32280582189559937,
-1.3425705432891846,
0.1626964658498764,
-0.5411785840988159,
0.18089288473129272,
-1.279760718345642,
0.22866958379745483,
0.7573768496513367,
-0.7117206454277039,
-0.1658840924501419,
-0.22632452845573425,
-1.3014919757843018,
-0.4894885718822479,
0.18516290187835693,
1.9125422239303589,
-0.7795712351799011,
1.005875587463379,
0.9400153756141663,
-0.7349357008934021,
0.01660168543457985,
0.3104414939880371,
-0.24383214116096497,
0.9155951738357544,
-1.1209441423416138,
-0.4072156846523285,
1.0826201438903809,
-0.13199575245380402,
-0.5898246765136719,
1.5202058553695679,
0.7588109970092773,
-0.9589147567749023,
-0.2538987398147583,
-0.2528778314590454,
-0.7781336903572083,
-0.16649815440177917,
-1.5292277336120605,
-0.12376213073730469,
0.1402345597743988,
-1.4363603591918945,
-0.3893932104110718,
-0.12511393427848816,
1.199484944343567,
-0.24451881647109985,
1.3007709980010986,
-0.25754010677337646,
-0.2766944169998169,
-0.5044001936912537,
-0.48747149109840393,
0.24773439764976501,
-0.14344936609268188,
-0.601689338684082,
0.31652238965034485,
-0.8775311708450317,
0.32052168250083923,
1.4716590642929077,
0.3787994980812073,
0.1288088858127594,
0.45470085740089417,
1.0087149143218994,
0.34946703910827637,
-0.070258729159832,
-0.8662811517715454,
-1.536777377128601,
2.0031275749206543,
-1.48710036277771,
1.8917498588562012,
0.7482976317405701,
-0.11262168735265732,
-1.7772808074951172,
-1.915252685546875,
1.3586500883102417,
1.3224122524261475,
2.3371331691741943,
0.49479514360427856,
0.3756255805492401,
-0.9019028544425964,
-0.7595939040184021,
0.31270402669906616,
-1.1013729572296143,
-0.7672120928764343,
0.06949326395988464,
2.2736895084381104,
1.797070026397705,
-0.5574572086334229,
-0.17873045802116394,
-1.0424253940582275,
1.2014912366867065,
-0.08914115279912949,
0.19620968401432037,
2.0349385738372803,
-0.39331743121147156,
-1.1179392337799072,
1.2699483633041382,
-2.397643804550171,
0.06030956283211708,
2.0105936527252197,
0.35415881872177124,
0.11412524431943893,
-1.3941905498504639,
-0.6937177181243896,
-0.17244641482830048,
-0.41547679901123047,
-1.176082968711853,
0.6960432529449463,
-0.2581443190574646,
-0.8094044327735901,
-1.5113264322280884,
0.010988685302436352,
-1.1643409729003906,
-1.6476540565490723,
0.4743351638317108,
1.7417712211608887,
2.1635687351226807,
-0.8080739378929138,
1.4383670091629028,
-0.1330946534872055,
0.11754611134529114,
1.2890254259109497,
1.1435414552688599,
3.066291093826294,
1.8602168560028076,
-1.1966171264648438,
0.6607372164726257,
-0.17040076851844788,
-0.4693312346935272,
1.120667815208435,
-0.9598905444145203,
1.2203789949417114,
-0.22131024301052094,
-1.1864726543426514,
-1.265308141708374,
0.9529218673706055,
0.38348931074142456,
0.061680395156145096,
-0.5135449171066284,
1.2632057666778564,
0.11849606037139893,
1.3328087329864502,
0.4718039631843567,
-0.32949385046958923,
0.5095266699790955,
-0.46062782406806946,
-0.5745435357093811,
1.5969734191894531,
0.154091015458107,
-1.5128196477890015,
-2.303992509841919,
-0.27143532037734985,
-0.8373368978500366,
-0.027284476906061172,
-0.5866060853004456,
-0.9601185917854309,
1.5613733530044556,
0.4166092574596405,
-1.3450044393539429,
-0.28628385066986084,
-0.3261817991733551,
-0.6537586450576782,
2.672912359237671,
-1.480503797531128,
-0.16483564674854279,
-0.8936825394630432,
-0.5254106521606445,
1.7177892923355103,
-1.1864795684814453,
-0.21553002297878265,
-1.0218969583511353,
-0.7405305504798889,
-1.3833811283111572,
-0.4629785120487213,
-0.014797763898968697,
-1.009848952293396,
0.7776992321014404,
0.09739881008863449,
-1.0277174711227417,
-0.2313733547925949,
-0.845982015132904,
0.8401122093200684,
-0.14000830054283142,
0.3495066463947296,
1.8415817022323608,
0.47390061616897583,
-0.30759599804878235,
0.6331807971000671,
1.2514792680740356,
0.5978040099143982,
-0.7696542739868164,
0.14318373799324036,
-0.7618815898895264,
0.3903059661388397,
-1.3361566066741943,
0.27382442355155945,
-2.9803383350372314,
0.6795963048934937,
-0.10949181765317917,
-0.1601325124502182,
-0.08017881959676743,
-1.284383773803711,
1.073180913925171,
2.515042304992676,
-1.1772838830947876,
0.491033136844635,
0.34652090072631836,
1.2240432500839233,
-1.515241026878357,
0.29548195004463196,
-0.4693480432033539,
2.0507960319519043,
0.08380570262670517,
1.1562654972076416,
-0.6564863920211792,
-2.182875633239746,
0.6341373324394226,
-1.271040916442871,
-1.1496578454971313,
0.7753678560256958,
-0.8724126815795898,
0.1898038685321808,
-1.4192864894866943,
-0.11259656399488449,
-0.9633375406265259,
-1.277610421180725,
0.7774122357368469,
0.06644580513238907,
0.39338287711143494,
-0.6398991346359253,
0.3514277935028076,
-2.1606690883636475,
-1.4131255149841309,
-0.23199093341827393,
-0.8995397686958313,
0.37137657403945923,
-0.44364455342292786,
0.6317504644393921,
-0.1678593009710312,
0.1476420760154724,
0.30707255005836487,
1.3260059356689453,
3.437108039855957,
0.19882044196128845,
0.41895925998687744,
-0.06553451716899872,
-0.9470428228378296,
1.5525323152542114,
1.0631651878356934,
0.010253502987325191,
-0.6182530522346497,
-0.9961474537849426,
1.3598906993865967,
1.8995577096939087,
1.0755139589309692,
0.08943209797143936,
-0.84089195728302,
-0.6269820928573608,
0.06487366557121277,
0.2574476897716522,
0.4853067100048065,
0.9171056151390076,
-0.12453651428222656,
0.16398237645626068,
1.5096060037612915,
1.2163218259811401,
-0.38454076647758484,
0.3361610174179077,
-0.886640191078186,
-0.5304937958717346,
0.4517400860786438,
0.3074508607387543,
0.05290966108441353,
0.46493232250213623,
-1.0062408447265625,
-0.3157936632633209,
-0.2455749213695526,
-0.9726284146308899,
-0.7141100168228149,
-0.4732774794101715,
-0.44781410694122314,
1.56776762008667,
0.07827023416757584,
-0.5176700949668884,
0.006859968416392803,
-0.9083328247070312,
-0.11049333214759827,
-1.0935441255569458,
0.2640410363674164,
-0.12302688509225845,
-0.03783939778804779,
-0.1460205316543579,
1.9398523569107056,
-1.0432171821594238,
-2.1692862510681152,
0.34471502900123596,
0.3092365562915802,
-0.44384926557540894,
0.04061075299978256,
1.6163859367370605,
0.43170347809791565,
1.5098339319229126,
1.2817622423171997,
0.9841929078102112,
-0.6049811244010925,
-1.3439456224441528,
0.7176652550697327,
0.9480645060539246,
-1.422766089439392,
0.8472199440002441,
-0.12058212608098984,
-0.5218925476074219,
0.6705505847930908,
1.2989490032196045,
0.3119654953479767,
-1.94846773147583,
0.8440894484519958,
-0.9178435802459717,
0.8404502272605896,
0.7651613354682922,
0.8694008588790894,
0.2346099317073822,
0.8596048355102539,
-1.2649470567703247,
-1.0570775270462036,
-0.905563235282898,
-0.5395404696464539,
2.024081230163574,
-0.2563084661960602,
0.5901127457618713,
-0.13902156054973602,
-1.1496570110321045,
-0.03050825744867325,
0.6841922998428345,
0.2842143476009369,
-0.33111557364463806,
0.9433832764625549,
-0.6817421317100525,
-1.0073691606521606,
-1.4204410314559937,
-0.48729032278060913,
-0.9585487246513367,
-0.8639702200889587,
1.081844687461853,
0.8472897410392761,
0.2804703414440155,
1.9074679613113403,
0.5676794648170471,
0.325262188911438,
-2.636014699935913,
0.8750380873680115,
0.21841734647750854,
0.025308728218078613,
0.8469053506851196,
0.2561378479003906,
1.1156941652297974,
-0.015185032039880753,
0.37952905893325806,
-2.331137180328369,
2.226609230041504,
-0.2680232524871826,
0.5895206928253174,
-0.040973495692014694,
-0.13803814351558685,
1.24535071849823,
0.5680350661277771,
0.5900651216506958,
-1.1710485219955444,
0.7482321262359619,
-0.42465683817863464,
1.1831446886062622,
0.9642300605773926,
-0.7712505459785461,
0.039085760712623596,
1.3004196882247925,
0.5586925745010376,
-0.39581647515296936,
-0.8771349787712097,
-0.7523216605186462,
0.9963700771331787,
1.7627503871917725,
0.0006374726071953773,
0.0335722491145134,
0.8125166893005371,
0.6306205987930298,
-1.260427474975586,
-0.039771586656570435,
-0.7094525098800659,
-0.6756388545036316,
1.6482774019241333,
2.044013738632202,
-0.009473406709730625,
-0.12132562696933746,
-0.685244619846344,
-1.2159920930862427,
0.7498741745948792,
-0.04766553267836571,
0.22529852390289307,
0.7215617895126343,
-0.7386336326599121,
1.1485917568206787,
0.9037323594093323,
0.907522976398468,
-0.025807715952396393,
0.2770184576511383,
0.41659048199653625,
-0.20642338693141937,
-1.1773759126663208,
-0.25885432958602905,
-1.119860291481018,
-2.5712339878082275,
0.4534143805503845,
-0.3097306489944458,
-1.3757655620574951,
0.06520815193653107,
-1.0106512308120728,
0.99315345287323,
-0.5420193672180176,
-1.0680466890335083,
-1.5506582260131836,
0.23631685972213745,
-0.1622014343738556,
0.8947336077690125,
-1.5681687593460083,
-0.10751892626285553,
1.1749004125595093,
0.9457036256790161,
-0.6369673609733582,
1.0361372232437134,
0.23870320618152618,
1.039899230003357,
0.7588475942611694,
-0.4517107307910919,
0.5299900770187378,
0.1690240502357483,
-1.3959952592849731,
0.2839067280292511,
1.1289589405059814,
0.19838234782218933,
1.3528281450271606,
-0.46865472197532654,
0.08843139559030533,
0.5351922512054443,
-0.5201593041419983,
-0.38961517810821533,
-0.5188878774642944,
0.7521792650222778,
0.21203573048114777,
-0.9935320615768433,
-0.07845823466777802,
-0.11003436148166656,
-0.21935346722602844,
0.3126656413078308,
-1.480035662651062,
-0.37164682149887085,
-0.48913317918777466,
-0.45043349266052246,
-1.3099415302276611,
0.11372551321983337,
1.3989931344985962,
-0.6842061877250671,
-0.1528289020061493,
0.5358667969703674,
0.31904590129852295,
0.5159779191017151,
0.6197835803031921,
-0.7389577627182007,
-0.3393958806991577,
-0.2836918532848358,
-0.27032357454299927,
0.2646729648113251,
1.2217926979064941,
-0.17633412778377533,
-1.0768165588378906,
0.7533214092254639,
-0.3029029071331024,
0.07222847640514374,
2.030571937561035,
0.06266283988952637,
-0.8412731289863586,
0.3309287130832672,
-0.7604609131813049,
1.8852261304855347,
1.6226139068603516,
1.3559736013412476,
-0.11654947698116302,
-0.7965971231460571,
0.6324431896209717,
-0.20026642084121704,
-0.24185483157634735,
0.9294065833091736,
0.5631114840507507,
-0.13161572813987732,
-1.4864577054977417,
0.5685476660728455,
1.2603610754013062,
-0.876817524433136,
-0.7360461354255676,
0.07349736988544464,
-0.7198753952980042,
1.0999424457550049,
0.7625022530555725,
0.4702076017856598,
0.2893825173377991,
1.6427081823349,
0.6858516335487366,
-0.5226243138313293,
0.4041285514831543,
0.6192394495010376,
-0.09624822437763214,
-2.019486665725708,
-1.0214942693710327,
0.25995856523513794,
-0.416761577129364,
-1.5095973014831543,
1.335184931755066,
-1.1730989217758179,
-0.8336922526359558,
0.5409689545631409,
0.055052805691957474,
1.4873740673065186,
0.41420304775238037,
1.642840027809143,
1.9956122636795044,
0.8702369332313538,
0.18710240721702576,
1.4456533193588257,
-0.07529281079769135,
-0.3435434401035309,
1.8637776374816895,
-0.4964125156402588,
0.43471357226371765,
1.0093543529510498,
-0.38034453988075256,
-1.0565603971481323,
-0.7378652095794678,
-1.1199578046798706,
-0.6291816234588623,
1.1159521341323853,
0.14302483201026917,
-1.1393189430236816,
0.24180659651756287,
1.5551025867462158,
0.05462144687771797,
-0.29620856046676636,
0.5818344950675964,
0.4156723916530609,
-0.7972689867019653,
-0.020472632721066475,
-0.9242580533027649,
0.5290210247039795,
-0.15497836470603943,
-0.3695509731769562,
0.26343321800231934,
0.4104357063770294,
1.270650863647461,
0.0217963308095932,
0.10211098194122314,
1.1978098154067993,
-1.397181510925293,
1.4575382471084595,
-0.561885416507721,
0.24204173684120178,
-2.4836554527282715,
1.3538610935211182,
-0.7256990075111389,
1.9020988941192627,
-2.714256763458252,
0.3496573269367218,
-0.6320496201515198,
-0.505572497844696,
0.3703705370426178,
-0.4622918367385864,
0.14787514507770538,
-0.10892393440008163,
-1.042585849761963,
0.03184473142027855,
-0.7736629843711853,
0.5764058232307434,
1.1894633769989014,
1.278712511062622,
-1.0530948638916016,
-0.35827815532684326,
-1.7843148708343506,
-0.15032356977462769,
-0.6242342591285706,
0.26449084281921387,
-2.0656332969665527,
-0.2337682545185089,
-1.9774588346481323,
-2.324225902557373,
-1.5115306377410889,
-0.8644102811813354,
1.1660665273666382,
0.22107034921646118,
-0.961301863193512,
1.1069375276565552,
-0.43204939365386963,
-1.745851993560791,
1.1187262535095215,
-2.175044298171997
] |
https://github.com/huggingface/datasets/issues/4709 | WMT21 & WMT22 | Hi ! That would be awesome to have them indeed, thanks for opening this issue
I just added you to the WMT org on the HF Hub if you're interested in adding those datasets.
Feel free to create a dataset repository for each dataset and upload the data files there :) preferably in ZIP archives instead of TAR archives (the current WMT scripts don't support streaming TAR archives, so it would break the dataset preview). We've also had issues with the `statmt.org` host (data unavailable, slow download speed), that's why I think it's better if we re-host the files on the Hub.
`wmt21` (and wmt22) can be added <s>in this GitHub repository I think</s> on the HF Hub under the `WMT` org (we'll move the previous ones to this org soon as well).
To add it, you can copy paste the code of the previous one (e.g. wmt19), and add the new data:
- in wmt_utils.py, add the new data subsets. You need to provide the download URLs, as well as the target and source languages
- in wmt21.py (renamed from wmt19.py), you can specify the subsets that WMT21 uses (i.e. the one you just added)
- in wmt_utils.py, define the python function that must be used to parse the subsets you added. To do so, you must go in `_generate_examples` and chose the proper `sub_generator` based on the subset name. For example, the `paracrawl_v3` subset uses the `_parse_tmx` function:
https://github.com/huggingface/datasets/blob/ede72d3f9796339701ec59899c7c31d2427046fb/datasets/wmt19/wmt_utils.py#L834-L835
Hopefully the data is in a format that is already supported and there's no need to write a new `_parse_*` function for the new subsets. Let me know if you have questions or if I can help :) | ## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
| 622 | 279 | WMT21 & WMT22
## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
Hi ! That would be awesome to have them indeed, thanks for opening this issue
I just added you to the WMT org on the HF Hub if you're interested in adding those datasets.
Feel free to create a dataset repository for each dataset and upload the data files there :) preferably in ZIP archives instead of TAR archives (the current WMT scripts don't support streaming TAR archives, so it would break the dataset preview). We've also had issues with the `statmt.org` host (data unavailable, slow download speed), that's why I think it's better if we re-host the files on the Hub.
`wmt21` (and wmt22) can be added <s>in this GitHub repository I think</s> on the HF Hub under the `WMT` org (we'll move the previous ones to this org soon as well).
To add it, you can copy paste the code of the previous one (e.g. wmt19), and add the new data:
- in wmt_utils.py, add the new data subsets. You need to provide the download URLs, as well as the target and source languages
- in wmt21.py (renamed from wmt19.py), you can specify the subsets that WMT21 uses (i.e. the one you just added)
- in wmt_utils.py, define the python function that must be used to parse the subsets you added. To do so, you must go in `_generate_examples` and chose the proper `sub_generator` based on the subset name. For example, the `paracrawl_v3` subset uses the `_parse_tmx` function:
https://github.com/huggingface/datasets/blob/ede72d3f9796339701ec59899c7c31d2427046fb/datasets/wmt19/wmt_utils.py#L834-L835
Hopefully the data is in a format that is already supported and there's no need to write a new `_parse_*` function for the new subsets. Let me know if you have questions or if I can help :) | [
-1.2822928428649902,
-0.9525221586227417,
-0.725782573223114,
1.3511931896209717,
-0.25335267186164856,
-1.2796735763549805,
0.1413383036851883,
-1.0381007194519043,
1.72723388671875,
-0.6979328989982605,
0.23470664024353027,
-1.6033389568328857,
-0.02686130255460739,
-0.5273982882499695,
-0.832068681716919,
-0.822399377822876,
-0.5112655162811279,
-0.8365111947059631,
1.0545485019683838,
2.480740547180176,
1.1613571643829346,
-1.4266042709350586,
2.8013532161712646,
0.5671226382255554,
-0.1595459133386612,
-1.0110845565795898,
0.503691554069519,
0.05770239233970642,
-1.2885472774505615,
-0.4887082874774933,
-1.000605583190918,
-0.05740337073802948,
-0.49533921480178833,
-0.4622746706008911,
0.1416512280702591,
0.33918261528015137,
-0.17605526745319366,
-0.4027079939842224,
-0.5148531794548035,
-0.5976406931877136,
0.48079901933670044,
-0.2871794104576111,
1.0272936820983887,
-0.283497154712677,
1.7647969722747803,
-0.5562024712562561,
0.4019564092159271,
0.6782290935516357,
1.289795994758606,
0.22175677120685577,
0.024241682142019272,
0.26896122097969055,
0.4361129105091095,
0.04535992443561554,
0.5168321132659912,
1.206045389175415,
0.6512340903282166,
0.46596404910087585,
0.7029607892036438,
-2.179348945617676,
1.319548487663269,
-1.0167902708053589,
0.37295955419540405,
1.362437129020691,
-0.9839188456535339,
0.4855118691921234,
-1.81394362449646,
0.00964935403317213,
0.5202846527099609,
-2.3168585300445557,
0.14720699191093445,
-1.3143349885940552,
-0.5537442564964294,
0.9636762738227844,
0.239036425948143,
-1.2568845748901367,
0.29306498169898987,
-0.4721371531486511,
1.0519826412200928,
0.4333147704601288,
1.2117159366607666,
-1.7420192956924438,
-0.08343587070703506,
-0.25284820795059204,
0.1430279016494751,
-1.1653090715408325,
-1.5441582202911377,
0.5453961491584778,
0.5898091197013855,
0.5613628625869751,
-0.15695714950561523,
0.9719479084014893,
-1.1113747358322144,
0.9160698056221008,
-0.859170138835907,
-1.6316324472427368,
-1.4405264854431152,
-2.274365186691284,
-2.290496587753296,
0.8446990847587585,
-0.5222806930541992,
-0.4380086064338684,
1.9957430362701416,
-1.0047369003295898,
-1.7373465299606323,
1.186681866645813,
0.33690035343170166,
0.020378991961479187,
2.3931055068969727,
0.22613279521465302,
-0.717837393283844,
0.4886816740036011,
-0.7931698560714722,
0.8123217225074768,
-0.46221214532852173,
1.3726292848587036,
0.4289184510707855,
-0.9025090932846069,
1.5317658185958862,
-0.39160555601119995,
0.5647971034049988,
-0.6051470041275024,
-0.4943754971027374,
-0.8203833699226379,
0.3505365550518036,
1.9139903783798218,
-0.2729718089103699,
1.5920864343643188,
-0.38568100333213806,
-1.601693034172058,
-1.4880239963531494,
0.8157877326011658,
0.6440586447715759,
-0.8472208976745605,
0.030114509165287018,
-0.34317198395729065,
0.08093056082725525,
-0.050359297543764114,
1.083357810974121,
1.1181418895721436,
0.8297975659370422,
-0.34358739852905273,
-0.8408743143081665,
0.278718501329422,
-0.10934490710496902,
-0.6980627775192261,
-1.8105833530426025,
-0.32983729243278503,
0.150893896818161,
0.6355042457580566,
-1.1858506202697754,
1.583086371421814,
0.8760303854942322,
1.9464592933654785,
0.9819133877754211,
-0.4317866265773773,
1.4992045164108276,
0.07939434051513672,
1.8623286485671997,
-0.5780068039894104,
0.6021819710731506,
-0.38919198513031006,
-1.1661596298217773,
0.7998451590538025,
-0.41608864068984985,
-2.091935396194458,
-0.6193718314170837,
-0.8632442355155945,
-0.27124524116516113,
-0.7363758087158203,
0.942289412021637,
-0.2968529760837555,
-1.3755229711532593,
0.19788017868995667,
-0.6486033201217651,
0.15576258301734924,
-1.1778086423873901,
0.3180861473083496,
0.8388260006904602,
-0.6102359890937805,
-0.06980367749929428,
-0.26828134059906006,
-1.2807233333587646,
-0.452077180147171,
0.3576393723487854,
1.8550294637680054,
-0.6989355683326721,
0.9564943313598633,
0.9632236361503601,
-0.6539890170097351,
-0.06183776631951332,
0.3003097176551819,
-0.3008124530315399,
0.8483166098594666,
-1.0609986782073975,
-0.412492036819458,
1.0541716814041138,
-0.15575765073299408,
-0.4589276909828186,
1.40253746509552,
0.6567586660385132,
-0.9803956747055054,
-0.32929620146751404,
-0.1472063958644867,
-0.9198980331420898,
0.08752477169036865,
-1.6563535928726196,
-0.18631459772586823,
0.26115572452545166,
-1.626281976699829,
-0.5705447196960449,
-0.19803974032402039,
1.2228604555130005,
-0.171482652425766,
1.4304336309432983,
-0.33021727204322815,
-0.19630327820777893,
-0.4354225695133209,
-0.4511550962924957,
0.2289932370185852,
-0.2697877883911133,
-0.6316640973091125,
0.1892455816268921,
-0.7632545828819275,
0.34730690717697144,
1.4898587465286255,
0.4116649329662323,
0.0383632555603981,
0.5258355140686035,
1.0103187561035156,
0.4022120237350464,
-0.062374576926231384,
-0.8969635367393494,
-1.6713238954544067,
2.0211665630340576,
-1.5447196960449219,
2.0063443183898926,
0.7454655170440674,
-0.022378982976078987,
-1.7433747053146362,
-1.8774203062057495,
1.3010936975479126,
1.1652884483337402,
2.3891398906707764,
0.5425928831100464,
0.3727886974811554,
-0.7196431756019592,
-0.6406177878379822,
0.29557570815086365,
-1.007981300354004,
-0.8223931789398193,
0.032918836921453476,
2.3828134536743164,
1.7205320596694946,
-0.5703775882720947,
-0.2652416229248047,
-1.0091053247451782,
1.409582495689392,
-0.1313203126192093,
0.23186258971691132,
1.996783971786499,
-0.28029629588127136,
-1.0705567598342896,
1.2331310510635376,
-2.2594454288482666,
0.16482184827327728,
1.942623496055603,
0.36654388904571533,
0.10062278807163239,
-1.4701895713806152,
-0.5107613801956177,
-0.27837350964546204,
-0.37905097007751465,
-1.2601295709609985,
0.5392794609069824,
-0.32110968232154846,
-0.7906118631362915,
-1.5552406311035156,
0.0046063382178545,
-1.1695975065231323,
-1.6279441118240356,
0.267395555973053,
1.9022737741470337,
2.055476427078247,
-0.701538622379303,
1.387539029121399,
-0.3839366137981415,
0.10488410294055939,
1.2469619512557983,
1.1269553899765015,
3.1797666549682617,
1.9844982624053955,
-1.2334771156311035,
0.5878023505210876,
-0.16470429301261902,
-0.5018064379692078,
1.0990225076675415,
-1.113552212715149,
1.2452266216278076,
-0.0710001215338707,
-1.1673895120620728,
-1.1098514795303345,
1.0917943716049194,
0.5516573786735535,
0.05680776387453079,
-0.5332225561141968,
1.1383047103881836,
0.07119480520486832,
1.321561574935913,
0.5455805063247681,
-0.41245049238204956,
0.6125923991203308,
-0.3879129886627197,
-0.5719042420387268,
1.6091965436935425,
0.10596015304327011,
-1.4472986459732056,
-2.4078328609466553,
-0.20041798055171967,
-0.8874062299728394,
0.10423709452152252,
-0.5691537857055664,
-0.9700698852539062,
1.5921255350112915,
0.4475198984146118,
-1.2721980810165405,
-0.212956964969635,
-0.3441120386123657,
-0.5590549111366272,
2.669152021408081,
-1.3924356698989868,
-0.2518782317638397,
-0.9112152457237244,
-0.5046509504318237,
1.5435736179351807,
-1.224766731262207,
-0.21079635620117188,
-0.9739993214607239,
-0.5864492058753967,
-1.26076340675354,
-0.5985373854637146,
-0.033734314143657684,
-0.8864905834197998,
0.8298015594482422,
0.09068227559328079,
-1.1891591548919678,
-0.2744329869747162,
-0.9043360352516174,
0.8702270984649658,
-0.13100853562355042,
0.19680890440940857,
1.9859870672225952,
0.32678601145744324,
-0.39705950021743774,
0.6786619424819946,
1.1867376565933228,
0.6051681637763977,
-0.6421276330947876,
0.18095427751541138,
-0.6883794069290161,
0.3514218330383301,
-1.3126758337020874,
0.2592674195766449,
-2.864837646484375,
0.7064175009727478,
-0.053882233798503876,
-0.002843146678060293,
-0.009786475449800491,
-1.3539295196533203,
1.0417505502700806,
2.5539650917053223,
-1.1036931276321411,
0.4723266363143921,
0.36850911378860474,
1.268984079360962,
-1.6395971775054932,
0.32541054487228394,
-0.483048677444458,
2.1159443855285645,
0.23199746012687683,
1.1402055025100708,
-0.5304121375083923,
-2.2865538597106934,
0.51773601770401,
-1.210879921913147,
-1.1711149215698242,
0.7002928853034973,
-0.8053990006446838,
0.09547456353902817,
-1.5100260972976685,
-0.1631791591644287,
-0.899791955947876,
-1.236435890197754,
0.684607982635498,
0.14418770372867584,
0.3873160779476166,
-0.6627947688102722,
0.3537697494029999,
-2.110407829284668,
-1.3577888011932373,
-0.252334862947464,
-0.8733879923820496,
0.4744299054145813,
-0.3693315088748932,
0.6976385712623596,
-0.05101987347006798,
0.05036914348602295,
0.27794158458709717,
1.4184865951538086,
3.298882007598877,
0.1866743117570877,
0.3196292221546173,
-0.19282688200473785,
-0.9643743634223938,
1.4817638397216797,
0.9920960068702698,
-0.10118875652551651,
-0.5880755186080933,
-1.0633156299591064,
1.3066596984863281,
2.0041656494140625,
0.9992526173591614,
0.07542997598648071,
-0.7085193991661072,
-0.6726157069206238,
0.0894969180226326,
0.17160461843013763,
0.45041459798812866,
0.9846305847167969,
-0.04733533784747124,
0.16474181413650513,
1.408618688583374,
1.2244364023208618,
-0.41954126954078674,
0.4988784193992615,
-0.8059868216514587,
-0.5148772597312927,
0.521645188331604,
0.36861374974250793,
-0.11107301712036133,
0.3743648827075958,
-1.020570158958435,
-0.24818848073482513,
-0.4058312773704529,
-0.9887022972106934,
-0.641096293926239,
-0.3922455310821533,
-0.3083384037017822,
1.679880976676941,
0.14251694083213806,
-0.46770378947257996,
-0.006897300016134977,
-0.7128917574882507,
0.010937022976577282,
-1.0460906028747559,
0.33827924728393555,
-0.1938117891550064,
-0.035598933696746826,
-0.09071856737136841,
1.8180373907089233,
-0.8303840160369873,
-2.0883309841156006,
0.2823137640953064,
0.2410178780555725,
-0.41229119896888733,
0.1302127093076706,
1.6691014766693115,
0.5482602119445801,
1.4029643535614014,
1.3902798891067505,
1.0041890144348145,
-0.5729379653930664,
-1.3591164350509644,
0.6831164956092834,
0.9768572449684143,
-1.3830589056015015,
0.772444486618042,
-0.009306619875133038,
-0.5433090925216675,
0.7670459151268005,
1.3457205295562744,
0.3461567759513855,
-2.0651493072509766,
0.8834042549133301,
-0.8762927651405334,
0.817843496799469,
0.701209306716919,
0.7567582726478577,
0.24946202337741852,
0.8870499730110168,
-1.272045612335205,
-1.1345313787460327,
-0.7917276620864868,
-0.5839310884475708,
2.0444729328155518,
-0.15036176145076752,
0.4722300171852112,
-0.1997920125722885,
-1.309238076210022,
-0.09402216970920563,
0.6809748411178589,
0.4198521077632904,
-0.3606436848640442,
0.8204309940338135,
-0.7252020239830017,
-1.1675997972488403,
-1.4169368743896484,
-0.42244112491607666,
-0.9632856845855713,
-0.912166953086853,
1.0240867137908936,
0.8821110129356384,
0.3850327134132385,
1.858969807624817,
0.5880402326583862,
0.2574392855167389,
-2.642876625061035,
0.8587586283683777,
0.2963675260543823,
-0.08598371595144272,
0.9029670357704163,
0.2649646997451782,
1.113825798034668,
-0.013651406392455101,
0.5270205736160278,
-2.3676259517669678,
2.204986810684204,
-0.2435813993215561,
0.8419313430786133,
0.0304710790514946,
-0.1536744236946106,
1.1705150604248047,
0.5411173105239868,
0.5605476498603821,
-1.1795216798782349,
0.6823664307594299,
-0.6022504568099976,
1.1123601198196411,
0.8870503902435303,
-0.7925031781196594,
-0.030134089291095734,
1.4076331853866577,
0.5002310872077942,
-0.5907461047172546,
-0.949951171875,
-0.9353965520858765,
0.9280690550804138,
1.8073910474777222,
-0.043589502573013306,
0.005106395110487938,
0.8177663683891296,
0.7437958717346191,
-1.2838889360427856,
0.14215251803398132,
-0.8218482136726379,
-0.8137012720108032,
1.6198302507400513,
2.0521790981292725,
-0.051055908203125,
-0.23805002868175507,
-0.6512062549591064,
-1.2794228792190552,
0.6501877903938293,
0.043033093214035034,
0.23461413383483887,
0.7280399799346924,
-0.5958413481712341,
1.0784733295440674,
0.8285655379295349,
0.9486936330795288,
0.13061778247356415,
0.2962026298046112,
0.32734501361846924,
-0.21891045570373535,
-1.1868785619735718,
-0.30520662665367126,
-1.1806970834732056,
-2.5278007984161377,
0.4548850655555725,
-0.24549518525600433,
-1.457950472831726,
0.10109033435583115,
-0.9302768707275391,
0.8422152400016785,
-0.5880775451660156,
-1.1487014293670654,
-1.5673683881759644,
0.22482961416244507,
-0.03947678208351135,
0.9326712489128113,
-1.6258201599121094,
-0.18988001346588135,
1.2120462656021118,
0.8713357448577881,
-0.5373443365097046,
1.0091959238052368,
0.26680251955986023,
0.9689313173294067,
0.8006047010421753,
-0.4915469288825989,
0.38052719831466675,
0.13502851128578186,
-1.3874236345291138,
0.4771580100059509,
1.2021089792251587,
0.15037128329277039,
1.4230064153671265,
-0.6359793543815613,
0.040675316005945206,
0.5196765661239624,
-0.5548038482666016,
-0.4950636625289917,
-0.482555627822876,
0.7171428203582764,
-0.0783434584736824,
-0.9288645386695862,
0.011637515388429165,
-0.05716817453503609,
-0.25041118264198303,
0.20512346923351288,
-1.4986817836761475,
-0.19151964783668518,
-0.4352750778198242,
-0.4987501800060272,
-1.2788480520248413,
-0.08052455633878708,
1.3741893768310547,
-0.8492234349250793,
-0.22089675068855286,
0.522362232208252,
0.43259868025779724,
0.535295844078064,
0.6919311285018921,
-0.6277664303779602,
-0.3406132757663727,
-0.21554826200008392,
-0.3377758264541626,
0.19099491834640503,
1.292763590812683,
-0.20916250348091125,
-0.994217038154602,
0.5985807180404663,
-0.3535098731517792,
0.03209073469042778,
2.0132791996002197,
0.09442082792520523,
-0.7962812781333923,
0.3170066177845001,
-0.7359594106674194,
1.7697902917861938,
1.6473771333694458,
1.451656460762024,
-0.14626196026802063,
-0.8899692296981812,
0.5906795263290405,
-0.3131939768791199,
-0.3913530111312866,
0.9617578387260437,
0.4561588168144226,
-0.12650814652442932,
-1.3861706256866455,
0.5938825011253357,
1.2724679708480835,
-0.9287325143814087,
-0.7459076642990112,
0.10648425668478012,
-0.843467652797699,
1.1621969938278198,
0.7123391032218933,
0.38090547919273376,
0.2850555181503296,
1.6252180337905884,
0.7499642968177795,
-0.5128000378608704,
0.5434183478355408,
0.5508241057395935,
-0.14485520124435425,
-2.085777997970581,
-1.124595046043396,
0.2720007300376892,
-0.35470685362815857,
-1.5458050966262817,
1.3825819492340088,
-1.121747612953186,
-0.9683259725570679,
0.5737502574920654,
0.09312862157821655,
1.4028832912445068,
0.3349002003669739,
1.7045645713806152,
2.1178038120269775,
0.9195184111595154,
0.34228819608688354,
1.3334640264511108,
-0.025108013302087784,
-0.497300922870636,
1.8499797582626343,
-0.39297765493392944,
0.5572583079338074,
1.0463476181030273,
-0.444387286901474,
-1.143522024154663,
-0.7624933123588562,
-1.1594985723495483,
-0.6463730931282043,
1.1238141059875488,
0.07817920297384262,
-1.1497517824172974,
0.21958135068416595,
1.5708049535751343,
0.17692212760448456,
-0.35671934485435486,
0.5654891729354858,
0.3963024318218231,
-0.6386062502861023,
-0.10591434687376022,
-1.003015398979187,
0.42854243516921997,
-0.2549137473106384,
-0.3910239636898041,
0.27347531914711,
0.4673241972923279,
1.1759142875671387,
0.04363972693681717,
0.09088828414678574,
1.1748517751693726,
-1.4458492994308472,
1.4385614395141602,
-0.6907691955566406,
0.29285624623298645,
-2.4646377563476562,
1.4649937152862549,
-0.8148071765899658,
1.963691234588623,
-2.6587066650390625,
0.4052148461341858,
-0.6176972985267639,
-0.5036271810531616,
0.3444105386734009,
-0.2811892628669739,
0.18319959938526154,
-0.12979647517204285,
-1.135720133781433,
-0.14578938484191895,
-0.8031073212623596,
0.6470111012458801,
1.1458311080932617,
1.3586162328720093,
-1.1120567321777344,
-0.30914920568466187,
-1.6523281335830688,
-0.09236367791891098,
-0.6301639080047607,
0.3153919279575348,
-2.0337061882019043,
-0.13058869540691376,
-1.9205065965652466,
-2.28489089012146,
-1.3620035648345947,
-0.9304535984992981,
1.0695321559906006,
0.20319877564907074,
-0.8994532823562622,
1.1345345973968506,
-0.3277363181114197,
-1.8156578540802002,
1.1087424755096436,
-2.1630260944366455
] |
https://github.com/huggingface/datasets/issues/4709 | WMT21 & WMT22 | @Muennighoff , @lhoestq let me know if you want me to look into this. Happy to help bring WMT21 & WMT22 datasets into 🤗 ! | ## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
| 622 | 25 | WMT21 & WMT22
## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
@Muennighoff , @lhoestq let me know if you want me to look into this. Happy to help bring WMT21 & WMT22 datasets into 🤗 ! | [
-1.2595070600509644,
-0.934443473815918,
-0.7318006157875061,
1.3066792488098145,
-0.22241249680519104,
-1.2701303958892822,
0.14507505297660828,
-1.0154484510421753,
1.7353848218917847,
-0.6750417351722717,
0.24950358271598816,
-1.5908715724945068,
-0.08831927180290222,
-0.5807395577430725,
-0.8351763486862183,
-0.7751721143722534,
-0.5116510391235352,
-0.7680918574333191,
1.0111572742462158,
2.52778697013855,
1.1560649871826172,
-1.430430293083191,
2.8051791191101074,
0.550999104976654,
-0.15463665127754211,
-0.9465148448944092,
0.49342361092567444,
0.18447406589984894,
-1.253745198249817,
-0.43147706985473633,
-0.9570818543434143,
-0.11142593622207642,
-0.47920578718185425,
-0.43613332509994507,
0.1553117036819458,
0.2961827218532562,
-0.1380489319562912,
-0.3559434115886688,
-0.5203224420547485,
-0.6163051128387451,
0.5034734010696411,
-0.27506083250045776,
1.001285195350647,
-0.33479270339012146,
1.7815114259719849,
-0.6750549674034119,
0.3838983476161957,
0.6560267210006714,
1.2846596240997314,
0.19102583825588226,
0.04786711931228638,
0.23901326954364777,
0.4304158687591553,
0.060737062245607376,
0.4914024770259857,
1.1858209371566772,
0.625671923160553,
0.49336597323417664,
0.6621494293212891,
-2.112447500228882,
1.344106674194336,
-0.9845284223556519,
0.367919921875,
1.3801615238189697,
-1.0119470357894897,
0.5024431943893433,
-1.8246185779571533,
-0.030941754579544067,
0.5285671353340149,
-2.359862804412842,
0.13693299889564514,
-1.2724066972732544,
-0.6456583738327026,
0.9037370085716248,
0.21666590869426727,
-1.273699402809143,
0.2543451189994812,
-0.5257682800292969,
1.0309098958969116,
0.44362732768058777,
1.2070168256759644,
-1.8039579391479492,
-0.15014882385730743,
-0.26355576515197754,
0.10223094373941422,
-1.2113217115402222,
-1.501922369003296,
0.5765445232391357,
0.5698440074920654,
0.6229631304740906,
-0.07989252358675003,
0.8428701758384705,
-1.0609934329986572,
1.0248711109161377,
-0.9419646859169006,
-1.55259370803833,
-1.479135274887085,
-2.3472061157226562,
-2.281099319458008,
0.8797515630722046,
-0.4823893904685974,
-0.41794338822364807,
1.834825038909912,
-0.9211543798446655,
-1.710678219795227,
1.1706030368804932,
0.3383166491985321,
0.11221364140510559,
2.3879611492156982,
0.2684299051761627,
-0.6841872334480286,
0.5058330297470093,
-0.8597987294197083,
0.7942623496055603,
-0.4806683659553528,
1.3911293745040894,
0.4534754753112793,
-0.8889985680580139,
1.5080640316009521,
-0.4757097661495209,
0.5363192558288574,
-0.6434706449508667,
-0.5031567215919495,
-0.8653515577316284,
0.3683389127254486,
1.8937830924987793,
-0.22288331389427185,
1.6615471839904785,
-0.4176546335220337,
-1.6125482320785522,
-1.4658225774765015,
0.707624077796936,
0.6481198668479919,
-0.8752315044403076,
0.06969965994358063,
-0.3684436082839966,
0.07640194147825241,
-0.025608614087104797,
1.0585596561431885,
1.036487102508545,
0.8079203367233276,
-0.3369896113872528,
-0.8639637231826782,
0.31209883093833923,
-0.10834489017724991,
-0.7087934017181396,
-1.838727355003357,
-0.33478572964668274,
0.2277769297361374,
0.6290139555931091,
-1.2440040111541748,
1.564612865447998,
0.8346419334411621,
2.0133039951324463,
0.9274512529373169,
-0.4167933464050293,
1.4765771627426147,
0.020582184195518494,
1.9127963781356812,
-0.6414304971694946,
0.6765339970588684,
-0.34140169620513916,
-1.08535897731781,
0.7889651656150818,
-0.4947335124015808,
-2.1851210594177246,
-0.6339062452316284,
-0.9498652815818787,
-0.2676689028739929,
-0.783287525177002,
0.9981740713119507,
-0.2528098523616791,
-1.3300658464431763,
0.20303839445114136,
-0.7255608439445496,
0.15527060627937317,
-1.2279058694839478,
0.24023009836673737,
0.8729985952377319,
-0.5412229299545288,
-0.1147095337510109,
-0.26435044407844543,
-1.3062056303024292,
-0.45017677545547485,
0.3482641875743866,
1.9474753141403198,
-0.6701455116271973,
0.9364465475082397,
0.8619077205657959,
-0.6259514093399048,
-0.032747622579336166,
0.29717352986335754,
-0.2873998284339905,
0.8742700219154358,
-1.101935625076294,
-0.3281667232513428,
1.0394275188446045,
-0.13653506338596344,
-0.41362014412879944,
1.4780856370925903,
0.7222511768341064,
-0.967309296131134,
-0.32301849126815796,
-0.23383411765098572,
-0.871113121509552,
0.043519120663404465,
-1.6440070867538452,
-0.19168978929519653,
0.148599311709404,
-1.5210614204406738,
-0.5653353333473206,
-0.15397338569164276,
1.2547109127044678,
-0.21606962382793427,
1.3572920560836792,
-0.3100324869155884,
-0.2482391893863678,
-0.5109972953796387,
-0.47197455167770386,
0.23741759359836578,
-0.3276381492614746,
-0.6823474168777466,
0.24258193373680115,
-0.7834875583648682,
0.335543155670166,
1.4754208326339722,
0.4173508882522583,
0.11567015945911407,
0.5393560528755188,
0.9343671202659607,
0.31768208742141724,
-0.04543263092637062,
-0.8621896505355835,
-1.738706350326538,
2.0395443439483643,
-1.5595091581344604,
1.9759366512298584,
0.720191240310669,
-0.04482067748904228,
-1.703458309173584,
-1.8412920236587524,
1.2836319208145142,
1.2335673570632935,
2.424069881439209,
0.5040821433067322,
0.3481089472770691,
-0.7181610465049744,
-0.6882359385490417,
0.23770220577716827,
-1.0319857597351074,
-0.8501998782157898,
0.011904002167284489,
2.3896071910858154,
1.701227068901062,
-0.6393449306488037,
-0.24679972231388092,
-0.9805399775505066,
1.3924444913864136,
-0.1292852908372879,
0.2130737155675888,
2.0506598949432373,
-0.3617483377456665,
-1.071471929550171,
1.1759099960327148,
-2.308828830718994,
0.16290991008281708,
1.8841652870178223,
0.4363346993923187,
0.12414725124835968,
-1.4891538619995117,
-0.5268480777740479,
-0.36636999249458313,
-0.3257339596748352,
-1.266225814819336,
0.5256469249725342,
-0.25071972608566284,
-0.8718920350074768,
-1.5982109308242798,
-0.022722546011209488,
-1.1451774835586548,
-1.667543649673462,
0.375090092420578,
1.8156228065490723,
2.095900774002075,
-0.7392887473106384,
1.3047575950622559,
-0.36629703640937805,
0.09327048808336258,
1.2507824897766113,
1.1291711330413818,
3.1611461639404297,
1.9859589338302612,
-1.1690987348556519,
0.6186882853507996,
-0.20400331914424896,
-0.5111215710639954,
1.0612925291061401,
-1.1135430335998535,
1.2056853771209717,
-0.06686298549175262,
-1.0687012672424316,
-1.1591651439666748,
1.1008455753326416,
0.5656230449676514,
-0.01350617315620184,
-0.568058967590332,
1.1989943981170654,
0.07472872734069824,
1.4182332754135132,
0.5509189963340759,
-0.4159405529499054,
0.5615338683128357,
-0.43067556619644165,
-0.5642616152763367,
1.601180076599121,
0.09834963083267212,
-1.5050147771835327,
-2.462181568145752,
-0.20110148191452026,
-0.9650446176528931,
-0.02757132425904274,
-0.5541067719459534,
-1.0527629852294922,
1.6352187395095825,
0.4994242489337921,
-1.2592633962631226,
-0.18253789842128754,
-0.2908381223678589,
-0.5726675987243652,
2.7114882469177246,
-1.4361556768417358,
-0.25070497393608093,
-0.8822973370552063,
-0.41827255487442017,
1.573976993560791,
-1.2702114582061768,
-0.21497023105621338,
-0.9963531494140625,
-0.7056867480278015,
-1.2749035358428955,
-0.5198227763175964,
-0.08224932104349136,
-0.893365204334259,
0.7741400003433228,
0.0342419371008873,
-1.1202857494354248,
-0.2989058196544647,
-0.9475170969963074,
0.8304003477096558,
-0.08134603500366211,
0.262177973985672,
1.98297119140625,
0.30727696418762207,
-0.37747442722320557,
0.6280510425567627,
1.2911673784255981,
0.6055348515510559,
-0.7508870363235474,
0.13082639873027802,
-0.6696526408195496,
0.33975473046302795,
-1.3180115222930908,
0.2884477972984314,
-2.8836729526519775,
0.7243292331695557,
-0.07789423316717148,
-0.030927132815122604,
-0.08041996508836746,
-1.3561015129089355,
1.1808340549468994,
2.4983317852020264,
-1.0707147121429443,
0.49440911412239075,
0.3425121009349823,
1.2119284868240356,
-1.634121298789978,
0.3858923316001892,
-0.4522852897644043,
2.1087067127227783,
0.32839837670326233,
1.1197000741958618,
-0.561456561088562,
-2.1799113750457764,
0.5052680969238281,
-1.2078890800476074,
-1.0960872173309326,
0.6480771899223328,
-0.789304792881012,
0.20244254171848297,
-1.5796210765838623,
-0.08585736900568008,
-0.9516178965568542,
-1.3202388286590576,
0.6132919192314148,
0.13045836985111237,
0.38736969232559204,
-0.5951080322265625,
0.4097610116004944,
-2.1074366569519043,
-1.3720821142196655,
-0.2836506962776184,
-0.8527483344078064,
0.5001937747001648,
-0.34340333938598633,
0.7296661734580994,
0.02701069414615631,
0.08546843379735947,
0.3278486728668213,
1.433736801147461,
3.2594356536865234,
0.15181560814380646,
0.3630443811416626,
-0.12617844343185425,
-0.9589725136756897,
1.5039821863174438,
0.9807054400444031,
0.00470420066267252,
-0.5419021844863892,
-0.9905785918235779,
1.4019222259521484,
2.040754795074463,
1.0803827047348022,
0.0840160921216011,
-0.7161411046981812,
-0.615939199924469,
0.1944192349910736,
0.21200689673423767,
0.3724217414855957,
0.9795407652854919,
-0.042861029505729675,
0.13809563219547272,
1.4269939661026,
1.2849570512771606,
-0.40596938133239746,
0.5202725529670715,
-0.8902798891067505,
-0.48214849829673767,
0.5001687407493591,
0.3911069333553314,
-0.10217316448688507,
0.3706192076206207,
-1.0267858505249023,
-0.27125847339630127,
-0.2764451503753662,
-0.9059457778930664,
-0.6538061499595642,
-0.49156442284584045,
-0.377959668636322,
1.728204369544983,
0.11978890001773834,
-0.4428393244743347,
0.045695219188928604,
-0.7303692698478699,
0.03245002031326294,
-1.101893424987793,
0.3254798650741577,
-0.1327691227197647,
0.0006380286067724228,
-0.11919920891523361,
1.906697154045105,
-0.8289033770561218,
-2.0990822315216064,
0.33221593499183655,
0.32331645488739014,
-0.5330159068107605,
0.05112404748797417,
1.6334067583084106,
0.5641525387763977,
1.3801414966583252,
1.3022786378860474,
1.0272096395492554,
-0.5805942416191101,
-1.3611947298049927,
0.6859822273254395,
0.9727479815483093,
-1.3534860610961914,
0.7986792325973511,
-0.07709735631942749,
-0.46634745597839355,
0.7815296649932861,
1.340956211090088,
0.27812695503234863,
-1.9446837902069092,
0.8682253360748291,
-0.8405314683914185,
0.8575582504272461,
0.705298900604248,
0.7639285326004028,
0.312026709318161,
0.8713726997375488,
-1.3757423162460327,
-1.073756456375122,
-0.8783426284790039,
-0.47295546531677246,
2.078953981399536,
-0.12912531197071075,
0.4322737455368042,
-0.2090609222650528,
-1.2168935537338257,
-0.012058321386575699,
0.7139829397201538,
0.4496842622756958,
-0.3121553063392639,
0.8197152018547058,
-0.7142187356948853,
-1.1444880962371826,
-1.3749078512191772,
-0.3819463551044464,
-0.8987593650817871,
-0.9657808542251587,
1.0470165014266968,
0.9160019159317017,
0.49900493025779724,
1.881607174873352,
0.5905539989471436,
0.3223288655281067,
-2.6430647373199463,
0.8520521521568298,
0.22866293787956238,
-0.020058318972587585,
0.8843021392822266,
0.21825504302978516,
1.1640691757202148,
0.00704039353877306,
0.5082481503486633,
-2.37280535697937,
2.174442768096924,
-0.17935113608837128,
0.8257654309272766,
0.029018335044384003,
-0.11728958785533905,
1.1716670989990234,
0.5358538627624512,
0.45811519026756287,
-1.209409236907959,
0.6265025734901428,
-0.585311233997345,
1.1032687425613403,
0.8256986737251282,
-0.7579164505004883,
-0.03361379727721214,
1.309996485710144,
0.5397971868515015,
-0.5399959087371826,
-0.951169490814209,
-0.8284965753555298,
0.9652043581008911,
1.7494196891784668,
-0.05179302766919136,
-0.048472821712493896,
0.8359375,
0.7338830828666687,
-1.2253239154815674,
0.1303548812866211,
-0.8448680639266968,
-0.7531598806381226,
1.6937555074691772,
2.10461688041687,
0.03356612101197243,
-0.22032895684242249,
-0.6237344145774841,
-1.2889842987060547,
0.6906893253326416,
0.05550406500697136,
0.2672579884529114,
0.7216142416000366,
-0.5594130754470825,
1.095809817314148,
0.7826743125915527,
0.9770578742027283,
0.06324917078018188,
0.3025718033313751,
0.3165784776210785,
-0.22964005172252655,
-1.2227426767349243,
-0.351415753364563,
-1.2549437284469604,
-2.561572551727295,
0.46586301922798157,
-0.34382039308547974,
-1.4127371311187744,
0.11368205398321152,
-1.0053505897521973,
0.8349211812019348,
-0.6154294610023499,
-1.072405457496643,
-1.5364590883255005,
0.2532773017883301,
-0.04727803170681,
0.9110682606697083,
-1.6002438068389893,
-0.17034931480884552,
1.2442047595977783,
0.7588561177253723,
-0.49154233932495117,
0.9567524194717407,
0.22645285725593567,
0.9295393824577332,
0.7380938529968262,
-0.41864192485809326,
0.38943445682525635,
0.21690987050533295,
-1.3878698348999023,
0.490027517080307,
1.2680962085723877,
0.17777730524539948,
1.431431531906128,
-0.6351048946380615,
0.15573877096176147,
0.5344457626342773,
-0.5665239691734314,
-0.5185467600822449,
-0.50575852394104,
0.715639591217041,
0.027161601930856705,
-1.0187971591949463,
-0.037790920585393906,
-0.10391976684331894,
-0.22838085889816284,
0.233968585729599,
-1.4256973266601562,
-0.22426484525203705,
-0.4217684268951416,
-0.5260931253433228,
-1.2795946598052979,
-0.080325186252594,
1.347242832183838,
-0.9010058641433716,
-0.14088276028633118,
0.518413245677948,
0.4911556541919708,
0.5783719420433044,
0.7624321579933167,
-0.6354146599769592,
-0.31653299927711487,
-0.22852246463298798,
-0.24959662556648254,
0.20402224361896515,
1.180663824081421,
-0.19527453184127808,
-1.0434082746505737,
0.5770504474639893,
-0.42213982343673706,
0.11078296601772308,
2.0605578422546387,
0.1026666909456253,
-0.8277919888496399,
0.3550979495048523,
-0.7412664294242859,
1.8137105703353882,
1.6221568584442139,
1.4094170331954956,
-0.13590627908706665,
-0.8662890195846558,
0.5251169800758362,
-0.25787392258644104,
-0.36430469155311584,
0.9136806726455688,
0.5158525705337524,
-0.13695655763149261,
-1.3634514808654785,
0.4855259358882904,
1.3376644849777222,
-0.9554392695426941,
-0.8054330348968506,
0.12557201087474823,
-0.904485285282135,
1.1542102098464966,
0.7028432488441467,
0.40929892659187317,
0.35097864270210266,
1.6212950944900513,
0.7390560507774353,
-0.580011248588562,
0.44287291169166565,
0.5274169445037842,
-0.14541840553283691,
-1.9987709522247314,
-1.069624900817871,
0.263540118932724,
-0.3723424971103668,
-1.4482084512710571,
1.3525073528289795,
-1.0767850875854492,
-0.9634175300598145,
0.6062886714935303,
0.14934006333351135,
1.390137791633606,
0.3000023066997528,
1.7604385614395142,
2.0151541233062744,
0.8757215738296509,
0.31178387999534607,
1.3576796054840088,
0.03042145073413849,
-0.5619429349899292,
1.7887747287750244,
-0.34767812490463257,
0.631109356880188,
0.9936758279800415,
-0.5228828191757202,
-1.1958019733428955,
-0.7962824702262878,
-1.1112416982650757,
-0.6322404146194458,
1.1588804721832275,
0.169642373919487,
-1.1832656860351562,
0.14869846403598785,
1.6547082662582397,
0.17740894854068756,
-0.4024047553539276,
0.4359869658946991,
0.32110172510147095,
-0.606061577796936,
-0.05058114230632782,
-1.1469775438308716,
0.450458288192749,
-0.22387926280498505,
-0.4201831519603729,
0.13909180462360382,
0.5169381499290466,
1.106732726097107,
0.0195123553276062,
0.12604926526546478,
1.190576434135437,
-1.4282337427139282,
1.4160010814666748,
-0.6538651585578918,
0.3223934471607208,
-2.4638946056365967,
1.4535255432128906,
-0.7526834607124329,
1.988004207611084,
-2.712437868118286,
0.3529745936393738,
-0.5985897779464722,
-0.4804914891719818,
0.33901214599609375,
-0.2532694339752197,
0.23429115116596222,
-0.13377876579761505,
-1.1229605674743652,
-0.14647987484931946,
-0.8787187337875366,
0.5907198786735535,
1.1816507577896118,
1.345748782157898,
-1.1108067035675049,
-0.33908742666244507,
-1.6120684146881104,
-0.0873398631811142,
-0.7022770047187805,
0.2559932470321655,
-1.9909522533416748,
-0.02362755313515663,
-1.9200499057769775,
-2.2127437591552734,
-1.481956958770752,
-0.9443673491477966,
1.0374072790145874,
0.16620461642742157,
-0.8671508431434631,
0.9906365275382996,
-0.33396127820014954,
-1.8070497512817383,
1.1355596780776978,
-2.185892105102539
] |
https://github.com/huggingface/datasets/issues/4709 | WMT21 & WMT22 | Hi @srhrshr :) Sure, feel free to create a dataset repository on the Hub and start from the implementation of WMT19 if you want. Then we can move the dataset under the WMT org (we'll move the other ones there as well).
Let me know if you have questions or if I can help | ## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
| 622 | 54 | WMT21 & WMT22
## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
Hi @srhrshr :) Sure, feel free to create a dataset repository on the Hub and start from the implementation of WMT19 if you want. Then we can move the dataset under the WMT org (we'll move the other ones there as well).
Let me know if you have questions or if I can help | [
-1.2626900672912598,
-0.9360965490341187,
-0.7124602198600769,
1.3180567026138306,
-0.23217321932315826,
-1.2719613313674927,
0.11464066058397293,
-1.0066708326339722,
1.7067962884902954,
-0.6769875288009644,
0.23338347673416138,
-1.6050524711608887,
-0.0421612448990345,
-0.5849876999855042,
-0.798067569732666,
-0.7892898321151733,
-0.488772451877594,
-0.7953161597251892,
1.0084402561187744,
2.5074777603149414,
1.1257846355438232,
-1.4566365480422974,
2.7767720222473145,
0.5634271502494812,
-0.15388306975364685,
-0.9915893077850342,
0.5056595802307129,
0.14334151148796082,
-1.2459168434143066,
-0.45400354266166687,
-0.9853694438934326,
-0.10711042582988739,
-0.4858202338218689,
-0.43057137727737427,
0.149552583694458,
0.29249241948127747,
-0.15706856548786163,
-0.33387112617492676,
-0.502298891544342,
-0.641791045665741,
0.50328528881073,
-0.2836005389690399,
0.9796876907348633,
-0.31127917766571045,
1.7722561359405518,
-0.6370599865913391,
0.42031997442245483,
0.6589175462722778,
1.2867940664291382,
0.206455260515213,
0.04855676367878914,
0.27036604285240173,
0.4322553873062134,
0.04297426715493202,
0.5304510593414307,
1.1933436393737793,
0.6318364143371582,
0.4896896183490753,
0.6475738286972046,
-2.1461892127990723,
1.3154398202896118,
-0.9978851675987244,
0.3739551901817322,
1.4098320007324219,
-1.0121930837631226,
0.4993784725666046,
-1.7993496656417847,
-0.02898315340280533,
0.516967236995697,
-2.3717238903045654,
0.1249767318367958,
-1.294040322303772,
-0.5998772382736206,
0.962944507598877,
0.24391326308250427,
-1.2482037544250488,
0.2471465766429901,
-0.4778357744216919,
1.0356866121292114,
0.4345565438270569,
1.2133374214172363,
-1.7361037731170654,
-0.1464589536190033,
-0.24164260923862457,
0.11399633437395096,
-1.2228926420211792,
-1.5359121561050415,
0.5504283308982849,
0.5845934152603149,
0.5981513857841492,
-0.1122136116027832,
0.8765628337860107,
-1.061043381690979,
0.9826412796974182,
-0.9191925525665283,
-1.5708036422729492,
-1.4922499656677246,
-2.3277933597564697,
-2.3072001934051514,
0.9128484725952148,
-0.4889391362667084,
-0.4200717806816101,
1.8968206644058228,
-0.9759837985038757,
-1.7135919332504272,
1.1917951107025146,
0.319583535194397,
0.06678521633148193,
2.3849711418151855,
0.235030397772789,
-0.6952969431877136,
0.49458470940589905,
-0.8367390632629395,
0.805102527141571,
-0.4233030378818512,
1.364891529083252,
0.44628438353538513,
-0.88140869140625,
1.5206698179244995,
-0.4454699456691742,
0.517653226852417,
-0.6281324028968811,
-0.5015262961387634,
-0.8529717326164246,
0.3831879496574402,
1.8992453813552856,
-0.228761225938797,
1.632379174232483,
-0.38656094670295715,
-1.5938469171524048,
-1.4554517269134521,
0.7430539131164551,
0.6616086363792419,
-0.8889868855476379,
0.06775405257940292,
-0.3490634858608246,
0.0807759091258049,
-0.0005051353946328163,
1.064527988433838,
1.081907868385315,
0.8114814162254333,
-0.34999313950538635,
-0.8905735015869141,
0.3120739459991455,
-0.12869051098823547,
-0.7429819703102112,
-1.8147615194320679,
-0.3680283725261688,
0.23188965022563934,
0.6038923859596252,
-1.224054217338562,
1.589817762374878,
0.8502276539802551,
1.9806525707244873,
0.9563086628913879,
-0.40777653455734253,
1.483973503112793,
0.04387675225734711,
1.892012596130371,
-0.5668773055076599,
0.6736859083175659,
-0.34733304381370544,
-1.1284058094024658,
0.7521851062774658,
-0.48695746064186096,
-2.1435604095458984,
-0.6335899829864502,
-0.9087294340133667,
-0.24629996716976166,
-0.76494300365448,
0.9853617548942566,
-0.27716344594955444,
-1.3414827585220337,
0.19524535536766052,
-0.7195146679878235,
0.17189067602157593,
-1.2512996196746826,
0.26186123490333557,
0.8620317578315735,
-0.5859569907188416,
-0.1083838939666748,
-0.2657555937767029,
-1.2815308570861816,
-0.45453357696533203,
0.3351893424987793,
1.8940318822860718,
-0.6952829360961914,
0.944186806678772,
0.891218900680542,
-0.6508251428604126,
-0.028570696711540222,
0.3288835883140564,
-0.2947595715522766,
0.8637782335281372,
-1.0833115577697754,
-0.34147918224334717,
1.0431591272354126,
-0.1431470811367035,
-0.454176664352417,
1.4620722532272339,
0.7356406450271606,
-0.9538836479187012,
-0.31673774123191833,
-0.21810001134872437,
-0.8778360486030579,
0.031200289726257324,
-1.6491516828536987,
-0.19819439947605133,
0.14846503734588623,
-1.5819950103759766,
-0.5686344504356384,
-0.14168255031108856,
1.2665549516677856,
-0.2471499741077423,
1.3982925415039062,
-0.39671385288238525,
-0.2481805980205536,
-0.49904265999794006,
-0.4557810425758362,
0.24414142966270447,
-0.3306806981563568,
-0.6553009748458862,
0.2510298788547516,
-0.7854922413825989,
0.33199840784072876,
1.4505664110183716,
0.44517096877098083,
0.0679987445473671,
0.5311120748519897,
0.9841399192810059,
0.32161420583724976,
-0.04505353048443794,
-0.8986841440200806,
-1.708449363708496,
2.0266823768615723,
-1.5353138446807861,
2.001751184463501,
0.7448145747184753,
-0.06223330274224281,
-1.7026371955871582,
-1.8521243333816528,
1.2525509595870972,
1.232810616493225,
2.393387794494629,
0.4757657051086426,
0.39220625162124634,
-0.756897509098053,
-0.6571175456047058,
0.2461940348148346,
-1.0189779996871948,
-0.8622147440910339,
0.007160787470638752,
2.413808822631836,
1.70009446144104,
-0.6072473526000977,
-0.2226262092590332,
-1.0076512098312378,
1.3952770233154297,
-0.1294785588979721,
0.20754778385162354,
2.0107674598693848,
-0.3309308886528015,
-1.0985599756240845,
1.2142504453659058,
-2.305614471435547,
0.15222172439098358,
1.9458893537521362,
0.3828561305999756,
0.09241119027137756,
-1.470877766609192,
-0.5377718806266785,
-0.2912233769893646,
-0.35323426127433777,
-1.2403887510299683,
0.5371607542037964,
-0.27834826707839966,
-0.8286479711532593,
-1.5565173625946045,
-0.03357081115245819,
-1.1487466096878052,
-1.6500568389892578,
0.3409828245639801,
1.812752366065979,
2.0700693130493164,
-0.7182859778404236,
1.330767273902893,
-0.3617190718650818,
0.09712113440036774,
1.247335433959961,
1.127068281173706,
3.198251485824585,
1.9897774457931519,
-1.24985933303833,
0.6040752530097961,
-0.16591224074363708,
-0.5022701621055603,
1.0752685070037842,
-1.1201629638671875,
1.2183364629745483,
-0.0656694695353508,
-1.1530561447143555,
-1.1433933973312378,
1.1031149625778198,
0.5309081673622131,
0.03582313656806946,
-0.5669786334037781,
1.1650339365005493,
0.0679924339056015,
1.3940905332565308,
0.5532524585723877,
-0.4102365970611572,
0.5918115377426147,
-0.39678987860679626,
-0.5753103494644165,
1.6208025217056274,
0.07718266546726227,
-1.4824455976486206,
-2.449368715286255,
-0.2089715152978897,
-0.9401811361312866,
0.016555964946746826,
-0.5939160585403442,
-1.0191676616668701,
1.6293843984603882,
0.511326014995575,
-1.2504100799560547,
-0.2651218771934509,
-0.30022627115249634,
-0.5712494254112244,
2.712531566619873,
-1.4249444007873535,
-0.2765284478664398,
-0.8843764662742615,
-0.46102553606033325,
1.578000545501709,
-1.2504411935806274,
-0.19389691948890686,
-1.0124428272247314,
-0.7139240503311157,
-1.2415287494659424,
-0.5180964469909668,
-0.08866528421640396,
-0.8977640271186829,
0.8055633306503296,
0.05263044685125351,
-1.1341506242752075,
-0.29323020577430725,
-0.9534319043159485,
0.8105018138885498,
-0.09880809485912323,
0.24624398350715637,
1.9589462280273438,
0.32268309593200684,
-0.40753018856048584,
0.6356424689292908,
1.261309266090393,
0.6131440997123718,
-0.6848243474960327,
0.15511125326156616,
-0.6436630487442017,
0.3287988603115082,
-1.3379764556884766,
0.26526132225990295,
-2.9036319255828857,
0.7298883199691772,
-0.057252634316682816,
-0.011024251580238342,
-0.08691966533660889,
-1.3344695568084717,
1.1342464685440063,
2.492600202560425,
-1.0646508932113647,
0.49703899025917053,
0.38248786330223083,
1.2425466775894165,
-1.6593818664550781,
0.3774927854537964,
-0.46795454621315,
2.1366231441497803,
0.2833692729473114,
1.1390584707260132,
-0.5429513454437256,
-2.22257661819458,
0.5293721556663513,
-1.1777207851409912,
-1.0870739221572876,
0.6842642426490784,
-0.8331369161605835,
0.18808814883232117,
-1.5171455144882202,
-0.11290611326694489,
-0.8849811553955078,
-1.2706016302108765,
0.620017945766449,
0.09201526641845703,
0.3994045853614807,
-0.609573483467102,
0.39206570386886597,
-2.134666919708252,
-1.378684639930725,
-0.2506507933139801,
-0.8683708310127258,
0.4755340814590454,
-0.37991786003112793,
0.7149890065193176,
-0.008793871849775314,
0.06136326119303703,
0.2886001169681549,
1.4533535242080688,
3.2417073249816895,
0.18866726756095886,
0.36027878522872925,
-0.10466190427541733,
-0.9582728147506714,
1.4769550561904907,
0.9689078330993652,
-0.01941777393221855,
-0.5683136582374573,
-1.001557469367981,
1.3848425149917603,
1.9875519275665283,
1.07047700881958,
0.07096891850233078,
-0.6855154633522034,
-0.6147785782814026,
0.1581103801727295,
0.22606122493743896,
0.4310857951641083,
0.977647066116333,
-0.04165050759911537,
0.15368779003620148,
1.4128895998001099,
1.2565171718597412,
-0.41476231813430786,
0.516103982925415,
-0.8759911060333252,
-0.5326704382896423,
0.484609991312027,
0.3828948438167572,
-0.10354091972112656,
0.41119951009750366,
-1.028842568397522,
-0.2537536919116974,
-0.2824995815753937,
-0.9449585676193237,
-0.6207859516143799,
-0.49509549140930176,
-0.38416796922683716,
1.7172694206237793,
0.11015003174543381,
-0.4393099844455719,
0.01544534508138895,
-0.7378127574920654,
-0.003662543836981058,
-1.112977147102356,
0.3390560746192932,
-0.12319725006818771,
-0.011574992910027504,
-0.1162751168012619,
1.8689297437667847,
-0.8174214363098145,
-2.094167709350586,
0.2978295385837555,
0.3056071400642395,
-0.4934757649898529,
0.07906284183263779,
1.6705747842788696,
0.5079585909843445,
1.414355993270874,
1.3499056100845337,
1.0189719200134277,
-0.5539547801017761,
-1.321195125579834,
0.7147045135498047,
0.9770657420158386,
-1.3696556091308594,
0.8126021027565002,
-0.06633533537387848,
-0.5160424709320068,
0.7640724778175354,
1.347373127937317,
0.32604658603668213,
-1.9744999408721924,
0.9002358913421631,
-0.8842337727546692,
0.8460768461227417,
0.7197161316871643,
0.7598509788513184,
0.2544306516647339,
0.8819873332977295,
-1.3545423746109009,
-1.0872987508773804,
-0.8661254644393921,
-0.5017006993293762,
2.0847885608673096,
-0.13756203651428223,
0.4396805167198181,
-0.2073015719652176,
-1.2620652914047241,
-0.05740221217274666,
0.7011982798576355,
0.4582137167453766,
-0.31803426146507263,
0.849906861782074,
-0.6827747225761414,
-1.1525477170944214,
-1.4098907709121704,
-0.3647622764110565,
-0.9228177070617676,
-0.9332426190376282,
1.0687092542648315,
0.9017390012741089,
0.39759859442710876,
1.8554874658584595,
0.5898478627204895,
0.2951139509677887,
-2.654257297515869,
0.8662968277931213,
0.24620643258094788,
-0.04857609421014786,
0.8974101543426514,
0.19679325819015503,
1.1696584224700928,
0.03247826173901558,
0.5415976643562317,
-2.3723793029785156,
2.189988136291504,
-0.18589454889297485,
0.8215345740318298,
0.0005625970661640167,
-0.12453505396842957,
1.1610710620880127,
0.53241366147995,
0.48297491669654846,
-1.1854050159454346,
0.6470751166343689,
-0.6048912405967712,
1.0985996723175049,
0.8413882255554199,
-0.7507470846176147,
-0.030874259769916534,
1.339894413948059,
0.5277156829833984,
-0.5552513003349304,
-0.9458239674568176,
-0.8901055455207825,
0.9560818076133728,
1.771442174911499,
-0.05010274797677994,
-0.03474372252821922,
0.8301299214363098,
0.7559148669242859,
-1.2406775951385498,
0.13413207232952118,
-0.8342242240905762,
-0.7737244367599487,
1.671260118484497,
2.115483045578003,
0.01091765332967043,
-0.23567764461040497,
-0.6241313815116882,
-1.2990617752075195,
0.6827762126922607,
0.016379904001951218,
0.2815791070461273,
0.7550180554389954,
-0.5473531484603882,
1.0859944820404053,
0.8267732858657837,
0.9469574093818665,
0.10838046669960022,
0.27424857020378113,
0.27222251892089844,
-0.20787279307842255,
-1.2059955596923828,
-0.3094940185546875,
-1.2207754850387573,
-2.538823127746582,
0.49935194849967957,
-0.3328406512737274,
-1.4337726831436157,
0.11768088489770889,
-0.991667628288269,
0.8286899328231812,
-0.6391052007675171,
-1.081769585609436,
-1.5605757236480713,
0.2224825918674469,
-0.04958724603056908,
0.8973908424377441,
-1.5858455896377563,
-0.15573857724666595,
1.2468583583831787,
0.7754481434822083,
-0.5024672150611877,
0.9674407839775085,
0.25329333543777466,
0.9657317399978638,
0.785548985004425,
-0.486171692609787,
0.391470730304718,
0.1947193592786789,
-1.407474398612976,
0.4689237177371979,
1.2378638982772827,
0.16715694963932037,
1.4477417469024658,
-0.6367709040641785,
0.10969667881727219,
0.534579873085022,
-0.539858877658844,
-0.5312098264694214,
-0.4974970519542694,
0.7126807570457458,
-0.01592405140399933,
-0.9798738360404968,
0.013936418108642101,
-0.12019813060760498,
-0.21912755072116852,
0.19282785058021545,
-1.4325648546218872,
-0.2091565579175949,
-0.43245673179626465,
-0.5447054505348206,
-1.2910699844360352,
-0.057774655520915985,
1.3521859645843506,
-0.8979020714759827,
-0.13601204752922058,
0.5186046957969666,
0.45975232124328613,
0.5645037889480591,
0.7335557341575623,
-0.6080183982849121,
-0.32581472396850586,
-0.21263208985328674,
-0.28074556589126587,
0.21793775260448456,
1.193080186843872,
-0.2055562138557434,
-1.0111045837402344,
0.5784210562705994,
-0.3765648603439331,
0.07889889925718307,
2.0594944953918457,
0.10790711641311646,
-0.8101627230644226,
0.35414764285087585,
-0.7348043322563171,
1.7942132949829102,
1.6217454671859741,
1.4272540807724,
-0.12038950622081757,
-0.8760743141174316,
0.5330352187156677,
-0.26298987865448,
-0.35577094554901123,
0.9315203428268433,
0.5242211222648621,
-0.09874625504016876,
-1.3762116432189941,
0.5341224074363708,
1.2932689189910889,
-0.9400966763496399,
-0.7938764691352844,
0.11575538665056229,
-0.8849633932113647,
1.1414260864257812,
0.7007905840873718,
0.39097484946250916,
0.2974110543727875,
1.6358555555343628,
0.7418933510780334,
-0.5274501442909241,
0.47908416390419006,
0.5388538241386414,
-0.15434569120407104,
-2.014875888824463,
-1.0970957279205322,
0.26095789670944214,
-0.36501485109329224,
-1.4736078977584839,
1.3434467315673828,
-1.0992670059204102,
-0.9512072205543518,
0.6054006218910217,
0.11110509932041168,
1.402170181274414,
0.3250885307788849,
1.7756710052490234,
2.071988582611084,
0.9130555391311646,
0.29650601744651794,
1.3454128503799438,
0.014690016396343708,
-0.5206531286239624,
1.805938720703125,
-0.3508271872997284,
0.5950832366943359,
0.9981178641319275,
-0.4862530827522278,
-1.1774693727493286,
-0.7924304604530334,
-1.1327478885650635,
-0.664132297039032,
1.1448826789855957,
0.12716525793075562,
-1.13497793674469,
0.16555024683475494,
1.600304365158081,
0.1646108776330948,
-0.3714367151260376,
0.49075889587402344,
0.35678619146347046,
-0.6420729160308838,
-0.08574868738651276,
-1.0948234796524048,
0.4426427185535431,
-0.24348215758800507,
-0.40146729350090027,
0.18694931268692017,
0.494893878698349,
1.1541154384613037,
0.004624927416443825,
0.09078361093997955,
1.1883585453033447,
-1.4336706399917603,
1.4252383708953857,
-0.6665536165237427,
0.3040372431278229,
-2.464487075805664,
1.4660627841949463,
-0.8169496059417725,
1.9682228565216064,
-2.6734375953674316,
0.39980024099349976,
-0.5994620323181152,
-0.4958924651145935,
0.3608979284763336,
-0.29299113154411316,
0.21339735388755798,
-0.11092691868543625,
-1.158416748046875,
-0.16756679117679596,
-0.8563248515129089,
0.59312903881073,
1.1879438161849976,
1.3461320400238037,
-1.1157305240631104,
-0.35815295577049255,
-1.6383432149887085,
-0.10519377887248993,
-0.6463027000427246,
0.2915686070919037,
-1.9784973859786987,
-0.0691111832857132,
-1.914089322090149,
-2.2262978553771973,
-1.416839599609375,
-0.9523364901542664,
1.0344487428665161,
0.18725347518920898,
-0.8791446685791016,
1.0075403451919556,
-0.32314687967300415,
-1.7782177925109863,
1.1385351419448853,
-2.1896920204162598
] |
https://github.com/huggingface/datasets/issues/4709 | WMT21 & WMT22 | Hello @lhoestq ,
Would it be possible for me to be granted in the WMT organization (on hf ofc) in order to facilitate dataset uploads? I've already initiated the joining process at this link: https://huggingface.co/wmt
I appreciate your help with this. Thank you! | ## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
| 622 | 43 | WMT21 & WMT22
## Adding a Dataset
- **Name:** WMT21 & WMT22
- **Description:** We are going to have three tracks: two small tasks and a large task.
The small tracks evaluate translation between fairly related languages and English (all pairs). The large track uses 101 languages.
- **Paper:** /
- **Data:** https://statmt.org/wmt21/large-scale-multilingual-translation-task.html https://statmt.org/wmt22/large-scale-multilingual-translation-task.html
- **Motivation:** Many more languages than previous WMT versions - Could be very high impact
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/main/ADD_NEW_DATASET.md).
I could also tackle this. I saw the existing logic for WMT models is a bit complex (datasets are stored on the wmt account & retrieved in separate wmt datasets afaict). How long do you think it would take me? @lhoestq
Hello @lhoestq ,
Would it be possible for me to be granted in the WMT organization (on hf ofc) in order to facilitate dataset uploads? I've already initiated the joining process at this link: https://huggingface.co/wmt
I appreciate your help with this. Thank you! | [
-1.2664321660995483,
-0.9357103109359741,
-0.7136982083320618,
1.3337141275405884,
-0.21640010178089142,
-1.2440046072006226,
0.13710911571979523,
-1.0113563537597656,
1.7208549976348877,
-0.6535143256187439,
0.2527049779891968,
-1.6035810708999634,
-0.09881861507892609,
-0.5515740513801575,
-0.8137005567550659,
-0.7623809576034546,
-0.5108592510223389,
-0.7785829901695251,
0.9857380986213684,
2.5439906120300293,
1.1799519062042236,
-1.4451905488967896,
2.7801389694213867,
0.5499348044395447,
-0.18683654069900513,
-0.977945864200592,
0.4785618185997009,
0.14923401176929474,
-1.2281014919281006,
-0.4408983290195465,
-0.9391253590583801,
-0.1093033105134964,
-0.4932117164134979,
-0.44506698846817017,
0.12557730078697205,
0.3452485501766205,
-0.1276586800813675,
-0.29911401867866516,
-0.5309985280036926,
-0.6604185104370117,
0.5212798714637756,
-0.3128994405269623,
0.9749215245246887,
-0.3166551887989044,
1.7919323444366455,
-0.6402651071548462,
0.4087209105491638,
0.6558523774147034,
1.3141942024230957,
0.1710231751203537,
0.0040859682485461235,
0.2693270742893219,
0.419281929731369,
0.05272077023983002,
0.545872688293457,
1.210716962814331,
0.6217132806777954,
0.4617754817008972,
0.6401414275169373,
-2.131666898727417,
1.3198821544647217,
-0.9702447652816772,
0.36685094237327576,
1.3691024780273438,
-1.009694218635559,
0.46785566210746765,
-1.8169559240341187,
-0.043494582176208496,
0.5456661581993103,
-2.325556755065918,
0.10737819969654083,
-1.2889630794525146,
-0.6104344725608826,
0.9552783370018005,
0.19440525770187378,
-1.2967473268508911,
0.23837749660015106,
-0.48891836404800415,
1.0392192602157593,
0.42883917689323425,
1.207031011581421,
-1.7776341438293457,
-0.11162183433771133,
-0.25518277287483215,
0.11397852003574371,
-1.1869348287582397,
-1.4930363893508911,
0.5206746459007263,
0.5761753916740417,
0.6029642224311829,
-0.09538616240024567,
0.8282486200332642,
-1.0528095960617065,
0.9848620295524597,
-0.9233425259590149,
-1.5783106088638306,
-1.4718539714813232,
-2.359323024749756,
-2.2786149978637695,
0.8893892765045166,
-0.4849017560482025,
-0.4197639524936676,
1.8781598806381226,
-0.9499015808105469,
-1.7205779552459717,
1.1640979051589966,
0.36483147740364075,
0.10599963366985321,
2.42033314704895,
0.24630771577358246,
-0.716668963432312,
0.48916471004486084,
-0.8185819387435913,
0.7954906821250916,
-0.46446850895881653,
1.3819507360458374,
0.47323179244995117,
-0.9084248542785645,
1.49611496925354,
-0.4620124399662018,
0.5375625491142273,
-0.6314395070075989,
-0.491059809923172,
-0.8327800035476685,
0.3826301097869873,
1.8686219453811646,
-0.25377964973449707,
1.6029679775238037,
-0.3826552927494049,
-1.6076966524124146,
-1.446410894393921,
0.7454098463058472,
0.6444168090820312,
-0.8472268581390381,
0.062030255794525146,
-0.36823734641075134,
0.07149271667003632,
-0.027292773127555847,
1.053088903427124,
1.0523879528045654,
0.8009601831436157,
-0.3283938467502594,
-0.873101532459259,
0.32280170917510986,
-0.0657728835940361,
-0.6948052048683167,
-1.828282117843628,
-0.32445573806762695,
0.23745134472846985,
0.5879345536231995,
-1.2377442121505737,
1.5696864128112793,
0.8603477478027344,
1.977001667022705,
0.9585630893707275,
-0.38507431745529175,
1.5294394493103027,
0.016755662858486176,
1.9008558988571167,
-0.5758092403411865,
0.6224180459976196,
-0.33592361211776733,
-1.1184117794036865,
0.7555510401725769,
-0.4826219081878662,
-2.142840623855591,
-0.6389805674552917,
-0.912594735622406,
-0.24697630107402802,
-0.7848308682441711,
0.9842709898948669,
-0.23945088684558868,
-1.3319684267044067,
0.20342645049095154,
-0.7095968127250671,
0.14438533782958984,
-1.2296662330627441,
0.26107555627822876,
0.8434531688690186,
-0.587739109992981,
-0.11063715815544128,
-0.275934636592865,
-1.2842109203338623,
-0.4784243702888489,
0.3573625683784485,
1.9276793003082275,
-0.678935170173645,
0.9242821335792542,
0.9059027433395386,
-0.6404923796653748,
0.0070091793313622475,
0.3010697364807129,
-0.2947026789188385,
0.8683599829673767,
-1.0645787715911865,
-0.3478426933288574,
1.0403294563293457,
-0.1432347148656845,
-0.4726661443710327,
1.4809967279434204,
0.7174950838088989,
-0.9710707068443298,
-0.3106674551963806,
-0.23848183453083038,
-0.8477863073348999,
0.03896161541342735,
-1.6525968313217163,
-0.16239774227142334,
0.1346166729927063,
-1.5653208494186401,
-0.5702953934669495,
-0.15751902759075165,
1.2765434980392456,
-0.19099797308444977,
1.3870846033096313,
-0.3306112289428711,
-0.21542726457118988,
-0.4878094494342804,
-0.47960489988327026,
0.23250509798526764,
-0.2980585992336273,
-0.6776897311210632,
0.2489037662744522,
-0.7657159566879272,
0.33602023124694824,
1.4651031494140625,
0.46613550186157227,
0.07817955315113068,
0.5285016298294067,
0.9595758318901062,
0.3375276029109955,
-0.041001319885253906,
-0.8753742575645447,
-1.7047204971313477,
2.047950506210327,
-1.531521201133728,
2.0017898082733154,
0.77720046043396,
-0.04927282780408859,
-1.6954032182693481,
-1.8721412420272827,
1.3055853843688965,
1.2380131483078003,
2.418217897415161,
0.515250563621521,
0.3780841529369354,
-0.7569011449813843,
-0.659892737865448,
0.26341474056243896,
-1.0405248403549194,
-0.8742746710777283,
0.0026555461809039116,
2.4020304679870605,
1.7364507913589478,
-0.6383776068687439,
-0.25384771823883057,
-1.0170520544052124,
1.3849562406539917,
-0.11324676126241684,
0.192307248711586,
2.0382003784179688,
-0.32048672437667847,
-1.070785403251648,
1.196357011795044,
-2.28848934173584,
0.1709987372159958,
1.9181389808654785,
0.3931506276130676,
0.1075962483882904,
-1.5007059574127197,
-0.5224592685699463,
-0.33546626567840576,
-0.3355174958705902,
-1.2717702388763428,
0.5502519011497498,
-0.2647652328014374,
-0.859878659248352,
-1.5586512088775635,
-0.003708441276103258,
-1.153806209564209,
-1.6639052629470825,
0.36209893226623535,
1.8128684759140015,
2.0922722816467285,
-0.748360812664032,
1.3517131805419922,
-0.3405162990093231,
0.11634457111358643,
1.2679417133331299,
1.1559823751449585,
3.164579391479492,
1.9917266368865967,
-1.2020246982574463,
0.5957891345024109,
-0.20776043832302094,
-0.4856627881526947,
1.085525631904602,
-1.1182595491409302,
1.2280911207199097,
-0.12087143212556839,
-1.11118483543396,
-1.1522746086120605,
1.0940216779708862,
0.5646626353263855,
0.007971166633069515,
-0.5790693759918213,
1.1546320915222168,
0.09232453256845474,
1.3802921772003174,
0.529914379119873,
-0.4186781048774719,
0.5688912868499756,
-0.40061691403388977,
-0.542989194393158,
1.6101874113082886,
0.08125099539756775,
-1.516052484512329,
-2.436403751373291,
-0.17403672635555267,
-0.9559311270713806,
-0.060648832470178604,
-0.560707688331604,
-1.031137466430664,
1.5909178256988525,
0.5149500370025635,
-1.2663469314575195,
-0.23455651104450226,
-0.3287166655063629,
-0.5734276175498962,
2.7080912590026855,
-1.4334406852722168,
-0.22806178033351898,
-0.8858703970909119,
-0.4244834780693054,
1.603346347808838,
-1.2242974042892456,
-0.17171558737754822,
-0.9896031618118286,
-0.7105814218521118,
-1.2817751169204712,
-0.5425649881362915,
-0.0945635735988617,
-0.8703807592391968,
0.7561590671539307,
0.030815672129392624,
-1.1465373039245605,
-0.3029409348964691,
-0.9321164488792419,
0.8320779800415039,
-0.07769116014242172,
0.22667860984802246,
1.9759409427642822,
0.31631168723106384,
-0.38326290249824524,
0.6319308876991272,
1.2624595165252686,
0.5801483988761902,
-0.6879065036773682,
0.157094806432724,
-0.6862341165542603,
0.3442009687423706,
-1.3350567817687988,
0.24613098800182343,
-2.9027259349823,
0.7687687873840332,
-0.06869768351316452,
-0.0006119599565863609,
-0.0954192727804184,
-1.3108047246932983,
1.1713250875473022,
2.5272421836853027,
-1.0620043277740479,
0.47760605812072754,
0.3690776526927948,
1.21237313747406,
-1.6433743238449097,
0.34029659628868103,
-0.4969789981842041,
2.126190423965454,
0.25286030769348145,
1.1433203220367432,
-0.547271728515625,
-2.220942497253418,
0.5258521437644958,
-1.229775071144104,
-1.1069591045379639,
0.6560404300689697,
-0.8044270873069763,
0.1329791396856308,
-1.5448089838027954,
-0.08171317726373672,
-0.9327710270881653,
-1.2716710567474365,
0.6514774560928345,
0.130278080701828,
0.4004082977771759,
-0.6191740036010742,
0.38843536376953125,
-2.1268537044525146,
-1.3757805824279785,
-0.29384276270866394,
-0.8450145125389099,
0.49544981122016907,
-0.36585623025894165,
0.7191206216812134,
-0.01999128982424736,
0.05615152418613434,
0.31401315331459045,
1.3798131942749023,
3.251128673553467,
0.17833440005779266,
0.3483195900917053,
-0.13942453265190125,
-0.9678018689155579,
1.4911242723464966,
0.9797355532646179,
-0.06379660218954086,
-0.541608452796936,
-1.0028051137924194,
1.375592827796936,
2.0206375122070312,
1.0887205600738525,
0.10428938269615173,
-0.7504493594169617,
-0.621432363986969,
0.13659869134426117,
0.20704592764377594,
0.4117697477340698,
0.9779734015464783,
-0.08384890854358673,
0.14722181856632233,
1.4412119388580322,
1.2785133123397827,
-0.41185420751571655,
0.5164679288864136,
-0.8571653366088867,
-0.47953712940216064,
0.5130961537361145,
0.35625892877578735,
-0.08941522240638733,
0.4270519018173218,
-1.0260534286499023,
-0.256266713142395,
-0.27536511421203613,
-0.9302371144294739,
-0.6733177900314331,
-0.48900333046913147,
-0.36410924792289734,
1.7074731588363647,
0.125820130109787,
-0.4514504075050354,
0.046893566846847534,
-0.7528050541877747,
0.003798672929406166,
-1.0845433473587036,
0.31451696157455444,
-0.14880459010601044,
0.028163298964500427,
-0.1639297902584076,
1.8839832544326782,
-0.8610687851905823,
-2.1239616870880127,
0.3244679570198059,
0.3245414197444916,
-0.5306020379066467,
0.10463790595531464,
1.6547513008117676,
0.5749245882034302,
1.3992977142333984,
1.3312079906463623,
1.061392068862915,
-0.5574765205383301,
-1.3318036794662476,
0.7086657881736755,
1.006176471710205,
-1.369096279144287,
0.798631489276886,
-0.0570349246263504,
-0.4624267518520355,
0.7896062731742859,
1.3292129039764404,
0.2854745388031006,
-1.9671188592910767,
0.8966944813728333,
-0.8542078733444214,
0.8435011506080627,
0.6836434006690979,
0.764609694480896,
0.2910032868385315,
0.8773173689842224,
-1.3392747640609741,
-1.1104302406311035,
-0.8566148281097412,
-0.5102636218070984,
2.0624771118164062,
-0.12625020742416382,
0.4559870660305023,
-0.1996641904115677,
-1.2504364252090454,
-0.04609311372041702,
0.7195553183555603,
0.4254252314567566,
-0.32648155093193054,
0.8484084010124207,
-0.6798568367958069,
-1.1105018854141235,
-1.373915672302246,
-0.3631274104118347,
-0.8935076594352722,
-0.9302418828010559,
1.0289132595062256,
0.9003541469573975,
0.4767717719078064,
1.882906198501587,
0.6074772477149963,
0.31246212124824524,
-2.650804281234741,
0.8618385791778564,
0.27547645568847656,
-0.02536209672689438,
0.8954771161079407,
0.22256317734718323,
1.1638702154159546,
0.025733046233654022,
0.5112267136573792,
-2.3581628799438477,
2.1823277473449707,
-0.15348024666309357,
0.8270232677459717,
0.03309322148561478,
-0.12486463040113449,
1.1460177898406982,
0.529616117477417,
0.5005389451980591,
-1.226928472518921,
0.6622003316879272,
-0.5971240997314453,
1.116349458694458,
0.8439655303955078,
-0.7745240926742554,
-0.04931173473596573,
1.3316158056259155,
0.5288759469985962,
-0.5190848112106323,
-0.9520049691200256,
-0.8231111168861389,
0.9660736322402954,
1.744907021522522,
-0.06593423336744308,
-0.004505381919443607,
0.8222719430923462,
0.7373483777046204,
-1.2585177421569824,
0.09290085732936859,
-0.8557813763618469,
-0.7385557293891907,
1.6993813514709473,
2.0976052284240723,
0.030227188020944595,
-0.25756675004959106,
-0.6615826487541199,
-1.2552125453948975,
0.676693320274353,
0.02376139909029007,
0.23594865202903748,
0.7597840428352356,
-0.569189190864563,
1.1022430658340454,
0.812643826007843,
0.9555873870849609,
0.06165681779384613,
0.3037533462047577,
0.3124881386756897,
-0.23511448502540588,
-1.2266371250152588,
-0.36024826765060425,
-1.253740668296814,
-2.555457353591919,
0.4666816294193268,
-0.32175156474113464,
-1.4244115352630615,
0.0944976657629013,
-0.9840351939201355,
0.8265342116355896,
-0.6054361462593079,
-1.1143132448196411,
-1.5360808372497559,
0.24324803054332733,
-0.0746954083442688,
0.9048298001289368,
-1.589023232460022,
-0.14763648808002472,
1.231982946395874,
0.7802758812904358,
-0.5250162482261658,
0.9466369152069092,
0.24624280631542206,
0.9552894830703735,
0.7819574475288391,
-0.43487823009490967,
0.43032726645469666,
0.1611567586660385,
-1.388027548789978,
0.494244247674942,
1.2307283878326416,
0.15448038280010223,
1.3979541063308716,
-0.6480409502983093,
0.16082923114299774,
0.523655891418457,
-0.5743814706802368,
-0.5342637300491333,
-0.49287712574005127,
0.7218590974807739,
-0.011438310146331787,
-1.0136116743087769,
0.011529586277902126,
-0.1290484517812729,
-0.21548742055892944,
0.19801057875156403,
-1.4576938152313232,
-0.20100454986095428,
-0.39757421612739563,
-0.5212550759315491,
-1.30644953250885,
-0.08414062112569809,
1.3343645334243774,
-0.902865469455719,
-0.14910167455673218,
0.5100287199020386,
0.4397738575935364,
0.5884535312652588,
0.7101947069168091,
-0.6434546113014221,
-0.35085952281951904,
-0.22149144113063812,
-0.24578624963760376,
0.23433533310890198,
1.2117189168930054,
-0.16029664874076843,
-1.0214107036590576,
0.6027292013168335,
-0.4196334779262543,
0.11049821972846985,
2.063568592071533,
0.10274811834096909,
-0.8003861904144287,
0.3614097833633423,
-0.7380787134170532,
1.7964321374893188,
1.6187877655029297,
1.3910316228866577,
-0.14292927086353302,
-0.8846784234046936,
0.5360344648361206,
-0.28244659304618835,
-0.38712963461875916,
0.9118251204490662,
0.5106967687606812,
-0.138107031583786,
-1.3753935098648071,
0.47859153151512146,
1.3246827125549316,
-0.9281363487243652,
-0.7918185591697693,
0.1278468817472458,
-0.9122070670127869,
1.1193948984146118,
0.7084680795669556,
0.40032798051834106,
0.2977820038795471,
1.6369171142578125,
0.7364941835403442,
-0.5743758082389832,
0.434702605009079,
0.5330960154533386,
-0.14770124852657318,
-2.029195547103882,
-1.0773131847381592,
0.25994405150413513,
-0.37027373909950256,
-1.470357060432434,
1.313941240310669,
-1.1263468265533447,
-0.969335675239563,
0.6020768880844116,
0.12784597277641296,
1.400631308555603,
0.31029370427131653,
1.7163194417953491,
2.063270330429077,
0.9049506187438965,
0.3334936797618866,
1.3633612394332886,
0.012506210245192051,
-0.5350720882415771,
1.801921010017395,
-0.34092938899993896,
0.5932262539863586,
1.0176032781600952,
-0.5015751123428345,
-1.1754212379455566,
-0.8414214849472046,
-1.1278064250946045,
-0.6210544109344482,
1.1604986190795898,
0.1647436022758484,
-1.188699722290039,
0.15639083087444305,
1.613693356513977,
0.1616821140050888,
-0.39839768409729004,
0.47679585218429565,
0.32910749316215515,
-0.6494954824447632,
-0.0513857863843441,
-1.1201000213623047,
0.4319072961807251,
-0.2187691330909729,
-0.3904128074645996,
0.16057612001895905,
0.500980794429779,
1.134943962097168,
-0.018665747717022896,
0.13942685723304749,
1.195096492767334,
-1.3938953876495361,
1.4345098733901978,
-0.680966854095459,
0.335553377866745,
-2.4414632320404053,
1.459777593612671,
-0.7680280804634094,
1.9632207155227661,
-2.6786999702453613,
0.35223621129989624,
-0.5836870670318604,
-0.4729990065097809,
0.31740063428878784,
-0.27405086159706116,
0.21348461508750916,
-0.11008353531360626,
-1.1366262435913086,
-0.1568678617477417,
-0.8225831985473633,
0.6095848083496094,
1.2077317237854004,
1.3620861768722534,
-1.1132423877716064,
-0.3429777920246124,
-1.6602816581726074,
-0.09622736275196075,
-0.6780055165290833,
0.27101022005081177,
-1.988106369972229,
-0.06359604746103287,
-1.917401909828186,
-2.231722354888916,
-1.4634582996368408,
-0.915281355381012,
1.0264904499053955,
0.1929720640182495,
-0.8745304942131042,
0.9836971759796143,
-0.35614627599716187,
-1.8000023365020752,
1.1319891214370728,
-2.205998182296753
] |
https://github.com/huggingface/datasets/issues/4707 | Dataset Viewer issue for TheNoob3131/mosquito-data | Thanks for reporting. I refreshed the dataset viewer and it now works as expected.
https://huggingface.co/datasets/TheNoob3131/mosquito-data
<img width="1135" alt="Capture d’écran 2022-07-18 à 13 15 22" src="https://user-images.githubusercontent.com/1676121/179566497-e47f1a27-fd84-4a8d-9d7f-2e0f2da803df.png">
We will investigate why it occurred in the first place
| ### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_ | 623 | 35 | Dataset Viewer issue for TheNoob3131/mosquito-data
### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_
Thanks for reporting. I refreshed the dataset viewer and it now works as expected.
https://huggingface.co/datasets/TheNoob3131/mosquito-data
<img width="1135" alt="Capture d’écran 2022-07-18 à 13 15 22" src="https://user-images.githubusercontent.com/1676121/179566497-e47f1a27-fd84-4a8d-9d7f-2e0f2da803df.png">
We will investigate why it occurred in the first place
| [
-1.2062633037567139,
-0.8490332365036011,
-0.7617149353027344,
1.4587199687957764,
-0.05699966102838516,
-1.2853158712387085,
0.07418251782655716,
-1.0159746408462524,
1.522782325744629,
-0.7326664328575134,
0.21462641656398773,
-1.6375542879104614,
-0.06661934405565262,
-0.555978000164032,
-0.7230112552642822,
-0.8838369250297546,
-0.2887060344219208,
-0.7959226369857788,
1.0966241359710693,
2.5786800384521484,
1.3216753005981445,
-1.3656479120254517,
2.7198598384857178,
0.6567513346672058,
-0.26929807662963867,
-1.02741277217865,
0.5500802993774414,
0.06753795593976974,
-1.223991870880127,
-0.49380937218666077,
-0.9141051769256592,
-0.05795804411172867,
-0.5733868479728699,
-0.45070865750312805,
-0.0019229529425501823,
0.4334460198879242,
-0.2148299664258957,
-0.3222132921218872,
-0.5000884532928467,
-0.7404491305351257,
0.44072213768959045,
-0.392765611410141,
0.8559913039207458,
-0.40297964215278625,
1.8281687498092651,
-0.7000678777694702,
0.34697481989860535,
0.6338768005371094,
1.339518427848816,
0.20277716219425201,
-0.0469205267727375,
0.2766859531402588,
0.35405978560447693,
-0.00029174797236919403,
0.5250470042228699,
1.184310793876648,
0.5953538417816162,
0.47040295600891113,
0.6644343733787537,
-2.1724493503570557,
1.3610765933990479,
-0.8365277051925659,
0.14759662747383118,
1.4803472757339478,
-1.0555061101913452,
0.5031048655509949,
-1.8658521175384521,
-0.04675186052918434,
0.49793457984924316,
-2.363320827484131,
0.2819976806640625,
-1.314009428024292,
-0.5961493253707886,
0.9714958667755127,
0.3278282582759857,
-1.2459776401519775,
0.1065528392791748,
-0.5384551286697388,
1.0550950765609741,
0.4736601412296295,
1.0908918380737305,
-1.7342883348464966,
-0.12482314556837082,
-0.26681363582611084,
0.08476589620113373,
-1.443913459777832,
-1.5632728338241577,
0.44842329621315,
0.603812575340271,
0.6683270931243896,
0.027822185307741165,
0.8789590001106262,
-1.0741262435913086,
0.7373834252357483,
-0.9644050002098083,
-1.651308536529541,
-1.3820432424545288,
-2.379166603088379,
-2.303462505340576,
0.8069270849227905,
-0.43116146326065063,
-0.5741090774536133,
2.0188400745391846,
-1.0764267444610596,
-1.765600562095642,
1.124621033668518,
0.1951563060283661,
0.0037567485123872757,
2.4715614318847656,
0.25623247027397156,
-0.8490087389945984,
0.4899543523788452,
-0.7889922261238098,
0.7759402990341187,
-0.4394002854824066,
1.4188852310180664,
0.5536502003669739,
-0.947210967540741,
1.6254266500473022,
-0.5081109404563904,
0.5751945972442627,
-0.7634148597717285,
-0.5315768122673035,
-0.8051989078521729,
0.32497256994247437,
1.9836219549179077,
-0.258785605430603,
1.652465581893921,
-0.30609607696533203,
-1.5954010486602783,
-1.489801287651062,
0.8133699297904968,
0.5417523384094238,
-0.8948410153388977,
0.13856308162212372,
-0.3738376796245575,
0.11837723851203918,
-0.029242832213640213,
1.0368967056274414,
1.2209464311599731,
0.6470115780830383,
-0.2930065989494324,
-0.9146572351455688,
0.22563551366329193,
-0.1162024661898613,
-0.638286828994751,
-1.8107795715332031,
-0.30662623047828674,
0.20402657985687256,
0.6263551712036133,
-1.3419151306152344,
1.6867570877075195,
0.8543725609779358,
1.9443494081497192,
0.966740608215332,
-0.2919195592403412,
1.4586347341537476,
-0.002659869845956564,
1.9232203960418701,
-0.4993784725666046,
0.7542902231216431,
-0.33165666460990906,
-1.1914368867874146,
0.7616017460823059,
-0.43326336145401,
-2.0040225982666016,
-0.8229039311408997,
-0.8095775246620178,
-0.1441417634487152,
-0.7457514405250549,
0.9217340350151062,
-0.3305255174636841,
-1.3608856201171875,
0.30930906534194946,
-0.6467073559761047,
0.28094300627708435,
-1.379995584487915,
0.28814107179641724,
0.8082064390182495,
-0.588151752948761,
-0.006321149878203869,
-0.2489488422870636,
-1.2953475713729858,
-0.49021416902542114,
0.2604767382144928,
1.9636528491973877,
-0.7117761373519897,
0.9418508410453796,
0.9627448916435242,
-0.6390956044197083,
0.021643739193677902,
0.34240084886550903,
-0.3325730562210083,
0.8682457804679871,
-1.1196560859680176,
-0.2991616427898407,
1.1305217742919922,
-0.19949886202812195,
-0.6208909749984741,
1.366349697113037,
0.8591153621673584,
-1.0038992166519165,
-0.2616528272628784,
-0.16712479293346405,
-0.7721544504165649,
0.005343077704310417,
-1.5701004266738892,
-0.16836851835250854,
0.333843469619751,
-1.4803881645202637,
-0.4209911823272705,
-0.1569214016199112,
1.3542571067810059,
-0.2572069764137268,
1.4108420610427856,
-0.316037654876709,
-0.1395060420036316,
-0.36028194427490234,
-0.5202445387840271,
0.14473466575145721,
-0.18348118662834167,
-0.6297122240066528,
0.2794819474220276,
-0.802817702293396,
0.2869889438152313,
1.3862874507904053,
0.401825875043869,
0.059451475739479065,
0.4894317388534546,
1.1631741523742676,
0.29856666922569275,
-0.19303719699382782,
-0.8815247416496277,
-1.5858231782913208,
1.992883324623108,
-1.4818267822265625,
2.0094258785247803,
0.8884788751602173,
0.024067532271146774,
-1.727046012878418,
-1.8366659879684448,
1.3461952209472656,
1.1956474781036377,
2.4253969192504883,
0.6242920160293579,
0.41548576951026917,
-0.8733636736869812,
-0.7032320499420166,
0.22982187569141388,
-1.0678404569625854,
-0.7454239726066589,
0.11707678437232971,
2.325037956237793,
1.6987264156341553,
-0.4734983742237091,
-0.27312061190605164,
-0.9729520082473755,
1.1981385946273804,
-0.16465865075588226,
0.18808183073997498,
1.982089638710022,
-0.21033412218093872,
-1.0072580575942993,
1.1836847066879272,
-2.3555376529693604,
0.21680861711502075,
2.0490593910217285,
0.3174428939819336,
0.10864746570587158,
-1.398203730583191,
-0.7434340715408325,
-0.24073852598667145,
-0.42632678151130676,
-1.1870405673980713,
0.5352275371551514,
-0.2879561185836792,
-0.8781499862670898,
-1.516082763671875,
0.08094117790460587,
-1.125219702720642,
-1.6676276922225952,
0.3337697982788086,
1.8897655010223389,
2.002983570098877,
-0.8435078263282776,
1.4055261611938477,
-0.16319331526756287,
0.15887507796287537,
1.2832183837890625,
1.270461916923523,
3.2155301570892334,
1.8188121318817139,
-1.2251492738723755,
0.7761191129684448,
-0.13228215277194977,
-0.4583406448364258,
1.209267258644104,
-1.1238458156585693,
1.2218530178070068,
-0.17440757155418396,
-1.288082480430603,
-1.2673254013061523,
0.8983610272407532,
0.5211992263793945,
0.013662566430866718,
-0.512470006942749,
1.2593154907226562,
0.05623822659254074,
1.361068844795227,
0.5672526955604553,
-0.26350167393684387,
0.5482884645462036,
-0.4159148633480072,
-0.48197075724601746,
1.546344518661499,
0.1279139518737793,
-1.5568488836288452,
-2.2767531871795654,
-0.21717478334903717,
-0.833037257194519,
-0.14238496124744415,
-0.6546162962913513,
-1.1232281923294067,
1.617231011390686,
0.4610343277454376,
-1.0961096286773682,
-0.24490219354629517,
-0.3126232326030731,
-0.62936931848526,
2.7139511108398438,
-1.4180302619934082,
-0.16109037399291992,
-1.0012253522872925,
-0.5278705954551697,
1.6669317483901978,
-1.1822900772094727,
-0.17185387015342712,
-0.9624488353729248,
-0.5923561453819275,
-1.323369026184082,
-0.4683466851711273,
-0.10423099249601364,
-0.8919092416763306,
0.7180624604225159,
0.16835859417915344,
-1.1187665462493896,
-0.26434326171875,
-0.9479307532310486,
0.8486881256103516,
-0.004587339702993631,
0.2578074634075165,
1.8561761379241943,
0.3682714104652405,
-0.38590362668037415,
0.7445124983787537,
1.2178730964660645,
0.5537309050559998,
-0.7067078351974487,
0.13720890879631042,
-0.6409707069396973,
0.26843443512916565,
-1.4024627208709717,
0.258980393409729,
-2.8131117820739746,
0.6480628252029419,
-0.049239035695791245,
-0.14112000167369843,
0.027330517768859863,
-1.3327213525772095,
1.1705114841461182,
2.555353879928589,
-1.1163291931152344,
0.5042604207992554,
0.3934670388698578,
1.2245137691497803,
-1.7016147375106812,
0.34559348225593567,
-0.47593313455581665,
2.1012861728668213,
0.19745849072933197,
1.2280796766281128,
-0.45822086930274963,
-2.271095037460327,
0.5992845296859741,
-1.2914934158325195,
-1.12138032913208,
0.7837812900543213,
-0.89991295337677,
0.13433481752872467,
-1.4157538414001465,
-0.22142726182937622,
-0.9431504011154175,
-1.2411837577819824,
0.7857931852340698,
0.06939753890037537,
0.41058534383773804,
-0.4747334420681,
0.34570786356925964,
-2.1628530025482178,
-1.337761402130127,
-0.21429216861724854,
-0.943472683429718,
0.42652401328086853,
-0.313914954662323,
0.5797802209854126,
-0.16204656660556793,
0.04815660044550896,
0.27955111861228943,
1.4834911823272705,
3.3143651485443115,
0.2538103461265564,
0.35884010791778564,
-0.13530659675598145,
-1.0212721824645996,
1.5310497283935547,
0.9491650462150574,
-0.10091686248779297,
-0.6468111276626587,
-0.9286938905715942,
1.2520344257354736,
1.9172896146774292,
1.0960493087768555,
0.033991824835538864,
-0.7882365584373474,
-0.6445717811584473,
-0.01803477853536606,
0.1665434092283249,
0.45890942215919495,
1.0018770694732666,
0.0028679408133029938,
0.06862451136112213,
1.425294280052185,
1.183586835861206,
-0.4617258906364441,
0.3297205865383148,
-0.9452671408653259,
-0.4056732654571533,
0.42266860604286194,
0.2483062446117401,
0.04673552140593529,
0.4593275189399719,
-1.0176650285720825,
-0.21263810992240906,
-0.28168994188308716,
-0.9578167796134949,
-0.7252891063690186,
-0.5263984799385071,
-0.2832919657230377,
1.6578834056854248,
0.10480158030986786,
-0.418568879365921,
0.012548835016787052,
-0.7939763069152832,
-0.16932012140750885,
-1.1094160079956055,
0.2943568825721741,
-0.09660236537456512,
-0.0876832827925682,
-0.034660421311855316,
1.7655930519104004,
-1.0269831418991089,
-2.235076904296875,
0.16466377675533295,
0.25348973274230957,
-0.4415397346019745,
0.09368433058261871,
1.7315231561660767,
0.47505366802215576,
1.4280635118484497,
1.3470028638839722,
1.0195708274841309,
-0.7185949087142944,
-1.2764281034469604,
0.720483124256134,
1.00911283493042,
-1.4001890420913696,
0.9141114354133606,
-0.11973515152931213,
-0.556950569152832,
0.579564094543457,
1.2798359394073486,
0.5192017555236816,
-1.8102519512176514,
0.7547783851623535,
-0.9232825636863708,
0.722149670124054,
0.6552914977073669,
0.8382991552352905,
0.30407464504241943,
0.9499373435974121,
-1.3081821203231812,
-1.0481669902801514,
-0.732836902141571,
-0.5309445858001709,
1.885339379310608,
-0.2742858827114105,
0.5229201912879944,
-0.14277300238609314,
-1.2083709239959717,
0.04764251038432121,
0.7958309054374695,
0.33324652910232544,
-0.3145515024662018,
0.8600396513938904,
-0.7244921326637268,
-1.10602867603302,
-1.3515968322753906,
-0.42250677943229675,
-0.9034162759780884,
-0.9192861318588257,
1.0201315879821777,
0.7145589590072632,
0.29048699140548706,
1.9260170459747314,
0.6438717246055603,
0.30591443181037903,
-2.673079013824463,
0.897887647151947,
0.1773708611726761,
0.06642632186412811,
0.879097580909729,
0.16946950554847717,
1.0778898000717163,
-0.03288376331329346,
0.49604225158691406,
-2.37796688079834,
2.2070248126983643,
-0.3139503598213196,
0.6669077277183533,
0.0071578072383999825,
-0.12690725922584534,
1.1365950107574463,
0.5980620980262756,
0.5770050883293152,
-1.1144870519638062,
0.7527223229408264,
-0.5546119213104248,
1.0968786478042603,
0.9036368131637573,
-0.9196509718894958,
0.08907721191644669,
1.307348608970642,
0.4318584203720093,
-0.4388203024864197,
-0.9683798551559448,
-0.8111848831176758,
0.8957751989364624,
1.6703389883041382,
0.04156287759542465,
0.006119968369603157,
0.8788372874259949,
0.5532475709915161,
-1.2907832860946655,
0.07650993019342422,
-0.6995043158531189,
-0.7164811491966248,
1.7500985860824585,
2.015737771987915,
-0.05877028405666351,
-0.29673925042152405,
-0.6968607902526855,
-1.1762080192565918,
0.7356321215629578,
-0.006766804493963718,
0.10667114704847336,
0.678190290927887,
-0.6709052324295044,
1.0542316436767578,
0.755027711391449,
0.9795509576797485,
0.1270662546157837,
0.2581796944141388,
0.46592581272125244,
-0.31834378838539124,
-1.1372203826904297,
-0.26772987842559814,
-1.1543692350387573,
-2.5798654556274414,
0.4600251615047455,
-0.29463231563568115,
-1.4406051635742188,
0.17040279507637024,
-1.0999506711959839,
0.9370818138122559,
-0.6567587852478027,
-1.157141089439392,
-1.5198698043823242,
0.21805009245872498,
-0.22426894307136536,
0.8073691129684448,
-1.6201096773147583,
-0.20865094661712646,
1.2821195125579834,
0.8701630234718323,
-0.5156377553939819,
1.053933024406433,
0.22079531848430634,
1.049049973487854,
0.8846659064292908,
-0.4020003378391266,
0.5226686596870422,
0.17839792370796204,
-1.4031676054000854,
0.48322781920433044,
1.2741278409957886,
0.23487728834152222,
1.4418107271194458,
-0.49014008045196533,
0.025568734854459763,
0.4509125351905823,
-0.5042052865028381,
-0.4931410849094391,
-0.5385779142379761,
0.781579315662384,
0.16390900313854218,
-1.0052131414413452,
-0.050584759563207626,
-0.18415969610214233,
-0.1726473718881607,
0.2388090193271637,
-1.536939263343811,
-0.2367100715637207,
-0.42325127124786377,
-0.6036481261253357,
-1.284088373184204,
-0.012404362671077251,
1.292725682258606,
-0.8620523810386658,
-0.22190767526626587,
0.49208635091781616,
0.39254897832870483,
0.5326770544052124,
0.5741899013519287,
-0.724924623966217,
-0.2489587813615799,
-0.2784084379673004,
-0.3551011383533478,
0.3070170283317566,
1.1500660181045532,
-0.09711621701717377,
-1.0658811330795288,
0.6535929441452026,
-0.31046274304389954,
0.11054183542728424,
1.9965633153915405,
0.030647583305835724,
-0.735535740852356,
0.30272239446640015,
-0.607850193977356,
1.8902360200881958,
1.552777647972107,
1.3883657455444336,
-0.1742880940437317,
-0.7877537608146667,
0.6523181796073914,
-0.20446953177452087,
-0.39067205786705017,
0.8922174572944641,
0.5384907126426697,
-0.1916608065366745,
-1.478198528289795,
0.6177854537963867,
1.2788798809051514,
-0.8871877193450928,
-0.757685124874115,
0.07102443277835846,
-0.8803991079330444,
1.133339285850525,
0.6505648493766785,
0.3963952362537384,
0.2612265348434448,
1.6491893529891968,
0.7160894870758057,
-0.5617417693138123,
0.4344750940799713,
0.4560011327266693,
-0.1987452656030655,
-2.0401697158813477,
-0.9273158311843872,
0.3342961072921753,
-0.35667723417282104,
-1.452041745185852,
1.3853566646575928,
-1.1259714365005493,
-0.8961013555526733,
0.5735809206962585,
0.2215399593114853,
1.3926645517349243,
0.310837984085083,
1.7014421224594116,
2.0482800006866455,
0.8690978288650513,
0.2993353009223938,
1.166256308555603,
-0.10158765316009521,
-0.4621785581111908,
1.7772244215011597,
-0.41533365845680237,
0.5556553602218628,
1.0292855501174927,
-0.3702792823314667,
-1.138960361480713,
-0.8020175695419312,
-1.206111192703247,
-0.6552912592887878,
1.1603397130966187,
0.22977899014949799,
-1.1234687566757202,
0.14579777419567108,
1.5867241621017456,
0.09229155629873276,
-0.30380702018737793,
0.6042122840881348,
0.46688252687454224,
-0.721375584602356,
-0.054535821080207825,
-0.9612674117088318,
0.5280236601829529,
-0.11474304646253586,
-0.30164918303489685,
0.25116655230522156,
0.5340380668640137,
1.2173837423324585,
0.04119974374771118,
0.19377759099006653,
1.2545924186706543,
-1.3522464036941528,
1.460369348526001,
-0.6682745814323425,
0.21070760488510132,
-2.353581666946411,
1.46110200881958,
-0.8261704444885254,
1.9004501104354858,
-2.580199718475342,
0.44640466570854187,
-0.6263262629508972,
-0.44390150904655457,
0.28896260261535645,
-0.4631236791610718,
0.1268310695886612,
-0.1405736804008484,
-1.0499380826950073,
-0.06318819522857666,
-0.7669767141342163,
0.6250046491622925,
1.220859169960022,
1.2821699380874634,
-1.029781699180603,
-0.22520142793655396,
-1.7248027324676514,
-0.22510549426078796,
-0.7690161466598511,
0.30374616384506226,
-1.971308708190918,
-0.11622832715511322,
-1.9941564798355103,
-2.3726577758789062,
-1.405789852142334,
-0.8137807250022888,
1.105771780014038,
0.2614568769931793,
-0.9419832229614258,
1.1520161628723145,
-0.3343450427055359,
-1.6752723455429077,
1.1753153800964355,
-2.140594720840454
] |
https://github.com/huggingface/datasets/issues/4707 | Dataset Viewer issue for TheNoob3131/mosquito-data | By chance, could you provide some details about the operations done on the dataset: was it private? gated? | ### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_ | 623 | 18 | Dataset Viewer issue for TheNoob3131/mosquito-data
### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_
By chance, could you provide some details about the operations done on the dataset: was it private? gated? | [
-1.2253814935684204,
-0.8178945779800415,
-0.9100253582000732,
1.523851752281189,
-0.11482707411050797,
-1.269012451171875,
0.0888170674443245,
-0.983677864074707,
1.450512409210205,
-0.650168776512146,
0.09878945350646973,
-1.631346583366394,
-0.08979181945323944,
-0.5942920446395874,
-0.6212867498397827,
-0.8531516790390015,
-0.35699841380119324,
-0.805270791053772,
1.1842089891433716,
2.5631227493286133,
1.2988513708114624,
-1.2929574251174927,
2.676900863647461,
0.65952467918396,
-0.3287390172481537,
-1.0351171493530273,
0.5950400829315186,
0.05240326374769211,
-1.1617846488952637,
-0.5274339914321899,
-0.9292194843292236,
-0.04239179193973541,
-0.5687087774276733,
-0.38413652777671814,
-0.06296828389167786,
0.4887038469314575,
-0.16986575722694397,
-0.2883899211883545,
-0.4968673884868622,
-0.6764851808547974,
0.43820610642433167,
-0.365741103887558,
0.8164286613464355,
-0.38265541195869446,
1.8327549695968628,
-0.6634323596954346,
0.27651330828666687,
0.6483738422393799,
1.4442445039749146,
0.15455053746700287,
-0.09516967087984085,
0.30651751160621643,
0.3036433458328247,
-0.06438056379556656,
0.44406434893608093,
1.1183515787124634,
0.5047610998153687,
0.5684689283370972,
0.5538829565048218,
-2.2368385791778564,
1.338621735572815,
-0.8984756469726562,
0.21017657220363617,
1.5034769773483276,
-1.1410294771194458,
0.5730804204940796,
-1.7531147003173828,
-0.004147692583501339,
0.5704425573348999,
-2.3464555740356445,
0.38867273926734924,
-1.2069281339645386,
-0.614544153213501,
0.9191639423370361,
0.4191446006298065,
-1.2994111776351929,
0.08342870324850082,
-0.5680007934570312,
1.1255691051483154,
0.42220762372016907,
1.049468755722046,
-1.7263270616531372,
0.03346722573041916,
-0.3865472972393036,
-0.09715569764375687,
-1.4602465629577637,
-1.5321933031082153,
0.431266725063324,
0.5939738750457764,
0.7541214227676392,
-0.034662410616874695,
0.8811110258102417,
-1.015811562538147,
0.7160588502883911,
-0.9164203405380249,
-1.6194936037063599,
-1.3880813121795654,
-2.4147632122039795,
-2.281604290008545,
0.8245669603347778,
-0.48658159375190735,
-0.5960828065872192,
2.0309932231903076,
-0.9725514650344849,
-1.8453419208526611,
1.2265121936798096,
0.2431325912475586,
-0.030384158715605736,
2.4605777263641357,
0.30436980724334717,
-0.7925341129302979,
0.45224249362945557,
-0.8409363031387329,
0.860140323638916,
-0.4567621350288391,
1.4116249084472656,
0.5612351894378662,
-0.9126017093658447,
1.651701807975769,
-0.47721925377845764,
0.6185125112533569,
-0.6510419845581055,
-0.6323012113571167,
-1.0053706169128418,
0.37552112340927124,
2.042264461517334,
-0.24056009948253632,
1.6753301620483398,
-0.39862245321273804,
-1.5512948036193848,
-1.5333826541900635,
0.8796489238739014,
0.5112383365631104,
-0.955215334892273,
0.23719659447669983,
-0.3974655270576477,
0.13461585342884064,
-0.09298047423362732,
1.1029722690582275,
1.2303056716918945,
0.5044076442718506,
-0.4477229416370392,
-0.9550729990005493,
0.26055020093917847,
-0.10208102315664291,
-0.600257158279419,
-1.8075063228607178,
-0.2793497145175934,
0.17944024503231049,
0.5777387619018555,
-1.3302668333053589,
1.6614538431167603,
0.8658521175384521,
2.0677316188812256,
0.9409685134887695,
-0.2660546898841858,
1.3908368349075317,
-0.09128952026367188,
1.9270507097244263,
-0.5207144021987915,
0.7153613567352295,
-0.36229774355888367,
-1.2519187927246094,
0.8598452806472778,
-0.4662203788757324,
-1.9676227569580078,
-0.982251763343811,
-0.886276125907898,
-0.21023236215114594,
-0.6778019666671753,
0.9489175081253052,
-0.3992270529270172,
-1.4206955432891846,
0.24272829294204712,
-0.6375241279602051,
0.2885223627090454,
-1.4292409420013428,
0.24209213256835938,
0.7616853713989258,
-0.5310657024383545,
-0.09617672115564346,
-0.24695995450019836,
-1.3162446022033691,
-0.45314323902130127,
0.2767951786518097,
1.9258559942245483,
-0.6625869274139404,
1.0278483629226685,
0.9470134973526001,
-0.6656415462493896,
0.014923423528671265,
0.2295868992805481,
-0.2756710350513458,
0.8612768650054932,
-1.085157871246338,
-0.4083695411682129,
1.2035162448883057,
-0.19437851011753082,
-0.7088304758071899,
1.3969074487686157,
0.7726733684539795,
-1.015246868133545,
-0.25871872901916504,
-0.18211005628108978,
-0.8383532762527466,
-0.07086728513240814,
-1.5880892276763916,
-0.1307683140039444,
0.28957900404930115,
-1.516882061958313,
-0.4229022264480591,
-0.17512592673301697,
1.350544810295105,
-0.23797059059143066,
1.334226369857788,
-0.28739410638809204,
-0.10112976282835007,
-0.37025824189186096,
-0.5455348491668701,
0.17609558999538422,
-0.18051309883594513,
-0.5314251184463501,
0.227356418967247,
-0.8582233190536499,
0.2931225001811981,
1.3987252712249756,
0.33186301589012146,
0.15964914858341217,
0.616572380065918,
1.0884250402450562,
0.3652785122394562,
-0.21246910095214844,
-0.8963625431060791,
-1.6028361320495605,
1.860626220703125,
-1.4333155155181885,
1.9214359521865845,
0.8706960678100586,
-0.03258005529642105,
-1.8015236854553223,
-1.863710641860962,
1.3081679344177246,
1.255010962486267,
2.2617876529693604,
0.609461784362793,
0.3774574100971222,
-0.9013811349868774,
-0.7321906089782715,
0.08816257864236832,
-1.1566532850265503,
-0.7435340881347656,
0.07700693607330322,
2.342592477798462,
1.750126838684082,
-0.5320522785186768,
-0.3011924624443054,
-0.9528589248657227,
1.1125082969665527,
-0.1692180037498474,
0.259686142206192,
1.9806455373764038,
-0.2616591453552246,
-0.9225294589996338,
1.154366374015808,
-2.4312078952789307,
0.1998690664768219,
2.052233934402466,
0.32143253087997437,
0.18664194643497467,
-1.4316332340240479,
-0.7246766090393066,
-0.07460309565067291,
-0.4472702145576477,
-1.1494495868682861,
0.6791278123855591,
-0.25763681530952454,
-0.8610320091247559,
-1.4918721914291382,
0.17828641831874847,
-1.0523799657821655,
-1.6275622844696045,
0.4584706425666809,
2.0110604763031006,
2.038196086883545,
-0.8235207796096802,
1.4628198146820068,
-0.1986854374408722,
0.17108139395713806,
1.3070919513702393,
1.2068003416061401,
3.0175533294677734,
1.7878714799880981,
-1.1555134057998657,
0.7658481597900391,
-0.045618072152137756,
-0.47402775287628174,
1.2417256832122803,
-1.12783944606781,
1.2253683805465698,
-0.2297392189502716,
-1.2338608503341675,
-1.337289810180664,
0.8361384868621826,
0.5028616189956665,
0.05753711611032486,
-0.4830903708934784,
1.3297146558761597,
0.05871432274580002,
1.2710602283477783,
0.6257590055465698,
-0.43116140365600586,
0.49703249335289,
-0.4066707491874695,
-0.46713870763778687,
1.5656474828720093,
0.19832241535186768,
-1.574549674987793,
-2.2261202335357666,
-0.27473536133766174,
-0.7564823627471924,
-0.11727922409772873,
-0.6651355028152466,
-1.1200876235961914,
1.5308622121810913,
0.4364546835422516,
-1.0398471355438232,
-0.29003214836120605,
-0.22998973727226257,
-0.5439953804016113,
2.6993796825408936,
-1.378315806388855,
-0.1622263491153717,
-0.9539849758148193,
-0.41207677125930786,
1.7764626741409302,
-1.1904772520065308,
-0.21948020160198212,
-1.0260798931121826,
-0.6898205280303955,
-1.2939618825912476,
-0.3951469361782074,
-0.025953738018870354,
-0.9567171335220337,
0.7947734594345093,
0.07402343302965164,
-1.0971964597702026,
-0.12519682943820953,
-0.8987103700637817,
0.9290752410888672,
-0.028295502066612244,
0.27678853273391724,
1.9129970073699951,
0.3449489176273346,
-0.35851070284843445,
0.898980975151062,
1.2789031267166138,
0.5594316720962524,
-0.7619993686676025,
0.10769660770893097,
-0.5564416646957397,
0.34831419587135315,
-1.4017939567565918,
0.23975364863872528,
-2.8548128604888916,
0.5830440521240234,
-0.0926491916179657,
-0.10799112915992737,
0.0251888707280159,
-1.4411965608596802,
1.1878368854522705,
2.4571704864501953,
-1.1879229545593262,
0.5025906562805176,
0.4383015036582947,
1.2689987421035767,
-1.619539737701416,
0.4341776371002197,
-0.5920883417129517,
2.0900535583496094,
0.1142001673579216,
1.2705514430999756,
-0.472565233707428,
-2.1826364994049072,
0.691402792930603,
-1.31777822971344,
-1.1888329982757568,
0.8097261190414429,
-0.9830989837646484,
0.1830822080373764,
-1.534486174583435,
-0.27993547916412354,
-0.8755028247833252,
-1.38188636302948,
0.8266671895980835,
0.1314169466495514,
0.2841041684150696,
-0.4501890242099762,
0.2876744866371155,
-2.2076618671417236,
-1.3774195909500122,
-0.17044514417648315,
-0.9675341844558716,
0.3688540458679199,
-0.3517129719257355,
0.5492169857025146,
-0.16041825711727142,
0.06471571326255798,
0.18268586695194244,
1.445615291595459,
3.3402671813964844,
0.17387251555919647,
0.25574806332588196,
-0.13208472728729248,
-0.9718179702758789,
1.4891225099563599,
1.0632543563842773,
-0.0816580057144165,
-0.6819283962249756,
-0.9500508308410645,
1.2978674173355103,
1.9901063442230225,
1.065895438194275,
-0.021451670676469803,
-0.7761191129684448,
-0.49379828572273254,
-0.03950018435716629,
0.27145880460739136,
0.4748665392398834,
0.9276648759841919,
0.030678287148475647,
0.13703905045986176,
1.3560789823532104,
1.1180224418640137,
-0.4568176567554474,
0.3753209710121155,
-0.9830707311630249,
-0.418690025806427,
0.3564634621143341,
0.23623593151569366,
0.04895579442381859,
0.475800096988678,
-1.0344489812850952,
-0.3193347156047821,
-0.1884363740682602,
-1.0009514093399048,
-0.7588076591491699,
-0.4567771553993225,
-0.36505985260009766,
1.6300275325775146,
0.14406540989875793,
-0.4785764813423157,
-0.10680760443210602,
-0.7569679021835327,
-0.24335342645645142,
-1.117544412612915,
0.22708702087402344,
-0.12666213512420654,
-0.1270415186882019,
-0.024873552843928337,
1.8113579750061035,
-1.154328465461731,
-2.305574893951416,
0.20570434629917145,
0.3923308253288269,
-0.28327473998069763,
0.12496601045131683,
1.733558177947998,
0.47130870819091797,
1.457505464553833,
1.2782541513442993,
1.034482717514038,
-0.7604310512542725,
-1.2734864950180054,
0.6913434267044067,
1.1046744585037231,
-1.3884236812591553,
0.7921347618103027,
-0.10044724494218826,
-0.5255433320999146,
0.5741044282913208,
1.1794788837432861,
0.5754817724227905,
-1.8393594026565552,
0.8391863107681274,
-1.0443905591964722,
0.7791924476623535,
0.6810781955718994,
0.8917131423950195,
0.4037034511566162,
0.8761706352233887,
-1.260372519493103,
-1.156334400177002,
-0.7729341983795166,
-0.5665113925933838,
1.9522106647491455,
-0.33017781376838684,
0.563740611076355,
-0.030049368739128113,
-1.1761795282363892,
0.06479968130588531,
0.845317006111145,
0.25465142726898193,
-0.33507198095321655,
0.9079147577285767,
-0.7370339632034302,
-1.1101611852645874,
-1.4103333950042725,
-0.4599456191062927,
-0.855514407157898,
-0.9480270147323608,
1.051228404045105,
0.6324129104614258,
0.29825642704963684,
1.9367038011550903,
0.6105681657791138,
0.3488844335079193,
-2.6841094493865967,
0.9516018629074097,
0.19489583373069763,
0.08652938902378082,
0.752959132194519,
0.23144803941249847,
1.0635875463485718,
-0.010200551711022854,
0.42973798513412476,
-2.294421434402466,
2.153047561645508,
-0.2560921311378479,
0.5671532154083252,
-0.00062527135014534,
-0.08858437091112137,
1.159332036972046,
0.5835660696029663,
0.5794987678527832,
-1.0778310298919678,
0.7448846101760864,
-0.5006073713302612,
1.1426302194595337,
0.9744546413421631,
-0.8420844078063965,
0.01086103729903698,
1.3715153932571411,
0.5106338262557983,
-0.3806995451450348,
-0.9343572854995728,
-0.7226914167404175,
0.9764977693557739,
1.6496257781982422,
0.04949689283967018,
0.061664193868637085,
0.7728656530380249,
0.4133710563182831,
-1.205588936805725,
0.0706532672047615,
-0.7194133996963501,
-0.7083162069320679,
1.6590758562088013,
1.9592816829681396,
-0.13169649243354797,
-0.17166444659233093,
-0.8191384077072144,
-1.1846646070480347,
0.7218024730682373,
-0.129792720079422,
0.07245079427957535,
0.6576813459396362,
-0.6379580497741699,
0.9954022169113159,
0.6403135061264038,
0.9513804912567139,
0.06600841879844666,
0.256549596786499,
0.5361814498901367,
-0.18816561996936798,
-1.1085340976715088,
-0.2816653549671173,
-1.136756420135498,
-2.57902455329895,
0.3824506103992462,
-0.3885732591152191,
-1.3288058042526245,
0.13793165981769562,
-1.1486713886260986,
0.9807718992233276,
-0.6661428213119507,
-1.1729320287704468,
-1.5387530326843262,
0.19472703337669373,
-0.21967218816280365,
0.8040224313735962,
-1.5995959043502808,
-0.2147391438484192,
1.257075548171997,
0.8318558931350708,
-0.6963473558425903,
1.1116341352462769,
0.2072613537311554,
0.9978817701339722,
0.7457287311553955,
-0.4147672653198242,
0.5709266662597656,
0.1564774066209793,
-1.3787269592285156,
0.6536396741867065,
1.2719087600708008,
0.1648748219013214,
1.5162864923477173,
-0.4862629473209381,
-0.13835036754608154,
0.5277694463729858,
-0.595674991607666,
-0.47754281759262085,
-0.47107309103012085,
0.7118637561798096,
0.257382869720459,
-0.9925360679626465,
-0.08242536336183548,
-0.19056914746761322,
-0.20983876287937164,
0.2410496473312378,
-1.5530858039855957,
-0.30765867233276367,
-0.4256168007850647,
-0.5240933895111084,
-1.2924641370773315,
0.0459703654050827,
1.3666173219680786,
-0.683203935623169,
-0.2872053384780884,
0.5203917026519775,
0.41523048281669617,
0.48784977197647095,
0.5893497467041016,
-0.6992977857589722,
-0.11855529993772507,
-0.2870050072669983,
-0.2667009234428406,
0.34048041701316833,
1.242464303970337,
-0.10906776040792465,
-1.0459911823272705,
0.7624378204345703,
-0.2738106846809387,
0.03816152736544609,
2.0368740558624268,
0.15772056579589844,
-0.8066543340682983,
0.270678848028183,
-0.582552433013916,
1.9213536977767944,
1.3800915479660034,
1.2678009271621704,
-0.18482263386249542,
-0.7131716012954712,
0.7363384962081909,
-0.10276210308074951,
-0.3085041642189026,
0.8422951698303223,
0.5498169660568237,
-0.22675761580467224,
-1.5176197290420532,
0.6386184692382812,
1.262856125831604,
-0.8826828002929688,
-0.8372265100479126,
0.0001291045919060707,
-0.8229920864105225,
1.1137478351593018,
0.6403533220291138,
0.48959973454475403,
0.24000416696071625,
1.6342757940292358,
0.6839516162872314,
-0.5216835737228394,
0.38742950558662415,
0.43783560395240784,
-0.06532145291566849,
-1.999910831451416,
-0.943634033203125,
0.37317579984664917,
-0.36878278851509094,
-1.4215807914733887,
1.464318871498108,
-1.0356922149658203,
-0.8511780500411987,
0.53721022605896,
0.18979042768478394,
1.4415067434310913,
0.325151652097702,
1.6526665687561035,
2.0283541679382324,
0.9377572536468506,
0.28514766693115234,
1.3100017309188843,
-0.15734967589378357,
-0.4689750373363495,
1.7849242687225342,
-0.332089900970459,
0.5011250972747803,
1.0501731634140015,
-0.38936761021614075,
-0.9913883209228516,
-0.6861152648925781,
-1.2532672882080078,
-0.5791701078414917,
1.1356542110443115,
0.27057889103889465,
-1.0421974658966064,
0.20243126153945923,
1.5156022310256958,
0.1861204355955124,
-0.2529008388519287,
0.6113499402999878,
0.43964192271232605,
-0.8737438917160034,
0.010267820209264755,
-0.8746210336685181,
0.4752121865749359,
-0.1706910878419876,
-0.30670973658561707,
0.32828882336616516,
0.4389438331127167,
1.2771025896072388,
-0.056650560349226,
0.25417566299438477,
1.104831337928772,
-1.3897629976272583,
1.513990044593811,
-0.5717766284942627,
0.127342090010643,
-2.4406850337982178,
1.3954222202301025,
-0.7444603443145752,
1.872220516204834,
-2.6706368923187256,
0.43340495228767395,
-0.6690791845321655,
-0.3376316428184509,
0.33845219016075134,
-0.43669387698173523,
0.10046250373125076,
-0.2086741179227829,
-1.1170837879180908,
0.06522724032402039,
-0.7290029525756836,
0.645221471786499,
1.2173964977264404,
1.227890968322754,
-0.9957683086395264,
-0.1786646544933319,
-1.7189218997955322,
-0.2710720896720886,
-0.7561677694320679,
0.3451012372970581,
-2.1218936443328857,
-0.1473863571882248,
-1.9501296281814575,
-2.3241138458251953,
-1.2235965728759766,
-0.7662715911865234,
1.1789644956588745,
0.291898638010025,
-1.0001784563064575,
1.2306321859359741,
-0.30809485912323,
-1.6427994966506958,
1.089113473892212,
-2.117032051086426
] |
https://github.com/huggingface/datasets/issues/4707 | Dataset Viewer issue for TheNoob3131/mosquito-data | Yes, it was a private dataset, and when I made it public, the Dataset Preview did not work.
However, now when I make the dataset private, it says that the Dataset Preview has been disabled. Why is this? | ### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_ | 623 | 38 | Dataset Viewer issue for TheNoob3131/mosquito-data
### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_
Yes, it was a private dataset, and when I made it public, the Dataset Preview did not work.
However, now when I make the dataset private, it says that the Dataset Preview has been disabled. Why is this? | [
-1.1520494222640991,
-0.8648222088813782,
-0.8629937171936035,
1.4730530977249146,
-0.14245301485061646,
-1.280656337738037,
0.0733417421579361,
-1.0458697080612183,
1.5211091041564941,
-0.7737538814544678,
0.08024440705776215,
-1.7132810354232788,
-0.05848121643066406,
-0.5953140258789062,
-0.6574699282646179,
-0.9004610776901245,
-0.29606297612190247,
-0.832840621471405,
1.1265336275100708,
2.5445337295532227,
1.2051458358764648,
-1.3600159883499146,
2.681351661682129,
0.5679288506507874,
-0.2944391965866089,
-1.0924550294876099,
0.6642084121704102,
0.06939773261547089,
-1.1482840776443481,
-0.4909602701663971,
-0.9332787990570068,
-0.05640173330903053,
-0.5522517561912537,
-0.37859588861465454,
-0.06499183177947998,
0.4306640625,
-0.1512720137834549,
-0.2518191933631897,
-0.44942334294319153,
-0.7181791663169861,
0.4060411751270294,
-0.3728841543197632,
0.8166261911392212,
-0.38296547532081604,
1.8655004501342773,
-0.6144035458564758,
0.2754356265068054,
0.672792375087738,
1.41965651512146,
0.15371643006801605,
-0.04657185450196266,
0.232926145195961,
0.2724037766456604,
0.009643550962209702,
0.43219804763793945,
1.096728801727295,
0.507337212562561,
0.5629851222038269,
0.5368290543556213,
-2.2253127098083496,
1.3641653060913086,
-0.9105034470558167,
0.24218307435512543,
1.492462396621704,
-1.0933400392532349,
0.5110413432121277,
-1.754384160041809,
-0.05897967889904976,
0.5728768110275269,
-2.3220880031585693,
0.30486834049224854,
-1.2570241689682007,
-0.5812911987304688,
0.9248890280723572,
0.38208460807800293,
-1.2598341703414917,
0.08719725906848907,
-0.5850884318351746,
1.1201833486557007,
0.4908263683319092,
1.0230522155761719,
-1.728224515914917,
0.04678909480571747,
-0.3527691960334778,
-0.06861338019371033,
-1.4833381175994873,
-1.552832007408142,
0.46463513374328613,
0.6224839091300964,
0.7496079206466675,
-0.022509220987558365,
0.9056110382080078,
-1.0355511903762817,
0.6577733159065247,
-0.8867258429527283,
-1.6018205881118774,
-1.3376421928405762,
-2.432507276535034,
-2.3708066940307617,
0.8433006405830383,
-0.4656579792499542,
-0.5690149664878845,
2.0499660968780518,
-0.9991587400436401,
-1.7934048175811768,
1.2499345541000366,
0.15847089886665344,
-0.015531504526734352,
2.514836311340332,
0.2574743628501892,
-0.7505394816398621,
0.4580252766609192,
-0.7983313798904419,
0.8489066362380981,
-0.39352619647979736,
1.3952395915985107,
0.5928776264190674,
-0.9180552959442139,
1.6735544204711914,
-0.44478508830070496,
0.5301786661148071,
-0.6455521583557129,
-0.6109008193016052,
-0.9717268347740173,
0.3237592279911041,
1.9473633766174316,
-0.2795121967792511,
1.6765252351760864,
-0.37815216183662415,
-1.576566219329834,
-1.5353960990905762,
0.8729907274246216,
0.4656277000904083,
-0.9293489456176758,
0.20113223791122437,
-0.3847482204437256,
0.11907365918159485,
-0.06553630530834198,
1.1375502347946167,
1.2041025161743164,
0.5212243795394897,
-0.3488713800907135,
-0.9436688423156738,
0.2917563319206238,
-0.11649222671985626,
-0.5887099504470825,
-1.8737422227859497,
-0.30887842178344727,
0.13134613633155823,
0.645283043384552,
-1.2669377326965332,
1.684395432472229,
0.8587641716003418,
1.9993937015533447,
0.9541518688201904,
-0.26312610507011414,
1.3611888885498047,
-0.08389908075332642,
1.933673620223999,
-0.4696190357208252,
0.6848150491714478,
-0.3813340961933136,
-1.1997685432434082,
0.8852525353431702,
-0.41320550441741943,
-1.9005900621414185,
-0.9921401143074036,
-0.8950522541999817,
-0.2616214156150818,
-0.7234082818031311,
0.9453139901161194,
-0.43970444798469543,
-1.405178427696228,
0.27904418110847473,
-0.6035934090614319,
0.26716524362564087,
-1.3703324794769287,
0.27746668457984924,
0.758118212223053,
-0.5719395875930786,
-0.10462214052677155,
-0.30184879899024963,
-1.3571289777755737,
-0.42993080615997314,
0.25964152812957764,
1.992706060409546,
-0.6603538990020752,
1.0090305805206299,
0.9379051327705383,
-0.6479471325874329,
-0.005120868794620037,
0.2565270960330963,
-0.24068216979503632,
0.837909460067749,
-1.0802083015441895,
-0.3775969445705414,
1.1592172384262085,
-0.2409866899251938,
-0.7168945670127869,
1.380357027053833,
0.7404356002807617,
-1.0169991254806519,
-0.20424652099609375,
-0.20221778750419617,
-0.7785252332687378,
-0.07552981376647949,
-1.5989505052566528,
-0.16491533815860748,
0.33931171894073486,
-1.4945778846740723,
-0.43119996786117554,
-0.14998787641525269,
1.3120439052581787,
-0.20025648176670074,
1.312984824180603,
-0.2972750961780548,
-0.1689683198928833,
-0.3545871376991272,
-0.5818654894828796,
0.22674570977687836,
-0.12123526632785797,
-0.5214852690696716,
0.26441824436187744,
-0.9065048694610596,
0.29339399933815,
1.3815267086029053,
0.36795809864997864,
0.13378822803497314,
0.5930076837539673,
1.1042397022247314,
0.3935449719429016,
-0.1668226569890976,
-0.9116894602775574,
-1.594801425933838,
1.9725556373596191,
-1.4788519144058228,
1.8830410242080688,
0.8226490616798401,
-0.03667038679122925,
-1.8139227628707886,
-1.791873812675476,
1.37444269657135,
1.2710908651351929,
2.2610161304473877,
0.5931339263916016,
0.37956544756889343,
-0.8719643354415894,
-0.7090052366256714,
0.1772044152021408,
-1.149568796157837,
-0.7474104762077332,
0.09376920759677887,
2.336176633834839,
1.7759191989898682,
-0.5017992854118347,
-0.27113255858421326,
-0.9498819708824158,
1.0740891695022583,
-0.12036670744419098,
0.275247186422348,
2.0261337757110596,
-0.3307652473449707,
-1.0132482051849365,
1.1496226787567139,
-2.4356768131256104,
0.1673840582370758,
2.054509162902832,
0.28239354491233826,
0.16331568360328674,
-1.4263005256652832,
-0.6694795489311218,
-0.12902577221393585,
-0.3810824155807495,
-1.2463223934173584,
0.6881532669067383,
-0.2799959182739258,
-0.8234335780143738,
-1.493566870689392,
0.16423189640045166,
-1.0761469602584839,
-1.6584757566452026,
0.3876691162586212,
1.9627941846847534,
2.1008718013763428,
-0.824103832244873,
1.4212316274642944,
-0.18461965024471283,
0.25115641951560974,
1.2831462621688843,
1.1660906076431274,
3.0516557693481445,
1.8387866020202637,
-1.1663671731948853,
0.7533569931983948,
-0.06778226792812347,
-0.47813379764556885,
1.2454391717910767,
-1.0934298038482666,
1.226215124130249,
-0.215801402926445,
-1.241223692893982,
-1.3038560152053833,
0.866286039352417,
0.47187530994415283,
0.032297562807798386,
-0.4943748116493225,
1.4115593433380127,
0.024341128766536713,
1.252869963645935,
0.6064682602882385,
-0.40520742535591125,
0.49929291009902954,
-0.46883532404899597,
-0.5184035301208496,
1.6135199069976807,
0.21912939846515656,
-1.6301735639572144,
-2.2212374210357666,
-0.2896044850349426,
-0.7883354425430298,
-0.0909384936094284,
-0.6337955594062805,
-1.0752243995666504,
1.525903344154358,
0.41340869665145874,
-1.0660181045532227,
-0.27804771065711975,
-0.25433897972106934,
-0.6084238290786743,
2.6547763347625732,
-1.3080331087112427,
-0.15460547804832458,
-0.9810774922370911,
-0.49414438009262085,
1.784111738204956,
-1.2455247640609741,
-0.19764846563339233,
-0.9993066191673279,
-0.697149395942688,
-1.3524975776672363,
-0.3998118042945862,
-0.041864968836307526,
-0.9732483625411987,
0.7786667346954346,
0.09250536561012268,
-1.0541280508041382,
-0.12248192727565765,
-0.9106311202049255,
0.887343168258667,
-0.031228212639689445,
0.3068983852863312,
1.8980560302734375,
0.3775516748428345,
-0.3489377498626709,
0.8167070150375366,
1.2108267545700073,
0.5977969169616699,
-0.7926307916641235,
0.10965476930141449,
-0.6244862079620361,
0.3334183096885681,
-1.3408564329147339,
0.2626241147518158,
-2.8854894638061523,
0.6211150288581848,
-0.09202854335308075,
-0.10848833620548248,
0.025494888424873352,
-1.3776878118515015,
1.143742322921753,
2.4532339572906494,
-1.2309671640396118,
0.47029176354408264,
0.4308474361896515,
1.3053624629974365,
-1.5917366743087769,
0.4326222240924835,
-0.5424277782440186,
2.134685754776001,
0.1728345900774002,
1.2046388387680054,
-0.4602295756340027,
-2.194490909576416,
0.7053921818733215,
-1.319874882698059,
-1.1658051013946533,
0.7853968739509583,
-0.946549117565155,
0.14998294413089752,
-1.5115785598754883,
-0.17615380883216858,
-0.8633317947387695,
-1.30704927444458,
0.8502993583679199,
0.08140234649181366,
0.3388902246952057,
-0.39389273524284363,
0.24719373881816864,
-2.1883091926574707,
-1.3966374397277832,
-0.1666155606508255,
-0.9795185923576355,
0.3789058029651642,
-0.3184557557106018,
0.5773901343345642,
-0.16998492181301117,
0.10513874888420105,
0.2619519531726837,
1.4516128301620483,
3.3534576892852783,
0.22190634906291962,
0.2915690541267395,
-0.06802619248628616,
-0.9876288175582886,
1.4907550811767578,
1.0248991250991821,
-0.04138486459851265,
-0.5875585675239563,
-0.9601415395736694,
1.2795058488845825,
2.0333003997802734,
1.032849907875061,
0.05330813303589821,
-0.7405222058296204,
-0.5032070875167847,
0.0028646206483244896,
0.28385791182518005,
0.5145706534385681,
0.9091728925704956,
-0.011695814318954945,
0.12658898532390594,
1.4203534126281738,
1.1368974447250366,
-0.46174538135528564,
0.3882398009300232,
-0.9987833499908447,
-0.460415780544281,
0.40659457445144653,
0.19696952402591705,
0.05297645553946495,
0.4771740734577179,
-0.9925318956375122,
-0.3424694538116455,
-0.2540557384490967,
-0.9891793727874756,
-0.7513392567634583,
-0.4402191638946533,
-0.34920620918273926,
1.6163630485534668,
0.10839979350566864,
-0.5185368061065674,
0.026594068855047226,
-0.767356276512146,
-0.2263992875814438,
-1.1180474758148193,
0.20415537059307098,
-0.12171784043312073,
-0.17635536193847656,
-0.001221972517669201,
1.8626439571380615,
-1.1106096506118774,
-2.2566051483154297,
0.22549231350421906,
0.39357876777648926,
-0.2784997522830963,
0.12464773654937744,
1.6751028299331665,
0.44708052277565,
1.4959099292755127,
1.280707597732544,
1.0882431268692017,
-0.7272703647613525,
-1.3051878213882446,
0.7697420716285706,
1.0622817277908325,
-1.3634800910949707,
0.8257879614830017,
-0.11815513670444489,
-0.5492269396781921,
0.5911914706230164,
1.1876404285430908,
0.561855137348175,
-1.889183521270752,
0.8147650361061096,
-1.0108616352081299,
0.6993916034698486,
0.7138633728027344,
0.9056631922721863,
0.346620112657547,
0.9099280834197998,
-1.2310497760772705,
-1.1297134160995483,
-0.7734692692756653,
-0.5565317869186401,
1.9329299926757812,
-0.28819870948791504,
0.5778155326843262,
-0.07752685248851776,
-1.2113738059997559,
-0.002529516816139221,
0.7918493151664734,
0.27809324860572815,
-0.3543541431427002,
0.8735224604606628,
-0.7458460927009583,
-1.0895352363586426,
-1.4350700378417969,
-0.4480258524417877,
-0.958545982837677,
-0.9716935157775879,
1.0708363056182861,
0.657909095287323,
0.28556689620018005,
1.9162201881408691,
0.6007611155509949,
0.3463197946548462,
-2.6245033740997314,
0.9189426302909851,
0.15794754028320312,
0.05660067871212959,
0.7249526977539062,
0.2251952588558197,
1.0883266925811768,
-0.021418709307909012,
0.4876288175582886,
-2.288111686706543,
2.21309232711792,
-0.25558963418006897,
0.5950934290885925,
0.05947750434279442,
-0.12154968082904816,
1.172277569770813,
0.5634226202964783,
0.6114017963409424,
-1.0338925123214722,
0.7316669225692749,
-0.528113842010498,
1.109165072441101,
1.0298935174942017,
-0.8517724275588989,
0.0441434346139431,
1.3602465391159058,
0.525745153427124,
-0.3924507796764374,
-0.9337629675865173,
-0.8070181608200073,
0.9710665941238403,
1.6398800611495972,
-0.03162913769483566,
-0.008699099533259869,
0.7828392386436462,
0.45943424105644226,
-1.1874927282333374,
0.06158231571316719,
-0.73369961977005,
-0.6985741853713989,
1.6149530410766602,
1.9671941995620728,
-0.14131921529769897,
-0.1264505237340927,
-0.797264814376831,
-1.0997055768966675,
0.6889747977256775,
-0.10724127292633057,
0.012700997292995453,
0.7327000498771667,
-0.6264947056770325,
0.9712373614311218,
0.7278004884719849,
0.9490640163421631,
0.12432834506034851,
0.2788223326206207,
0.46745967864990234,
-0.20698827505111694,
-1.072329044342041,
-0.27513009309768677,
-1.1724910736083984,
-2.612365961074829,
0.3523275554180145,
-0.44685283303260803,
-1.3808878660202026,
0.13600070774555206,
-1.1237506866455078,
0.994621217250824,
-0.6643162965774536,
-1.104956865310669,
-1.5407495498657227,
0.20340488851070404,
-0.21823672950267792,
0.872835636138916,
-1.6644086837768555,
-0.19193050265312195,
1.2658116817474365,
0.8254777789115906,
-0.6805525422096252,
1.1089105606079102,
0.21782122552394867,
1.051089882850647,
0.7269452810287476,
-0.4500177800655365,
0.591073751449585,
0.20622211694717407,
-1.3978127241134644,
0.6017895936965942,
1.1438244581222534,
0.14837564527988434,
1.4178253412246704,
-0.4553108811378479,
-0.10053730010986328,
0.524265706539154,
-0.5698016881942749,
-0.4608118534088135,
-0.4865339696407318,
0.7797805666923523,
0.17836381494998932,
-0.9528887271881104,
-0.0417148657143116,
-0.20250357687473297,
-0.21920368075370789,
0.2726287841796875,
-1.5399614572525024,
-0.3447374999523163,
-0.4415585994720459,
-0.530063271522522,
-1.3170733451843262,
0.012054871767759323,
1.4034518003463745,
-0.7361855506896973,
-0.28621283173561096,
0.48547130823135376,
0.481870174407959,
0.4906095862388611,
0.6175330877304077,
-0.6735456585884094,
-0.17352637648582458,
-0.29608720541000366,
-0.24292315542697906,
0.3435862958431244,
1.2192580699920654,
-0.1727801263332367,
-1.0943782329559326,
0.7406850457191467,
-0.28190672397613525,
0.06568516790866852,
2.005633592605591,
0.1367965191602707,
-0.8331670761108398,
0.2622862458229065,
-0.5532007813453674,
1.9173460006713867,
1.430214524269104,
1.3166439533233643,
-0.14654462039470673,
-0.651102602481842,
0.6713911890983582,
-0.03881566971540451,
-0.3488515615463257,
0.8533419966697693,
0.5612249970436096,
-0.15704356133937836,
-1.4805001020431519,
0.6684531569480896,
1.3181087970733643,
-0.8345403671264648,
-0.8538815975189209,
-0.0039107054471969604,
-0.8628453016281128,
1.1208429336547852,
0.6279829740524292,
0.5278009176254272,
0.2257833182811737,
1.6417360305786133,
0.7162990570068359,
-0.5635165572166443,
0.40598264336586,
0.4339362382888794,
-0.0606696642935276,
-2.0524754524230957,
-0.9669491648674011,
0.3251093029975891,
-0.3952329456806183,
-1.4411619901657104,
1.4425878524780273,
-1.077457308769226,
-0.789614200592041,
0.5635344982147217,
0.19955547153949738,
1.4105314016342163,
0.34337836503982544,
1.6029372215270996,
2.0295817852020264,
0.9034693837165833,
0.318585067987442,
1.3424272537231445,
-0.11740328371524811,
-0.4498051404953003,
1.7491463422775269,
-0.36022189259529114,
0.41722196340560913,
1.0892095565795898,
-0.3797324299812317,
-1.0022766590118408,
-0.7153699994087219,
-1.206182837486267,
-0.5505911111831665,
1.1009670495986938,
0.20690378546714783,
-1.1433175802230835,
0.18892985582351685,
1.4699783325195312,
0.14994646608829498,
-0.26837393641471863,
0.5591133832931519,
0.4552866518497467,
-0.8031399250030518,
-0.03674115985631943,
-0.9130731225013733,
0.5054362416267395,
-0.22059209644794464,
-0.2749970853328705,
0.3734343349933624,
0.4453136920928955,
1.3215272426605225,
-0.09174248576164246,
0.297064870595932,
1.1402075290679932,
-1.357894778251648,
1.4798576831817627,
-0.5373709201812744,
0.11125791072845459,
-2.4062135219573975,
1.4084274768829346,
-0.6979541778564453,
1.866445779800415,
-2.6466064453125,
0.40262869000434875,
-0.6891312599182129,
-0.378852516412735,
0.36835476756095886,
-0.4408479332923889,
0.12390024960041046,
-0.20280419290065765,
-1.0807417631149292,
0.05403061583638191,
-0.7373666763305664,
0.6113131642341614,
1.228448510169983,
1.2395524978637695,
-0.9344876408576965,
-0.2695372402667999,
-1.7502268552780151,
-0.2701265215873718,
-0.7808988690376282,
0.2900940477848053,
-2.1331567764282227,
-0.1525612622499466,
-1.963664174079895,
-2.418347120285034,
-1.2948118448257446,
-0.8026955127716064,
1.177614688873291,
0.31695571541786194,
-0.9834210276603699,
1.2132357358932495,
-0.22929608821868896,
-1.6787840127944946,
1.1003801822662354,
-2.117356061935425
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.