Skip to content

Conversation

@leemthompo
Copy link
Contributor

Not ElasticSearch :)

Not ElasticSearch :)
Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 25, 2023

The documentation is not available anymore as the PR was closed or merged.

@mariosasko mariosasko merged commit f56fd9d into huggingface:main Sep 26, 2023
@github-actions
Copy link

Show benchmarks

PyArrow==8.0.0

Show updated benchmarks!

Benchmark: benchmark_array_xd.json

metric read_batch_formatted_as_numpy after write_array2d read_batch_formatted_as_numpy after write_flattened_sequence read_batch_formatted_as_numpy after write_nested_sequence read_batch_unformated after write_array2d read_batch_unformated after write_flattened_sequence read_batch_unformated after write_nested_sequence read_col_formatted_as_numpy after write_array2d read_col_formatted_as_numpy after write_flattened_sequence read_col_formatted_as_numpy after write_nested_sequence read_col_unformated after write_array2d read_col_unformated after write_flattened_sequence read_col_unformated after write_nested_sequence read_formatted_as_numpy after write_array2d read_formatted_as_numpy after write_flattened_sequence read_formatted_as_numpy after write_nested_sequence read_unformated after write_array2d read_unformated after write_flattened_sequence read_unformated after write_nested_sequence write_array2d write_flattened_sequence write_nested_sequence
new / old (diff) 0.006131 / 0.011353 (-0.005222) 0.003682 / 0.011008 (-0.007327) 0.081108 / 0.038508 (0.042600) 0.061580 / 0.023109 (0.038471) 0.395880 / 0.275898 (0.119982) 0.427429 / 0.323480 (0.103949) 0.003570 / 0.007986 (-0.004416) 0.003874 / 0.004328 (-0.000455) 0.063322 / 0.004250 (0.059072) 0.049742 / 0.037052 (0.012690) 0.396547 / 0.258489 (0.138058) 0.434759 / 0.293841 (0.140918) 0.028137 / 0.128546 (-0.100409) 0.008103 / 0.075646 (-0.067544) 0.262504 / 0.419271 (-0.156767) 0.045944 / 0.043533 (0.002411) 0.397659 / 0.255139 (0.142520) 0.416479 / 0.283200 (0.133280) 0.022870 / 0.141683 (-0.118813) 1.478280 / 1.452155 (0.026126) 1.543748 / 1.492716 (0.051031)

Benchmark: benchmark_getitem_100B.json

metric get_batch_of_1024_random_rows get_batch_of_1024_rows get_first_row get_last_row
new / old (diff) 0.228851 / 0.018006 (0.210845) 0.432845 / 0.000490 (0.432355) 0.005922 / 0.000200 (0.005722) 0.000227 / 0.000054 (0.000172)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.025545 / 0.037411 (-0.011867) 0.073506 / 0.014526 (0.058980) 0.087622 / 0.176557 (-0.088935) 0.145455 / 0.737135 (-0.591680) 0.085236 / 0.296338 (-0.211102)

Benchmark: benchmark_iterating.json

metric read 5000 read 50000 read_batch 50000 10 read_batch 50000 100 read_batch 50000 1000 read_formatted numpy 5000 read_formatted pandas 5000 read_formatted tensorflow 5000 read_formatted torch 5000 read_formatted_batch numpy 5000 10 read_formatted_batch numpy 5000 1000 shuffled read 5000 shuffled read 50000 shuffled read_batch 50000 10 shuffled read_batch 50000 100 shuffled read_batch 50000 1000 shuffled read_formatted numpy 5000 shuffled read_formatted_batch numpy 5000 10 shuffled read_formatted_batch numpy 5000 1000
new / old (diff) 0.433083 / 0.215209 (0.217874) 4.323121 / 2.077655 (2.245466) 2.297947 / 1.504120 (0.793827) 2.126405 / 1.541195 (0.585211) 2.201635 / 1.468490 (0.733145) 0.509902 / 4.584777 (-4.074875) 3.116877 / 3.745712 (-0.628835) 2.892949 / 5.269862 (-2.376912) 1.866833 / 4.565676 (-2.698844) 0.058087 / 0.424275 (-0.366189) 0.006464 / 0.007607 (-0.001143) 0.503594 / 0.226044 (0.277550) 5.027634 / 2.268929 (2.758705) 2.718030 / 55.444624 (-52.726595) 2.373876 / 6.876477 (-4.502600) 2.515496 / 2.142072 (0.373423) 0.602648 / 4.805227 (-4.202579) 0.126119 / 6.500664 (-6.374545) 0.060623 / 0.075469 (-0.014846)

Benchmark: benchmark_map_filter.json

metric filter map fast-tokenizer batched map identity map identity batched map no-op batched map no-op batched numpy map no-op batched pandas map no-op batched pytorch map no-op batched tensorflow
new / old (diff) 1.236429 / 1.841788 (-0.605359) 17.760532 / 8.074308 (9.686224) 13.970093 / 10.191392 (3.778701) 0.145455 / 0.680424 (-0.534969) 0.017110 / 0.534201 (-0.517091) 0.329649 / 0.579283 (-0.249634) 0.366942 / 0.434364 (-0.067421) 0.384418 / 0.540337 (-0.155920) 0.552330 / 1.386936 (-0.834606)
PyArrow==latest
Show updated benchmarks!

Benchmark: benchmark_array_xd.json

metric read_batch_formatted_as_numpy after write_array2d read_batch_formatted_as_numpy after write_flattened_sequence read_batch_formatted_as_numpy after write_nested_sequence read_batch_unformated after write_array2d read_batch_unformated after write_flattened_sequence read_batch_unformated after write_nested_sequence read_col_formatted_as_numpy after write_array2d read_col_formatted_as_numpy after write_flattened_sequence read_col_formatted_as_numpy after write_nested_sequence read_col_unformated after write_array2d read_col_unformated after write_flattened_sequence read_col_unformated after write_nested_sequence read_formatted_as_numpy after write_array2d read_formatted_as_numpy after write_flattened_sequence read_formatted_as_numpy after write_nested_sequence read_unformated after write_array2d read_unformated after write_flattened_sequence read_unformated after write_nested_sequence write_array2d write_flattened_sequence write_nested_sequence
new / old (diff) 0.006302 / 0.011353 (-0.005051) 0.003677 / 0.011008 (-0.007331) 0.062836 / 0.038508 (0.024328) 0.063317 / 0.023109 (0.040207) 0.449970 / 0.275898 (0.174072) 0.480903 / 0.323480 (0.157423) 0.005013 / 0.007986 (-0.002972) 0.002934 / 0.004328 (-0.001394) 0.062975 / 0.004250 (0.058724) 0.051285 / 0.037052 (0.014233) 0.448417 / 0.258489 (0.189928) 0.486022 / 0.293841 (0.192181) 0.029215 / 0.128546 (-0.099332) 0.008189 / 0.075646 (-0.067457) 0.068203 / 0.419271 (-0.351068) 0.041942 / 0.043533 (-0.001591) 0.445749 / 0.255139 (0.190610) 0.465442 / 0.283200 (0.182243) 0.020681 / 0.141683 (-0.121002) 1.500704 / 1.452155 (0.048549) 1.550511 / 1.492716 (0.057795)

Benchmark: benchmark_getitem_100B.json

metric get_batch_of_1024_random_rows get_batch_of_1024_rows get_first_row get_last_row
new / old (diff) 0.224922 / 0.018006 (0.206915) 0.419714 / 0.000490 (0.419224) 0.003804 / 0.000200 (0.003604) 0.000082 / 0.000054 (0.000028)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.026924 / 0.037411 (-0.010487) 0.082400 / 0.014526 (0.067874) 0.092193 / 0.176557 (-0.084363) 0.147045 / 0.737135 (-0.590090) 0.093173 / 0.296338 (-0.203166)

Benchmark: benchmark_iterating.json

metric read 5000 read 50000 read_batch 50000 10 read_batch 50000 100 read_batch 50000 1000 read_formatted numpy 5000 read_formatted pandas 5000 read_formatted tensorflow 5000 read_formatted torch 5000 read_formatted_batch numpy 5000 10 read_formatted_batch numpy 5000 1000 shuffled read 5000 shuffled read 50000 shuffled read_batch 50000 10 shuffled read_batch 50000 100 shuffled read_batch 50000 1000 shuffled read_formatted numpy 5000 shuffled read_formatted_batch numpy 5000 10 shuffled read_formatted_batch numpy 5000 1000
new / old (diff) 0.462510 / 0.215209 (0.247300) 4.635249 / 2.077655 (2.557594) 2.627127 / 1.504120 (1.123007) 2.442879 / 1.541195 (0.901684) 2.502456 / 1.468490 (1.033966) 0.506607 / 4.584777 (-4.078170) 3.127348 / 3.745712 (-0.618364) 2.901818 / 5.269862 (-2.368044) 1.906876 / 4.565676 (-2.658801) 0.058025 / 0.424275 (-0.366250) 0.006442 / 0.007607 (-0.001165) 0.534438 / 0.226044 (0.308394) 5.352481 / 2.268929 (3.083553) 3.058068 / 55.444624 (-52.386556) 2.697310 / 6.876477 (-4.179167) 2.873141 / 2.142072 (0.731069) 0.594517 / 4.805227 (-4.210710) 0.125369 / 6.500664 (-6.375295) 0.061411 / 0.075469 (-0.014058)

Benchmark: benchmark_map_filter.json

metric filter map fast-tokenizer batched map identity map identity batched map no-op batched map no-op batched numpy map no-op batched pandas map no-op batched pytorch map no-op batched tensorflow
new / old (diff) 1.369549 / 1.841788 (-0.472238) 17.933507 / 8.074308 (9.859199) 14.890107 / 10.191392 (4.698715) 0.154398 / 0.680424 (-0.526026) 0.018021 / 0.534201 (-0.516180) 0.335163 / 0.579283 (-0.244120) 0.350396 / 0.434364 (-0.083968) 0.397694 / 0.540337 (-0.142643) 0.554853 / 1.386936 (-0.832083)

@leemthompo leemthompo deleted the patch-1 branch September 26, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants