gbenson commited on
Commit
7b939b0
1 Parent(s): 523f246

Build script

Browse files
Files changed (1) hide show
  1. build.ipynb +1 -0
build.ipynb ADDED
@@ -0,0 +1 @@
 
 
1
+ {"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyOC8QFA+VVDCKBaC2G/CD2t"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"},"widgets":{"application/vnd.jupyter.widget-state+json":{"fdb9a9858ffe45d994e7e420d6a0988b":{"model_module":"@jupyter-widgets/controls","model_name":"HBoxModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_5ebf6f571d4a4729a3c174fb61140e96","IPY_MODEL_44d1e6e4b0294edd9467d7dd2bd284de","IPY_MODEL_b8550a62079144f2bbaca07d9e7adfcf"],"layout":"IPY_MODEL_9aa15aca20be41b9b09fac0f4b1a710c"}},"5ebf6f571d4a4729a3c174fb61140e96":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_10fc5214411c4c60925fc2aa5d97cb66","placeholder":"​","style":"IPY_MODEL_9b93630055fd43adb327f797f1d78a17","value":"Generating train split: "}},"44d1e6e4b0294edd9467d7dd2bd284de":{"model_module":"@jupyter-widgets/controls","model_name":"FloatProgressModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"ProgressView","bar_style":"success","description":"","description_tooltip":null,"layout":"IPY_MODEL_733c2234559443268314c3bc4f77a859","max":1,"min":0,"orientation":"horizontal","style":"IPY_MODEL_e59dab661f8e4f16932a1dd015c4b0ac","value":1}},"b8550a62079144f2bbaca07d9e7adfcf":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_85d3d7d5fa934c429386f03d599090ca","placeholder":"​","style":"IPY_MODEL_7f40b4bb839a4fbba344256d30d7a624","value":" 1313525/0 [00:01&lt;00:00, 1178829.50 examples/s]"}},"9aa15aca20be41b9b09fac0f4b1a710c":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"10fc5214411c4c60925fc2aa5d97cb66":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"9b93630055fd43adb327f797f1d78a17":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"733c2234559443268314c3bc4f77a859":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":"20px"}},"e59dab661f8e4f16932a1dd015c4b0ac":{"model_module":"@jupyter-widgets/controls","model_name":"ProgressStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"85d3d7d5fa934c429386f03d599090ca":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"7f40b4bb839a4fbba344256d30d7a624":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"902b9b25ffe14977bbb31c543a18f9e5":{"model_module":"@jupyter-widgets/controls","model_name":"HBoxModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_8bf8f973042c4403bc3189febb2994f6","IPY_MODEL_4e6c085de7ba4f8fbfdf64bf6da0d923","IPY_MODEL_8ef5a77dbed644ec9ccb8ce787fcc1fe"],"layout":"IPY_MODEL_23dfa7a1a74a45eba3301a52784534e5"}},"8bf8f973042c4403bc3189febb2994f6":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_4e300a25b8b4469c9633c3720997c876","placeholder":"​","style":"IPY_MODEL_dbb83c4e82544de59e2a3f20fa8026e7","value":"Uploading the dataset shards: 100%"}},"4e6c085de7ba4f8fbfdf64bf6da0d923":{"model_module":"@jupyter-widgets/controls","model_name":"FloatProgressModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"ProgressView","bar_style":"success","description":"","description_tooltip":null,"layout":"IPY_MODEL_f6a71d85794a435cbca17b821bc38287","max":1,"min":0,"orientation":"horizontal","style":"IPY_MODEL_f51a3b7857924006938d56aa1725138e","value":1}},"8ef5a77dbed644ec9ccb8ce787fcc1fe":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_559d15e7c4d3416bb94514a87cd8e7cc","placeholder":"​","style":"IPY_MODEL_37a7b88ca3d5492193d7715cce9d2643","value":" 1/1 [00:02&lt;00:00,  2.69s/it]"}},"23dfa7a1a74a45eba3301a52784534e5":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"4e300a25b8b4469c9633c3720997c876":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"dbb83c4e82544de59e2a3f20fa8026e7":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"f6a71d85794a435cbca17b821bc38287":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"f51a3b7857924006938d56aa1725138e":{"model_module":"@jupyter-widgets/controls","model_name":"ProgressStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"559d15e7c4d3416bb94514a87cd8e7cc":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"37a7b88ca3d5492193d7715cce9d2643":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"e8577a58407e4b24acae911e3fbf2c0a":{"model_module":"@jupyter-widgets/controls","model_name":"HBoxModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_6c05e30dae994e6fa6aa4e7258a4cfa2","IPY_MODEL_a6f4b51420354423986c459a129c7766","IPY_MODEL_bf438063dd874afa8ff107c598283f3a"],"layout":"IPY_MODEL_5c40b12536de4b1c88890483682d69c2"}},"6c05e30dae994e6fa6aa4e7258a4cfa2":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_29606359888c45e18c31cbee006f19d6","placeholder":"​","style":"IPY_MODEL_ad5db95c13fe419fa5cf5860c1ccfb89","value":"Creating parquet from Arrow format: 100%"}},"a6f4b51420354423986c459a129c7766":{"model_module":"@jupyter-widgets/controls","model_name":"FloatProgressModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"ProgressView","bar_style":"success","description":"","description_tooltip":null,"layout":"IPY_MODEL_066c364ca2f34659a5813e8a8d1a9bf6","max":1314,"min":0,"orientation":"horizontal","style":"IPY_MODEL_be824b2577a041df8d95fee61dd13617","value":1314}},"bf438063dd874afa8ff107c598283f3a":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_813ce4ff18124ffcaab177438760726b","placeholder":"​","style":"IPY_MODEL_0ac4e4521298493bbf68ccc35de7f385","value":" 1314/1314 [00:00&lt;00:00, 2075.22ba/s]"}},"5c40b12536de4b1c88890483682d69c2":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"29606359888c45e18c31cbee006f19d6":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"ad5db95c13fe419fa5cf5860c1ccfb89":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"066c364ca2f34659a5813e8a8d1a9bf6":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"be824b2577a041df8d95fee61dd13617":{"model_module":"@jupyter-widgets/controls","model_name":"ProgressStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"813ce4ff18124ffcaab177438760726b":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"0ac4e4521298493bbf68ccc35de7f385":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}}}}},"cells":[{"cell_type":"markdown","source":["## Install the modified `dom-tokenizers`"],"metadata":{"id":"p4cA_Al2R8Fm"}},{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"AxuqwFstR6UD","executionInfo":{"status":"ok","timestamp":1717857783934,"user_tz":-60,"elapsed":935,"user":{"displayName":"Gary Benson","userId":"04610266850028564176"}},"outputId":"a6af92c2-fc12-445c-bdf8-1cdfab35310c"},"outputs":[{"output_type":"stream","name":"stdout","text":["Cloning into 'dom-tokenizers'...\n","remote: Enumerating objects: 505, done.\u001b[K\n","remote: Counting objects: 100% (103/103), done.\u001b[K\n","remote: Compressing objects: 100% (53/53), done.\u001b[K\n","remote: Total 505 (delta 50), reused 80 (delta 43), pack-reused 402\u001b[K\n","Receiving objects: 100% (505/505), 139.21 KiB | 3.31 MiB/s, done.\n","Resolving deltas: 100% (269/269), done.\n"]}],"source":["!git clone https://github.com/gbenson/dom-tokenizers.git -b emit-unique-tokens-0.0.15 --single-branch\n"]},{"cell_type":"code","source":["!cd dom-tokenizers && pip install -e .[train]"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"iURZKR40UCxY","executionInfo":{"status":"ok","timestamp":1717858254061,"user_tz":-60,"elapsed":30638,"user":{"displayName":"Gary Benson","userId":"04610266850028564176"}},"outputId":"4bb266d0-e045-46b0-bd0a-a874b9a7c2f8"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Obtaining file:///content/dom-tokenizers\n"," Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n"," Checking if build backend supports build_editable ... \u001b[?25l\u001b[?25hdone\n"," Getting requirements to build editable ... \u001b[?25l\u001b[?25hdone\n"," Installing backend dependencies ... \u001b[?25l\u001b[?25hdone\n"," Preparing editable metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n","Requirement already satisfied: python-magic in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.15) (0.4.27)\n","Requirement already satisfied: tokenizers in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.15) (0.19.1)\n","Requirement already satisfied: unidecode in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.15) (1.3.8)\n","Requirement already satisfied: datasets in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.15) (2.19.2)\n","Requirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.15) (9.4.0)\n","Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.15) (4.41.2)\n","Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (3.14.0)\n","Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (1.25.2)\n","Requirement already satisfied: pyarrow>=12.0.0 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (14.0.2)\n","Requirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (0.6)\n","Requirement already satisfied: dill<0.3.9,>=0.3.0 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (0.3.8)\n","Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (2.0.3)\n","Collecting requests>=2.32.1 (from datasets->dom-tokenizers==0.0.15)\n"," Using cached requests-2.32.3-py3-none-any.whl (64 kB)\n","Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (4.66.4)\n","Requirement already satisfied: xxhash in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (3.4.1)\n","Requirement already satisfied: multiprocess in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (0.70.16)\n","Requirement already satisfied: fsspec[http]<=2024.3.1,>=2023.1.0 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (2023.6.0)\n","Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (3.9.5)\n","Requirement already satisfied: huggingface-hub>=0.21.2 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (0.23.2)\n","Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (24.0)\n","Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.15) (6.0.1)\n","Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers->dom-tokenizers==0.0.15) (2024.5.15)\n","Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from transformers->dom-tokenizers==0.0.15) (0.4.3)\n","Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.15) (1.3.1)\n","Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.15) (23.2.0)\n","Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.15) (1.4.1)\n","Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.15) (6.0.5)\n","Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.15) (1.9.4)\n","Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.15) (4.0.3)\n","Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.21.2->datasets->dom-tokenizers==0.0.15) (4.12.1)\n","Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.1->datasets->dom-tokenizers==0.0.15) (3.3.2)\n","Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.1->datasets->dom-tokenizers==0.0.15) (3.7)\n","Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.1->datasets->dom-tokenizers==0.0.15) (2.0.7)\n","Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.1->datasets->dom-tokenizers==0.0.15) (2024.6.2)\n","Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets->dom-tokenizers==0.0.15) (2.8.2)\n","Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets->dom-tokenizers==0.0.15) (2023.4)\n","Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets->dom-tokenizers==0.0.15) (2024.1)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.2->pandas->datasets->dom-tokenizers==0.0.15) (1.16.0)\n","Building wheels for collected packages: dom-tokenizers\n"," Building editable for dom-tokenizers (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for dom-tokenizers: filename=dom_tokenizers-0.0.15-0.editable-py3-none-any.whl size=7349 sha256=e87f31f7741c31b0699ae906e7eecdec1278eb520c8e7f2110cdec5708464faf\n"," Stored in directory: /tmp/pip-ephem-wheel-cache-tof5n_k9/wheels/ab/e4/d2/9b9419db21d26514602a3dbb7582a3c195f9229169192ca43b\n","Successfully built dom-tokenizers\n","Installing collected packages: requests, dom-tokenizers\n"," Attempting uninstall: requests\n"," Found existing installation: requests 2.31.0\n"," Uninstalling requests-2.31.0:\n"," Successfully uninstalled requests-2.31.0\n"," Attempting uninstall: dom-tokenizers\n"," Found existing installation: dom-tokenizers 0.0.15\n"," Uninstalling dom-tokenizers-0.0.15:\n"," Successfully uninstalled dom-tokenizers-0.0.15\n","\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","google-colab 1.0.0 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0mSuccessfully installed dom-tokenizers-0.0.15 requests-2.32.3\n"]}]},{"cell_type":"markdown","source":["## Train a tokenizer on `gbenson/webui-dom-snapshots`\n","\n","We don't need the tokenizer, but this `dom-tokenizers` is modified to output every unique token it sees into a file as a side-effect."],"metadata":{"id":"aXQW8CBmVOa4"}},{"cell_type":"code","source":["!train-tokenizer -n30000 -N4536 gbenson/webui-dom-snapshots"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"CqHIS-8xVVKe","executionInfo":{"status":"ok","timestamp":1717862039075,"user_tz":-60,"elapsed":3603581,"user":{"displayName":"Gary Benson","userId":"04610266850028564176"}},"outputId":"e56099eb-a734-4859-c7c2-46b683581d1d"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Output directory: /content/dom-tokenizer-30k\n","\n","Generating up to 30,000 tokens from 4,536 examples:\n","\u001b[2K[00:00:03] Tokenize words ██████████████████ 919164 / 919164\n","\u001b[2K[00:01:18] Count pairs ██████████████████ 919164 / 919164\n","\u001b[2K[00:00:22] Compute merges ██████████████████ 29902 / 29902\n","\n","['training', 'complete']\n","['token', '##izer', 'state', 'saved']\n","['see', 'you', 'soon', '##!', '##!']\n"]}]},{"cell_type":"markdown","source":["## Load the file into a dataset"],"metadata":{"id":"Uo_FraY1W5IK"}},{"cell_type":"code","source":["from datasets import load_dataset\n","dataset = load_dataset(\"text\", data_files={\"train\": [\"unique-tokens\"]})"],"metadata":{"id":"L_oxSzmFW-nL","colab":{"base_uri":"https://localhost:8080/","height":49,"referenced_widgets":["fdb9a9858ffe45d994e7e420d6a0988b","5ebf6f571d4a4729a3c174fb61140e96","44d1e6e4b0294edd9467d7dd2bd284de","b8550a62079144f2bbaca07d9e7adfcf","9aa15aca20be41b9b09fac0f4b1a710c","10fc5214411c4c60925fc2aa5d97cb66","9b93630055fd43adb327f797f1d78a17","733c2234559443268314c3bc4f77a859","e59dab661f8e4f16932a1dd015c4b0ac","85d3d7d5fa934c429386f03d599090ca","7f40b4bb839a4fbba344256d30d7a624"]},"executionInfo":{"status":"ok","timestamp":1717862292658,"user_tz":-60,"elapsed":3125,"user":{"displayName":"Gary Benson","userId":"04610266850028564176"}},"outputId":"d8c3b7b7-596d-4926-ef9f-d7607f4ac69f"},"execution_count":4,"outputs":[{"output_type":"display_data","data":{"text/plain":["Generating train split: 0 examples [00:00, ? examples/s]"],"application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"fdb9a9858ffe45d994e7e420d6a0988b"}},"metadata":{}}]},{"cell_type":"markdown","source":["## Upload to Hugging Face"],"metadata":{"id":"sqbaaByQYG5q"}},{"cell_type":"code","source":["dataset.push_to_hub(\"gbenson/webui-tokens-unlabelled\")"],"metadata":{"id":"ICObGLZvYHRZ","colab":{"base_uri":"https://localhost:8080/","height":240,"referenced_widgets":["902b9b25ffe14977bbb31c543a18f9e5","8bf8f973042c4403bc3189febb2994f6","4e6c085de7ba4f8fbfdf64bf6da0d923","8ef5a77dbed644ec9ccb8ce787fcc1fe","23dfa7a1a74a45eba3301a52784534e5","4e300a25b8b4469c9633c3720997c876","dbb83c4e82544de59e2a3f20fa8026e7","f6a71d85794a435cbca17b821bc38287","f51a3b7857924006938d56aa1725138e","559d15e7c4d3416bb94514a87cd8e7cc","37a7b88ca3d5492193d7715cce9d2643","e8577a58407e4b24acae911e3fbf2c0a","6c05e30dae994e6fa6aa4e7258a4cfa2","a6f4b51420354423986c459a129c7766","bf438063dd874afa8ff107c598283f3a","5c40b12536de4b1c88890483682d69c2","29606359888c45e18c31cbee006f19d6","ad5db95c13fe419fa5cf5860c1ccfb89","066c364ca2f34659a5813e8a8d1a9bf6","be824b2577a041df8d95fee61dd13617","813ce4ff18124ffcaab177438760726b","0ac4e4521298493bbf68ccc35de7f385"]},"executionInfo":{"status":"ok","timestamp":1717862311858,"user_tz":-60,"elapsed":5465,"user":{"displayName":"Gary Benson","userId":"04610266850028564176"}},"outputId":"4f091737-1deb-42a7-faf6-0b715cd5fd04"},"execution_count":5,"outputs":[{"output_type":"display_data","data":{"text/plain":["Uploading the dataset shards: 0%| | 0/1 [00:00<?, ?it/s]"],"application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"902b9b25ffe14977bbb31c543a18f9e5"}},"metadata":{}},{"output_type":"display_data","data":{"text/plain":["Creating parquet from Arrow format: 0%| | 0/1314 [00:00<?, ?ba/s]"],"application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"e8577a58407e4b24acae911e3fbf2c0a"}},"metadata":{}},{"output_type":"execute_result","data":{"text/plain":["CommitInfo(commit_url='https://huggingface.co/datasets/gbenson/webui-tokens-unlabelled/commit/523f24603953004750da736f083dfdc7264c7da7', commit_message='Upload dataset', commit_description='', oid='523f24603953004750da736f083dfdc7264c7da7', pr_url=None, pr_revision=None, pr_num=None)"],"application/vnd.google.colaboratory.intrinsic+json":{"type":"string"}},"metadata":{},"execution_count":5}]}]}