cnlps-caiccaic/handin_mj_11_2.ipynb
2023-06-08 20:23:57 +02:00

4946 lines
167 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"gpuType": "T4"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU",
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"36804dd34495452dad1dcdecee7c6006": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_e790324c0d3f4720a8c600d7b3c0352d",
"IPY_MODEL_35e0331a5e664d00a7474a0c5633846d",
"IPY_MODEL_138844ef275b4a6b92d24990e47846e7"
],
"layout": "IPY_MODEL_55d88d908e664b8fb5d4aaa3df9a45df"
}
},
"e790324c0d3f4720a8c600d7b3c0352d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_6c564d089e3c471897fd4aca12b8783e",
"placeholder": "",
"style": "IPY_MODEL_7797ad41dbdb4b10990b89c3adae141b",
"value": "Downloading (…)okenizer_config.json: 100%"
}
},
"35e0331a5e664d00a7474a0c5633846d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_5b4f8e68336b4c72bca898b980a00de4",
"max": 2539,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_32adbd01b207482f98b2a7c42d66ae48",
"value": 2539
}
},
"138844ef275b4a6b92d24990e47846e7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ae3bdaed05bf48b1844765c0eadac847",
"placeholder": "",
"style": "IPY_MODEL_b4e15f63840a45f4be5bd63388bf6fe4",
"value": " 2.54k/2.54k [00:00<00:00, 113kB/s]"
}
},
"55d88d908e664b8fb5d4aaa3df9a45df": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"6c564d089e3c471897fd4aca12b8783e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"7797ad41dbdb4b10990b89c3adae141b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"5b4f8e68336b4c72bca898b980a00de4": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"32adbd01b207482f98b2a7c42d66ae48": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"ae3bdaed05bf48b1844765c0eadac847": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b4e15f63840a45f4be5bd63388bf6fe4": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"46855a1011a44ffe98a4af6731c1c0ea": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_0ef322e1b9674a308231f8359b6e2a37",
"IPY_MODEL_29812c1e0b2b4ec5bae4fc5b7ec5906e",
"IPY_MODEL_2a66bc36a8c948a5a6dd79661ffb8ea7"
],
"layout": "IPY_MODEL_434feed6330743feb918d2b4f20a852b"
}
},
"0ef322e1b9674a308231f8359b6e2a37": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_5d544a1cf5b140249260fb6698bcac95",
"placeholder": "",
"style": "IPY_MODEL_b17fe70b4e1846d3bc598f8669b8bdb1",
"value": "Downloading spiece.model: 100%"
}
},
"29812c1e0b2b4ec5bae4fc5b7ec5906e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a14aa0a6b7a441399877ad7e8a38137b",
"max": 791656,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_f0514c2683bb42018e38a18e609c86cd",
"value": 791656
}
},
"2a66bc36a8c948a5a6dd79661ffb8ea7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_89709f42e5224fb3bb2a88c34e58bca1",
"placeholder": "",
"style": "IPY_MODEL_50e074b7b73a4b5d822d798e21947762",
"value": " 792k/792k [00:00<00:00, 20.8MB/s]"
}
},
"434feed6330743feb918d2b4f20a852b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"5d544a1cf5b140249260fb6698bcac95": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b17fe70b4e1846d3bc598f8669b8bdb1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"a14aa0a6b7a441399877ad7e8a38137b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f0514c2683bb42018e38a18e609c86cd": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"89709f42e5224fb3bb2a88c34e58bca1": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"50e074b7b73a4b5d822d798e21947762": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"ff8dd4f2dc3f4e8d80cafe94bb14ea49": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_83772061c4a44aa6a5b663108d08070e",
"IPY_MODEL_0acad7b2dbc34a35b4ac62c5cf8c57f9",
"IPY_MODEL_1cc936f1edeb410ebeaa16828afe4da5"
],
"layout": "IPY_MODEL_e0b415a7fc544ca4a7544a59f712b966"
}
},
"83772061c4a44aa6a5b663108d08070e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_590df66d2c7d40a59ff362f3e8c1a57c",
"placeholder": "",
"style": "IPY_MODEL_1548b3eabb4c47f4811b6af771b5b4f7",
"value": "Downloading (…)/main/tokenizer.json: 100%"
}
},
"0acad7b2dbc34a35b4ac62c5cf8c57f9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f970c07e0912454ebd8b30a80681fce7",
"max": 2424064,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_48198c6bca7a475c8e62533e80b70ba5",
"value": 2424064
}
},
"1cc936f1edeb410ebeaa16828afe4da5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_7fb0bb6d913e419989bc41d9064397ed",
"placeholder": "",
"style": "IPY_MODEL_b88175a9d9c648b5b5b35092d68f8346",
"value": " 2.42M/2.42M [00:00<00:00, 4.92MB/s]"
}
},
"e0b415a7fc544ca4a7544a59f712b966": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"590df66d2c7d40a59ff362f3e8c1a57c": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1548b3eabb4c47f4811b6af771b5b4f7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"f970c07e0912454ebd8b30a80681fce7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"48198c6bca7a475c8e62533e80b70ba5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"7fb0bb6d913e419989bc41d9064397ed": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b88175a9d9c648b5b5b35092d68f8346": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"152a2400561040518048805ff3f37fc5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_268b349317c948a28c993968376dd331",
"IPY_MODEL_416f8540e05e492fb6badc55fb7b5ff4",
"IPY_MODEL_a98654cc1844488fa4348661f9086a0b"
],
"layout": "IPY_MODEL_1eabc4111eae481480f362dba641d322"
}
},
"268b349317c948a28c993968376dd331": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_69061df3063f4de4a75fcb3a52c56285",
"placeholder": "",
"style": "IPY_MODEL_63420fd47ea24d3b8bd8532856551b24",
"value": "Downloading (…)cial_tokens_map.json: 100%"
}
},
"416f8540e05e492fb6badc55fb7b5ff4": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_cf82fa8a8c09472a918b86700ae97bea",
"max": 2201,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_c0426247be61440199fbe3bf2de11e24",
"value": 2201
}
},
"a98654cc1844488fa4348661f9086a0b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_cd9fba630a914907a9fdc9adc04d9b2d",
"placeholder": "",
"style": "IPY_MODEL_df7dca53ab3340a3a0599440947fcac1",
"value": " 2.20k/2.20k [00:00<00:00, 187kB/s]"
}
},
"1eabc4111eae481480f362dba641d322": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"69061df3063f4de4a75fcb3a52c56285": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"63420fd47ea24d3b8bd8532856551b24": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"cf82fa8a8c09472a918b86700ae97bea": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c0426247be61440199fbe3bf2de11e24": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"cd9fba630a914907a9fdc9adc04d9b2d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"df7dca53ab3340a3a0599440947fcac1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"d30362d5e51c41348cf7998c6716f53f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_5c9dc7a349d8498096bcebdd20338936",
"IPY_MODEL_49549c623ea245c19af928b8509b1a14",
"IPY_MODEL_6798d8bd2608481d9e72dda1a1c47e44"
],
"layout": "IPY_MODEL_d1a625388dc246018af0e5a17d4aa819"
}
},
"5c9dc7a349d8498096bcebdd20338936": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_bc8a5577c5904c3898099dc0afa8cbe1",
"placeholder": "",
"style": "IPY_MODEL_9fd49ca71655406d92ffc0449f9c3c51",
"value": "Downloading (…)lve/main/config.json: 100%"
}
},
"49549c623ea245c19af928b8509b1a14": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f978169bf5c34f3a9341212e26532c0e",
"max": 662,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_ea4da54ba189460c8fc95865647b00e4",
"value": 662
}
},
"6798d8bd2608481d9e72dda1a1c47e44": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_8d5ab085fdeb40a58174a93fc25b7eb8",
"placeholder": "",
"style": "IPY_MODEL_d9b4eac446274cdfa6915cbd7d2a7b3a",
"value": " 662/662 [00:00<00:00, 21.0kB/s]"
}
},
"d1a625388dc246018af0e5a17d4aa819": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"bc8a5577c5904c3898099dc0afa8cbe1": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"9fd49ca71655406d92ffc0449f9c3c51": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"f978169bf5c34f3a9341212e26532c0e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"ea4da54ba189460c8fc95865647b00e4": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"8d5ab085fdeb40a58174a93fc25b7eb8": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d9b4eac446274cdfa6915cbd7d2a7b3a": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"3d93b25960d2482b8a5ae31f772ff3b3": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_5d992a07a8ce43cfa5dd843728f37075",
"IPY_MODEL_a61a6d0c3a9b43159468e3ebf2f44ee0",
"IPY_MODEL_f395c83bd55443449af23ccc29fa5e18"
],
"layout": "IPY_MODEL_2ea35434cbf4451db22faf63900e255d"
}
},
"5d992a07a8ce43cfa5dd843728f37075": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_fc721e11600248f692501fec9cd1c7c4",
"placeholder": "",
"style": "IPY_MODEL_c2b55cb44a064726823537251c298111",
"value": "Downloading pytorch_model.bin: 100%"
}
},
"a61a6d0c3a9b43159468e3ebf2f44ee0": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_2f5e8d2a03d84b619ab913a370cf0beb",
"max": 3132781861,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_137ca2d2ace545a08206f0422b45d44f",
"value": 3132781861
}
},
"f395c83bd55443449af23ccc29fa5e18": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_8ab44c4b2d29449bbbbf57d403e5f62d",
"placeholder": "",
"style": "IPY_MODEL_6e980c52e8c64103abb8805cb41b4389",
"value": " 3.13G/3.13G [00:26<00:00, 35.1MB/s]"
}
},
"2ea35434cbf4451db22faf63900e255d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fc721e11600248f692501fec9cd1c7c4": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c2b55cb44a064726823537251c298111": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"2f5e8d2a03d84b619ab913a370cf0beb": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"137ca2d2ace545a08206f0422b45d44f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"8ab44c4b2d29449bbbbf57d403e5f62d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"6e980c52e8c64103abb8805cb41b4389": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"098530349bd643acaf1b3ce4d8378d38": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_38f1803418004bd69036f94371bdb414",
"IPY_MODEL_13ac4f0841b14b1b87b2bf2daf3443bf",
"IPY_MODEL_8e19215e241c482f9fea7a36dc979531"
],
"layout": "IPY_MODEL_ef64e74b85d44f579dce6132c35452f4"
}
},
"38f1803418004bd69036f94371bdb414": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_504c68ff3b8a4f00b0fa24fd563f39e7",
"placeholder": "",
"style": "IPY_MODEL_23e2628bd5514aa18b2b6777f191e24b",
"value": "Downloading (…)neration_config.json: 100%"
}
},
"13ac4f0841b14b1b87b2bf2daf3443bf": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_7ee465d1d3c848e59389ad0a4da23a8a",
"max": 147,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_fca9eb4a0e2a4d248e3018006436da0f",
"value": 147
}
},
"8e19215e241c482f9fea7a36dc979531": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_40c8ef6eb5f5420da2921f3805f973ca",
"placeholder": "",
"style": "IPY_MODEL_7aac275079ef43599fcc888b2123828c",
"value": " 147/147 [00:00<00:00, 6.52kB/s]"
}
},
"ef64e74b85d44f579dce6132c35452f4": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"504c68ff3b8a4f00b0fa24fd563f39e7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"23e2628bd5514aa18b2b6777f191e24b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"7ee465d1d3c848e59389ad0a4da23a8a": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fca9eb4a0e2a4d248e3018006436da0f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"40c8ef6eb5f5420da2921f3805f973ca": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"7aac275079ef43599fcc888b2123828c": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
}
}
}
},
"cells": [
{
"cell_type": "markdown",
"source": [
"# Setup"
],
"metadata": {
"id": "tZbwIaoXO3di"
}
},
{
"cell_type": "code",
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "n3ScGYli1QGA",
"outputId": "6ac1a81b-f9a0-40a8-9547-adefff60e792"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Mounted at /content/drive\n"
]
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "6taSJjLGkTYE",
"outputId": "2dd9b9b0-833b-41d5-b524-b7eef762994d"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Cloning into 'cnlps-caiccaic'...\n",
"remote: Enumerating objects: 73, done.\u001b[K\n",
"remote: Counting objects: 100% (73/73), done.\u001b[K\n",
"remote: Compressing objects: 100% (56/56), done.\u001b[K\n",
"remote: Total 73 (delta 32), reused 41 (delta 11), pack-reused 0\u001b[K\n",
"Unpacking objects: 100% (73/73), 1.89 MiB | 4.48 MiB/s, done.\n"
]
}
],
"source": [
"!git clone https://github.com/kubapok/cnlps-caiccaic.git"
]
},
{
"cell_type": "code",
"source": [
"!pip install -Uq datasets transformers peft bitsandbytes loralib accelerate"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "1qS0p25llt37",
"outputId": "e77b4672-c85f-4a5c-9e98-7de4070267a0"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m474.6/474.6 kB\u001b[0m \u001b[31m10.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.1/7.1 MB\u001b[0m \u001b[31m78.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m56.8/56.8 kB\u001b[0m \u001b[31m6.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m92.2/92.2 MB\u001b[0m \u001b[31m7.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m227.5/227.5 kB\u001b[0m \u001b[31m27.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m110.5/110.5 kB\u001b[0m \u001b[31m14.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m212.5/212.5 kB\u001b[0m \u001b[31m23.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.3/134.3 kB\u001b[0m \u001b[31m16.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.0/1.0 MB\u001b[0m \u001b[31m75.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m236.8/236.8 kB\u001b[0m \u001b[31m27.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m126.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m114.5/114.5 kB\u001b[0m \u001b[31m12.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m268.8/268.8 kB\u001b[0m \u001b[31m30.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.6/149.6 kB\u001b[0m \u001b[31m19.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"# Create dataset"
],
"metadata": {
"id": "rDDe5DJCy2r_"
}
},
{
"cell_type": "code",
"source": [
"!cat cnlps-caiccaic/train/in.tsv cnlps-caiccaic/dev-A/in.tsv > in.tsv\n",
"!cat cnlps-caiccaic/train/expected.tsv cnlps-caiccaic/dev-A/expected.tsv > expected.tsv"
],
"metadata": {
"id": "OxO5rSflnWkT"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"import csv\n",
"from datasets import Dataset, DatasetDict\n",
"\n",
"with open('in.tsv', encoding='utf-8') as train_f_in, open('expected.tsv', encoding='utf-8') as train_f_exp:\n",
" train_list_in = list(csv.reader(train_f_in, delimiter='\\t'))\n",
" train_list_exp = train_f_exp.readlines()\n",
"\n",
"with open('cnlps-caiccaic/test-A/in.tsv', encoding='utf-8') as test_f_in:\n",
" test_list_in = list(csv.reader(test_f_in, delimiter='\\t'))\n",
"\n",
"train_data = Dataset.from_list([{'text': f'{in_[3]} language: {in_[1]}', 'intent': exp.strip().replace('}', ']').replace('{', '[').replace('\\t', '|')} for in_, exp in zip(train_list_in, train_list_exp)])\n",
"test_data = Dataset.from_list([{'text': f'{in_[3]} language: {in_[1]}', 'intent': ''} for in_ in test_list_in])\n",
"dataset = DatasetDict({'train': train_data, 'test': test_data})"
],
"metadata": {
"id": "mOM2JAw4npqM"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"dataset['train'][600]"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "bYmEQ35Rvjr-",
"outputId": "23d6c786-d03a-4301-da8d-d50480af3888"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"{'text': \"don't alert me when an event in my calendar in location kenner begins language: en-US\",\n",
" 'intent': \"Calendar|NotNotifyOnEventInLocation|['location': 'kenner']\"}"
]
},
"metadata": {},
"execution_count": 6
}
]
},
{
"cell_type": "markdown",
"source": [
"# Define training components"
],
"metadata": {
"id": "GeSaTKE0y4_d"
}
},
{
"cell_type": "code",
"source": [
"from transformers import AutoTokenizer, AutoModelForSeq2SeqLM\n",
"\n",
"model_name = 'google/flan-t5-large'\n",
"tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
"model = AutoModelForSeq2SeqLM.from_pretrained(model_name, device_map='auto')"
],
"metadata": {
"id": "qt0MadQYlO_l",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 241,
"referenced_widgets": [
"36804dd34495452dad1dcdecee7c6006",
"e790324c0d3f4720a8c600d7b3c0352d",
"35e0331a5e664d00a7474a0c5633846d",
"138844ef275b4a6b92d24990e47846e7",
"55d88d908e664b8fb5d4aaa3df9a45df",
"6c564d089e3c471897fd4aca12b8783e",
"7797ad41dbdb4b10990b89c3adae141b",
"5b4f8e68336b4c72bca898b980a00de4",
"32adbd01b207482f98b2a7c42d66ae48",
"ae3bdaed05bf48b1844765c0eadac847",
"b4e15f63840a45f4be5bd63388bf6fe4",
"46855a1011a44ffe98a4af6731c1c0ea",
"0ef322e1b9674a308231f8359b6e2a37",
"29812c1e0b2b4ec5bae4fc5b7ec5906e",
"2a66bc36a8c948a5a6dd79661ffb8ea7",
"434feed6330743feb918d2b4f20a852b",
"5d544a1cf5b140249260fb6698bcac95",
"b17fe70b4e1846d3bc598f8669b8bdb1",
"a14aa0a6b7a441399877ad7e8a38137b",
"f0514c2683bb42018e38a18e609c86cd",
"89709f42e5224fb3bb2a88c34e58bca1",
"50e074b7b73a4b5d822d798e21947762",
"ff8dd4f2dc3f4e8d80cafe94bb14ea49",
"83772061c4a44aa6a5b663108d08070e",
"0acad7b2dbc34a35b4ac62c5cf8c57f9",
"1cc936f1edeb410ebeaa16828afe4da5",
"e0b415a7fc544ca4a7544a59f712b966",
"590df66d2c7d40a59ff362f3e8c1a57c",
"1548b3eabb4c47f4811b6af771b5b4f7",
"f970c07e0912454ebd8b30a80681fce7",
"48198c6bca7a475c8e62533e80b70ba5",
"7fb0bb6d913e419989bc41d9064397ed",
"b88175a9d9c648b5b5b35092d68f8346",
"152a2400561040518048805ff3f37fc5",
"268b349317c948a28c993968376dd331",
"416f8540e05e492fb6badc55fb7b5ff4",
"a98654cc1844488fa4348661f9086a0b",
"1eabc4111eae481480f362dba641d322",
"69061df3063f4de4a75fcb3a52c56285",
"63420fd47ea24d3b8bd8532856551b24",
"cf82fa8a8c09472a918b86700ae97bea",
"c0426247be61440199fbe3bf2de11e24",
"cd9fba630a914907a9fdc9adc04d9b2d",
"df7dca53ab3340a3a0599440947fcac1",
"d30362d5e51c41348cf7998c6716f53f",
"5c9dc7a349d8498096bcebdd20338936",
"49549c623ea245c19af928b8509b1a14",
"6798d8bd2608481d9e72dda1a1c47e44",
"d1a625388dc246018af0e5a17d4aa819",
"bc8a5577c5904c3898099dc0afa8cbe1",
"9fd49ca71655406d92ffc0449f9c3c51",
"f978169bf5c34f3a9341212e26532c0e",
"ea4da54ba189460c8fc95865647b00e4",
"8d5ab085fdeb40a58174a93fc25b7eb8",
"d9b4eac446274cdfa6915cbd7d2a7b3a",
"3d93b25960d2482b8a5ae31f772ff3b3",
"5d992a07a8ce43cfa5dd843728f37075",
"a61a6d0c3a9b43159468e3ebf2f44ee0",
"f395c83bd55443449af23ccc29fa5e18",
"2ea35434cbf4451db22faf63900e255d",
"fc721e11600248f692501fec9cd1c7c4",
"c2b55cb44a064726823537251c298111",
"2f5e8d2a03d84b619ab913a370cf0beb",
"137ca2d2ace545a08206f0422b45d44f",
"8ab44c4b2d29449bbbbf57d403e5f62d",
"6e980c52e8c64103abb8805cb41b4389",
"098530349bd643acaf1b3ce4d8378d38",
"38f1803418004bd69036f94371bdb414",
"13ac4f0841b14b1b87b2bf2daf3443bf",
"8e19215e241c482f9fea7a36dc979531",
"ef64e74b85d44f579dce6132c35452f4",
"504c68ff3b8a4f00b0fa24fd563f39e7",
"23e2628bd5514aa18b2b6777f191e24b",
"7ee465d1d3c848e59389ad0a4da23a8a",
"fca9eb4a0e2a4d248e3018006436da0f",
"40c8ef6eb5f5420da2921f3805f973ca",
"7aac275079ef43599fcc888b2123828c"
]
},
"outputId": "3f2e2a79-3a8b-4bc9-eb03-835b637738c3"
},
"execution_count": null,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading (…)okenizer_config.json: 0%| | 0.00/2.54k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "36804dd34495452dad1dcdecee7c6006"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading spiece.model: 0%| | 0.00/792k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "46855a1011a44ffe98a4af6731c1c0ea"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading (…)/main/tokenizer.json: 0%| | 0.00/2.42M [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "ff8dd4f2dc3f4e8d80cafe94bb14ea49"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading (…)cial_tokens_map.json: 0%| | 0.00/2.20k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "152a2400561040518048805ff3f37fc5"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading (…)lve/main/config.json: 0%| | 0.00/662 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "d30362d5e51c41348cf7998c6716f53f"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading pytorch_model.bin: 0%| | 0.00/3.13G [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "3d93b25960d2482b8a5ae31f772ff3b3"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading (…)neration_config.json: 0%| | 0.00/147 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "098530349bd643acaf1b3ce4d8378d38"
}
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": [
"def preprocess_function(sample):\n",
" inputs = ['Create an annotation based on the following data. ' + item for item in sample['text']]\n",
" model_inputs = tokenizer(inputs, padding=True, truncation=True)\n",
" labels = tokenizer(text_target=sample['intent'], padding=True, truncation=True)\n",
" labels['input_ids'] = [[(l if l != tokenizer.pad_token_id else -100) for l in label] for label in labels['input_ids']]\n",
" model_inputs['labels'] = labels['input_ids']\n",
" return model_inputs\n",
"\n",
"tokenized_dataset = dataset.map(preprocess_function, batched=True, remove_columns=['text', 'intent'])"
],
"metadata": {
"id": "hcRqB5TaQmgJ"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"from transformers import DataCollatorForSeq2Seq\n",
"\n",
"data_collator = DataCollatorForSeq2Seq(\n",
" tokenizer,\n",
" model=model\n",
")"
],
"metadata": {
"id": "YyDdFqpL09aA"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Training"
],
"metadata": {
"id": "unliUG2W1BDg"
}
},
{
"cell_type": "code",
"source": [
"from transformers import Seq2SeqTrainer, Seq2SeqTrainingArguments\n",
"\n",
"output_dir='flan-t5_large'\n",
"\n",
"training_args = Seq2SeqTrainingArguments(\n",
" output_dir=output_dir,\n",
"\t auto_find_batch_size=True,\n",
" num_train_epochs=1,\n",
" logging_dir=f'{output_dir}/logs',\n",
" save_steps=3000\n",
")\n",
"\n",
"trainer = Seq2SeqTrainer(\n",
" model=model,\n",
" args=training_args,\n",
" data_collator=data_collator,\n",
" train_dataset=tokenized_dataset['train']\n",
")\n",
"model.config.use_cache = False "
],
"metadata": {
"id": "m8xxtxKw1BIZ"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"trainer.train()"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 952
},
"id": "aQS3QFMN1DD4",
"outputId": "8b7a521b-ded6-41fe-c73a-1d44b0579a88"
},
"execution_count": null,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <div>\n",
" \n",
" <progress value='2' max='6437' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" [ 2/6437 : < :, Epoch 0.00/1]\n",
" </div>\n",
" <table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: left;\">\n",
" <th>Step</th>\n",
" <th>Training Loss</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" </tbody>\n",
"</table><p>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <div>\n",
" \n",
" <progress value='12874' max='12874' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" [12874/12874 3:22:15, Epoch 1/1]\n",
" </div>\n",
" <table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: left;\">\n",
" <th>Step</th>\n",
" <th>Training Loss</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>500</td>\n",
" <td>0.348400</td>\n",
" </tr>\n",
" <tr>\n",
" <td>1000</td>\n",
" <td>0.147000</td>\n",
" </tr>\n",
" <tr>\n",
" <td>1500</td>\n",
" <td>0.096300</td>\n",
" </tr>\n",
" <tr>\n",
" <td>2000</td>\n",
" <td>0.077400</td>\n",
" </tr>\n",
" <tr>\n",
" <td>2500</td>\n",
" <td>0.070700</td>\n",
" </tr>\n",
" <tr>\n",
" <td>3000</td>\n",
" <td>0.053100</td>\n",
" </tr>\n",
" <tr>\n",
" <td>3500</td>\n",
" <td>0.051700</td>\n",
" </tr>\n",
" <tr>\n",
" <td>4000</td>\n",
" <td>0.046900</td>\n",
" </tr>\n",
" <tr>\n",
" <td>4500</td>\n",
" <td>0.040200</td>\n",
" </tr>\n",
" <tr>\n",
" <td>5000</td>\n",
" <td>0.039800</td>\n",
" </tr>\n",
" <tr>\n",
" <td>5500</td>\n",
" <td>0.038500</td>\n",
" </tr>\n",
" <tr>\n",
" <td>6000</td>\n",
" <td>0.037600</td>\n",
" </tr>\n",
" <tr>\n",
" <td>6500</td>\n",
" <td>0.040100</td>\n",
" </tr>\n",
" <tr>\n",
" <td>7000</td>\n",
" <td>0.040800</td>\n",
" </tr>\n",
" <tr>\n",
" <td>7500</td>\n",
" <td>0.038600</td>\n",
" </tr>\n",
" <tr>\n",
" <td>8000</td>\n",
" <td>0.036000</td>\n",
" </tr>\n",
" <tr>\n",
" <td>8500</td>\n",
" <td>0.035600</td>\n",
" </tr>\n",
" <tr>\n",
" <td>9000</td>\n",
" <td>0.040000</td>\n",
" </tr>\n",
" <tr>\n",
" <td>9500</td>\n",
" <td>0.038300</td>\n",
" </tr>\n",
" <tr>\n",
" <td>10000</td>\n",
" <td>0.034400</td>\n",
" </tr>\n",
" <tr>\n",
" <td>10500</td>\n",
" <td>0.038000</td>\n",
" </tr>\n",
" <tr>\n",
" <td>11000</td>\n",
" <td>0.037300</td>\n",
" </tr>\n",
" <tr>\n",
" <td>11500</td>\n",
" <td>0.035400</td>\n",
" </tr>\n",
" <tr>\n",
" <td>12000</td>\n",
" <td>0.035500</td>\n",
" </tr>\n",
" <tr>\n",
" <td>12500</td>\n",
" <td>0.035800</td>\n",
" </tr>\n",
" </tbody>\n",
"</table><p>"
]
},
"metadata": {}
},
{
"output_type": "execute_result",
"data": {
"text/plain": [
"TrainOutput(global_step=12874, training_loss=0.06059208474804456, metrics={'train_runtime': 12136.5406, 'train_samples_per_second': 4.243, 'train_steps_per_second': 1.061, 'total_flos': 2.330193322605773e+16, 'train_loss': 0.06059208474804456, 'epoch': 1.0})"
]
},
"metadata": {},
"execution_count": 23
}
]
},
{
"cell_type": "markdown",
"source": [
"# Save the model"
],
"metadata": {
"id": "mDOXSmts1J-G"
}
},
{
"cell_type": "code",
"source": [
"trainer.model.save_pretrained('results_v2')\n",
"tokenizer.save_pretrained('results_v2')"
],
"metadata": {
"id": "RN9rhtHw1KC9"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!rm -r /content/drive/MyDrive/caiccaic; mkdir /content/drive/MyDrive/caiccaic\n",
"!cp -r results_v2 /content/drive/MyDrive/caiccaic"
],
"metadata": {
"id": "FPUZs3SZPQ4z"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# from google.colab import runtime\n",
"# runtime.unassign()"
],
"metadata": {
"id": "em0VFt0rz3uJ"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Inference"
],
"metadata": {
"id": "ntt7iUnd8Wyc"
}
},
{
"cell_type": "code",
"source": [
"!cp -r /content/drive/MyDrive/results_v2 ."
],
"metadata": {
"id": "muGPGGT5m4Wx"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"from transformers import AutoModelForSeq2SeqLM, AutoTokenizer\n",
"import torch\n",
"\n",
"model = AutoModelForSeq2SeqLM.from_pretrained('results_v2', device_map={'':0})\n",
"tokenizer = AutoTokenizer.from_pretrained('results_v2')\n",
"model.eval()"
],
"metadata": {
"id": "hTshD-E_mv4p",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "30da8e10-c8fb-4d01-d558-07e8cb02d693"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"T5ForConditionalGeneration(\n",
" (shared): Embedding(32128, 1024)\n",
" (encoder): T5Stack(\n",
" (embed_tokens): Embedding(32128, 1024)\n",
" (block): ModuleList(\n",
" (0): T5Block(\n",
" (layer): ModuleList(\n",
" (0): T5LayerSelfAttention(\n",
" (SelfAttention): T5Attention(\n",
" (q): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (k): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (v): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (o): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (relative_attention_bias): Embedding(32, 16)\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (1): T5LayerFF(\n",
" (DenseReluDense): T5DenseGatedActDense(\n",
" (wi_0): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wi_1): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wo): Linear(in_features=2816, out_features=1024, bias=False)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" (act): NewGELUActivation()\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" )\n",
" )\n",
" (1-23): 23 x T5Block(\n",
" (layer): ModuleList(\n",
" (0): T5LayerSelfAttention(\n",
" (SelfAttention): T5Attention(\n",
" (q): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (k): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (v): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (o): Linear(in_features=1024, out_features=1024, bias=False)\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (1): T5LayerFF(\n",
" (DenseReluDense): T5DenseGatedActDense(\n",
" (wi_0): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wi_1): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wo): Linear(in_features=2816, out_features=1024, bias=False)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" (act): NewGELUActivation()\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" )\n",
" )\n",
" )\n",
" (final_layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (decoder): T5Stack(\n",
" (embed_tokens): Embedding(32128, 1024)\n",
" (block): ModuleList(\n",
" (0): T5Block(\n",
" (layer): ModuleList(\n",
" (0): T5LayerSelfAttention(\n",
" (SelfAttention): T5Attention(\n",
" (q): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (k): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (v): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (o): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (relative_attention_bias): Embedding(32, 16)\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (1): T5LayerCrossAttention(\n",
" (EncDecAttention): T5Attention(\n",
" (q): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (k): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (v): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (o): Linear(in_features=1024, out_features=1024, bias=False)\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (2): T5LayerFF(\n",
" (DenseReluDense): T5DenseGatedActDense(\n",
" (wi_0): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wi_1): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wo): Linear(in_features=2816, out_features=1024, bias=False)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" (act): NewGELUActivation()\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" )\n",
" )\n",
" (1-23): 23 x T5Block(\n",
" (layer): ModuleList(\n",
" (0): T5LayerSelfAttention(\n",
" (SelfAttention): T5Attention(\n",
" (q): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (k): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (v): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (o): Linear(in_features=1024, out_features=1024, bias=False)\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (1): T5LayerCrossAttention(\n",
" (EncDecAttention): T5Attention(\n",
" (q): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (k): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (v): Linear(in_features=1024, out_features=1024, bias=False)\n",
" (o): Linear(in_features=1024, out_features=1024, bias=False)\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (2): T5LayerFF(\n",
" (DenseReluDense): T5DenseGatedActDense(\n",
" (wi_0): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wi_1): Linear(in_features=1024, out_features=2816, bias=False)\n",
" (wo): Linear(in_features=2816, out_features=1024, bias=False)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" (act): NewGELUActivation()\n",
" )\n",
" (layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" )\n",
" )\n",
" )\n",
" (final_layer_norm): T5LayerNorm()\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (lm_head): Linear(in_features=1024, out_features=32128, bias=False)\n",
")"
]
},
"metadata": {},
"execution_count": 9
}
]
},
{
"cell_type": "code",
"source": [
"import numpy as np\n",
"from datasets import load_from_disk\n",
"from tqdm import tqdm\n",
"\n",
"def evaluate_peft_model(sample):\n",
" outputs = model.generate(input_ids=torch.tensor(sample['input_ids']).unsqueeze(0).cuda(), max_new_tokens=512) \n",
" prediction = tokenizer.decode(outputs[0].detach().cpu().numpy(), skip_special_tokens=True)\n",
" return prediction\n",
"\n",
"test_dataset = tokenized_dataset['test']\n",
"\n",
"predictions, references = [], []\n",
"i = 0\n",
"for sample in tqdm(test_dataset):\n",
" p = evaluate_peft_model(sample)\n",
" if i % 100 == 0:\n",
" print('\\n', p)\n",
" predictions.append(p)\n",
" i += 1"
],
"metadata": {
"id": "4t0Epw1x8YOG",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "a93e8654-603c-4353-bef6-04118302cf36"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stderr",
"text": [
"\r 0%| | 0/10358 [00:00<?, ?it/s]/usr/local/lib/python3.10/dist-packages/transformers/generation/utils.py:1255: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation)\n",
" warnings.warn(\n",
" 0%| | 1/10358 [00:03<9:53:16, 3.44s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Airconditioner|SetTemperatureOnDevice|['device_name': 'firmes stet']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 1%| | 101/10358 [02:47<4:55:07, 1.73s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|AddEventWithName|['event_name':'meeting with conremarch fisht']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 2%|▏ | 201/10358 [04:57<3:07:32, 1.11s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|NotifyOnEventStart|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 3%|▎ | 301/10358 [07:53<6:24:20, 2.29s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Console|ConsoleCP|['from': 'petrofactor symonichs', 'to': 'andriocuga belly']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 4%|▍ | 401/10358 [10:26<2:49:24, 1.02s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Console|ConsoleLS|['pathname': 'cities']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 5%|▍ | 501/10358 [13:31<4:59:07, 1.82s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Contacts|EditContactWithNumber|['phone_number': '203 5943']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 6%|▌ | 601/10358 [16:41<6:53:27, 2.54s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Contacts|ShowContactWithNumberAndWithEmail|['email': 'teresa.aguilera-peon@enron.com', 'phone_number': '011 48 193 424']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 7%|▋ | 701/10358 [20:16<8:48:44, 3.29s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'for their championship this week','subject': 'fw: new erisa case against enron', 'to': 'bettine@kpmg.com']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 8%|▊ | 801/10358 [24:53<4:26:13, 1.67s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddress|['to': 'herpequipomythson']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 9%|▊ | 901/10358 [27:23<6:45:00, 2.57s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Facebook|PostPictureWithUrlAndWithCaption|['caption': 'with agatha', 'picture_url': 'bit.ly/jtCvu']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 10%|▉ | 1001/10358 [29:30<3:19:15, 1.28s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Gdrive|OpenFileWithName|['file_name': 'adoby's cony h it']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 11%|█ | 1101/10358 [31:36<3:28:44, 1.35s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Instagram|ShowPicturesWithFilter|['filter': 'ludwig']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 12%|█▏ | 1201/10358 [33:46<1:55:40, 1.32it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddress|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 13%|█▎ | 1301/10358 [36:09<3:14:43, 1.29s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddress|['to':'revered']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 14%|█▎ | 1401/10358 [38:47<2:57:12, 1.19s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Speaker|DecreaseVolumeByPercent|['percent': '40']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 14%|█▍ | 1501/10358 [41:04<4:14:40, 1.73s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|AddSongWithNameToPlaylistWithName|['playlist':'solonce patifar','song': 'o my plailest work']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 15%|█▌ | 1601/10358 [43:24<3:35:06, 1.47s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|AddSongWithNameToPlaylistWithName|['playlist': 'i still see your shadows in my room','song': 'endemoniada']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 16%|█▋ | 1701/10358 [46:02<5:06:01, 2.12s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|PlaySongByArtist|['artist': 'terry hoax','song':'super fly']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 17%|█▋ | 1801/10358 [49:46<10:40:08, 4.49s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguageWithEngine|['src_lang_es':'spanish', 'text_es':'mircles', 'translator': 'deeple', 'trg_lang_de': 'german']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 18%|█▊ | 1901/10358 [57:13<10:31:03, 4.48s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguageWithEngine|['src_lang_de': 'german', 'text_de': 'western', 'translator':'microsoft', 'trg_lang_es':'spanish']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 19%|█▉ | 2001/10358 [1:04:34<10:21:17, 4.46s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguageWithEngine|['src_lang_pl': 'polish', 'text_pl':'stro', 'translator': 'gogel', 'trg_lang_es':'spanish']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 20%|██ | 2101/10358 [1:11:50<8:21:13, 3.64s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguage|['src_lang_it': 'italian', 'text_it':'so lotted', 'trg_lang_en': 'english']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 21%|██ | 2201/10358 [1:17:55<8:36:33, 3.80s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguage|['src_lang_de': 'german', 'text_de': 'bitine coal and mighty rump', 'trg_lang_pl': 'polish']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 22%|██▏ | 2301/10358 [1:23:58<7:57:41, 3.56s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguage|['src_lang_fr': 'french', 'text_fr': 'des légumes', 'trg_lang_de': 'german']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 23%|██▎ | 2401/10358 [1:28:28<3:59:16, 1.80s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateText|['text_en': 'i do i translate with pleasure']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 24%|██▍ | 2501/10358 [1:31:04<2:30:25, 1.15s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Weather|WeatherInLocation|['location': 'kinzers']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 25%|██▌ | 2601/10358 [1:33:32<3:44:53, 1.74s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 26%|██▌ | 2701/10358 [1:36:27<3:28:04, 1.63s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 27%|██▋ | 2801/10358 [1:39:27<3:21:15, 1.60s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query': 'heisenberg']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 28%|██▊ | 2901/10358 [1:42:24<2:38:30, 1.28s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeight|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 29%|██▉ | 3001/10358 [1:44:57<3:40:46, 1.80s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchTextOnEngine|['txt_query': 'nhl scores']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 30%|██▉ | 3101/10358 [1:46:37<1:22:15, 1.47it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Wikipedia|GoToElementNumber|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 31%|███ | 3201/10358 [1:48:59<4:13:47, 2.13s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Yelp|SearchByQueryInLocation|['location':'swan river', 'query': 'chicken parmesan']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 32%|███▏ | 3301/10358 [1:51:53<2:39:36, 1.36s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Youtube|FindQuery|['query': 'troy lanez']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 33%|███▎ | 3401/10358 [1:54:09<3:18:56, 1.72s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|AddEventWithName|['event_name': 'zubrzyca']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 34%|███▍ | 3501/10358 [1:56:12<2:33:54, 1.35s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|NotifyOnEventInLocation|['location': 'klubie lustra']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 35%|███▍ | 3601/10358 [1:59:30<2:13:16, 1.18s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Console|ConsoleEdit|['filename': 'p1_babych_pdf']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 36%|███▌ | 3701/10358 [2:02:50<2:33:04, 1.38s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Contacts|EditContactWithNumber|['phone_number': '55 469 53 16']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 37%|███▋ | 3801/10358 [2:06:21<4:58:36, 2.73s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Contacts|ShowContactWithNumberAndWithEmail|['email':'mojesz@onet.pl', 'phone_number': '+48 783 492 786']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 38%|███▊ | 3901/10358 [2:10:22<4:51:48, 2.71s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubject|['subject': 'przewraliwiany szcznie dorosa munda']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 39%|███▊ | 4001/10358 [2:16:28<3:25:05, 1.94s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|ShowEmailFromSender|['sender_address': 'ludmia13277@onet.pl']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 40%|███▉ | 4101/10358 [2:18:40<2:59:42, 1.72s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Facebook|PostPictureWithUrl|['picture_url': 'bit.ly/gruffly']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 41%|████ | 4201/10358 [2:22:16<1:57:30, 1.15s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Fitbit|NotifyOnWeight|['weight': '88 kg']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 42%|████▏ | 4301/10358 [2:24:33<2:44:31, 1.63s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Fitbit|ShowStepsOnDate|['date': '18 czerwca']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 42%|████▏ | 4401/10358 [2:26:48<2:16:49, 1.38s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Gdrive|ShowFilesWithSize|['file_size': '50 mb']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 43%|████▎ | 4501/10358 [2:28:59<1:16:34, 1.27it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Instagram|ShowPictures|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 44%|████▍ | 4601/10358 [2:31:15<2:17:08, 1.43s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Instagram|ShowPicturesWithLocation|['location': 'grenola']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 45%|████▌ | 4701/10358 [2:34:08<3:36:14, 2.29s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" News|NotifyWhenPortalUpdatesInSection|['portal': 'wp.pl','section': 'gwiazdy']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 46%|████▋ | 4801/10358 [2:36:34<1:20:07, 1.16it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Phone|CallEmergency|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 47%|████▋ | 4901/10358 [2:39:09<1:47:22, 1.18s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Slack|CheckMessagesFromUser|['sender': 'j.winiewski']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 48%|████▊ | 5001/10358 [2:41:17<1:59:04, 1.33s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|AddSongToPlaylistWithName|['playlist':'signed xoxo']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 49%|████▉ | 5101/10358 [2:43:39<46:10, 1.90it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|OpenSpotify|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 50%|█████ | 5201/10358 [2:46:06<2:41:06, 1.87s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|PlaySongByArtist|['artist': 'organek','song':'sarajevo grade moj']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 51%|█████ | 5301/10358 [2:48:52<3:25:30, 2.44s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguage|['src_lang_en': 'angielskiego', 'text_en':'south']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 52%|█████▏ | 5401/10358 [2:53:21<3:33:55, 2.59s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguage|['src_lang_en': 'angielskiego', 'text_en': 'does this bus stop in busan']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 53%|█████▎ | 5501/10358 [2:59:19<5:19:55, 3.95s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguage|['src_lang_en': 'angielskiego', 'text_en': 'does the room come with bedsheets', 'trg_lang_pl': 'polski']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 54%|█████▍ | 5601/10358 [3:06:49<6:08:33, 4.65s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguageWithEngine|['src_lang_es': 'hiszpaskiego', 'text_es': 'la próxima semana', 'translator':'microsoft', 'trg_lang_it': 'woski']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 55%|█████▌ | 5701/10358 [3:14:42<5:59:08, 4.63s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguageWithEngine|['src_lang_en': 'angielskiego', 'text_en': 'november', 'translator': 'google', 'trg_lang_it': 'woski']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 56%|█████▌ | 5801/10358 [3:18:24<2:46:55, 2.20s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Weather|SunriseInLocation|['location': 'róanka']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 57%|█████▋ | 5901/10358 [3:21:02<2:56:27, 2.38s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeight|['img_query': 'koptyjski zrozumiao']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 58%|█████▊ | 6001/10358 [3:25:01<3:04:41, 2.54s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query': 'kruchuteki ucisk']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 59%|█████▉ | 6101/10358 [3:29:02<2:50:21, 2.40s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query': 'kolorowanki wielkanocne']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 60%|█████▉ | 6201/10358 [3:32:31<1:43:03, 1.49s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchText|['txt_query': 'trackim tuck tucko']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 61%|██████ | 6301/10358 [3:34:27<1:16:13, 1.13s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Yelp|OpenRestaurantsInLocation|['location': 'wrzeszcz dolny']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 62%|██████▏ | 6401/10358 [3:37:40<2:21:13, 2.14s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Yelp|SearchByReviewCountInLocation|['location': 'poplar branch','review_count': '40']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 63%|██████▎ | 6501/10358 [3:40:28<2:10:15, 2.03s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Youtube|FindQueryOnChannel|['channel_id': 'laughing stock', 'query': 'barier cardi']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 64%|██████▎ | 6601/10358 [3:44:00<2:36:07, 2.49s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Youtube|FindQueryOnChannel|['channel_id': 'hearthstone legend', 'query': 'kabarety 2019 najnowsze']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 65%|██████▍ | 6701/10358 [3:47:35<2:04:56, 2.05s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Youtube|FindQueryOnChannel|['channel_id':'resourceniche', 'query': 'polska tahiti']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 66%|██████▌ | 6801/10358 [3:50:27<50:32, 1.17it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Youtube|NotifyOnNewFromFollowing|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 67%|██████▋ | 6901/10358 [3:53:37<4:42:36, 4.91s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'durante los próximos tres das o tendrás el 50 de descuento que','subject': 'durante los próximos tres das o tendrás el 50 de descuento que', 'to': 'chaya y soh mayer ir']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 68%|██████▊ | 7001/10358 [3:57:03<1:56:39, 2.09s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|CheckCalendarOnDate|['date': 'l'ultima matricola']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 69%|██████▊ | 7101/10358 [3:59:17<1:27:44, 1.62s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Airconditioner|SetTemperatureToValue|['value': '24 grados']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 70%|██████▉ | 7201/10358 [4:02:06<1:11:36, 1.36s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|CheckCalendarOnDate|['date': 'el 1 de agosto']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 70%|███████ | 7301/10358 [4:04:14<1:18:49, 1.55s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Contacts|ShowContactWithEmail|['email': 'luis@gmail.com']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 71%|███████▏ | 7401/10358 [4:07:49<2:17:35, 2.79s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Contacts|ShowContactWithNumberAndWithEmail|['email': 'rupert.yanni@apx.com', 'phone_number': '447 349 366']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 72%|███████▏ | 7501/10358 [4:11:31<39:56, 1.19it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmail|[]\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 73%|███████▎ | 7601/10358 [4:14:15<1:51:32, 2.43s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubject|['subject': 'fwd more than their fair share', 'to': 'eugenio']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 74%|███████▍ | 7701/10358 [4:19:24<3:01:40, 4.10s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'ahora viene mi chico','subject': 'Te gustara vivir la mejor experiencia de tu vida?', 'to': 'kena']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 75%|███████▌ | 7801/10358 [4:26:21<2:56:35, 4.14s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'que poquito que falta para cataratas','subject':'southwest into california', 'to': 'chuy']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 76%|███████▋ | 7901/10358 [4:33:16<2:56:17, 4.31s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'rt si te gusta trollear','subject': 'here is the complete email', 'to':'montse mendizabal']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 77%|███████▋ | 8001/10358 [4:40:05<2:35:14, 3.95s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'lo acabo y me voy a dormir','subject': 'ceo letter', 'to':'salva@hotmail.es']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 78%|███████▊ | 8101/10358 [4:47:06<2:45:26, 4.40s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'hoy a tomar tere con milaa','subject': 'have played here a few times', 'to': 'jenelle@hotmail.com']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 79%|███████▉ | 8201/10358 [4:53:58<2:35:31, 4.33s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|SendEmailToAddressWithSubjectAndWithMessage|['message': 'cada vez mas viejas lisitas','subject': 'the new dublin campus next year', 'to': 'roselyn@proton.com']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 80%|████████ | 8301/10358 [4:58:21<51:18, 1.50s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Email|ShowEmailWithSubject|['subject':'summarizing all media coverage']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 81%|████████ | 8401/10358 [5:01:03<1:53:03, 3.47s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Facebook|PostPictureWithUrlAndWithCaption|['caption': 'le pregunté a mi perro cómo me veo por eso lo amo tanto', 'picture_url': 'bit.ly/NIAGyW3']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 82%|████████▏ | 8501/10358 [5:03:38<37:21, 1.21s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Facebook|PostAlbumOfTypeByArtist|['album': 'vacaciones en argentina 2019']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 83%|████████▎ | 8601/10358 [5:05:33<42:13, 1.44s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Instagram|ShowPicturesWithFilter|['filter': 'gingham']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 84%|████████▍ | 8701/10358 [5:07:50<55:57, 2.03s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" News|NotifyWhenPortalUpdatesInSection|['portal': 'la voz de galicia','section': 'deporte']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 85%|████████▍ | 8801/10358 [5:11:03<49:30, 1.91s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" News|ShowNewsFromSection|['portal': 'el pas','section': 'deporte']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 86%|████████▌ | 8901/10358 [5:14:16<51:23, 2.12s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Slack|SendMessageToChannel|['channel': 'citibank','message': 'excelente fin de semana']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 87%|████████▋ | 9001/10358 [5:16:36<52:36, 2.33s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|AddSongWithNameToPlaylistWithName|['playlist':'soulfull disco','song': 'how i see it']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 88%|████████▊ | 9101/10358 [5:18:57<20:56, 1.00it/s]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|PlaySong|['song':'silent edge']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 89%|████████▉ | 9201/10358 [5:21:15<40:07, 2.08s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|PlaySongByArtist|['artist': 'jonathan larson','song':'song x']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 90%|████████▉ | 9301/10358 [5:24:38<34:06, 1.94s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Spotify|PlaySongByArtist|['artist': 'hard stance','song': 'on my toes']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 91%|█████████ | 9401/10358 [5:28:07<49:29, 3.10s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Translate|TranslateTextFromLanguageToLanguage|['src_lang': 'fránces', 'text':'marrón', 'trg_lang': 'espaol']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 92%|█████████▏| 9501/10358 [5:33:07<21:48, 1.53s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Calendar|CheckCalendarOnDate|['date': 'fase de la luna para croacia']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 93%|█████████▎| 9601/10358 [5:35:48<24:26, 1.94s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeight|['img_query':'mechas balayage']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 94%|█████████▎| 9701/10358 [5:39:09<21:16, 1.94s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeight|['img_query': 'la roca village']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 95%|█████████▍| 9801/10358 [5:42:42<20:17, 2.19s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query': 'calendario febrero 2020 para imprimir']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 96%|█████████▌| 9901/10358 [5:46:23<15:14, 2.00s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query': 'formacion']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 97%|█████████▋| 10001/10358 [5:50:01<12:44, 2.14s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query':'media melena']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 98%|█████████▊| 10101/10358 [5:53:41<10:01, 2.34s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query':'memes graciosos']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 98%|█████████▊| 10201/10358 [5:57:18<05:42, 2.18s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Websearch|SearchImagesWithTextOnEngineWithWidthAndWithHeightAndWithCondition|['img_query': 'rita maestre']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
" 99%|█████████▉| 10301/10358 [6:00:14<01:35, 1.67s/it]"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
" Yelp|SearchByQueryInLocation|['location': 'aulesti', 'query': 'cerveceras artesanales y pubs']\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"100%|██████████| 10358/10358 [6:01:25<00:00, 2.09s/it]\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"# format predictions to target shape\n",
"predictions = [prediction.replace('|', '\\t', 3).replace('[', '{').replace(']', '}').strip() for prediction in predictions]"
],
"metadata": {
"id": "DIUEgt2hnovi"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"with open('/content/cnlps-caiccaic/test-A/out_v2.tsv', 'w', encoding='utf-8') as out:\n",
" for pred in predictions:\n",
" out.write(pred + '\\n')"
],
"metadata": {
"id": "LnPDPN0OjgLA"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"import locale\n",
"locale.getpreferredencoding = lambda: \"UTF-8\""
],
"metadata": {
"id": "msQz6KlHKO30"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!cp /content/cnlps-caiccaic/test-A/out_v2.tsv /content/drive/MyDrive/"
],
"metadata": {
"id": "sjP3d1sus2ec"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"from google.colab import runtime\n",
"runtime.unassign()"
],
"metadata": {
"id": "d56gzuPA1SdY"
},
"execution_count": null,
"outputs": []
}
]
}