datasets.utils.info_utils.NonMatchingSplitsSizesError:

#4
by StephennFernandes - opened

upon downloading the dataset via the code:
dataset =load_dataset("ai4bharat/sangraha","verified",cache_dir="/media/user/drive_2/hf_cache")

i faced the following error:

Traceback (most recent call last): File "/media/user/drive_2/INDIAN_CORPUS/download_sangraha.py", line 2, in <module> dataset = load_dataset("ai4bharat/sangraha","verified",cache_dir="/media/user/drive_2/hf_cache") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/anaconda3/lib/python3.11/site-packages/datasets/load.py", line 2582, in load_dataset builder_instance.download_and_prepare( File "/home/user/anaconda3/lib/python3.11/site-packages/datasets/builder.py", line 1005, in download_and_prepare self._download_and_prepare( File "/home/user/anaconda3/lib/python3.11/site-packages/datasets/builder.py", line 1118, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/user/anaconda3/lib/python3.11/site-packages/datasets/utils/info_utils.py", line 101, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='asm', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='asm', num_bytes=2415729598, num_examples=330714, shard_lengths=[296438, 34276], dataset_name='sangraha')}, {'expected': SplitInfo(name='ben', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='ben', num_bytes=77698635499, num_examples=11497021, shard_lengths=[321779, 321044, 319385, 86368, 320880, 320912, 319142, 87642, 319732, 320510, 321323, 87011, 319095, 321768, 320058, 87655, 320749, 318463, 319409, 89955, 321105, 320037, 321212, 86222, 322109, 321505, 319238, 85724, 321183, 320853, 318364, 88176, 321567, 319596, 320148, 87265, 319225, 318954, 320937, 89460, 320290, 321921, 321547, 47503], dataset_name='sangraha')}, {'expected': SplitInfo(name='brx', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='brx', num_bytes=13519103, num_examples=3041, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='doi', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='doi', num_bytes=1052051, num_examples=115, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='eng', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='eng', num_bytes=48569788455, num_examples=17482249, shard_lengths=[784730, 263846, 787817, 260759, 788844, 259732, 791247, 257329, 789261, 259315, 784951, 263625, 788447, 260129, 790831, 257745, 789121, 259455, 787821, 260755, 789820, 258756, 789361, 259215, 788583, 259993, 790456, 258120, 789591, 258985, 790079, 258497, 705033], dataset_name='sangraha')}, {'expected': SplitInfo(name='gom', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='gom', num_bytes=84757347, num_examples=15056, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='guj', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='guj', num_bytes=24947960106, num_examples=3970097, shard_lengths=[344692, 345437, 345492, 358680, 345485, 345284, 356336, 344717, 344611, 358820, 344529, 136014], dataset_name='sangraha')}, {'expected': SplitInfo(name='hin', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='hin', num_bytes=97869319191, num_examples=17420932, shard_lengths=[388322, 387986, 272268, 389083, 387256, 272237, 387656, 385799, 275121, 385683, 388141, 274752, 387801, 386900, 273875, 388158, 386740, 273678, 387049, 383000, 278527, 386026, 384714, 277836, 388402, 387276, 272898, 386629, 385247, 276700, 385540, 385446, 277590, 386421, 386287, 275868, 386100, 385303, 277173, 388180, 383755, 276641, 383736, 388038, 276802, 387725, 385987, 274864, 385953, 257763], dataset_name='sangraha')}, {'expected': SplitInfo(name='kan', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='kan', num_bytes=19919768590, num_examples=3632345, shard_lengths=[397014, 395569, 255993, 396293, 395446, 256837, 395684, 394732, 258160, 395246, 91371], dataset_name='sangraha')}, {'expected': SplitInfo(name='kas', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='kas', num_bytes=31977173, num_examples=1371, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='mai', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='mai', num_bytes=115038995, num_examples=20232, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='mal', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='mal', num_bytes=33161596816, num_examples=6370342, shard_lengths=[416616, 415137, 216823, 417872, 418069, 212635, 417893, 414969, 215714, 416988, 416530, 215058, 417141, 418294, 213141, 416022, 417423, 215131, 78886], dataset_name='sangraha')}, {'expected': SplitInfo(name='mar', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='mar', num_bytes=33660352988, num_examples=5865617, shard_lengths=[377624, 376734, 294218, 378271, 378450, 291855, 378010, 377904, 292662, 377649, 376888, 294039, 377626, 378377, 292573, 379457, 243280], dataset_name='sangraha')}, {'expected': SplitInfo(name='mni', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='mni', num_bytes=36230202, num_examples=3560, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='nep', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='nep', num_bytes=22849833687, num_examples=4386670, shard_lengths=[416865, 417185, 214526, 416289, 415514, 216773, 416599, 416978, 214999, 416836, 416834, 214906, 192366], dataset_name='sangraha')}, {'expected': SplitInfo(name='ori', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='ori', num_bytes=10070461005, num_examples=1997365, shard_lengths=[432965, 432185, 183426, 428894, 429745, 90150], dataset_name='sangraha')}, {'expected': SplitInfo(name='pan', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='pan', num_bytes=10661355433, num_examples=1738597, shard_lengths=[354241, 352646, 341689, 354024, 335997], dataset_name='sangraha')}, {'expected': SplitInfo(name='san', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='san', num_bytes=10593883846, num_examples=908066, shard_lengths=[185182, 183641, 186204, 185103, 167936], dataset_name='sangraha')}, {'expected': SplitInfo(name='sat', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='sat', num_bytes=503255, num_examples=110, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='snd', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='snd', num_bytes=1873125696, num_examples=357919, shard_lengths=None, dataset_name='sangraha')}, {'expected': SplitInfo(name='tam', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='tam', num_bytes=53116883368, num_examples=7828512, shard_lengths=[319195, 319432, 320585, 89364, 319226, 319079, 318988, 91283, 318765, 319299, 319298, 91214, 318755, 318890, 316731, 94200, 318982, 319375, 320414, 89805, 320281, 319937, 320183, 88175, 318967, 319046, 317479, 93084, 319564, 168916], dataset_name='sangraha')}, {'expected': SplitInfo(name='tel', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='tel', num_bytes=38517797062, num_examples=7081734, shard_lengths=[398383, 398847, 251346, 398703, 398590, 251283, 399251, 398054, 251271, 399208, 399117, 250251, 398010, 399582, 250984, 400020, 398599, 249957, 399308, 390970], dataset_name='sangraha')}, {'expected': SplitInfo(name='urd', num_bytes=0, num_examples=0, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='urd', num_bytes=26474141551, num_examples=5442346, shard_lengths=[446534, 446045, 155997, 447662, 445402, 155512, 445894, 447008, 155674, 448077, 447631, 152868, 447721, 447422, 153433, 199466], dataset_name='sangraha')}]

@Umashanks99 hey i am facing this issue when downloading the dataset. unable to entirely download the dataset. even while using the latest release of datasets.
please could you help me out on what seems to be the issue here ?

Sign up or log in to comment