Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq committed Sep 27, 2022
1 parent 99dde63 commit 536510d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/load.py
Expand Up @@ -29,7 +29,7 @@

import fsspec
import requests
from huggingface_hub import HfApi, HfFolder
from huggingface_hub import HfApi

from . import config
from .arrow_dataset import Dataset
Expand Down

1 comment on commit 536510d

@github-actions
Copy link

Choose a reason for hiding this comment

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

Show benchmarks

PyArrow==6.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.007922 / 0.011353 (-0.003431) 0.003972 / 0.011008 (-0.007036) 0.030475 / 0.038508 (-0.008033) 0.034632 / 0.023109 (0.011523) 0.292704 / 0.275898 (0.016806) 0.353711 / 0.323480 (0.030231) 0.005968 / 0.007986 (-0.002018) 0.004763 / 0.004328 (0.000435) 0.006957 / 0.004250 (0.002706) 0.048068 / 0.037052 (0.011016) 0.308347 / 0.258489 (0.049858) 0.352917 / 0.293841 (0.059077) 0.031507 / 0.128546 (-0.097040) 0.009727 / 0.075646 (-0.065920) 0.260067 / 0.419271 (-0.159204) 0.051878 / 0.043533 (0.008346) 0.293039 / 0.255139 (0.037900) 0.324129 / 0.283200 (0.040929) 0.100939 / 0.141683 (-0.040744) 1.529996 / 1.452155 (0.077841) 1.522915 / 1.492716 (0.030199)

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.203876 / 0.018006 (0.185870) 0.444721 / 0.000490 (0.444232) 0.006873 / 0.000200 (0.006673) 0.000295 / 0.000054 (0.000241)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.024744 / 0.037411 (-0.012667) 0.100424 / 0.014526 (0.085898) 0.115098 / 0.176557 (-0.061459) 0.164829 / 0.737135 (-0.572306) 0.117664 / 0.296338 (-0.178674)

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.397146 / 0.215209 (0.181937) 3.966918 / 2.077655 (1.889264) 1.752217 / 1.504120 (0.248097) 1.561644 / 1.541195 (0.020450) 1.667071 / 1.468490 (0.198581) 0.421083 / 4.584777 (-4.163694) 3.784319 / 3.745712 (0.038607) 2.060674 / 5.269862 (-3.209188) 1.401879 / 4.565676 (-3.163797) 0.051512 / 0.424275 (-0.372763) 0.010909 / 0.007607 (0.003302) 0.500747 / 0.226044 (0.274703) 5.002198 / 2.268929 (2.733269) 2.206785 / 55.444624 (-53.237839) 1.914417 / 6.876477 (-4.962060) 1.998379 / 2.142072 (-0.143693) 0.539374 / 4.805227 (-4.265853) 0.119282 / 6.500664 (-6.381382) 0.061490 / 0.075469 (-0.013979)

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.476444 / 1.841788 (-0.365344) 13.350566 / 8.074308 (5.276258) 25.015541 / 10.191392 (14.824149) 0.866925 / 0.680424 (0.186501) 0.562907 / 0.534201 (0.028706) 0.386627 / 0.579283 (-0.192656) 0.424727 / 0.434364 (-0.009636) 0.265845 / 0.540337 (-0.274492) 0.271314 / 1.386936 (-1.115622)
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.006050 / 0.011353 (-0.005302) 0.004037 / 0.011008 (-0.006971) 0.027773 / 0.038508 (-0.010735) 0.033587 / 0.023109 (0.010478) 0.396093 / 0.275898 (0.120195) 0.437893 / 0.323480 (0.114413) 0.003893 / 0.007986 (-0.004092) 0.003494 / 0.004328 (-0.000834) 0.004919 / 0.004250 (0.000669) 0.043427 / 0.037052 (0.006375) 0.387890 / 0.258489 (0.129401) 0.414278 / 0.293841 (0.120437) 0.029993 / 0.128546 (-0.098553) 0.009745 / 0.075646 (-0.065902) 0.256791 / 0.419271 (-0.162480) 0.054005 / 0.043533 (0.010472) 0.380658 / 0.255139 (0.125519) 0.401560 / 0.283200 (0.118360) 0.104722 / 0.141683 (-0.036961) 1.454686 / 1.452155 (0.002531) 1.488722 / 1.492716 (-0.003995)

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.224448 / 0.018006 (0.206442) 0.445106 / 0.000490 (0.444616) 0.001068 / 0.000200 (0.000868) 0.000100 / 0.000054 (0.000045)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.023766 / 0.037411 (-0.013646) 0.098896 / 0.014526 (0.084371) 0.114456 / 0.176557 (-0.062100) 0.162641 / 0.737135 (-0.574495) 0.115720 / 0.296338 (-0.180618)

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.434514 / 0.215209 (0.219305) 4.328354 / 2.077655 (2.250700) 2.185821 / 1.504120 (0.681701) 2.005992 / 1.541195 (0.464797) 2.037419 / 1.468490 (0.568929) 0.421784 / 4.584777 (-4.162993) 3.764726 / 3.745712 (0.019014) 1.955080 / 5.269862 (-3.314781) 1.218711 / 4.565676 (-3.346966) 0.051110 / 0.424275 (-0.373165) 0.011157 / 0.007607 (0.003550) 0.531884 / 0.226044 (0.305840) 5.324982 / 2.268929 (3.056054) 2.642604 / 55.444624 (-52.802021) 2.285739 / 6.876477 (-4.590738) 2.391702 / 2.142072 (0.249629) 0.530918 / 4.805227 (-4.274309) 0.119254 / 6.500664 (-6.381410) 0.060666 / 0.075469 (-0.014803)

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.535907 / 1.841788 (-0.305881) 13.742657 / 8.074308 (5.668349) 24.513384 / 10.191392 (14.321992) 0.887817 / 0.680424 (0.207393) 0.596344 / 0.534201 (0.062143) 0.386796 / 0.579283 (-0.192487) 0.430336 / 0.434364 (-0.004028) 0.278718 / 0.540337 (-0.261619) 0.276144 / 1.386936 (-1.110792)

CML watermark

Please sign in to comment.