{"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.12.12"},"kaggle":{"accelerator":"gpu","dataSources":[{"sourceType":"competition","sourceId":121150,"databundleVersionId":15833391}],"dockerImageVersionId":31236,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true},"papermill":{"default_parameters":{},"duration":3870.55189,"end_time":"2025-12-18T07:43:25.319371","environment_variables":{},"exception":null,"input_path":"__notebook__.ipynb","output_path":"__notebook__.ipynb","parameters":{},"start_time":"2025-12-18T06:38:54.767481","version":"2.6.0"},"widgets":{"application/vnd.jupyter.widget-state+json":{"state":{"06ddd6effe974605b76c7b810df08d2e":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"07b49898304c40f68323c0f21a8b6d99":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"0896b8040e0549298457ec167a5633d8":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"09cbd0f7d8d34922b2528aa1d24869e0":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"09d77c856e434a56a882eaaa4be04298":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"0c942d27f585479bac20e036f6285697":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_324db65fd54446a9a9381ae079c647db","IPY_MODEL_d42448bfd9854b6382c50a4cb2abe816","IPY_MODEL_8d62ac9efef241bfbb81f497a45021b2"],"layout":"IPY_MODEL_a491bd513d7046d1b37307cf685fd3e6","tabbable":null,"tooltip":null}},"0f095d5dcd084700bd1c867f68e12b46":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"12e3da456b96492f9861efed20d44343":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"13c49b7127a648e2b21eaba05f105541":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"1ac9ca29a1974fd3af6286d4e3ca3446":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"1c6d315bd0b2420abf0bc14162873c72":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_30b7c1f663ed4038bc37a3d4fdb84af5","placeholder":"​","style":"IPY_MODEL_6da31c02025c439db703aa66a5124ea5","tabbable":null,"tooltip":null,"value":"config.json: 100%"}},"20250f77239c4a7fbea7d5580d544e49":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_68bfe4dbe24f4a0c8daae66420a10ec7","max":1,"min":0,"orientation":"horizontal","style":"IPY_MODEL_5f3775a58b9c4e529dc42788c2885634","tabbable":null,"tooltip":null,"value":1}},"25342f8769cf46cb9ed277a011d5e0f7":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_9e1d810da8ae4e7ea68dad629537468e","placeholder":"​","style":"IPY_MODEL_509b1c1679e348abae8c6fd05eca3e36","tabbable":null,"tooltip":null,"value":"tokenizer_config.json: "}},"26c5e2f1a5e24de7816930d6da1f8032":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"26f767aaaf324144bfce458fc45c9553":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_3a40f28a05a44d54bd66d0f639404734","max":1198627927,"min":0,"orientation":"horizontal","style":"IPY_MODEL_59870ca3bbcb459c97f643f8625b6532","tabbable":null,"tooltip":null,"value":1198627927}},"286c3ea3a77242b1ac01ecd9208eb1de":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_0f095d5dcd084700bd1c867f68e12b46","max":157,"min":0,"orientation":"horizontal","style":"IPY_MODEL_f6fd195c38124e608263530277f487e6","tabbable":null,"tooltip":null,"value":157}},"2872e78738ef4e9ea0eee0a67246000f":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"2ab938eb6f1d46b18993d59e00c6ac58":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_1c6d315bd0b2420abf0bc14162873c72","IPY_MODEL_4810edc81b9d4101a57a82baf4510efe","IPY_MODEL_af7eaf016992474eb544cdb670c033d3"],"layout":"IPY_MODEL_923b1190aeb94c68938e6ba2920384f9","tabbable":null,"tooltip":null}},"30b7c1f663ed4038bc37a3d4fdb84af5":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"324db65fd54446a9a9381ae079c647db":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_fe7e7a36737f43e985c786d0f30c44ac","placeholder":"​","style":"IPY_MODEL_824fd4787e5d4573b1ff373a14c34711","tabbable":null,"tooltip":null,"value":"Downloading builder script: "}},"32bef6e6618140ccb420e9596db02fe3":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_a16bcedcdade46369eb5aa5a856687bb","IPY_MODEL_286c3ea3a77242b1ac01ecd9208eb1de","IPY_MODEL_bd0ea3aa939149a88392c7e37401ab52"],"layout":"IPY_MODEL_615100c932bf4b02bc8f1f53b156a655","tabbable":null,"tooltip":null}},"35d2b02f912b4a0f8913cdef016cfaf0":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_add2c24748794c2897c6ec204ef0a566","max":1198571496,"min":0,"orientation":"horizontal","style":"IPY_MODEL_8fa03fc8e07e4f2595c00b67750e19ce","tabbable":null,"tooltip":null,"value":1198571496}},"37aa5033e9354176b421e502efa6a577":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"3947c6d427024a8a92cacd1f5c13d1e2":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":"20px"}},"3a40f28a05a44d54bd66d0f639404734":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"3b25439ab38745a085543f847be2c02f":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"3c27271501254da0b395d86448b3f2fe":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_25342f8769cf46cb9ed277a011d5e0f7","IPY_MODEL_20250f77239c4a7fbea7d5580d544e49","IPY_MODEL_8555e4650755493489739392fd4271cc"],"layout":"IPY_MODEL_7b096b05d9464860bf25eaf0b2239bac","tabbable":null,"tooltip":null}},"3cb9bee24de84d5baad41a882187bc70":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_589b5837299f49b5b4e3370d43579708","max":147,"min":0,"orientation":"horizontal","style":"IPY_MODEL_09cbd0f7d8d34922b2528aa1d24869e0","tabbable":null,"tooltip":null,"value":147}},"41ed6a46d6a6449c88b6b2b1b420709e":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"45217d7355b047dca8abb66ba183a82a":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"4810edc81b9d4101a57a82baf4510efe":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_07b49898304c40f68323c0f21a8b6d99","max":698,"min":0,"orientation":"horizontal","style":"IPY_MODEL_26c5e2f1a5e24de7816930d6da1f8032","tabbable":null,"tooltip":null,"value":698}},"4d5511a2c1314afc8233da111770b949":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"4f572e2635cc43cba8af8c21a8085856":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"509b1c1679e348abae8c6fd05eca3e36":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"5499bdfe082a4e0d9c6e7f6bf6d20a8e":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"556abed07b32442ebf02a9ead8b598d5":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"589b5837299f49b5b4e3370d43579708":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"59870ca3bbcb459c97f643f8625b6532":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"5be30bcd54d44debb7da71fe85c39c72":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_4d5511a2c1314afc8233da111770b949","max":1404,"min":0,"orientation":"horizontal","style":"IPY_MODEL_12e3da456b96492f9861efed20d44343","tabbable":null,"tooltip":null,"value":1404}},"5c0a3a06906043d89d889595d06d07ec":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"5f3775a58b9c4e529dc42788c2885634":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"615100c932bf4b02bc8f1f53b156a655":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"638ac321ffb4469dba780f7c31eb24b5":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_1ac9ca29a1974fd3af6286d4e3ca3446","placeholder":"​","style":"IPY_MODEL_e3819cd5db61473d806b9ecb5de6f022","tabbable":null,"tooltip":null,"value":" 147/147 [00:00&lt;00:00, 16.5kB/s]"}},"68bfe4dbe24f4a0c8daae66420a10ec7":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":"20px"}},"6da31c02025c439db703aa66a5124ea5":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"6f1aa91792c7470aae853194fcd61202":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"6f256a1fbc1a496bb7be2d7c71666aee":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"7135a156e5b84befa1da250b20cc2c28":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"73e1d208bb61463eba6453742c911e9c":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"7691c6dcde104421ba9a4d2b8c7e3862":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":"20px"}},"7b096b05d9464860bf25eaf0b2239bac":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"7e71dde019724aad820333749d1a33f7":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_7ee170d22ddd498f968c16287eeaad9a","placeholder":"​","style":"IPY_MODEL_f481aafcb5564665beb68899ebf0cae4","tabbable":null,"tooltip":null,"value":"special_tokens_map.json: "}},"7ee170d22ddd498f968c16287eeaad9a":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"824fd4787e5d4573b1ff373a14c34711":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"84036252ec294b2f94e5de18f2643b05":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"8412c644449540fead9b6c371978861e":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"8555e4650755493489739392fd4271cc":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_ffcb3cbe7a3d41d5b87e1891d4c296ce","placeholder":"​","style":"IPY_MODEL_09d77c856e434a56a882eaaa4be04298","tabbable":null,"tooltip":null,"value":" 2.59k/? [00:00&lt;00:00, 286kB/s]"}},"86ab377d471147ceb2e03ad21e757b29":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"8d62ac9efef241bfbb81f497a45021b2":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_d4b80402090f4066971ed520c5fba30e","placeholder":"​","style":"IPY_MODEL_ef5f1da80da74c4b925128f346100a0c","tabbable":null,"tooltip":null,"value":" 9.01k/? [00:00&lt;00:00, 410kB/s]"}},"8fa03fc8e07e4f2595c00b67750e19ce":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"923b1190aeb94c68938e6ba2920384f9":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"9e1d810da8ae4e7ea68dad629537468e":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"a0dcb37bbf2d4c828693ae28d866ae36":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"a16bcedcdade46369eb5aa5a856687bb":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_556abed07b32442ebf02a9ead8b598d5","placeholder":"​","style":"IPY_MODEL_c27412ca371141659db444657e017c49","tabbable":null,"tooltip":null,"value":"Map: 100%"}},"a2e87ae185714291a4e0ef7fee248a31":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_5499bdfe082a4e0d9c6e7f6bf6d20a8e","placeholder":"​","style":"IPY_MODEL_37aa5033e9354176b421e502efa6a577","tabbable":null,"tooltip":null,"value":" 2.50k/? [00:00&lt;00:00, 289kB/s]"}},"a491bd513d7046d1b37307cf685fd3e6":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"a555281edc464e2bb075847d17a0623f":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_c0e27ed47648484b9b60f11a51a77006","IPY_MODEL_5be30bcd54d44debb7da71fe85c39c72","IPY_MODEL_b0967cb6478b490288580dd1efcb772c"],"layout":"IPY_MODEL_2872e78738ef4e9ea0eee0a67246000f","tabbable":null,"tooltip":null}},"a6168ccee2ce40aea6130bcc71e65d78":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_8412c644449540fead9b6c371978861e","placeholder":"​","style":"IPY_MODEL_45217d7355b047dca8abb66ba183a82a","tabbable":null,"tooltip":null,"value":"model.safetensors: 100%"}},"ab2cf09d296d49ae8ee647e84faa895b":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_ca005e4db64b41769640d3e1752c3b94","placeholder":"​","style":"IPY_MODEL_5c0a3a06906043d89d889595d06d07ec","tabbable":null,"tooltip":null,"value":" 1.20G/1.20G [00:05&lt;00:00, 498MB/s]"}},"add2c24748794c2897c6ec204ef0a566":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"af7eaf016992474eb544cdb670c033d3":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_b7c3cde7af0b488e980352259b61d9df","placeholder":"​","style":"IPY_MODEL_7135a156e5b84befa1da250b20cc2c28","tabbable":null,"tooltip":null,"value":" 698/698 [00:00&lt;00:00, 68.4kB/s]"}},"b0967cb6478b490288580dd1efcb772c":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_fece47288304484b88910c42563a7e71","placeholder":"​","style":"IPY_MODEL_3b25439ab38745a085543f847be2c02f","tabbable":null,"tooltip":null,"value":" 1404/1404 [00:01&lt;00:00, 1025.74 examples/s]"}},"b0a4271dacb547c199497b4ff568b642":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"b7c3cde7af0b488e980352259b61d9df":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"b8e5d01de8624c849fea9e2ebaf52190":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"bb86eefd25ce45c79325eee993a9cd7b":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"bd0ea3aa939149a88392c7e37401ab52":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_b8e5d01de8624c849fea9e2ebaf52190","placeholder":"​","style":"IPY_MODEL_0896b8040e0549298457ec167a5633d8","tabbable":null,"tooltip":null,"value":" 157/157 [00:00&lt;00:00, 864.77 examples/s]"}},"bd40005ec8704745b4769a10fc79871c":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_13c49b7127a648e2b21eaba05f105541","placeholder":"​","style":"IPY_MODEL_6f1aa91792c7470aae853194fcd61202","tabbable":null,"tooltip":null,"value":"pytorch_model.bin: 100%"}},"c0e27ed47648484b9b60f11a51a77006":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_86ab377d471147ceb2e03ad21e757b29","placeholder":"​","style":"IPY_MODEL_e948c3b338c944d7b0f097159327432d","tabbable":null,"tooltip":null,"value":"Map: 100%"}},"c27412ca371141659db444657e017c49":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"ca005e4db64b41769640d3e1752c3b94":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"cd65c4b3e3884114b241282b28d2024e":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_ec1f9e69a1224aa5a55e0d5533a76b60","placeholder":"​","style":"IPY_MODEL_84036252ec294b2f94e5de18f2643b05","tabbable":null,"tooltip":null,"value":" 1.20G/1.20G [00:05&lt;00:00, 838MB/s]"}},"d118d8e000ca4c4582fa8861ac72a545":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_a6168ccee2ce40aea6130bcc71e65d78","IPY_MODEL_35d2b02f912b4a0f8913cdef016cfaf0","IPY_MODEL_ab2cf09d296d49ae8ee647e84faa895b"],"layout":"IPY_MODEL_06ddd6effe974605b76c7b810df08d2e","tabbable":null,"tooltip":null}},"d42448bfd9854b6382c50a4cb2abe816":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_3947c6d427024a8a92cacd1f5c13d1e2","max":1,"min":0,"orientation":"horizontal","style":"IPY_MODEL_73e1d208bb61463eba6453742c911e9c","tabbable":null,"tooltip":null,"value":1}},"d4b80402090f4066971ed520c5fba30e":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"e0cecf7838ef4aa9b30e091a682d4806":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_fc50f759b1194f85bf79a2f13d679631","IPY_MODEL_3cb9bee24de84d5baad41a882187bc70","IPY_MODEL_638ac321ffb4469dba780f7c31eb24b5"],"layout":"IPY_MODEL_6f256a1fbc1a496bb7be2d7c71666aee","tabbable":null,"tooltip":null}},"e362d0f5ccc1418ba84c0c3e0d00acb8":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_7e71dde019724aad820333749d1a33f7","IPY_MODEL_f22c61966a484688a485f32c3d7839c6","IPY_MODEL_a2e87ae185714291a4e0ef7fee248a31"],"layout":"IPY_MODEL_41ed6a46d6a6449c88b6b2b1b420709e","tabbable":null,"tooltip":null}},"e3819cd5db61473d806b9ecb5de6f022":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"e5e1cf5487d2487ca531215d2762bb9d":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HBoxModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_bd40005ec8704745b4769a10fc79871c","IPY_MODEL_26f767aaaf324144bfce458fc45c9553","IPY_MODEL_cd65c4b3e3884114b241282b28d2024e"],"layout":"IPY_MODEL_bb86eefd25ce45c79325eee993a9cd7b","tabbable":null,"tooltip":null}},"e948c3b338c944d7b0f097159327432d":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"ec1f9e69a1224aa5a55e0d5533a76b60":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"ef5f1da80da74c4b925128f346100a0c":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"f22c61966a484688a485f32c3d7839c6":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"FloatProgressModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"ProgressView","bar_style":"success","description":"","description_allow_html":false,"layout":"IPY_MODEL_7691c6dcde104421ba9a4d2b8c7e3862","max":1,"min":0,"orientation":"horizontal","style":"IPY_MODEL_b0a4271dacb547c199497b4ff568b642","tabbable":null,"tooltip":null,"value":1}},"f481aafcb5564665beb68899ebf0cae4":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","background":null,"description_width":"","font_size":null,"text_color":null}},"f6fd195c38124e608263530277f487e6":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"ProgressStyleModel","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"fc50f759b1194f85bf79a2f13d679631":{"model_module":"@jupyter-widgets/controls","model_module_version":"2.0.0","model_name":"HTMLModel","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"2.0.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"2.0.0","_view_name":"HTMLView","description":"","description_allow_html":false,"layout":"IPY_MODEL_4f572e2635cc43cba8af8c21a8085856","placeholder":"​","style":"IPY_MODEL_a0dcb37bbf2d4c828693ae28d866ae36","tabbable":null,"tooltip":null,"value":"generation_config.json: 100%"}},"fe7e7a36737f43e985c786d0f30c44ac":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"fece47288304484b88910c42563a7e71":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"ffcb3cbe7a3d41d5b87e1891d4c296ce":{"model_module":"@jupyter-widgets/base","model_module_version":"2.0.0","model_name":"LayoutModel","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"2.0.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"2.0.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border_bottom":null,"border_left":null,"border_right":null,"border_top":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,"padding":null,"right":null,"top":null,"visibility":null,"width":null}}},"version_major":2,"version_minor":0}}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# Deep Past Initiative – Machine Translation (Training Notebook)\n\nThis notebook is copied and edited from: [DPC Starter Train](https://www.kaggle.com/code/takamichitoda/dpc-starter-train)\n","metadata":{}},{"cell_type":"code","source":"!pip install evaluate sacrebleu\n!pip install evaluate","metadata":{"_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","execution":{"iopub.status.busy":"2026-03-26T14:34:34.691733Z","iopub.execute_input":"2026-03-26T14:34:34.691924Z","iopub.status.idle":"2026-03-26T14:34:42.874699Z","shell.execute_reply.started":"2026-03-26T14:34:34.691905Z","shell.execute_reply":"2026-03-26T14:34:42.873602Z"},"papermill":{"duration":5.195469,"end_time":"2025-12-18T06:39:02.528153","exception":false,"start_time":"2025-12-18T06:38:57.332684","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"import os\nimport gc\nimport re\nimport pandas as pd\nimport numpy as np\nimport torch\nfrom sklearn.model_selection import train_test_split\nfrom datasets import Dataset\nfrom transformers import (\n    AutoTokenizer, \n    AutoModelForSeq2SeqLM, \n    DataCollatorForSeq2Seq, \n    Seq2SeqTrainingArguments, \n    Seq2SeqTrainer\n)\nfrom sentence_transformers import SentenceTransformer, util\nimport evaluate\nimport sacrebleu\nimport math","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:34:42.876875Z","iopub.execute_input":"2026-03-26T14:34:42.877174Z","iopub.status.idle":"2026-03-26T14:35:12.850193Z","shell.execute_reply.started":"2026-03-26T14:34:42.877145Z","shell.execute_reply":"2026-03-26T14:35:12.849597Z"},"papermill":{"duration":32.26918,"end_time":"2025-12-18T06:39:34.800016","exception":false,"start_time":"2025-12-18T06:39:02.530836","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"class Config:\n    # Akkadian transliteration contains a lot of noise and many unknown words, so\n    # ByT5, which processes text at the character (byte) level rather than the word level, is the strongest choice.\n    MODEL_NAME = \"google/byt5-small\" \n    \n    # ByT5 tends to produce longer token sequences, but 512 tokens is enough at the sentence level.\n    MAX_LENGTH = 512\n    \n    BATCH_SIZE = 16       # Adjust depending on GPU memory (on a P100 you can usually go with 8–16).\n    EPOCHS = 20\n    LEARNING_RATE = 2e-4\n    OUTPUT_DIR = \"./byt5-akkadian-model\"","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:12.851091Z","iopub.execute_input":"2026-03-26T14:35:12.851806Z","iopub.status.idle":"2026-03-26T14:35:12.855975Z","shell.execute_reply.started":"2026-03-26T14:35:12.851764Z","shell.execute_reply":"2026-03-26T14:35:12.855212Z"},"papermill":{"duration":0.008757,"end_time":"2025-12-18T06:39:34.811471","exception":false,"start_time":"2025-12-18T06:39:34.802714","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"markdown","source":"Compiled regex patterns:","metadata":{}},{"cell_type":"code","source":"class CompiledPatterns:\n    \"\"\"Pre-compile all regex patterns once at import time\"\"\"\n    \n    # Input preprocessing\n    BIG_GAP_INPUT = re.compile(r'(\\.{3,}|…+|……)')\n    SMALL_GAP_INPUT = re.compile(r'(xx+|\\s+x\\s+)')\n    \n    # Output postprocessing\n    AKKADIAN_GAP = re.compile(r'(\\[x\\]|\\(x\\)|\\bx\\b)', re.I)\n    BIG_GAP_OUTPUT = re.compile(r'(\\.{3,}|…|\\[\\.+\\])')\n    MERGE_GAPS = re.compile(r'<gap>\\s*<gap>')\n    MERGE_BIG_GAPS = re.compile(r'<big_gap>\\s*<big_gap>')\n    GRAMMAR_ANNOTATIONS = re.compile(\n        r'\\((fem|plur|pl|sing|singular|plural|\\?|!)\\.?\\s*\\w*\\)', re.I\n    )\n    REPEATED_WORDS = re.compile(r'\\b(\\w+)(?:\\s+\\1\\b)+')\n    SPACE_BEFORE_PUNCT = re.compile(r'\\s+([.,:])')\n    REPEATED_PUNCT = re.compile(r'([.,])\\1+')\n    MULTI_SPACE = re.compile(r'\\s+')\n    \n    # N-gram dedup (pre-compiled for sizes 4,3,2)\n    NGRAM_PATTERNS = [\n        re.compile(r'\\b((?:\\w+\\s+){' + str(n-1) + r'}\\w+)(?:\\s+\\1\\b)+')\n        for n in range(4, 1, -1)\n    ]\n    \n    # Fraction patterns (KEEP QUIRKY VALUES!)\n    FRACTION_PATTERNS = [\n        (re.compile(r'(\\d+)\\.5\\b'), r'\\1 ½'),\n        (re.compile(r'(\\d+)\\.25\\b'), r'\\1 ¼'),\n        (re.compile(r'(\\d+)\\.75\\b'), r'\\1 ¾'),\n        (re.compile(r'(\\d+)\\.33+\\d*\\b'), r'\\1 ⅓'),  # Quirky - kept as-is\n        (re.compile(r'(\\d+)\\.66+\\d*\\b'), r'\\1 ⅔'),  # Quirky - kept as-is\n        (re.compile(r'\\b0\\.5\\b'), '½'),\n        (re.compile(r'\\b0\\.25\\b'), '¼'),\n        (re.compile(r'\\b0\\.75\\b'), '¾'),\n        (re.compile(r'\\b0\\.33+\\d*\\b'), '⅓'),\n        (re.compile(r'\\b0\\.66+\\d*\\b'), '⅔'),\n    ]\n\nPATTERNS = CompiledPatterns()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-03-26T14:35:12.857085Z","iopub.execute_input":"2026-03-26T14:35:12.857393Z","iopub.status.idle":"2026-03-26T14:35:12.906813Z","shell.execute_reply.started":"2026-03-26T14:35:12.857362Z","shell.execute_reply":"2026-03-26T14:35:12.906027Z"}},"outputs":[],"execution_count":null},{"cell_type":"markdown","source":"Preprocess and postprocess functions:","metadata":{}},{"cell_type":"code","source":"# Own code, with assistance from Google Gemini\ndef implement_lexicon(transliteration_text):\n    INPUT_DIR = \"/kaggle/input/deep-past-initiative-machine-translation\"\n    df = pd.read_csv(f\"{INPUT_DIR}/OA_Lexicon_eBL.csv\")\n    \n    subset = df.loc[df['type'] == 'PN', ['form', 'norm']].dropna().drop_duplicates()\n    names = subset.values.tolist()\n    names.sort(key=lambda x: len(str(x[0])), reverse=True)\n    \n    name_map = {}\n    processed_text = transliteration_text\n    \n    counter = 0\n    for form, norm in names:\n        form_str = str(form)\n        if len(form_str) <= 2:\n            continue\n            \n        pattern = re.compile(rf'(?<!\\S){re.escape(form_str)}(?!\\S)')\n        \n        if pattern.search(processed_text):\n            placeholder = f\"PN_{counter}\"\n            name_map[placeholder] = str(norm)\n            processed_text = pattern.sub(placeholder, processed_text)\n            \n            counter += 1\n            if counter >= 20: \n                break\n                \n    return processed_text, name_map\n\ndef restore_names(translated_text, name_map):\n    restored_text = translated_text\n    for placeholder, original_name in name_map.items():\n        restored_text = restored_text.replace(placeholder, original_name)\n    return restored_text\n\n# End of own code","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-03-26T14:35:12.907715Z","iopub.execute_input":"2026-03-26T14:35:12.907979Z","iopub.status.idle":"2026-03-26T14:35:12.921258Z","shell.execute_reply.started":"2026-03-26T14:35:12.907954Z","shell.execute_reply":"2026-03-26T14:35:12.920574Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"# Fix the seed (for reproducibility).\ndef seed_everything(seed=42):\n    torch.manual_seed(seed)\n    np.random.seed(seed)\n    torch.cuda.manual_seed(seed)\n    \nseed_everything()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-03-26T14:35:12.922250Z","iopub.execute_input":"2026-03-26T14:35:12.922878Z","iopub.status.idle":"2026-03-26T14:35:12.939740Z","shell.execute_reply.started":"2026-03-26T14:35:12.922854Z","shell.execute_reply":"2026-03-26T14:35:12.938989Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"\ndef preprocess_input_text(transliteration_text):\n    \"\"\"Optimized with pre-compiled patterns\"\"\"\n    if pd.isna(transliteration_text):\n        return \"\"\n    \n    text = str(transliteration_text)\n    text = PATTERNS.BIG_GAP_INPUT.sub('<big_gap>', text)\n    text = PATTERNS.SMALL_GAP_INPUT.sub('<gap>', text)\n    text = implement_lexicon(transliteration_text) #should have been text, name_map and name_map should have been stored such that it could \n    # have been called in postprocessing, and might have been better to call earlier\n    return text\n\n# ============================================\n# OPTIMIZED POSTPROCESSING (~5x faster)\n# ============================================\n\n# Pre-create translation tables (created once)\nSUBSCRIPT_TABLE = str.maketrans(\"₀₁₂₃₄₅₆₇₈₉\", \"0123456789\")\nFORBIDDEN_CHARS_TABLE = str.maketrans('', '', '!?()\"—Loss–<>⌈⌋⌊[]+ʾ/;')\n\ndef postprocess_translation_output(translation_text):\n    \"\"\"\n    Optimized postprocessing with pre-compiled patterns\n    ~5x faster than original due to regex pre-compilation\n    \"\"\"\n    if not isinstance(translation_text, str) or not translation_text.strip():\n        return \"\"\n    \n    text = translation_text\n    \n    # Step 1: Normalize Akkadian characters\n    text = text.replace('ḫ', 'h').replace('Ḫ', 'H')\n    \n    # Step 2: Subscript conversion (pre-created table)\n    text = text.translate(SUBSCRIPT_TABLE)\n    \n    # Step 3-4: Gap normalization (pre-compiled)\n    text = PATTERNS.AKKADIAN_GAP.sub('<gap>', text)\n    text = PATTERNS.BIG_GAP_OUTPUT.sub('<big_gap>', text)\n    text = PATTERNS.MERGE_GAPS.sub(' <big_gap> ', text)\n    text = PATTERNS.MERGE_BIG_GAPS.sub(' <big_gap> ', text)\n    \n    # Step 5: Remove grammar annotations\n    text = PATTERNS.GRAMMAR_ANNOTATIONS.sub('', text)\n    \n    # Step 6-8: Protect gaps, remove forbidden, restore\n    text = text.replace('<gap>', '\\x00GAP\\x00').replace('<big_gap>', '\\x00BIG\\x00')\n    text = text.translate(FORBIDDEN_CHARS_TABLE)\n    text = text.replace('\\x00GAP\\x00', ' <gap> ').replace('\\x00BIG\\x00', ' <big_gap> ')\n    # Restore Names should have been called here\n    \n    # Step 9: Fraction conversion (pre-compiled patterns)\n    for pattern, replacement in PATTERNS.FRACTION_PATTERNS:\n        text = pattern.sub(replacement, text)\n    \n    # Step 10: Remove repeated words\n    text = PATTERNS.REPEATED_WORDS.sub(r'\\1', text)\n    \n    # Step 11: Remove repeated n-grams (pre-compiled)\n    for ngram_pattern in PATTERNS.NGRAM_PATTERNS:\n        text = ngram_pattern.sub(r'\\1', text)\n    \n    # Step 12-13: Final cleanup\n    text = PATTERNS.SPACE_BEFORE_PUNCT.sub(r'\\1', text)\n    text = PATTERNS.REPEATED_PUNCT.sub(r'\\1', text)\n    text = PATTERNS.MULTI_SPACE.sub(' ', text).strip().strip('-').strip()\n    \n    return text","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-03-26T14:35:12.941688Z","iopub.execute_input":"2026-03-26T14:35:12.941963Z","iopub.status.idle":"2026-03-26T14:35:12.950793Z","shell.execute_reply.started":"2026-03-26T14:35:12.941940Z","shell.execute_reply":"2026-03-26T14:35:12.950043Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"INPUT_DIR = \"/kaggle/input/deep-past-initiative-machine-translation\"\ntrain_df = pd.read_csv(f\"{INPUT_DIR}/train.csv\")\ntest_df = pd.read_csv(f\"{INPUT_DIR}/test.csv\")","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:12.951811Z","iopub.execute_input":"2026-03-26T14:35:12.952056Z","iopub.status.idle":"2026-03-26T14:35:13.019654Z","shell.execute_reply.started":"2026-03-26T14:35:12.952035Z","shell.execute_reply":"2026-03-26T14:35:13.018811Z"},"papermill":{"duration":0.064163,"end_time":"2025-12-18T06:39:34.891536","exception":false,"start_time":"2025-12-18T06:39:34.827373","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"print(f\"Original Train Data: {len(train_df)} docs\")","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:13.020790Z","iopub.execute_input":"2026-03-26T14:35:13.021152Z","iopub.status.idle":"2026-03-26T14:35:13.025359Z","shell.execute_reply.started":"2026-03-26T14:35:13.021114Z","shell.execute_reply":"2026-03-26T14:35:13.024590Z"},"papermill":{"duration":0.008111,"end_time":"2025-12-18T06:39:34.901991","exception":false,"start_time":"2025-12-18T06:39:34.89388","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"def simple_sentence_aligner(df):\n    \"\"\"\n    【戦略の肝】\n    Trainデータの「文書(複数文)」を、Testデータと同じ「文(1文)」に分割します。\n    ここでは「英語の文数」と「アッカド語の行数」が一致する場合のみ分割する\n    というヒューリスティック（簡易ルール）を使います。\n    \"\"\"\n    aligned_data = []\n    \n    for idx, row in df.iterrows():\n        src = str(row['transliteration'])\n        tgt = str(row['translation'])\n        \n        # Split the English text by sentence-ending punctuation.\n        tgt_sents = [t.strip() for t in re.split(r'(?<=[.!?])\\s+', tgt) if t.strip()]\n        \n        # Assume the Akkadian text is often separated by newlines and split accordingly.\n        src_lines = [s.strip() for s in src.split('\\n') if s.strip()]\n        \n        # If the counts match, trust it as 1-to-1 pairs and use the split version.\n        if len(tgt_sents) > 1 and len(tgt_sents) == len(src_lines):\n            for s, t in zip(src_lines, tgt_sents):\n                if len(s) > 3 and len(t) > 3: # Remove junk/noisy data.\n                    aligned_data.append({'transliteration': s, 'translation': t})\n        else:\n            # If splitting fails (counts don't match), keep the original document pair as-is (safe fallback).\n            aligned_data.append({'transliteration': src, 'translation': tgt})\n            \n    return pd.DataFrame(aligned_data)\n","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:13.026382Z","iopub.execute_input":"2026-03-26T14:35:13.026698Z","iopub.status.idle":"2026-03-26T14:35:13.039652Z","shell.execute_reply.started":"2026-03-26T14:35:13.026677Z","shell.execute_reply":"2026-03-26T14:35:13.038984Z"},"papermill":{"duration":0.010612,"end_time":"2025-12-18T06:39:34.914968","exception":false,"start_time":"2025-12-18T06:39:34.904356","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"# Run data augmentation.\ntrain_expanded = simple_sentence_aligner(train_df)\nprint(f\"Expanded Train Data: {len(train_expanded)} sentences (Alignment applied)\")\n\n# Convert to Hugging Face Dataset format & split into Train/Val.\ndataset = Dataset.from_pandas(train_expanded)\n# Create a validation set with test_size=0.1.\nsplit_datasets = dataset.train_test_split(test_size=0.1, seed=42)\n# After splitting, the keys are 'train' and 'test' (we'll use 'test' as validation).\n","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:13.040568Z","iopub.execute_input":"2026-03-26T14:35:13.040805Z","iopub.status.idle":"2026-03-26T14:35:13.207358Z","shell.execute_reply.started":"2026-03-26T14:35:13.040783Z","shell.execute_reply":"2026-03-26T14:35:13.206643Z"},"papermill":{"duration":0.13294,"end_time":"2025-12-18T06:39:35.050272","exception":false,"start_time":"2025-12-18T06:39:34.917332","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"# ==========================================\n# 3. Tokenization & preprocessing\n# ==========================================\ntokenizer = AutoTokenizer.from_pretrained(Config.MODEL_NAME)\n\n# Own Code\nname_placeholders = [f\"PN_{i}\" for i in range(20)]\n\nspecial_tokens_dict = {'additional_special_tokens': name_placeholders}\nnum_added_toks = tokenizer.add_special_tokens(special_tokens_dict)\n# End of own code\n\n# Fix the corresponding section in dpc-starter-train.\nPREFIX = \"translate Akkadian to English: \"\n\ndef preprocess_function(examples):\n    inputs = [PREFIX + str(ex) for ex in examples[\"transliteration\"]]\n    targets = [str(ex) for ex in examples[\"translation\"]]\n    \n    model_inputs = tokenizer(inputs, max_length=Config.MAX_LENGTH, truncation=True)\n    labels = tokenizer(targets, max_length=Config.MAX_LENGTH, truncation=True)\n    \n    model_inputs[\"labels\"] = labels[\"input_ids\"]\n    return model_inputs\n\n    #own code:\n    masked_src, n_map = implement_lexicon(translit_text)\n    masked_tgt = translation_text\n\n    for placeholder, original in n_map.items():\n        masked_tgt = masked_tgt.replace(original, placeholder)\n\n#end of own code\nreduced_train = split_datasets[\"train\"].shuffle(seed=42).select(range(200))\nreduced_val = split_datasets[\"test\"].shuffle(seed=42).select(range(50))\n\n\ntokenized_train = reduced_train.map(preprocess_function, batched=True)\ntokenized_val = reduced_val.map(preprocess_function, batched=True)\n","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:13.208372Z","iopub.execute_input":"2026-03-26T14:35:13.208779Z","iopub.status.idle":"2026-03-26T14:35:14.400438Z","shell.execute_reply.started":"2026-03-26T14:35:13.208744Z","shell.execute_reply":"2026-03-26T14:35:14.399576Z"},"papermill":{"duration":3.481316,"end_time":"2025-12-18T06:39:38.534136","exception":false,"start_time":"2025-12-18T06:39:35.05282","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"# ==========================================\n# 4. Model training (fine-tuning)\n# ==========================================\ngc.collect()\ntorch.cuda.empty_cache()\nmodel = AutoModelForSeq2SeqLM.from_pretrained(Config.MODEL_NAME)\n# Own code\nmodel.resize_token_embeddings(len(tokenizer))\n# End of own code\ndata_collator = DataCollatorForSeq2Seq(tokenizer, model=model)\n\n# Metric (chrF++ is part of the competition metric and measures character-level precision/overlap).\nmetric = evaluate.load(\"chrf\")\n\ndef compute_metrics(eval_preds):\n    preds, labels = eval_preds\n    if isinstance(preds, tuple): preds = preds[0]\n    \n    decoded_preds = tokenizer.batch_decode(preds, skip_special_tokens=True)\n    # Ignore -100 in the labels.\n    labels = np.where(labels != -100, labels, tokenizer.pad_token_id)\n    decoded_labels = tokenizer.batch_decode(labels, skip_special_tokens=True)\n    \n    decoded_preds = [pred.strip() for pred in decoded_preds]\n    decoded_labels = [[label.strip()] for label in decoded_labels]\n    \n    result = metric.compute(predictions=decoded_preds, references=decoded_labels)\n    return {\"chrf\": result[\"score\"]}\n\nargs = Seq2SeqTrainingArguments(\n    output_dir=Config.OUTPUT_DIR,\n    eval_strategy=\"epoch\",\n    save_strategy=\"epoch\",\n    learning_rate=Config.LEARNING_RATE,\n    \n    # === Key fixes ===\n    fp16=False,                     # ★Set to False to prevent a NaN error (required).\n    per_device_train_batch_size=4,  # ★fp32 uses more memory, so reduce the batch size (8 -> 4).\n    per_device_eval_batch_size=4,\n    gradient_accumulation_steps=2,  # ★To compensate, accumulate gradients to keep the effective batch size at 8.\n    # ======================\n    \n    weight_decay=0.01,\n    save_total_limit=2,\n    num_train_epochs=Config.EPOCHS,\n    predict_with_generate=True,\n    logging_steps=10,               # Inspect logs in more detail.\n    report_to=\"none\"\n)\n\ntrainer = Seq2SeqTrainer(\n    model=model,\n    args=args,\n    train_dataset=tokenized_train,\n    eval_dataset=tokenized_val,\n    data_collator=data_collator,\n    tokenizer=tokenizer,\n    compute_metrics=compute_metrics\n)\n\nprint(\"Starting Training (FP32 mode)...\")\ntrainer.train()\n","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:35:14.401543Z","iopub.execute_input":"2026-03-26T14:35:14.401822Z","iopub.status.idle":"2026-03-26T14:50:14.196180Z","shell.execute_reply.started":"2026-03-26T14:35:14.401796Z","shell.execute_reply":"2026-03-26T14:50:14.195314Z"},"papermill":{"duration":3815.090022,"end_time":"2025-12-18T07:43:13.627558","exception":false,"start_time":"2025-12-18T06:39:38.537536","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"# --- Save Model ---\n# Important: the model saved here will be loaded in the next notebook.\ntrainer.save_model(Config.OUTPUT_DIR)\ntokenizer.save_pretrained(Config.OUTPUT_DIR)\nprint(f\"Model saved to {Config.OUTPUT_DIR}\")\n","metadata":{"execution":{"iopub.status.busy":"2026-03-26T14:50:14.197460Z","iopub.execute_input":"2026-03-26T14:50:14.197877Z","iopub.status.idle":"2026-03-26T14:50:16.537267Z","shell.execute_reply.started":"2026-03-26T14:50:14.197848Z","shell.execute_reply":"2026-03-26T14:50:16.536222Z"},"papermill":{"duration":8.315075,"end_time":"2025-12-18T07:43:21.974867","exception":false,"start_time":"2025-12-18T07:43:13.659792","status":"completed"},"tags":[],"trusted":true},"outputs":[],"execution_count":null}]}