diff --git "a/Google Colab Notebooks/sd_token_similarity_calculator.ipynb" "b/Google Colab Notebooks/sd_token_similarity_calculator.ipynb" --- "a/Google Colab Notebooks/sd_token_similarity_calculator.ipynb" +++ "b/Google Colab Notebooks/sd_token_similarity_calculator.ipynb" @@ -11,2746 +11,6 @@ }, "language_info": { "name": "python" - }, - "widgets": { - "application/vnd.jupyter.widget-state+json": { - "4adef32a81ac4370bd2af9aa07618433": { - "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_9ef515a61ed0483891e18cfe36f3d49d", - "IPY_MODEL_352d4d048d5e4d2aaf4abd256ccac026", - "IPY_MODEL_d8aa7947c7434d8d8004b0b0276d140e" - ], - "layout": "IPY_MODEL_a3924236a90c4fb5a8979d2bab839f56" - } - }, - "9ef515a61ed0483891e18cfe36f3d49d": { - "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_1af636dd9c844a4a80b56b9130524ce3", - "placeholder": "​", - "style": "IPY_MODEL_6e9a1bed41454a079012b4797fcec206", - "value": "tokenizer_config.json: 100%" - } - }, - "352d4d048d5e4d2aaf4abd256ccac026": { - "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_dcd8ce1c90d242df9b917b1d8316090e", - "max": 905, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_f3824e1c5d264552bb45206c09c59db6", - "value": 905 - } - }, - "d8aa7947c7434d8d8004b0b0276d140e": { - "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_81c7542cbf804aa4947e96e1d805911b", - "placeholder": "​", - "style": "IPY_MODEL_706b2d5f6d934a618ef7bc7803f6f27f", - "value": " 905/905 [00:00<00:00, 34.3kB/s]" - } - }, - "a3924236a90c4fb5a8979d2bab839f56": { - "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 - } - }, - "1af636dd9c844a4a80b56b9130524ce3": { - "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 - } - }, - "6e9a1bed41454a079012b4797fcec206": { - "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": "" - } - }, - "dcd8ce1c90d242df9b917b1d8316090e": { - "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 - } - }, - "f3824e1c5d264552bb45206c09c59db6": { - "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": "" - } - }, - "81c7542cbf804aa4947e96e1d805911b": { - "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 - } - }, - "706b2d5f6d934a618ef7bc7803f6f27f": { - "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": "" - } - }, - "a855a7ebb3f447c3aec1c6eb40485c2d": { - "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_36ba19ee57c246f3b35dfe6630728645", - "IPY_MODEL_36052ba4c6d0470780d11aa42d1f50fa", - "IPY_MODEL_01f694cc29ce46e8a657cf99e4bf322b" - ], - "layout": "IPY_MODEL_1bf6c933fcaa4e27964ed88335afec18" - } - }, - "36ba19ee57c246f3b35dfe6630728645": { - "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_c60c34e1dc7d4eb68732b908053efa9e", - "placeholder": "​", - "style": "IPY_MODEL_3bc818f2bbcd464ebb07c29a17031d3e", - "value": "vocab.json: 100%" - } - }, - "36052ba4c6d0470780d11aa42d1f50fa": { - "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_207bcce0dda4441ba0c93c50f1701afa", - "max": 961143, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_0ec851f808aa4a7da2a5142ef4967f95", - "value": 961143 - } - }, - "01f694cc29ce46e8a657cf99e4bf322b": { - "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_cba70dfda2c043f0aa37a1fd813c1fc1", - "placeholder": "​", - "style": "IPY_MODEL_b8dc4222fe274ca68d4319df281c1ae4", - "value": " 961k/961k [00:00<00:00, 9.41MB/s]" - } - }, - "1bf6c933fcaa4e27964ed88335afec18": { - "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 - } - }, - "c60c34e1dc7d4eb68732b908053efa9e": { - "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 - } - }, - "3bc818f2bbcd464ebb07c29a17031d3e": { - "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": "" - } - }, - "207bcce0dda4441ba0c93c50f1701afa": { - "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 - } - }, - "0ec851f808aa4a7da2a5142ef4967f95": { - "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": "" - } - }, - "cba70dfda2c043f0aa37a1fd813c1fc1": { - "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 - } - }, - "b8dc4222fe274ca68d4319df281c1ae4": { - "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": "" - } - }, - "629a1e1f2e474bc99c77d3582f6b479f": { - "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_bc322fa9e8724c46a1732e80fe5eaa05", - "IPY_MODEL_bd126790cb064a188aedea83d16bc449", - "IPY_MODEL_8263dc145d0e40469c107ee996234f99" - ], - "layout": "IPY_MODEL_d4a04dedd3ee4421aa67bcba14450953" - } - }, - "bc322fa9e8724c46a1732e80fe5eaa05": { - "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_9577b542eef3491f92240848717e6759", - "placeholder": "​", - "style": "IPY_MODEL_ca5fade2125c4fb69dedfd9a9ddba997", - "value": "merges.txt: 100%" - } - }, - "bd126790cb064a188aedea83d16bc449": { - "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_0e80a64b1b5941a6879d12156adab30a", - "max": 524619, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_5f6cb47bf20844df9f60b7123f23abad", - "value": 524619 - } - }, - "8263dc145d0e40469c107ee996234f99": { - "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_28389a0a62ea46f2b3bdbe26bedcbe43", - "placeholder": "​", - "style": "IPY_MODEL_9018b1cf31c444f9a1ce3b5750f7ea2e", - "value": " 525k/525k [00:00<00:00, 23.8MB/s]" - } - }, - "d4a04dedd3ee4421aa67bcba14450953": { - "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 - } - }, - "9577b542eef3491f92240848717e6759": { - "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 - } - }, - "ca5fade2125c4fb69dedfd9a9ddba997": { - "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": "" - } - }, - "0e80a64b1b5941a6879d12156adab30a": { - "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 - } - }, - "5f6cb47bf20844df9f60b7123f23abad": { - "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": "" - } - }, - "28389a0a62ea46f2b3bdbe26bedcbe43": { - "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 - } - }, - "9018b1cf31c444f9a1ce3b5750f7ea2e": { - "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": "" - } - }, - "873a4cef3d29409d835565c69d9a197a": { - "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_14eff49aa9834af29ec7e74e4342b869", - "IPY_MODEL_dd3ac5847a7246b8968c0e8029d9616f", - "IPY_MODEL_093680c91eae4cf29b86ea5134e95e49" - ], - "layout": "IPY_MODEL_bcbb8ecde238401fb0a471360b223e32" - } - }, - "14eff49aa9834af29ec7e74e4342b869": { - "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_0b6d4e8dfca64cbabfa4717f1d254fc5", - "placeholder": "​", - "style": "IPY_MODEL_1f76469a7dca49a4b4c1392b94b6d63a", - "value": "tokenizer.json: 100%" - } - }, - "dd3ac5847a7246b8968c0e8029d9616f": { - "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_a21bc506162e4ac0b96ccfaabd43e03d", - "max": 2224003, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_51f638195eeb486a81da99347ece3165", - "value": 2224003 - } - }, - "093680c91eae4cf29b86ea5134e95e49": { - "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_393390ec1e6747829c8e388770b6bc0b", - "placeholder": "​", - "style": "IPY_MODEL_a4e6d7cd092841d0b5d430c39c1b09fb", - "value": " 2.22M/2.22M [00:00<00:00, 21.8MB/s]" - } - }, - "bcbb8ecde238401fb0a471360b223e32": { - "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 - } - }, - "0b6d4e8dfca64cbabfa4717f1d254fc5": { - "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 - } - }, - "1f76469a7dca49a4b4c1392b94b6d63a": { - "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": "" - } - }, - "a21bc506162e4ac0b96ccfaabd43e03d": { - "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 - } - }, - "51f638195eeb486a81da99347ece3165": { - "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": "" - } - }, - "393390ec1e6747829c8e388770b6bc0b": { - "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 - } - }, - "a4e6d7cd092841d0b5d430c39c1b09fb": { - "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": "" - } - }, - "0f141590b2434ad78abf541198117a63": { - "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_8c4466ddd214468083998ba3e4038fb6", - "IPY_MODEL_59ef1e95ae494290b1af499f38f1afb9", - "IPY_MODEL_194d1f9cee8141cd94d5a6c2581a4a5e" - ], - "layout": "IPY_MODEL_e7ee7ceb4d9745f89548b68293207fb5" - } - }, - "8c4466ddd214468083998ba3e4038fb6": { - "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_55e0a422096241d397e8f7cee19fe72b", - "placeholder": "​", - "style": "IPY_MODEL_fa653d78d6f449a2aa3fd60a5e4d5acb", - "value": "special_tokens_map.json: 100%" - } - }, - "59ef1e95ae494290b1af499f38f1afb9": { - "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_0d2f5fc0f2564e78be5066672106898d", - "max": 389, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_f6786dee963e4c92bea6f6840625b6cf", - "value": 389 - } - }, - "194d1f9cee8141cd94d5a6c2581a4a5e": { - "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_440dc0e03240404bbab61feb60e6f50a", - "placeholder": "​", - "style": "IPY_MODEL_9dca6db500a04658bbb1e935ad4cc5b8", - "value": " 389/389 [00:00<00:00, 19.9kB/s]" - } - }, - "e7ee7ceb4d9745f89548b68293207fb5": { - "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 - } - }, - "55e0a422096241d397e8f7cee19fe72b": { - "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 - } - }, - "fa653d78d6f449a2aa3fd60a5e4d5acb": { - "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": "" - } - }, - "0d2f5fc0f2564e78be5066672106898d": { - "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 - } - }, - "f6786dee963e4c92bea6f6840625b6cf": { - "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": "" - } - }, - "440dc0e03240404bbab61feb60e6f50a": { - "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 - } - }, - "9dca6db500a04658bbb1e935ad4cc5b8": { - "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": "" - } - }, - "ed0570271f864fd5947a2678244f3642": { - "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_671753c27d934520abad163ff84ddaeb", - "IPY_MODEL_dc8075289907417c93bf428fd91c5976", - "IPY_MODEL_3f65d276743542a6badf7bac003dc4e6" - ], - "layout": "IPY_MODEL_78b305a904d74430b7b25081b313587e" - } - }, - "671753c27d934520abad163ff84ddaeb": { - "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_6b5df10ed36b4588affdb172b58b17b5", - "placeholder": "​", - "style": "IPY_MODEL_54ab5100054e43a1ba904a07465a5dd4", - "value": "preprocessor_config.json: 100%" - } - }, - "dc8075289907417c93bf428fd91c5976": { - "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_6368f64e725d4b8ea10644408cee181f", - "max": 316, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_10c6a153ae0a463a9ce4ecb313f0c120", - "value": 316 - } - }, - "3f65d276743542a6badf7bac003dc4e6": { - "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_bf3597a781d744959adb43eea6ff8b2c", - "placeholder": "​", - "style": "IPY_MODEL_5533f688b18d4e358a642caa4eff6541", - "value": " 316/316 [00:00<00:00, 15.8kB/s]" - } - }, - "78b305a904d74430b7b25081b313587e": { - "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 - } - }, - "6b5df10ed36b4588affdb172b58b17b5": { - "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 - } - }, - "54ab5100054e43a1ba904a07465a5dd4": { - "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": "" - } - }, - "6368f64e725d4b8ea10644408cee181f": { - "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 - } - }, - "10c6a153ae0a463a9ce4ecb313f0c120": { - "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": "" - } - }, - "bf3597a781d744959adb43eea6ff8b2c": { - "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 - } - }, - "5533f688b18d4e358a642caa4eff6541": { - "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": "" - } - }, - "a6ca7460474b4d2b937e2fa01cedd8bf": { - "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_9b36e41226234b83894ca0dd2f4b3384", - "IPY_MODEL_b1e3e91307624ff0a24dcba84280a68a", - "IPY_MODEL_77b3afe3262d4e17840e79eba884878c" - ], - "layout": "IPY_MODEL_2471c26454e4437cb5a090728615f420" - } - }, - "9b36e41226234b83894ca0dd2f4b3384": { - "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_6289f27a69124f54bf94ef76c7e63700", - "placeholder": "​", - "style": "IPY_MODEL_a3c64c8f53e44b4dab9e87b8c804988f", - "value": "config.json: 100%" - } - }, - "b1e3e91307624ff0a24dcba84280a68a": { - "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_992494d61ce048c5bfc6b87cb8e69ba9", - "max": 4519, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_e78c61eaa0af4e6db1658be6e4e6d73c", - "value": 4519 - } - }, - "77b3afe3262d4e17840e79eba884878c": { - "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_6eb7a0409c694f21903a55666b772bcb", - "placeholder": "​", - "style": "IPY_MODEL_5108c73eacec4715b7784145ba5abdd1", - "value": " 4.52k/4.52k [00:00<00:00, 211kB/s]" - } - }, - "2471c26454e4437cb5a090728615f420": { - "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 - } - }, - "6289f27a69124f54bf94ef76c7e63700": { - "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 - } - }, - "a3c64c8f53e44b4dab9e87b8c804988f": { - "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": "" - } - }, - "992494d61ce048c5bfc6b87cb8e69ba9": { - "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 - } - }, - "e78c61eaa0af4e6db1658be6e4e6d73c": { - "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": "" - } - }, - "6eb7a0409c694f21903a55666b772bcb": { - "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 - } - }, - "5108c73eacec4715b7784145ba5abdd1": { - "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": "" - } - }, - "0d2b589ea8f5401880b6db9682193fdb": { - "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_29019f053bc64c979afc1de22ba130da", - "IPY_MODEL_e749af0257f54667bd6bc0758245151f", - "IPY_MODEL_a771d860050d43ab8638ce9e86036d63" - ], - "layout": "IPY_MODEL_4281f31a28e64c41aa2985b01d24dfcf" - } - }, - "29019f053bc64c979afc1de22ba130da": { - "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_6f9b868479794f9abaac96caa4166ccc", - "placeholder": "​", - "style": "IPY_MODEL_0602ada8d68e4cb684fb5454614be4fb", - "value": "model.safetensors: 100%" - } - }, - "e749af0257f54667bd6bc0758245151f": { - "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_72c63ce903014049a98f69215061bfa5", - "max": 1710540580, - "min": 0, - "orientation": "horizontal", - "style": "IPY_MODEL_deace9b15d834e58b83fd5d959ffcfeb", - "value": 1710540580 - } - }, - "a771d860050d43ab8638ce9e86036d63": { - "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_14bbdf2b4449407ea970aea3a3955ad6", - "placeholder": "​", - "style": "IPY_MODEL_c96b27e4e4494a56b684b9d486ff592d", - "value": " 1.71G/1.71G [00:10<00:00, 179MB/s]" - } - }, - "4281f31a28e64c41aa2985b01d24dfcf": { - "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 - } - }, - "6f9b868479794f9abaac96caa4166ccc": { - "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 - } - }, - "0602ada8d68e4cb684fb5454614be4fb": { - "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": "" - } - }, - "72c63ce903014049a98f69215061bfa5": { - "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 - } - }, - "deace9b15d834e58b83fd5d959ffcfeb": { - "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": "" - } - }, - "14bbdf2b4449407ea970aea3a3955ad6": { - "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 - } - }, - "c96b27e4e4494a56b684b9d486ff592d": { - "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": [ @@ -2858,6 +118,11 @@ " return dictAB, tensAB , nAB-1\n", "#-------#\n", "\n", + "home_directory = '/content/'\n", + "using_Kaggle = os.environ.get('KAGGLE_URL_BASE','')\n", + "if using_Kaggle : home_directory = '/kaggle/working/'\n", + "%cd {home_directory}\n", + "\n", "#🔸🔹\n", "# Load the data if not already loaded\n", "try:\n", @@ -2866,35 +131,20 @@ " %cd {home_directory}\n", " !git clone https://huggingface.co/datasets/codeShare/text-to-image-prompts\n", " loaded = True\n", - "#--------#\n" + "#--------#\n", + "\n", + "#default NEG values\n", + "name_NEG = ''\n", + "image_NEG = ''\n", + "strength_image_NEG = 1\n", + "strength_NEG = 1\n", + "#------#" ], "metadata": { - "id": "rUXQ73IbonHY", - "outputId": "f2297ad2-2015-474d-9e66-8c4c832d4555", - "colab": { - "base_uri": "https://localhost:8080/" - } + "id": "rUXQ73IbonHY" }, - "execution_count": 2, - "outputs": [ - { - "output_type": "stream", - "name": "stdout", - "text": [ - "[Errno 2] No such file or directory: '{home_directory}'\n", - "/content\n", - "Cloning into 'text-to-image-prompts'...\n", - "remote: Enumerating objects: 1997, done.\u001b[K\n", - "remote: Counting objects: 100% (1994/1994), done.\u001b[K\n", - "remote: Compressing objects: 100% (1947/1947), done.\u001b[K\n", - "remote: Total 1997 (delta 362), reused 0 (delta 0), pack-reused 3 (from 1)\u001b[K\n", - "Receiving objects: 100% (1997/1997), 12.78 MiB | 5.87 MiB/s, done.\n", - "Resolving deltas: 100% (362/362), done.\n", - "Updating files: 100% (1065/1065), done.\n", - "Filtering content: 100% (472/472), 1.93 GiB | 39.92 MiB/s, done.\n" - ] - } - ] + "execution_count": null, + "outputs": [] }, { "cell_type": "code", @@ -3013,150 +263,107 @@ "NUM_VOCAB_ITEMS = nA\n" ], "metadata": { - "id": "ZMG4CThUAmwW", - "outputId": "c253f00a-f2fa-4632-d4bd-2b1f2ddf876a", - "colab": { - "base_uri": "https://localhost:8080/" - } + "id": "ZMG4CThUAmwW" }, - "execution_count": 3, - "outputs": [ - { - "output_type": "stream", - "name": "stdout", - "text": [ - "reading 🎼 fusion-t2i-lyrics-30.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-8.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-36.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-19.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-11.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-18.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-13.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-28.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-15.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-5.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-3.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-25.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-41.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-43.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-31.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-12.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-26.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-4.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-42.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-39.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-1.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-20.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-22.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-33.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-24.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-27.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-17.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-6.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-21.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-32.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-23.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-37.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-9.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-2.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-38.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-14.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-40.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-34.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-7.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-35.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-10.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-29.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n", - "reading 🎼 fusion-t2i-lyrics-16.json....\n", - "/content/text-to-image-prompts/lyrics/text\n", - "/content/text-to-image-prompts/lyrics/text_encodings\n" - ] - } - ] + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "source": [ + "# @title 🚫 Penalize similarity to Prompt text_encoding (optional)\n", + "neg_prompt = \"\" # @param {\"type\":\"string\",\"placeholder\":\"Write something to avoid\"}\n", + "\n", + "neg_strength = 1 # @param {type:\"slider\", min:0, max:5, step:0.01}\n", + "\n", + "enable = False # @param {\"type\":\"boolean\",\"placeholder\":\"😃\"}\n", + "\n", + "from transformers import AutoTokenizer\n", + "tokenizer = AutoTokenizer.from_pretrained(\"openai/clip-vit-large-patch14\", clean_up_tokenization_spaces = False)\n", + "from transformers import CLIPProcessor, CLIPModel\n", + "processor = CLIPProcessor.from_pretrained(\"openai/clip-vit-large-patch14\" , clean_up_tokenization_spaces = True)\n", + "model = CLIPModel.from_pretrained(\"openai/clip-vit-large-patch14\")\n", + "\n", + "\n", + "name_NEG = ''\n", + "strength_NEG = 1\n", + "if enable:\n", + " # Get text features for user input\n", + " inputs = tokenizer(text = prompt, padding=True, return_tensors=\"pt\")\n", + " text_features_NEG = model.get_text_features(**inputs)\n", + " text_features_NEG = text_features_NEG/text_features_A.norm(p=2, dim=-1, keepdim=True)\n", + " name_NEG = neg_prompt\n", + " strength_NEG = neg_strength\n", + " #------#" + ], + "metadata": { + "id": "sX2JGqOH5B8g" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "source": [ + "# @title 🖼️🚫 Penalize similarity to Prompt image_encoding (optional)\n", + "from google.colab import files\n", + "def upload_files():\n", + " from google.colab import files\n", + " uploaded = files.upload()\n", + " for k, v in uploaded.items():\n", + " open(k, 'wb').write(v)\n", + " return list(uploaded.keys())\n", + "\n", + "\n", + "neg_strength = 1 # @param {type:\"slider\", min:0, max:5, step:0.01}\n", + "enable = False # @param {\"type\":\"boolean\",\"placeholder\":\"😃\"}\n", + "\n", + "\n", + "colab_image_folder = '/content/text-to-image-prompts/images/'\n", + "#Get image\n", + "# You can use \"http://images.cocodataset.org/val2017/000000039769.jpg\" for testing\n", + "image_url = \"\" # @param {\"type\":\"string\",\"placeholder\":\"leave empty for local upload (scroll down to see it)\"}\n", + "colab_image_path = \"imperial.png\" # @param {\"type\":\"string\",\"placeholder\": \"eval. as '/content/sd_tokens/' + **your input**\"}\n", + "# @markdown --------------------------\n", + "\n", + "image_path = \"\"\n", + "\n", + "from PIL import Image\n", + "import requests\n", + "image_NEG = \"\"\n", + "image_features_NEG = \"\"\n", + "strength_image_NEG = 1\n", + "\n", + "#----#\n", + "if enable :\n", + " strength_image_NEG = neg_strength\n", + " if image_url == \"\":\n", + " import cv2\n", + " from google.colab.patches import cv2_imshow\n", + " # Open the image.\n", + " if colab_image_path == \"\":\n", + " keys = upload_files()\n", + " for key in keys:\n", + " image_NEG = cv2.imread(colab_image_folder + key)\n", + " colab_image_path = colab_image_folder + key\n", + " image_path = colab_image_folder + key\n", + " else:\n", + " image_NEG = cv2.imread(colab_image_folder + colab_image_path)\n", + " else:\n", + " image_NEG = Image.open(requests.get(image_url, stream=True).raw)\n", + " #------#\n", + " from google.colab.patches import cv2_imshow\n", + " cv2_imshow(image_NEG)\n", + "\n", + " inputs = processor(images=image_A, return_tensors=\"pt\")\n", + " image_features_NEG = model.get_image_features(**inputs)\n", + " image_features_NEG = image_features_NEG / image_features.norm(p=2, dim=-1, keepdim=True)" + ], + "metadata": { + "id": "oCJ97b-B7927" + }, + "execution_count": null, + "outputs": [] }, { "cell_type": "code", @@ -3170,6 +377,8 @@ "processor = CLIPProcessor.from_pretrained(\"openai/clip-vit-large-patch14\" , clean_up_tokenization_spaces = True)\n", "model = CLIPModel.from_pretrained(\"openai/clip-vit-large-patch14\")\n", "\n", + "if image_NEG != \"\":\n", + "\n", "# Get text features for user input\n", "inputs = tokenizer(text = prompt, padding=True, return_tensors=\"pt\")\n", "text_features_A = model.get_text_features(**inputs)\n", @@ -3182,223 +391,21 @@ " if index<2: continue\n", " text_features = text_encodings[f'{index}']\n", " sims[index] = torch.nn.functional.cosine_similarity(text_features, text_features_A)\n", + " #------#\n", + " if name_NEG != '':\n", + " sims[index] = sims[index] - neg_strength* torch.nn.functional.cosine_similarity(text_features, text_features_NEG)\n", + " if image_NEG != '':\n", + " torch.matmul(text_features, image_features_NEG.t()) * logit_scale\n", + " sims[index] = sims[index] - neg_strength* torch.nn.functional.cosine_similarity(text_features, image_features_NEG)\n", "#------#\n", "\n", "sorted , indices = torch.sort(sims,dim=0 , descending=True)" ], "metadata": { - "id": "xc-PbIYF428y", - "outputId": "4d959f0f-cad6-4e01-eade-06feb4ad33b1", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 273, - "referenced_widgets": [ - "4adef32a81ac4370bd2af9aa07618433", - "9ef515a61ed0483891e18cfe36f3d49d", - "352d4d048d5e4d2aaf4abd256ccac026", - "d8aa7947c7434d8d8004b0b0276d140e", - "a3924236a90c4fb5a8979d2bab839f56", - "1af636dd9c844a4a80b56b9130524ce3", - "6e9a1bed41454a079012b4797fcec206", - "dcd8ce1c90d242df9b917b1d8316090e", - "f3824e1c5d264552bb45206c09c59db6", - "81c7542cbf804aa4947e96e1d805911b", - "706b2d5f6d934a618ef7bc7803f6f27f", - "a855a7ebb3f447c3aec1c6eb40485c2d", - "36ba19ee57c246f3b35dfe6630728645", - "36052ba4c6d0470780d11aa42d1f50fa", - "01f694cc29ce46e8a657cf99e4bf322b", - "1bf6c933fcaa4e27964ed88335afec18", - "c60c34e1dc7d4eb68732b908053efa9e", - "3bc818f2bbcd464ebb07c29a17031d3e", - "207bcce0dda4441ba0c93c50f1701afa", - "0ec851f808aa4a7da2a5142ef4967f95", - "cba70dfda2c043f0aa37a1fd813c1fc1", - "b8dc4222fe274ca68d4319df281c1ae4", - "629a1e1f2e474bc99c77d3582f6b479f", - "bc322fa9e8724c46a1732e80fe5eaa05", - "bd126790cb064a188aedea83d16bc449", - "8263dc145d0e40469c107ee996234f99", - "d4a04dedd3ee4421aa67bcba14450953", - "9577b542eef3491f92240848717e6759", - "ca5fade2125c4fb69dedfd9a9ddba997", - "0e80a64b1b5941a6879d12156adab30a", - "5f6cb47bf20844df9f60b7123f23abad", - "28389a0a62ea46f2b3bdbe26bedcbe43", - "9018b1cf31c444f9a1ce3b5750f7ea2e", - "873a4cef3d29409d835565c69d9a197a", - "14eff49aa9834af29ec7e74e4342b869", - "dd3ac5847a7246b8968c0e8029d9616f", - "093680c91eae4cf29b86ea5134e95e49", - "bcbb8ecde238401fb0a471360b223e32", - "0b6d4e8dfca64cbabfa4717f1d254fc5", - "1f76469a7dca49a4b4c1392b94b6d63a", - "a21bc506162e4ac0b96ccfaabd43e03d", - "51f638195eeb486a81da99347ece3165", - "393390ec1e6747829c8e388770b6bc0b", - "a4e6d7cd092841d0b5d430c39c1b09fb", - "0f141590b2434ad78abf541198117a63", - "8c4466ddd214468083998ba3e4038fb6", - "59ef1e95ae494290b1af499f38f1afb9", - "194d1f9cee8141cd94d5a6c2581a4a5e", - "e7ee7ceb4d9745f89548b68293207fb5", - "55e0a422096241d397e8f7cee19fe72b", - "fa653d78d6f449a2aa3fd60a5e4d5acb", - "0d2f5fc0f2564e78be5066672106898d", - "f6786dee963e4c92bea6f6840625b6cf", - "440dc0e03240404bbab61feb60e6f50a", - "9dca6db500a04658bbb1e935ad4cc5b8", - "ed0570271f864fd5947a2678244f3642", - "671753c27d934520abad163ff84ddaeb", - "dc8075289907417c93bf428fd91c5976", - "3f65d276743542a6badf7bac003dc4e6", - "78b305a904d74430b7b25081b313587e", - "6b5df10ed36b4588affdb172b58b17b5", - "54ab5100054e43a1ba904a07465a5dd4", - "6368f64e725d4b8ea10644408cee181f", - "10c6a153ae0a463a9ce4ecb313f0c120", - "bf3597a781d744959adb43eea6ff8b2c", - "5533f688b18d4e358a642caa4eff6541", - "a6ca7460474b4d2b937e2fa01cedd8bf", - "9b36e41226234b83894ca0dd2f4b3384", - "b1e3e91307624ff0a24dcba84280a68a", - "77b3afe3262d4e17840e79eba884878c", - "2471c26454e4437cb5a090728615f420", - "6289f27a69124f54bf94ef76c7e63700", - "a3c64c8f53e44b4dab9e87b8c804988f", - "992494d61ce048c5bfc6b87cb8e69ba9", - "e78c61eaa0af4e6db1658be6e4e6d73c", - "6eb7a0409c694f21903a55666b772bcb", - "5108c73eacec4715b7784145ba5abdd1", - "0d2b589ea8f5401880b6db9682193fdb", - "29019f053bc64c979afc1de22ba130da", - "e749af0257f54667bd6bc0758245151f", - "a771d860050d43ab8638ce9e86036d63", - "4281f31a28e64c41aa2985b01d24dfcf", - "6f9b868479794f9abaac96caa4166ccc", - "0602ada8d68e4cb684fb5454614be4fb", - "72c63ce903014049a98f69215061bfa5", - "deace9b15d834e58b83fd5d959ffcfeb", - "14bbdf2b4449407ea970aea3a3955ad6", - "c96b27e4e4494a56b684b9d486ff592d" - ] - } + "id": "xc-PbIYF428y" }, - "execution_count": 4, - "outputs": [ - { - "output_type": "display_data", - "data": { - "text/plain": [ - "tokenizer_config.json: 0%| | 0.00/905 [00:00= random.randint(0,100) : prompt = prompts[f'{random.randint(start_at_index2 , start_at_index2 + list_size2)}']\n", + "\n", + " #Remove duplicates\n", + " if _prompts.find(prompt + separator)<=-1:\n", + " _sims = _sims + f'{round(100*sims[index].item(), 2)} %' + separator\n", + " #-------#\n", + " _prompts = _prompts.replace(prompt + separator,'')\n", + " _prompts = _prompts + prompt + separator\n", + " #------#\n", + "#------#\n", + "__prompts = (_prompts + '}').replace(separator + '}', '}')\n", + "__sims = (_sims + '}').replace(separator + '}', '}')\n", + "#------#\n", + "\n", + "if(not print_Prompts): __prompts = ''\n", + "if(not print_Similarity): __sims = ''\n", + "\n", + "if(not compact_Output):\n", + " if(print_Descriptions):\n", + " print(f'The {start_at_index}-{start_at_index + RANGE} most similiar items to prompt : \\n\\n ' + __prompts)\n", + " print(f'The {start_at_index}-{start_at_index + RANGE} similarity % for items : \\n\\n' + __sims)\n", + " print('')\n", + " else:\n", + " print(__prompts)\n", + "else:\n", + " print(__prompts)\n", + "#-------#\n", + "\n", + "\n", + "\n", + "\n" + ], + "metadata": { + "id": "STSsa9tw1H__" + }, + "execution_count": null, + "outputs": [] }, { "cell_type": "markdown", @@ -4516,7 +600,7 @@ "height": 1000 } }, - "execution_count": 6, + "execution_count": null, "outputs": [ { "output_type": "display_data", @@ -4555,13 +639,18 @@ " logit_scale = model.logit_scale.exp()\n", " torch.matmul(text_features, image_features.t()) * logit_scale\n", " sims[index] = torch.nn.functional.cosine_similarity(text_features, image_features)\n", + " if name_NEG != '':\n", + " torch.matmul(text_features_NEG, image_features.t()) * logit_scale\n", + " sims[index] = sims[index] - neg_strength* torch.nn.functional.cosine_similarity(text_features_NEG, image_features)\n", + " if image_NEG != '':\n", + " sims[index] = sims[index] - neg_strength* torch.nn.functional.cosine_similarity(image_features, image_features_NEG)\n", "#-------#\n", "sorted , indices = torch.sort(sims,dim=0 , descending=True)" ], "metadata": { "id": "rebogpoyOG8k" }, - "execution_count": 7, + "execution_count": null, "outputs": [] }, { @@ -4602,6 +691,7 @@ " print(f'The {start_at_index}-{start_at_index + RANGE} most similiar items to prompt : \\n\\n ' + __prompts)\n", " print(f'The {start_at_index}-{start_at_index + RANGE} similarity % for items : \\n\\n' + __sims)\n", " print('')\n", + " if name_NEG != '': print(f'Using negatives at {strength_NEG} strength for this text : {name_NEG}')\n", " else:\n", " print(__prompts)\n", "else:\n", @@ -4609,121 +699,10 @@ "#-------#" ], "metadata": { - "id": "JkzncP8SgKtS", - "outputId": "c63b7b55-c31e-40cb-f9fe-60a7d15521de", - "colab": { - "base_uri": "https://localhost:8080/" - } + "id": "JkzncP8SgKtS" }, - "execution_count": 8, - "outputs": [ - { - "output_type": "stream", - "name": "stdout", - "text": [ - "{My only utincel|\n", - "This war we’ve achieved has allowed us to win|\n", - "I am your rain|\n", - "We will bring fire to the empires. The imperial they won’t prevail.|\n", - "I am the storm|\n", - "We won’t live our lives for them. Human hatred is my second nature.|\n", - "She didn’t choose this role|\n", - "No one should ever have to brave that storm, no|\n", - "March in with ten legions|\n", - "A lady of war|\n", - "This is who we were Helvetios.|\n", - "So the force of religion corrodes in Kareyth|\n", - "Weren’t we like a battlefield locked inside our holy war?|\n", - "I take mutant genes and splice in the rest|\n", - "Our defense is your defense|\n", - "And swim back to land are mine I stand for every single walk of life I’LL FIGHT I|\n", - "That make Pandora’s Box’s contents look nonviolent|\n", - "I am your apocalypse|\n", - "Hot to assimilate|\n", - "for our tomorrow, a little peace|\n", - "You’re not the only one refusing to back down|\n", - "If I am the storm?|\n", - "This is V for Vercingetorix|\n", - "A little bit of fun’s never been an insurrection.|\n", - "I need a saga. What’s the saga?|\n", - "And Thor said, “I’m gonna kill them all with my hammer like I killed the giants”|\n", - "Though you don’t know of my duty|\n", - "Nevermind the fact that she’s dead — It turns me on|\n", - "Whispered on the silver screen|\n", - "Now the gods grew quite scared of our strength and defiance|\n", - "They will not take this place, will not defile this ground.|\n", - "’Cause all we have to believe are the lies that they feed us - born for battle!|\n", - "And scream like a banshee|\n", - "Rise of the One -|\n", - "Let my armies be your damned|\n", - "Against the waves with our swords in our hands|\n", - "Hey, Space Lord Mother, Mother|\n", - "And sing 'Ah… Space Lord Mother, Mother'|\n", - "I believe in people warring|\n", - "With my back against the wall. I will rise above them all like this.|\n", - "Saphira|\n", - "To lead the forlorn and wroth|\n", - "The offspring of antumnos|\n", - "But still I suit up like a queen|\n", - "Unite the tribes and rise|\n", - "But rest assured there's not a single person here who's worthy|\n", - "Aia gnata uimpi iouinca,|\n", - "What the color of her eyes were and her scars or how she got them|\n", - "Will you ally with us?|\n", - "Blue collar shipyard, any way to keep her alive.|\n", - "My pain… is self-chosen|\n", - "That poison, it fills…; it fills her veins|\n", - "Vianna, my Sacrifice|\n", - "So you be Thor and I’ll be Odin, you rodent, I’m omnipotent|\n", - "You're no friend of mine but in this chaos I’ll be a hopebringer. - their trials |\n", - "We strive not for war|\n", - "God will delight in this warrior race|\n", - "Who stands the storm if not the brave?|\n", - "Something borrowed something blue|\n", - "Because this is a new type of war, this is an eradication.|\n", - "This is V for vengeance|\n", - "Did you ever think you’d find one back home?|\n", - "In this everlasting thirst to mantain vitality|\n", - "Immi daga uimpi geneta,|\n", - "You should’ve never trusted Hollywood|\n", - "We’ve raised ourselves to gods|\n", - "Deine Augen sind ein Labyrinth|\n", - "claws at Gallia’s free lands|\n", - "Why would I fight a war when I’ve lost everything I’m fighting for?|\n", - "Cold rain hits like thunder deep within.|\n", - "And my face is turnin’ blue, yeah|\n", - "She lives in her world, so unaware|\n", - "But they cannot take us all|\n", - "Did you even think you’d get out alive?|\n", - "Army of liberation|\n", - "Overthrow the crown|\n", - "I stand here with my brothers with a will of steel.|\n", - "I am the one, I have a thousand veins|\n", - "We’re in a war that can’t be won|\n", - "It’s a woman’s world, so to speak|\n", - "I saw the gleam in their eyes of fear and enslavement|\n", - "We’ve tried everything in the book|\n", - "A quest for resistance|\n", - "I’ve messed around with mystic things and magic for too long.|\n", - "There’s a storm coming|\n", - "A force upon dictatorship|\n", - "We stand surrounded by a million years|\n", - "Don’t rely on the strength of my image hey|\n", - "I have to drive them out of my life. Pull the trigger on oppression. I’m ready to fight.|\n", - "I have a thousand names|\n", - "This is the final resistance|\n", - "We fight together not alone|\n", - "Regenerate, we will be the change|\n", - "Sleepwalker…|\n", - "They told us that we wouldn’t survive|\n", - "We will stand and fight|\n", - "We swear allegiance to no one|\n", - "fall and ache and tearjerk rendered in amazing Hi-Def IMAX.|\n", - "This army of inspiration we came for our revenge|\n", - "Now we’re showing up!}\n" - ] - } - ] + "execution_count": null, + "outputs": [] }, { "cell_type": "code",