Sid26Roy commited on
Commit
405b181
·
verified ·
1 Parent(s): 034d58e

Upload 5 files

Browse files
MLC_transformer (1).ipynb ADDED
@@ -0,0 +1,2619 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 0,
4
+ "metadata": {
5
+ "colab": {
6
+ "provenance": []
7
+ },
8
+ "kernelspec": {
9
+ "name": "python3",
10
+ "display_name": "Python 3"
11
+ },
12
+ "language_info": {
13
+ "name": "python"
14
+ },
15
+ "widgets": {
16
+ "application/vnd.jupyter.widget-state+json": {
17
+ "801a67b0b1014f149c3fe286084bed6a": {
18
+ "model_module": "@jupyter-widgets/controls",
19
+ "model_name": "HBoxModel",
20
+ "model_module_version": "1.5.0",
21
+ "state": {
22
+ "_dom_classes": [],
23
+ "_model_module": "@jupyter-widgets/controls",
24
+ "_model_module_version": "1.5.0",
25
+ "_model_name": "HBoxModel",
26
+ "_view_count": null,
27
+ "_view_module": "@jupyter-widgets/controls",
28
+ "_view_module_version": "1.5.0",
29
+ "_view_name": "HBoxView",
30
+ "box_style": "",
31
+ "children": [
32
+ "IPY_MODEL_65e6146ec9b1405a89430dcdb35ea43f",
33
+ "IPY_MODEL_147dd205c35247b69e4e64e078594050",
34
+ "IPY_MODEL_4d09a266eb024d4394e79957f9003d69"
35
+ ],
36
+ "layout": "IPY_MODEL_d0d8ef68f91b4bc987fe7340f0c9fef6"
37
+ }
38
+ },
39
+ "65e6146ec9b1405a89430dcdb35ea43f": {
40
+ "model_module": "@jupyter-widgets/controls",
41
+ "model_name": "HTMLModel",
42
+ "model_module_version": "1.5.0",
43
+ "state": {
44
+ "_dom_classes": [],
45
+ "_model_module": "@jupyter-widgets/controls",
46
+ "_model_module_version": "1.5.0",
47
+ "_model_name": "HTMLModel",
48
+ "_view_count": null,
49
+ "_view_module": "@jupyter-widgets/controls",
50
+ "_view_module_version": "1.5.0",
51
+ "_view_name": "HTMLView",
52
+ "description": "",
53
+ "description_tooltip": null,
54
+ "layout": "IPY_MODEL_c1dc9015cca74cdda44e6d3a0abd59b6",
55
+ "placeholder": "​",
56
+ "style": "IPY_MODEL_0de7b1b1acbf4043b27f6ca3731227c9",
57
+ "value": "tokenizer_config.json: 100%"
58
+ }
59
+ },
60
+ "147dd205c35247b69e4e64e078594050": {
61
+ "model_module": "@jupyter-widgets/controls",
62
+ "model_name": "FloatProgressModel",
63
+ "model_module_version": "1.5.0",
64
+ "state": {
65
+ "_dom_classes": [],
66
+ "_model_module": "@jupyter-widgets/controls",
67
+ "_model_module_version": "1.5.0",
68
+ "_model_name": "FloatProgressModel",
69
+ "_view_count": null,
70
+ "_view_module": "@jupyter-widgets/controls",
71
+ "_view_module_version": "1.5.0",
72
+ "_view_name": "ProgressView",
73
+ "bar_style": "success",
74
+ "description": "",
75
+ "description_tooltip": null,
76
+ "layout": "IPY_MODEL_b4da7aa493b247cd9059c48f006aa413",
77
+ "max": 48,
78
+ "min": 0,
79
+ "orientation": "horizontal",
80
+ "style": "IPY_MODEL_50adc2c76ec04e4cb5c2f32c15eaf2b0",
81
+ "value": 48
82
+ }
83
+ },
84
+ "4d09a266eb024d4394e79957f9003d69": {
85
+ "model_module": "@jupyter-widgets/controls",
86
+ "model_name": "HTMLModel",
87
+ "model_module_version": "1.5.0",
88
+ "state": {
89
+ "_dom_classes": [],
90
+ "_model_module": "@jupyter-widgets/controls",
91
+ "_model_module_version": "1.5.0",
92
+ "_model_name": "HTMLModel",
93
+ "_view_count": null,
94
+ "_view_module": "@jupyter-widgets/controls",
95
+ "_view_module_version": "1.5.0",
96
+ "_view_name": "HTMLView",
97
+ "description": "",
98
+ "description_tooltip": null,
99
+ "layout": "IPY_MODEL_c9109f203621459f9896ad0efb96fcb6",
100
+ "placeholder": "​",
101
+ "style": "IPY_MODEL_9988a0ab441a4a2f93d99b265bd8f57a",
102
+ "value": " 48.0/48.0 [00:00<00:00, 1.55kB/s]"
103
+ }
104
+ },
105
+ "d0d8ef68f91b4bc987fe7340f0c9fef6": {
106
+ "model_module": "@jupyter-widgets/base",
107
+ "model_name": "LayoutModel",
108
+ "model_module_version": "1.2.0",
109
+ "state": {
110
+ "_model_module": "@jupyter-widgets/base",
111
+ "_model_module_version": "1.2.0",
112
+ "_model_name": "LayoutModel",
113
+ "_view_count": null,
114
+ "_view_module": "@jupyter-widgets/base",
115
+ "_view_module_version": "1.2.0",
116
+ "_view_name": "LayoutView",
117
+ "align_content": null,
118
+ "align_items": null,
119
+ "align_self": null,
120
+ "border": null,
121
+ "bottom": null,
122
+ "display": null,
123
+ "flex": null,
124
+ "flex_flow": null,
125
+ "grid_area": null,
126
+ "grid_auto_columns": null,
127
+ "grid_auto_flow": null,
128
+ "grid_auto_rows": null,
129
+ "grid_column": null,
130
+ "grid_gap": null,
131
+ "grid_row": null,
132
+ "grid_template_areas": null,
133
+ "grid_template_columns": null,
134
+ "grid_template_rows": null,
135
+ "height": null,
136
+ "justify_content": null,
137
+ "justify_items": null,
138
+ "left": null,
139
+ "margin": null,
140
+ "max_height": null,
141
+ "max_width": null,
142
+ "min_height": null,
143
+ "min_width": null,
144
+ "object_fit": null,
145
+ "object_position": null,
146
+ "order": null,
147
+ "overflow": null,
148
+ "overflow_x": null,
149
+ "overflow_y": null,
150
+ "padding": null,
151
+ "right": null,
152
+ "top": null,
153
+ "visibility": null,
154
+ "width": null
155
+ }
156
+ },
157
+ "c1dc9015cca74cdda44e6d3a0abd59b6": {
158
+ "model_module": "@jupyter-widgets/base",
159
+ "model_name": "LayoutModel",
160
+ "model_module_version": "1.2.0",
161
+ "state": {
162
+ "_model_module": "@jupyter-widgets/base",
163
+ "_model_module_version": "1.2.0",
164
+ "_model_name": "LayoutModel",
165
+ "_view_count": null,
166
+ "_view_module": "@jupyter-widgets/base",
167
+ "_view_module_version": "1.2.0",
168
+ "_view_name": "LayoutView",
169
+ "align_content": null,
170
+ "align_items": null,
171
+ "align_self": null,
172
+ "border": null,
173
+ "bottom": null,
174
+ "display": null,
175
+ "flex": null,
176
+ "flex_flow": null,
177
+ "grid_area": null,
178
+ "grid_auto_columns": null,
179
+ "grid_auto_flow": null,
180
+ "grid_auto_rows": null,
181
+ "grid_column": null,
182
+ "grid_gap": null,
183
+ "grid_row": null,
184
+ "grid_template_areas": null,
185
+ "grid_template_columns": null,
186
+ "grid_template_rows": null,
187
+ "height": null,
188
+ "justify_content": null,
189
+ "justify_items": null,
190
+ "left": null,
191
+ "margin": null,
192
+ "max_height": null,
193
+ "max_width": null,
194
+ "min_height": null,
195
+ "min_width": null,
196
+ "object_fit": null,
197
+ "object_position": null,
198
+ "order": null,
199
+ "overflow": null,
200
+ "overflow_x": null,
201
+ "overflow_y": null,
202
+ "padding": null,
203
+ "right": null,
204
+ "top": null,
205
+ "visibility": null,
206
+ "width": null
207
+ }
208
+ },
209
+ "0de7b1b1acbf4043b27f6ca3731227c9": {
210
+ "model_module": "@jupyter-widgets/controls",
211
+ "model_name": "DescriptionStyleModel",
212
+ "model_module_version": "1.5.0",
213
+ "state": {
214
+ "_model_module": "@jupyter-widgets/controls",
215
+ "_model_module_version": "1.5.0",
216
+ "_model_name": "DescriptionStyleModel",
217
+ "_view_count": null,
218
+ "_view_module": "@jupyter-widgets/base",
219
+ "_view_module_version": "1.2.0",
220
+ "_view_name": "StyleView",
221
+ "description_width": ""
222
+ }
223
+ },
224
+ "b4da7aa493b247cd9059c48f006aa413": {
225
+ "model_module": "@jupyter-widgets/base",
226
+ "model_name": "LayoutModel",
227
+ "model_module_version": "1.2.0",
228
+ "state": {
229
+ "_model_module": "@jupyter-widgets/base",
230
+ "_model_module_version": "1.2.0",
231
+ "_model_name": "LayoutModel",
232
+ "_view_count": null,
233
+ "_view_module": "@jupyter-widgets/base",
234
+ "_view_module_version": "1.2.0",
235
+ "_view_name": "LayoutView",
236
+ "align_content": null,
237
+ "align_items": null,
238
+ "align_self": null,
239
+ "border": null,
240
+ "bottom": null,
241
+ "display": null,
242
+ "flex": null,
243
+ "flex_flow": null,
244
+ "grid_area": null,
245
+ "grid_auto_columns": null,
246
+ "grid_auto_flow": null,
247
+ "grid_auto_rows": null,
248
+ "grid_column": null,
249
+ "grid_gap": null,
250
+ "grid_row": null,
251
+ "grid_template_areas": null,
252
+ "grid_template_columns": null,
253
+ "grid_template_rows": null,
254
+ "height": null,
255
+ "justify_content": null,
256
+ "justify_items": null,
257
+ "left": null,
258
+ "margin": null,
259
+ "max_height": null,
260
+ "max_width": null,
261
+ "min_height": null,
262
+ "min_width": null,
263
+ "object_fit": null,
264
+ "object_position": null,
265
+ "order": null,
266
+ "overflow": null,
267
+ "overflow_x": null,
268
+ "overflow_y": null,
269
+ "padding": null,
270
+ "right": null,
271
+ "top": null,
272
+ "visibility": null,
273
+ "width": null
274
+ }
275
+ },
276
+ "50adc2c76ec04e4cb5c2f32c15eaf2b0": {
277
+ "model_module": "@jupyter-widgets/controls",
278
+ "model_name": "ProgressStyleModel",
279
+ "model_module_version": "1.5.0",
280
+ "state": {
281
+ "_model_module": "@jupyter-widgets/controls",
282
+ "_model_module_version": "1.5.0",
283
+ "_model_name": "ProgressStyleModel",
284
+ "_view_count": null,
285
+ "_view_module": "@jupyter-widgets/base",
286
+ "_view_module_version": "1.2.0",
287
+ "_view_name": "StyleView",
288
+ "bar_color": null,
289
+ "description_width": ""
290
+ }
291
+ },
292
+ "c9109f203621459f9896ad0efb96fcb6": {
293
+ "model_module": "@jupyter-widgets/base",
294
+ "model_name": "LayoutModel",
295
+ "model_module_version": "1.2.0",
296
+ "state": {
297
+ "_model_module": "@jupyter-widgets/base",
298
+ "_model_module_version": "1.2.0",
299
+ "_model_name": "LayoutModel",
300
+ "_view_count": null,
301
+ "_view_module": "@jupyter-widgets/base",
302
+ "_view_module_version": "1.2.0",
303
+ "_view_name": "LayoutView",
304
+ "align_content": null,
305
+ "align_items": null,
306
+ "align_self": null,
307
+ "border": null,
308
+ "bottom": null,
309
+ "display": null,
310
+ "flex": null,
311
+ "flex_flow": null,
312
+ "grid_area": null,
313
+ "grid_auto_columns": null,
314
+ "grid_auto_flow": null,
315
+ "grid_auto_rows": null,
316
+ "grid_column": null,
317
+ "grid_gap": null,
318
+ "grid_row": null,
319
+ "grid_template_areas": null,
320
+ "grid_template_columns": null,
321
+ "grid_template_rows": null,
322
+ "height": null,
323
+ "justify_content": null,
324
+ "justify_items": null,
325
+ "left": null,
326
+ "margin": null,
327
+ "max_height": null,
328
+ "max_width": null,
329
+ "min_height": null,
330
+ "min_width": null,
331
+ "object_fit": null,
332
+ "object_position": null,
333
+ "order": null,
334
+ "overflow": null,
335
+ "overflow_x": null,
336
+ "overflow_y": null,
337
+ "padding": null,
338
+ "right": null,
339
+ "top": null,
340
+ "visibility": null,
341
+ "width": null
342
+ }
343
+ },
344
+ "9988a0ab441a4a2f93d99b265bd8f57a": {
345
+ "model_module": "@jupyter-widgets/controls",
346
+ "model_name": "DescriptionStyleModel",
347
+ "model_module_version": "1.5.0",
348
+ "state": {
349
+ "_model_module": "@jupyter-widgets/controls",
350
+ "_model_module_version": "1.5.0",
351
+ "_model_name": "DescriptionStyleModel",
352
+ "_view_count": null,
353
+ "_view_module": "@jupyter-widgets/base",
354
+ "_view_module_version": "1.2.0",
355
+ "_view_name": "StyleView",
356
+ "description_width": ""
357
+ }
358
+ },
359
+ "55ee667c3dcb41c08400bf90038722d9": {
360
+ "model_module": "@jupyter-widgets/controls",
361
+ "model_name": "HBoxModel",
362
+ "model_module_version": "1.5.0",
363
+ "state": {
364
+ "_dom_classes": [],
365
+ "_model_module": "@jupyter-widgets/controls",
366
+ "_model_module_version": "1.5.0",
367
+ "_model_name": "HBoxModel",
368
+ "_view_count": null,
369
+ "_view_module": "@jupyter-widgets/controls",
370
+ "_view_module_version": "1.5.0",
371
+ "_view_name": "HBoxView",
372
+ "box_style": "",
373
+ "children": [
374
+ "IPY_MODEL_461d88d461f842bf85740d0b8d17ebf6",
375
+ "IPY_MODEL_41bd360f7fa04dcda27a0337fa54352c",
376
+ "IPY_MODEL_e75e8a7446474eccb66b40d23b8957ba"
377
+ ],
378
+ "layout": "IPY_MODEL_a9161eeae0ab47a4b1d5b7399aacaa48"
379
+ }
380
+ },
381
+ "461d88d461f842bf85740d0b8d17ebf6": {
382
+ "model_module": "@jupyter-widgets/controls",
383
+ "model_name": "HTMLModel",
384
+ "model_module_version": "1.5.0",
385
+ "state": {
386
+ "_dom_classes": [],
387
+ "_model_module": "@jupyter-widgets/controls",
388
+ "_model_module_version": "1.5.0",
389
+ "_model_name": "HTMLModel",
390
+ "_view_count": null,
391
+ "_view_module": "@jupyter-widgets/controls",
392
+ "_view_module_version": "1.5.0",
393
+ "_view_name": "HTMLView",
394
+ "description": "",
395
+ "description_tooltip": null,
396
+ "layout": "IPY_MODEL_39dcdf16614b4ed9bf0196bdbac532b6",
397
+ "placeholder": "​",
398
+ "style": "IPY_MODEL_01ce0177179741c291771af3b73f2f1a",
399
+ "value": "vocab.txt: 100%"
400
+ }
401
+ },
402
+ "41bd360f7fa04dcda27a0337fa54352c": {
403
+ "model_module": "@jupyter-widgets/controls",
404
+ "model_name": "FloatProgressModel",
405
+ "model_module_version": "1.5.0",
406
+ "state": {
407
+ "_dom_classes": [],
408
+ "_model_module": "@jupyter-widgets/controls",
409
+ "_model_module_version": "1.5.0",
410
+ "_model_name": "FloatProgressModel",
411
+ "_view_count": null,
412
+ "_view_module": "@jupyter-widgets/controls",
413
+ "_view_module_version": "1.5.0",
414
+ "_view_name": "ProgressView",
415
+ "bar_style": "success",
416
+ "description": "",
417
+ "description_tooltip": null,
418
+ "layout": "IPY_MODEL_4615a6dc5789422da105340aeebcfb47",
419
+ "max": 231508,
420
+ "min": 0,
421
+ "orientation": "horizontal",
422
+ "style": "IPY_MODEL_7f87719908fd440b986fd0b550b0164a",
423
+ "value": 231508
424
+ }
425
+ },
426
+ "e75e8a7446474eccb66b40d23b8957ba": {
427
+ "model_module": "@jupyter-widgets/controls",
428
+ "model_name": "HTMLModel",
429
+ "model_module_version": "1.5.0",
430
+ "state": {
431
+ "_dom_classes": [],
432
+ "_model_module": "@jupyter-widgets/controls",
433
+ "_model_module_version": "1.5.0",
434
+ "_model_name": "HTMLModel",
435
+ "_view_count": null,
436
+ "_view_module": "@jupyter-widgets/controls",
437
+ "_view_module_version": "1.5.0",
438
+ "_view_name": "HTMLView",
439
+ "description": "",
440
+ "description_tooltip": null,
441
+ "layout": "IPY_MODEL_05c4b2238a404b4e905e496368738875",
442
+ "placeholder": "​",
443
+ "style": "IPY_MODEL_69cc54efbf704901918a85e82639e21d",
444
+ "value": " 232k/232k [00:00<00:00, 7.10MB/s]"
445
+ }
446
+ },
447
+ "a9161eeae0ab47a4b1d5b7399aacaa48": {
448
+ "model_module": "@jupyter-widgets/base",
449
+ "model_name": "LayoutModel",
450
+ "model_module_version": "1.2.0",
451
+ "state": {
452
+ "_model_module": "@jupyter-widgets/base",
453
+ "_model_module_version": "1.2.0",
454
+ "_model_name": "LayoutModel",
455
+ "_view_count": null,
456
+ "_view_module": "@jupyter-widgets/base",
457
+ "_view_module_version": "1.2.0",
458
+ "_view_name": "LayoutView",
459
+ "align_content": null,
460
+ "align_items": null,
461
+ "align_self": null,
462
+ "border": null,
463
+ "bottom": null,
464
+ "display": null,
465
+ "flex": null,
466
+ "flex_flow": null,
467
+ "grid_area": null,
468
+ "grid_auto_columns": null,
469
+ "grid_auto_flow": null,
470
+ "grid_auto_rows": null,
471
+ "grid_column": null,
472
+ "grid_gap": null,
473
+ "grid_row": null,
474
+ "grid_template_areas": null,
475
+ "grid_template_columns": null,
476
+ "grid_template_rows": null,
477
+ "height": null,
478
+ "justify_content": null,
479
+ "justify_items": null,
480
+ "left": null,
481
+ "margin": null,
482
+ "max_height": null,
483
+ "max_width": null,
484
+ "min_height": null,
485
+ "min_width": null,
486
+ "object_fit": null,
487
+ "object_position": null,
488
+ "order": null,
489
+ "overflow": null,
490
+ "overflow_x": null,
491
+ "overflow_y": null,
492
+ "padding": null,
493
+ "right": null,
494
+ "top": null,
495
+ "visibility": null,
496
+ "width": null
497
+ }
498
+ },
499
+ "39dcdf16614b4ed9bf0196bdbac532b6": {
500
+ "model_module": "@jupyter-widgets/base",
501
+ "model_name": "LayoutModel",
502
+ "model_module_version": "1.2.0",
503
+ "state": {
504
+ "_model_module": "@jupyter-widgets/base",
505
+ "_model_module_version": "1.2.0",
506
+ "_model_name": "LayoutModel",
507
+ "_view_count": null,
508
+ "_view_module": "@jupyter-widgets/base",
509
+ "_view_module_version": "1.2.0",
510
+ "_view_name": "LayoutView",
511
+ "align_content": null,
512
+ "align_items": null,
513
+ "align_self": null,
514
+ "border": null,
515
+ "bottom": null,
516
+ "display": null,
517
+ "flex": null,
518
+ "flex_flow": null,
519
+ "grid_area": null,
520
+ "grid_auto_columns": null,
521
+ "grid_auto_flow": null,
522
+ "grid_auto_rows": null,
523
+ "grid_column": null,
524
+ "grid_gap": null,
525
+ "grid_row": null,
526
+ "grid_template_areas": null,
527
+ "grid_template_columns": null,
528
+ "grid_template_rows": null,
529
+ "height": null,
530
+ "justify_content": null,
531
+ "justify_items": null,
532
+ "left": null,
533
+ "margin": null,
534
+ "max_height": null,
535
+ "max_width": null,
536
+ "min_height": null,
537
+ "min_width": null,
538
+ "object_fit": null,
539
+ "object_position": null,
540
+ "order": null,
541
+ "overflow": null,
542
+ "overflow_x": null,
543
+ "overflow_y": null,
544
+ "padding": null,
545
+ "right": null,
546
+ "top": null,
547
+ "visibility": null,
548
+ "width": null
549
+ }
550
+ },
551
+ "01ce0177179741c291771af3b73f2f1a": {
552
+ "model_module": "@jupyter-widgets/controls",
553
+ "model_name": "DescriptionStyleModel",
554
+ "model_module_version": "1.5.0",
555
+ "state": {
556
+ "_model_module": "@jupyter-widgets/controls",
557
+ "_model_module_version": "1.5.0",
558
+ "_model_name": "DescriptionStyleModel",
559
+ "_view_count": null,
560
+ "_view_module": "@jupyter-widgets/base",
561
+ "_view_module_version": "1.2.0",
562
+ "_view_name": "StyleView",
563
+ "description_width": ""
564
+ }
565
+ },
566
+ "4615a6dc5789422da105340aeebcfb47": {
567
+ "model_module": "@jupyter-widgets/base",
568
+ "model_name": "LayoutModel",
569
+ "model_module_version": "1.2.0",
570
+ "state": {
571
+ "_model_module": "@jupyter-widgets/base",
572
+ "_model_module_version": "1.2.0",
573
+ "_model_name": "LayoutModel",
574
+ "_view_count": null,
575
+ "_view_module": "@jupyter-widgets/base",
576
+ "_view_module_version": "1.2.0",
577
+ "_view_name": "LayoutView",
578
+ "align_content": null,
579
+ "align_items": null,
580
+ "align_self": null,
581
+ "border": null,
582
+ "bottom": null,
583
+ "display": null,
584
+ "flex": null,
585
+ "flex_flow": null,
586
+ "grid_area": null,
587
+ "grid_auto_columns": null,
588
+ "grid_auto_flow": null,
589
+ "grid_auto_rows": null,
590
+ "grid_column": null,
591
+ "grid_gap": null,
592
+ "grid_row": null,
593
+ "grid_template_areas": null,
594
+ "grid_template_columns": null,
595
+ "grid_template_rows": null,
596
+ "height": null,
597
+ "justify_content": null,
598
+ "justify_items": null,
599
+ "left": null,
600
+ "margin": null,
601
+ "max_height": null,
602
+ "max_width": null,
603
+ "min_height": null,
604
+ "min_width": null,
605
+ "object_fit": null,
606
+ "object_position": null,
607
+ "order": null,
608
+ "overflow": null,
609
+ "overflow_x": null,
610
+ "overflow_y": null,
611
+ "padding": null,
612
+ "right": null,
613
+ "top": null,
614
+ "visibility": null,
615
+ "width": null
616
+ }
617
+ },
618
+ "7f87719908fd440b986fd0b550b0164a": {
619
+ "model_module": "@jupyter-widgets/controls",
620
+ "model_name": "ProgressStyleModel",
621
+ "model_module_version": "1.5.0",
622
+ "state": {
623
+ "_model_module": "@jupyter-widgets/controls",
624
+ "_model_module_version": "1.5.0",
625
+ "_model_name": "ProgressStyleModel",
626
+ "_view_count": null,
627
+ "_view_module": "@jupyter-widgets/base",
628
+ "_view_module_version": "1.2.0",
629
+ "_view_name": "StyleView",
630
+ "bar_color": null,
631
+ "description_width": ""
632
+ }
633
+ },
634
+ "05c4b2238a404b4e905e496368738875": {
635
+ "model_module": "@jupyter-widgets/base",
636
+ "model_name": "LayoutModel",
637
+ "model_module_version": "1.2.0",
638
+ "state": {
639
+ "_model_module": "@jupyter-widgets/base",
640
+ "_model_module_version": "1.2.0",
641
+ "_model_name": "LayoutModel",
642
+ "_view_count": null,
643
+ "_view_module": "@jupyter-widgets/base",
644
+ "_view_module_version": "1.2.0",
645
+ "_view_name": "LayoutView",
646
+ "align_content": null,
647
+ "align_items": null,
648
+ "align_self": null,
649
+ "border": null,
650
+ "bottom": null,
651
+ "display": null,
652
+ "flex": null,
653
+ "flex_flow": null,
654
+ "grid_area": null,
655
+ "grid_auto_columns": null,
656
+ "grid_auto_flow": null,
657
+ "grid_auto_rows": null,
658
+ "grid_column": null,
659
+ "grid_gap": null,
660
+ "grid_row": null,
661
+ "grid_template_areas": null,
662
+ "grid_template_columns": null,
663
+ "grid_template_rows": null,
664
+ "height": null,
665
+ "justify_content": null,
666
+ "justify_items": null,
667
+ "left": null,
668
+ "margin": null,
669
+ "max_height": null,
670
+ "max_width": null,
671
+ "min_height": null,
672
+ "min_width": null,
673
+ "object_fit": null,
674
+ "object_position": null,
675
+ "order": null,
676
+ "overflow": null,
677
+ "overflow_x": null,
678
+ "overflow_y": null,
679
+ "padding": null,
680
+ "right": null,
681
+ "top": null,
682
+ "visibility": null,
683
+ "width": null
684
+ }
685
+ },
686
+ "69cc54efbf704901918a85e82639e21d": {
687
+ "model_module": "@jupyter-widgets/controls",
688
+ "model_name": "DescriptionStyleModel",
689
+ "model_module_version": "1.5.0",
690
+ "state": {
691
+ "_model_module": "@jupyter-widgets/controls",
692
+ "_model_module_version": "1.5.0",
693
+ "_model_name": "DescriptionStyleModel",
694
+ "_view_count": null,
695
+ "_view_module": "@jupyter-widgets/base",
696
+ "_view_module_version": "1.2.0",
697
+ "_view_name": "StyleView",
698
+ "description_width": ""
699
+ }
700
+ },
701
+ "ca8228676cc04cad8d76bda6442bd168": {
702
+ "model_module": "@jupyter-widgets/controls",
703
+ "model_name": "HBoxModel",
704
+ "model_module_version": "1.5.0",
705
+ "state": {
706
+ "_dom_classes": [],
707
+ "_model_module": "@jupyter-widgets/controls",
708
+ "_model_module_version": "1.5.0",
709
+ "_model_name": "HBoxModel",
710
+ "_view_count": null,
711
+ "_view_module": "@jupyter-widgets/controls",
712
+ "_view_module_version": "1.5.0",
713
+ "_view_name": "HBoxView",
714
+ "box_style": "",
715
+ "children": [
716
+ "IPY_MODEL_4fca4c1548ef45ff97545cf74fead26a",
717
+ "IPY_MODEL_670ede8f323b42a1a4369374370040c8",
718
+ "IPY_MODEL_8fd946e2a242415682c39a5db2c3433b"
719
+ ],
720
+ "layout": "IPY_MODEL_061f66fbb37e495e930ac15670fe6ed9"
721
+ }
722
+ },
723
+ "4fca4c1548ef45ff97545cf74fead26a": {
724
+ "model_module": "@jupyter-widgets/controls",
725
+ "model_name": "HTMLModel",
726
+ "model_module_version": "1.5.0",
727
+ "state": {
728
+ "_dom_classes": [],
729
+ "_model_module": "@jupyter-widgets/controls",
730
+ "_model_module_version": "1.5.0",
731
+ "_model_name": "HTMLModel",
732
+ "_view_count": null,
733
+ "_view_module": "@jupyter-widgets/controls",
734
+ "_view_module_version": "1.5.0",
735
+ "_view_name": "HTMLView",
736
+ "description": "",
737
+ "description_tooltip": null,
738
+ "layout": "IPY_MODEL_26db81c738ce4380a24316ff5d03ec9f",
739
+ "placeholder": "​",
740
+ "style": "IPY_MODEL_95299a9a9e8a4723a91bdbfb73a177cd",
741
+ "value": "tokenizer.json: 100%"
742
+ }
743
+ },
744
+ "670ede8f323b42a1a4369374370040c8": {
745
+ "model_module": "@jupyter-widgets/controls",
746
+ "model_name": "FloatProgressModel",
747
+ "model_module_version": "1.5.0",
748
+ "state": {
749
+ "_dom_classes": [],
750
+ "_model_module": "@jupyter-widgets/controls",
751
+ "_model_module_version": "1.5.0",
752
+ "_model_name": "FloatProgressModel",
753
+ "_view_count": null,
754
+ "_view_module": "@jupyter-widgets/controls",
755
+ "_view_module_version": "1.5.0",
756
+ "_view_name": "ProgressView",
757
+ "bar_style": "success",
758
+ "description": "",
759
+ "description_tooltip": null,
760
+ "layout": "IPY_MODEL_1f95007b96db468384088baed3bf05cb",
761
+ "max": 466062,
762
+ "min": 0,
763
+ "orientation": "horizontal",
764
+ "style": "IPY_MODEL_7393d10f5da54e6a90d47fd1ab8edca5",
765
+ "value": 466062
766
+ }
767
+ },
768
+ "8fd946e2a242415682c39a5db2c3433b": {
769
+ "model_module": "@jupyter-widgets/controls",
770
+ "model_name": "HTMLModel",
771
+ "model_module_version": "1.5.0",
772
+ "state": {
773
+ "_dom_classes": [],
774
+ "_model_module": "@jupyter-widgets/controls",
775
+ "_model_module_version": "1.5.0",
776
+ "_model_name": "HTMLModel",
777
+ "_view_count": null,
778
+ "_view_module": "@jupyter-widgets/controls",
779
+ "_view_module_version": "1.5.0",
780
+ "_view_name": "HTMLView",
781
+ "description": "",
782
+ "description_tooltip": null,
783
+ "layout": "IPY_MODEL_bd1b4729eb7e482d9f53302909b4e73d",
784
+ "placeholder": "​",
785
+ "style": "IPY_MODEL_3b589229b8204057a93020a8cc7a2cad",
786
+ "value": " 466k/466k [00:00<00:00, 20.2MB/s]"
787
+ }
788
+ },
789
+ "061f66fbb37e495e930ac15670fe6ed9": {
790
+ "model_module": "@jupyter-widgets/base",
791
+ "model_name": "LayoutModel",
792
+ "model_module_version": "1.2.0",
793
+ "state": {
794
+ "_model_module": "@jupyter-widgets/base",
795
+ "_model_module_version": "1.2.0",
796
+ "_model_name": "LayoutModel",
797
+ "_view_count": null,
798
+ "_view_module": "@jupyter-widgets/base",
799
+ "_view_module_version": "1.2.0",
800
+ "_view_name": "LayoutView",
801
+ "align_content": null,
802
+ "align_items": null,
803
+ "align_self": null,
804
+ "border": null,
805
+ "bottom": null,
806
+ "display": null,
807
+ "flex": null,
808
+ "flex_flow": null,
809
+ "grid_area": null,
810
+ "grid_auto_columns": null,
811
+ "grid_auto_flow": null,
812
+ "grid_auto_rows": null,
813
+ "grid_column": null,
814
+ "grid_gap": null,
815
+ "grid_row": null,
816
+ "grid_template_areas": null,
817
+ "grid_template_columns": null,
818
+ "grid_template_rows": null,
819
+ "height": null,
820
+ "justify_content": null,
821
+ "justify_items": null,
822
+ "left": null,
823
+ "margin": null,
824
+ "max_height": null,
825
+ "max_width": null,
826
+ "min_height": null,
827
+ "min_width": null,
828
+ "object_fit": null,
829
+ "object_position": null,
830
+ "order": null,
831
+ "overflow": null,
832
+ "overflow_x": null,
833
+ "overflow_y": null,
834
+ "padding": null,
835
+ "right": null,
836
+ "top": null,
837
+ "visibility": null,
838
+ "width": null
839
+ }
840
+ },
841
+ "26db81c738ce4380a24316ff5d03ec9f": {
842
+ "model_module": "@jupyter-widgets/base",
843
+ "model_name": "LayoutModel",
844
+ "model_module_version": "1.2.0",
845
+ "state": {
846
+ "_model_module": "@jupyter-widgets/base",
847
+ "_model_module_version": "1.2.0",
848
+ "_model_name": "LayoutModel",
849
+ "_view_count": null,
850
+ "_view_module": "@jupyter-widgets/base",
851
+ "_view_module_version": "1.2.0",
852
+ "_view_name": "LayoutView",
853
+ "align_content": null,
854
+ "align_items": null,
855
+ "align_self": null,
856
+ "border": null,
857
+ "bottom": null,
858
+ "display": null,
859
+ "flex": null,
860
+ "flex_flow": null,
861
+ "grid_area": null,
862
+ "grid_auto_columns": null,
863
+ "grid_auto_flow": null,
864
+ "grid_auto_rows": null,
865
+ "grid_column": null,
866
+ "grid_gap": null,
867
+ "grid_row": null,
868
+ "grid_template_areas": null,
869
+ "grid_template_columns": null,
870
+ "grid_template_rows": null,
871
+ "height": null,
872
+ "justify_content": null,
873
+ "justify_items": null,
874
+ "left": null,
875
+ "margin": null,
876
+ "max_height": null,
877
+ "max_width": null,
878
+ "min_height": null,
879
+ "min_width": null,
880
+ "object_fit": null,
881
+ "object_position": null,
882
+ "order": null,
883
+ "overflow": null,
884
+ "overflow_x": null,
885
+ "overflow_y": null,
886
+ "padding": null,
887
+ "right": null,
888
+ "top": null,
889
+ "visibility": null,
890
+ "width": null
891
+ }
892
+ },
893
+ "95299a9a9e8a4723a91bdbfb73a177cd": {
894
+ "model_module": "@jupyter-widgets/controls",
895
+ "model_name": "DescriptionStyleModel",
896
+ "model_module_version": "1.5.0",
897
+ "state": {
898
+ "_model_module": "@jupyter-widgets/controls",
899
+ "_model_module_version": "1.5.0",
900
+ "_model_name": "DescriptionStyleModel",
901
+ "_view_count": null,
902
+ "_view_module": "@jupyter-widgets/base",
903
+ "_view_module_version": "1.2.0",
904
+ "_view_name": "StyleView",
905
+ "description_width": ""
906
+ }
907
+ },
908
+ "1f95007b96db468384088baed3bf05cb": {
909
+ "model_module": "@jupyter-widgets/base",
910
+ "model_name": "LayoutModel",
911
+ "model_module_version": "1.2.0",
912
+ "state": {
913
+ "_model_module": "@jupyter-widgets/base",
914
+ "_model_module_version": "1.2.0",
915
+ "_model_name": "LayoutModel",
916
+ "_view_count": null,
917
+ "_view_module": "@jupyter-widgets/base",
918
+ "_view_module_version": "1.2.0",
919
+ "_view_name": "LayoutView",
920
+ "align_content": null,
921
+ "align_items": null,
922
+ "align_self": null,
923
+ "border": null,
924
+ "bottom": null,
925
+ "display": null,
926
+ "flex": null,
927
+ "flex_flow": null,
928
+ "grid_area": null,
929
+ "grid_auto_columns": null,
930
+ "grid_auto_flow": null,
931
+ "grid_auto_rows": null,
932
+ "grid_column": null,
933
+ "grid_gap": null,
934
+ "grid_row": null,
935
+ "grid_template_areas": null,
936
+ "grid_template_columns": null,
937
+ "grid_template_rows": null,
938
+ "height": null,
939
+ "justify_content": null,
940
+ "justify_items": null,
941
+ "left": null,
942
+ "margin": null,
943
+ "max_height": null,
944
+ "max_width": null,
945
+ "min_height": null,
946
+ "min_width": null,
947
+ "object_fit": null,
948
+ "object_position": null,
949
+ "order": null,
950
+ "overflow": null,
951
+ "overflow_x": null,
952
+ "overflow_y": null,
953
+ "padding": null,
954
+ "right": null,
955
+ "top": null,
956
+ "visibility": null,
957
+ "width": null
958
+ }
959
+ },
960
+ "7393d10f5da54e6a90d47fd1ab8edca5": {
961
+ "model_module": "@jupyter-widgets/controls",
962
+ "model_name": "ProgressStyleModel",
963
+ "model_module_version": "1.5.0",
964
+ "state": {
965
+ "_model_module": "@jupyter-widgets/controls",
966
+ "_model_module_version": "1.5.0",
967
+ "_model_name": "ProgressStyleModel",
968
+ "_view_count": null,
969
+ "_view_module": "@jupyter-widgets/base",
970
+ "_view_module_version": "1.2.0",
971
+ "_view_name": "StyleView",
972
+ "bar_color": null,
973
+ "description_width": ""
974
+ }
975
+ },
976
+ "bd1b4729eb7e482d9f53302909b4e73d": {
977
+ "model_module": "@jupyter-widgets/base",
978
+ "model_name": "LayoutModel",
979
+ "model_module_version": "1.2.0",
980
+ "state": {
981
+ "_model_module": "@jupyter-widgets/base",
982
+ "_model_module_version": "1.2.0",
983
+ "_model_name": "LayoutModel",
984
+ "_view_count": null,
985
+ "_view_module": "@jupyter-widgets/base",
986
+ "_view_module_version": "1.2.0",
987
+ "_view_name": "LayoutView",
988
+ "align_content": null,
989
+ "align_items": null,
990
+ "align_self": null,
991
+ "border": null,
992
+ "bottom": null,
993
+ "display": null,
994
+ "flex": null,
995
+ "flex_flow": null,
996
+ "grid_area": null,
997
+ "grid_auto_columns": null,
998
+ "grid_auto_flow": null,
999
+ "grid_auto_rows": null,
1000
+ "grid_column": null,
1001
+ "grid_gap": null,
1002
+ "grid_row": null,
1003
+ "grid_template_areas": null,
1004
+ "grid_template_columns": null,
1005
+ "grid_template_rows": null,
1006
+ "height": null,
1007
+ "justify_content": null,
1008
+ "justify_items": null,
1009
+ "left": null,
1010
+ "margin": null,
1011
+ "max_height": null,
1012
+ "max_width": null,
1013
+ "min_height": null,
1014
+ "min_width": null,
1015
+ "object_fit": null,
1016
+ "object_position": null,
1017
+ "order": null,
1018
+ "overflow": null,
1019
+ "overflow_x": null,
1020
+ "overflow_y": null,
1021
+ "padding": null,
1022
+ "right": null,
1023
+ "top": null,
1024
+ "visibility": null,
1025
+ "width": null
1026
+ }
1027
+ },
1028
+ "3b589229b8204057a93020a8cc7a2cad": {
1029
+ "model_module": "@jupyter-widgets/controls",
1030
+ "model_name": "DescriptionStyleModel",
1031
+ "model_module_version": "1.5.0",
1032
+ "state": {
1033
+ "_model_module": "@jupyter-widgets/controls",
1034
+ "_model_module_version": "1.5.0",
1035
+ "_model_name": "DescriptionStyleModel",
1036
+ "_view_count": null,
1037
+ "_view_module": "@jupyter-widgets/base",
1038
+ "_view_module_version": "1.2.0",
1039
+ "_view_name": "StyleView",
1040
+ "description_width": ""
1041
+ }
1042
+ },
1043
+ "7cb5a1c1aa1c4b7686c0a4bad4c80361": {
1044
+ "model_module": "@jupyter-widgets/controls",
1045
+ "model_name": "HBoxModel",
1046
+ "model_module_version": "1.5.0",
1047
+ "state": {
1048
+ "_dom_classes": [],
1049
+ "_model_module": "@jupyter-widgets/controls",
1050
+ "_model_module_version": "1.5.0",
1051
+ "_model_name": "HBoxModel",
1052
+ "_view_count": null,
1053
+ "_view_module": "@jupyter-widgets/controls",
1054
+ "_view_module_version": "1.5.0",
1055
+ "_view_name": "HBoxView",
1056
+ "box_style": "",
1057
+ "children": [
1058
+ "IPY_MODEL_9d0a97e3c7e846a6aa53ae26e1cba567",
1059
+ "IPY_MODEL_2f18383ad64349bbb9afad28ff7bc2d5",
1060
+ "IPY_MODEL_01f5066b088f49ee8f8e3346d11948aa"
1061
+ ],
1062
+ "layout": "IPY_MODEL_b5338e00dc42428982df63b59f545439"
1063
+ }
1064
+ },
1065
+ "9d0a97e3c7e846a6aa53ae26e1cba567": {
1066
+ "model_module": "@jupyter-widgets/controls",
1067
+ "model_name": "HTMLModel",
1068
+ "model_module_version": "1.5.0",
1069
+ "state": {
1070
+ "_dom_classes": [],
1071
+ "_model_module": "@jupyter-widgets/controls",
1072
+ "_model_module_version": "1.5.0",
1073
+ "_model_name": "HTMLModel",
1074
+ "_view_count": null,
1075
+ "_view_module": "@jupyter-widgets/controls",
1076
+ "_view_module_version": "1.5.0",
1077
+ "_view_name": "HTMLView",
1078
+ "description": "",
1079
+ "description_tooltip": null,
1080
+ "layout": "IPY_MODEL_f2210b6852f148968002245c50b1b94b",
1081
+ "placeholder": "​",
1082
+ "style": "IPY_MODEL_cd994d33e9c548cb8d84e9f136dfdf30",
1083
+ "value": "config.json: 100%"
1084
+ }
1085
+ },
1086
+ "2f18383ad64349bbb9afad28ff7bc2d5": {
1087
+ "model_module": "@jupyter-widgets/controls",
1088
+ "model_name": "FloatProgressModel",
1089
+ "model_module_version": "1.5.0",
1090
+ "state": {
1091
+ "_dom_classes": [],
1092
+ "_model_module": "@jupyter-widgets/controls",
1093
+ "_model_module_version": "1.5.0",
1094
+ "_model_name": "FloatProgressModel",
1095
+ "_view_count": null,
1096
+ "_view_module": "@jupyter-widgets/controls",
1097
+ "_view_module_version": "1.5.0",
1098
+ "_view_name": "ProgressView",
1099
+ "bar_style": "success",
1100
+ "description": "",
1101
+ "description_tooltip": null,
1102
+ "layout": "IPY_MODEL_31e717b3d406475aaed17430e22918ad",
1103
+ "max": 570,
1104
+ "min": 0,
1105
+ "orientation": "horizontal",
1106
+ "style": "IPY_MODEL_264dc1c494fa4cd58f6809ac4f65fba6",
1107
+ "value": 570
1108
+ }
1109
+ },
1110
+ "01f5066b088f49ee8f8e3346d11948aa": {
1111
+ "model_module": "@jupyter-widgets/controls",
1112
+ "model_name": "HTMLModel",
1113
+ "model_module_version": "1.5.0",
1114
+ "state": {
1115
+ "_dom_classes": [],
1116
+ "_model_module": "@jupyter-widgets/controls",
1117
+ "_model_module_version": "1.5.0",
1118
+ "_model_name": "HTMLModel",
1119
+ "_view_count": null,
1120
+ "_view_module": "@jupyter-widgets/controls",
1121
+ "_view_module_version": "1.5.0",
1122
+ "_view_name": "HTMLView",
1123
+ "description": "",
1124
+ "description_tooltip": null,
1125
+ "layout": "IPY_MODEL_c69adcc934f54680b5f5b80b46eece95",
1126
+ "placeholder": "​",
1127
+ "style": "IPY_MODEL_e7ce0207a1e34205a5997edf5d1b591b",
1128
+ "value": " 570/570 [00:00<00:00, 32.2kB/s]"
1129
+ }
1130
+ },
1131
+ "b5338e00dc42428982df63b59f545439": {
1132
+ "model_module": "@jupyter-widgets/base",
1133
+ "model_name": "LayoutModel",
1134
+ "model_module_version": "1.2.0",
1135
+ "state": {
1136
+ "_model_module": "@jupyter-widgets/base",
1137
+ "_model_module_version": "1.2.0",
1138
+ "_model_name": "LayoutModel",
1139
+ "_view_count": null,
1140
+ "_view_module": "@jupyter-widgets/base",
1141
+ "_view_module_version": "1.2.0",
1142
+ "_view_name": "LayoutView",
1143
+ "align_content": null,
1144
+ "align_items": null,
1145
+ "align_self": null,
1146
+ "border": null,
1147
+ "bottom": null,
1148
+ "display": null,
1149
+ "flex": null,
1150
+ "flex_flow": null,
1151
+ "grid_area": null,
1152
+ "grid_auto_columns": null,
1153
+ "grid_auto_flow": null,
1154
+ "grid_auto_rows": null,
1155
+ "grid_column": null,
1156
+ "grid_gap": null,
1157
+ "grid_row": null,
1158
+ "grid_template_areas": null,
1159
+ "grid_template_columns": null,
1160
+ "grid_template_rows": null,
1161
+ "height": null,
1162
+ "justify_content": null,
1163
+ "justify_items": null,
1164
+ "left": null,
1165
+ "margin": null,
1166
+ "max_height": null,
1167
+ "max_width": null,
1168
+ "min_height": null,
1169
+ "min_width": null,
1170
+ "object_fit": null,
1171
+ "object_position": null,
1172
+ "order": null,
1173
+ "overflow": null,
1174
+ "overflow_x": null,
1175
+ "overflow_y": null,
1176
+ "padding": null,
1177
+ "right": null,
1178
+ "top": null,
1179
+ "visibility": null,
1180
+ "width": null
1181
+ }
1182
+ },
1183
+ "f2210b6852f148968002245c50b1b94b": {
1184
+ "model_module": "@jupyter-widgets/base",
1185
+ "model_name": "LayoutModel",
1186
+ "model_module_version": "1.2.0",
1187
+ "state": {
1188
+ "_model_module": "@jupyter-widgets/base",
1189
+ "_model_module_version": "1.2.0",
1190
+ "_model_name": "LayoutModel",
1191
+ "_view_count": null,
1192
+ "_view_module": "@jupyter-widgets/base",
1193
+ "_view_module_version": "1.2.0",
1194
+ "_view_name": "LayoutView",
1195
+ "align_content": null,
1196
+ "align_items": null,
1197
+ "align_self": null,
1198
+ "border": null,
1199
+ "bottom": null,
1200
+ "display": null,
1201
+ "flex": null,
1202
+ "flex_flow": null,
1203
+ "grid_area": null,
1204
+ "grid_auto_columns": null,
1205
+ "grid_auto_flow": null,
1206
+ "grid_auto_rows": null,
1207
+ "grid_column": null,
1208
+ "grid_gap": null,
1209
+ "grid_row": null,
1210
+ "grid_template_areas": null,
1211
+ "grid_template_columns": null,
1212
+ "grid_template_rows": null,
1213
+ "height": null,
1214
+ "justify_content": null,
1215
+ "justify_items": null,
1216
+ "left": null,
1217
+ "margin": null,
1218
+ "max_height": null,
1219
+ "max_width": null,
1220
+ "min_height": null,
1221
+ "min_width": null,
1222
+ "object_fit": null,
1223
+ "object_position": null,
1224
+ "order": null,
1225
+ "overflow": null,
1226
+ "overflow_x": null,
1227
+ "overflow_y": null,
1228
+ "padding": null,
1229
+ "right": null,
1230
+ "top": null,
1231
+ "visibility": null,
1232
+ "width": null
1233
+ }
1234
+ },
1235
+ "cd994d33e9c548cb8d84e9f136dfdf30": {
1236
+ "model_module": "@jupyter-widgets/controls",
1237
+ "model_name": "DescriptionStyleModel",
1238
+ "model_module_version": "1.5.0",
1239
+ "state": {
1240
+ "_model_module": "@jupyter-widgets/controls",
1241
+ "_model_module_version": "1.5.0",
1242
+ "_model_name": "DescriptionStyleModel",
1243
+ "_view_count": null,
1244
+ "_view_module": "@jupyter-widgets/base",
1245
+ "_view_module_version": "1.2.0",
1246
+ "_view_name": "StyleView",
1247
+ "description_width": ""
1248
+ }
1249
+ },
1250
+ "31e717b3d406475aaed17430e22918ad": {
1251
+ "model_module": "@jupyter-widgets/base",
1252
+ "model_name": "LayoutModel",
1253
+ "model_module_version": "1.2.0",
1254
+ "state": {
1255
+ "_model_module": "@jupyter-widgets/base",
1256
+ "_model_module_version": "1.2.0",
1257
+ "_model_name": "LayoutModel",
1258
+ "_view_count": null,
1259
+ "_view_module": "@jupyter-widgets/base",
1260
+ "_view_module_version": "1.2.0",
1261
+ "_view_name": "LayoutView",
1262
+ "align_content": null,
1263
+ "align_items": null,
1264
+ "align_self": null,
1265
+ "border": null,
1266
+ "bottom": null,
1267
+ "display": null,
1268
+ "flex": null,
1269
+ "flex_flow": null,
1270
+ "grid_area": null,
1271
+ "grid_auto_columns": null,
1272
+ "grid_auto_flow": null,
1273
+ "grid_auto_rows": null,
1274
+ "grid_column": null,
1275
+ "grid_gap": null,
1276
+ "grid_row": null,
1277
+ "grid_template_areas": null,
1278
+ "grid_template_columns": null,
1279
+ "grid_template_rows": null,
1280
+ "height": null,
1281
+ "justify_content": null,
1282
+ "justify_items": null,
1283
+ "left": null,
1284
+ "margin": null,
1285
+ "max_height": null,
1286
+ "max_width": null,
1287
+ "min_height": null,
1288
+ "min_width": null,
1289
+ "object_fit": null,
1290
+ "object_position": null,
1291
+ "order": null,
1292
+ "overflow": null,
1293
+ "overflow_x": null,
1294
+ "overflow_y": null,
1295
+ "padding": null,
1296
+ "right": null,
1297
+ "top": null,
1298
+ "visibility": null,
1299
+ "width": null
1300
+ }
1301
+ },
1302
+ "264dc1c494fa4cd58f6809ac4f65fba6": {
1303
+ "model_module": "@jupyter-widgets/controls",
1304
+ "model_name": "ProgressStyleModel",
1305
+ "model_module_version": "1.5.0",
1306
+ "state": {
1307
+ "_model_module": "@jupyter-widgets/controls",
1308
+ "_model_module_version": "1.5.0",
1309
+ "_model_name": "ProgressStyleModel",
1310
+ "_view_count": null,
1311
+ "_view_module": "@jupyter-widgets/base",
1312
+ "_view_module_version": "1.2.0",
1313
+ "_view_name": "StyleView",
1314
+ "bar_color": null,
1315
+ "description_width": ""
1316
+ }
1317
+ },
1318
+ "c69adcc934f54680b5f5b80b46eece95": {
1319
+ "model_module": "@jupyter-widgets/base",
1320
+ "model_name": "LayoutModel",
1321
+ "model_module_version": "1.2.0",
1322
+ "state": {
1323
+ "_model_module": "@jupyter-widgets/base",
1324
+ "_model_module_version": "1.2.0",
1325
+ "_model_name": "LayoutModel",
1326
+ "_view_count": null,
1327
+ "_view_module": "@jupyter-widgets/base",
1328
+ "_view_module_version": "1.2.0",
1329
+ "_view_name": "LayoutView",
1330
+ "align_content": null,
1331
+ "align_items": null,
1332
+ "align_self": null,
1333
+ "border": null,
1334
+ "bottom": null,
1335
+ "display": null,
1336
+ "flex": null,
1337
+ "flex_flow": null,
1338
+ "grid_area": null,
1339
+ "grid_auto_columns": null,
1340
+ "grid_auto_flow": null,
1341
+ "grid_auto_rows": null,
1342
+ "grid_column": null,
1343
+ "grid_gap": null,
1344
+ "grid_row": null,
1345
+ "grid_template_areas": null,
1346
+ "grid_template_columns": null,
1347
+ "grid_template_rows": null,
1348
+ "height": null,
1349
+ "justify_content": null,
1350
+ "justify_items": null,
1351
+ "left": null,
1352
+ "margin": null,
1353
+ "max_height": null,
1354
+ "max_width": null,
1355
+ "min_height": null,
1356
+ "min_width": null,
1357
+ "object_fit": null,
1358
+ "object_position": null,
1359
+ "order": null,
1360
+ "overflow": null,
1361
+ "overflow_x": null,
1362
+ "overflow_y": null,
1363
+ "padding": null,
1364
+ "right": null,
1365
+ "top": null,
1366
+ "visibility": null,
1367
+ "width": null
1368
+ }
1369
+ },
1370
+ "e7ce0207a1e34205a5997edf5d1b591b": {
1371
+ "model_module": "@jupyter-widgets/controls",
1372
+ "model_name": "DescriptionStyleModel",
1373
+ "model_module_version": "1.5.0",
1374
+ "state": {
1375
+ "_model_module": "@jupyter-widgets/controls",
1376
+ "_model_module_version": "1.5.0",
1377
+ "_model_name": "DescriptionStyleModel",
1378
+ "_view_count": null,
1379
+ "_view_module": "@jupyter-widgets/base",
1380
+ "_view_module_version": "1.2.0",
1381
+ "_view_name": "StyleView",
1382
+ "description_width": ""
1383
+ }
1384
+ },
1385
+ "3c81be5080ec403e90d2f1f26d1713b3": {
1386
+ "model_module": "@jupyter-widgets/controls",
1387
+ "model_name": "HBoxModel",
1388
+ "model_module_version": "1.5.0",
1389
+ "state": {
1390
+ "_dom_classes": [],
1391
+ "_model_module": "@jupyter-widgets/controls",
1392
+ "_model_module_version": "1.5.0",
1393
+ "_model_name": "HBoxModel",
1394
+ "_view_count": null,
1395
+ "_view_module": "@jupyter-widgets/controls",
1396
+ "_view_module_version": "1.5.0",
1397
+ "_view_name": "HBoxView",
1398
+ "box_style": "",
1399
+ "children": [
1400
+ "IPY_MODEL_f95170ab6050497e9867dec502de8d59",
1401
+ "IPY_MODEL_4a3f414ab41e40d2beff1e1a18614c21",
1402
+ "IPY_MODEL_f7aa426fc9484ba2bc1345cafdddf958"
1403
+ ],
1404
+ "layout": "IPY_MODEL_61c34b9db4ac46c3a3f6924cce296c1f"
1405
+ }
1406
+ },
1407
+ "f95170ab6050497e9867dec502de8d59": {
1408
+ "model_module": "@jupyter-widgets/controls",
1409
+ "model_name": "HTMLModel",
1410
+ "model_module_version": "1.5.0",
1411
+ "state": {
1412
+ "_dom_classes": [],
1413
+ "_model_module": "@jupyter-widgets/controls",
1414
+ "_model_module_version": "1.5.0",
1415
+ "_model_name": "HTMLModel",
1416
+ "_view_count": null,
1417
+ "_view_module": "@jupyter-widgets/controls",
1418
+ "_view_module_version": "1.5.0",
1419
+ "_view_name": "HTMLView",
1420
+ "description": "",
1421
+ "description_tooltip": null,
1422
+ "layout": "IPY_MODEL_ca029e26b304491281cafe3ea45242bf",
1423
+ "placeholder": "​",
1424
+ "style": "IPY_MODEL_b74a832501734dfd8431bac7e1d7d3cc",
1425
+ "value": "model.safetensors: 100%"
1426
+ }
1427
+ },
1428
+ "4a3f414ab41e40d2beff1e1a18614c21": {
1429
+ "model_module": "@jupyter-widgets/controls",
1430
+ "model_name": "FloatProgressModel",
1431
+ "model_module_version": "1.5.0",
1432
+ "state": {
1433
+ "_dom_classes": [],
1434
+ "_model_module": "@jupyter-widgets/controls",
1435
+ "_model_module_version": "1.5.0",
1436
+ "_model_name": "FloatProgressModel",
1437
+ "_view_count": null,
1438
+ "_view_module": "@jupyter-widgets/controls",
1439
+ "_view_module_version": "1.5.0",
1440
+ "_view_name": "ProgressView",
1441
+ "bar_style": "success",
1442
+ "description": "",
1443
+ "description_tooltip": null,
1444
+ "layout": "IPY_MODEL_1f970c7407bf415a904799b0cf23fc72",
1445
+ "max": 440449768,
1446
+ "min": 0,
1447
+ "orientation": "horizontal",
1448
+ "style": "IPY_MODEL_b4bc0a2450044e988243e8609180b132",
1449
+ "value": 440449768
1450
+ }
1451
+ },
1452
+ "f7aa426fc9484ba2bc1345cafdddf958": {
1453
+ "model_module": "@jupyter-widgets/controls",
1454
+ "model_name": "HTMLModel",
1455
+ "model_module_version": "1.5.0",
1456
+ "state": {
1457
+ "_dom_classes": [],
1458
+ "_model_module": "@jupyter-widgets/controls",
1459
+ "_model_module_version": "1.5.0",
1460
+ "_model_name": "HTMLModel",
1461
+ "_view_count": null,
1462
+ "_view_module": "@jupyter-widgets/controls",
1463
+ "_view_module_version": "1.5.0",
1464
+ "_view_name": "HTMLView",
1465
+ "description": "",
1466
+ "description_tooltip": null,
1467
+ "layout": "IPY_MODEL_283e8900cfbc46a9b87fcd360dce0517",
1468
+ "placeholder": "​",
1469
+ "style": "IPY_MODEL_30363ae06da7424790c717993e97061b",
1470
+ "value": " 440M/440M [00:01<00:00, 234MB/s]"
1471
+ }
1472
+ },
1473
+ "61c34b9db4ac46c3a3f6924cce296c1f": {
1474
+ "model_module": "@jupyter-widgets/base",
1475
+ "model_name": "LayoutModel",
1476
+ "model_module_version": "1.2.0",
1477
+ "state": {
1478
+ "_model_module": "@jupyter-widgets/base",
1479
+ "_model_module_version": "1.2.0",
1480
+ "_model_name": "LayoutModel",
1481
+ "_view_count": null,
1482
+ "_view_module": "@jupyter-widgets/base",
1483
+ "_view_module_version": "1.2.0",
1484
+ "_view_name": "LayoutView",
1485
+ "align_content": null,
1486
+ "align_items": null,
1487
+ "align_self": null,
1488
+ "border": null,
1489
+ "bottom": null,
1490
+ "display": null,
1491
+ "flex": null,
1492
+ "flex_flow": null,
1493
+ "grid_area": null,
1494
+ "grid_auto_columns": null,
1495
+ "grid_auto_flow": null,
1496
+ "grid_auto_rows": null,
1497
+ "grid_column": null,
1498
+ "grid_gap": null,
1499
+ "grid_row": null,
1500
+ "grid_template_areas": null,
1501
+ "grid_template_columns": null,
1502
+ "grid_template_rows": null,
1503
+ "height": null,
1504
+ "justify_content": null,
1505
+ "justify_items": null,
1506
+ "left": null,
1507
+ "margin": null,
1508
+ "max_height": null,
1509
+ "max_width": null,
1510
+ "min_height": null,
1511
+ "min_width": null,
1512
+ "object_fit": null,
1513
+ "object_position": null,
1514
+ "order": null,
1515
+ "overflow": null,
1516
+ "overflow_x": null,
1517
+ "overflow_y": null,
1518
+ "padding": null,
1519
+ "right": null,
1520
+ "top": null,
1521
+ "visibility": null,
1522
+ "width": null
1523
+ }
1524
+ },
1525
+ "ca029e26b304491281cafe3ea45242bf": {
1526
+ "model_module": "@jupyter-widgets/base",
1527
+ "model_name": "LayoutModel",
1528
+ "model_module_version": "1.2.0",
1529
+ "state": {
1530
+ "_model_module": "@jupyter-widgets/base",
1531
+ "_model_module_version": "1.2.0",
1532
+ "_model_name": "LayoutModel",
1533
+ "_view_count": null,
1534
+ "_view_module": "@jupyter-widgets/base",
1535
+ "_view_module_version": "1.2.0",
1536
+ "_view_name": "LayoutView",
1537
+ "align_content": null,
1538
+ "align_items": null,
1539
+ "align_self": null,
1540
+ "border": null,
1541
+ "bottom": null,
1542
+ "display": null,
1543
+ "flex": null,
1544
+ "flex_flow": null,
1545
+ "grid_area": null,
1546
+ "grid_auto_columns": null,
1547
+ "grid_auto_flow": null,
1548
+ "grid_auto_rows": null,
1549
+ "grid_column": null,
1550
+ "grid_gap": null,
1551
+ "grid_row": null,
1552
+ "grid_template_areas": null,
1553
+ "grid_template_columns": null,
1554
+ "grid_template_rows": null,
1555
+ "height": null,
1556
+ "justify_content": null,
1557
+ "justify_items": null,
1558
+ "left": null,
1559
+ "margin": null,
1560
+ "max_height": null,
1561
+ "max_width": null,
1562
+ "min_height": null,
1563
+ "min_width": null,
1564
+ "object_fit": null,
1565
+ "object_position": null,
1566
+ "order": null,
1567
+ "overflow": null,
1568
+ "overflow_x": null,
1569
+ "overflow_y": null,
1570
+ "padding": null,
1571
+ "right": null,
1572
+ "top": null,
1573
+ "visibility": null,
1574
+ "width": null
1575
+ }
1576
+ },
1577
+ "b74a832501734dfd8431bac7e1d7d3cc": {
1578
+ "model_module": "@jupyter-widgets/controls",
1579
+ "model_name": "DescriptionStyleModel",
1580
+ "model_module_version": "1.5.0",
1581
+ "state": {
1582
+ "_model_module": "@jupyter-widgets/controls",
1583
+ "_model_module_version": "1.5.0",
1584
+ "_model_name": "DescriptionStyleModel",
1585
+ "_view_count": null,
1586
+ "_view_module": "@jupyter-widgets/base",
1587
+ "_view_module_version": "1.2.0",
1588
+ "_view_name": "StyleView",
1589
+ "description_width": ""
1590
+ }
1591
+ },
1592
+ "1f970c7407bf415a904799b0cf23fc72": {
1593
+ "model_module": "@jupyter-widgets/base",
1594
+ "model_name": "LayoutModel",
1595
+ "model_module_version": "1.2.0",
1596
+ "state": {
1597
+ "_model_module": "@jupyter-widgets/base",
1598
+ "_model_module_version": "1.2.0",
1599
+ "_model_name": "LayoutModel",
1600
+ "_view_count": null,
1601
+ "_view_module": "@jupyter-widgets/base",
1602
+ "_view_module_version": "1.2.0",
1603
+ "_view_name": "LayoutView",
1604
+ "align_content": null,
1605
+ "align_items": null,
1606
+ "align_self": null,
1607
+ "border": null,
1608
+ "bottom": null,
1609
+ "display": null,
1610
+ "flex": null,
1611
+ "flex_flow": null,
1612
+ "grid_area": null,
1613
+ "grid_auto_columns": null,
1614
+ "grid_auto_flow": null,
1615
+ "grid_auto_rows": null,
1616
+ "grid_column": null,
1617
+ "grid_gap": null,
1618
+ "grid_row": null,
1619
+ "grid_template_areas": null,
1620
+ "grid_template_columns": null,
1621
+ "grid_template_rows": null,
1622
+ "height": null,
1623
+ "justify_content": null,
1624
+ "justify_items": null,
1625
+ "left": null,
1626
+ "margin": null,
1627
+ "max_height": null,
1628
+ "max_width": null,
1629
+ "min_height": null,
1630
+ "min_width": null,
1631
+ "object_fit": null,
1632
+ "object_position": null,
1633
+ "order": null,
1634
+ "overflow": null,
1635
+ "overflow_x": null,
1636
+ "overflow_y": null,
1637
+ "padding": null,
1638
+ "right": null,
1639
+ "top": null,
1640
+ "visibility": null,
1641
+ "width": null
1642
+ }
1643
+ },
1644
+ "b4bc0a2450044e988243e8609180b132": {
1645
+ "model_module": "@jupyter-widgets/controls",
1646
+ "model_name": "ProgressStyleModel",
1647
+ "model_module_version": "1.5.0",
1648
+ "state": {
1649
+ "_model_module": "@jupyter-widgets/controls",
1650
+ "_model_module_version": "1.5.0",
1651
+ "_model_name": "ProgressStyleModel",
1652
+ "_view_count": null,
1653
+ "_view_module": "@jupyter-widgets/base",
1654
+ "_view_module_version": "1.2.0",
1655
+ "_view_name": "StyleView",
1656
+ "bar_color": null,
1657
+ "description_width": ""
1658
+ }
1659
+ },
1660
+ "283e8900cfbc46a9b87fcd360dce0517": {
1661
+ "model_module": "@jupyter-widgets/base",
1662
+ "model_name": "LayoutModel",
1663
+ "model_module_version": "1.2.0",
1664
+ "state": {
1665
+ "_model_module": "@jupyter-widgets/base",
1666
+ "_model_module_version": "1.2.0",
1667
+ "_model_name": "LayoutModel",
1668
+ "_view_count": null,
1669
+ "_view_module": "@jupyter-widgets/base",
1670
+ "_view_module_version": "1.2.0",
1671
+ "_view_name": "LayoutView",
1672
+ "align_content": null,
1673
+ "align_items": null,
1674
+ "align_self": null,
1675
+ "border": null,
1676
+ "bottom": null,
1677
+ "display": null,
1678
+ "flex": null,
1679
+ "flex_flow": null,
1680
+ "grid_area": null,
1681
+ "grid_auto_columns": null,
1682
+ "grid_auto_flow": null,
1683
+ "grid_auto_rows": null,
1684
+ "grid_column": null,
1685
+ "grid_gap": null,
1686
+ "grid_row": null,
1687
+ "grid_template_areas": null,
1688
+ "grid_template_columns": null,
1689
+ "grid_template_rows": null,
1690
+ "height": null,
1691
+ "justify_content": null,
1692
+ "justify_items": null,
1693
+ "left": null,
1694
+ "margin": null,
1695
+ "max_height": null,
1696
+ "max_width": null,
1697
+ "min_height": null,
1698
+ "min_width": null,
1699
+ "object_fit": null,
1700
+ "object_position": null,
1701
+ "order": null,
1702
+ "overflow": null,
1703
+ "overflow_x": null,
1704
+ "overflow_y": null,
1705
+ "padding": null,
1706
+ "right": null,
1707
+ "top": null,
1708
+ "visibility": null,
1709
+ "width": null
1710
+ }
1711
+ },
1712
+ "30363ae06da7424790c717993e97061b": {
1713
+ "model_module": "@jupyter-widgets/controls",
1714
+ "model_name": "DescriptionStyleModel",
1715
+ "model_module_version": "1.5.0",
1716
+ "state": {
1717
+ "_model_module": "@jupyter-widgets/controls",
1718
+ "_model_module_version": "1.5.0",
1719
+ "_model_name": "DescriptionStyleModel",
1720
+ "_view_count": null,
1721
+ "_view_module": "@jupyter-widgets/base",
1722
+ "_view_module_version": "1.2.0",
1723
+ "_view_name": "StyleView",
1724
+ "description_width": ""
1725
+ }
1726
+ }
1727
+ }
1728
+ }
1729
+ },
1730
+ "cells": [
1731
+ {
1732
+ "cell_type": "markdown",
1733
+ "source": [
1734
+ "***Imports and PIPs***"
1735
+ ],
1736
+ "metadata": {
1737
+ "id": "83qf4vTx2y3f"
1738
+ }
1739
+ },
1740
+ {
1741
+ "cell_type": "code",
1742
+ "source": [
1743
+ "!pip install transformers torch pandas scikit-learn"
1744
+ ],
1745
+ "metadata": {
1746
+ "colab": {
1747
+ "base_uri": "https://localhost:8080/",
1748
+ "height": 0
1749
+ },
1750
+ "id": "ebbwcDIQTe1D",
1751
+ "outputId": "7230bd61-43fa-4480-e895-31c3321deff8"
1752
+ },
1753
+ "execution_count": 1,
1754
+ "outputs": [
1755
+ {
1756
+ "output_type": "stream",
1757
+ "name": "stdout",
1758
+ "text": [
1759
+ "Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (4.42.4)\n",
1760
+ "Requirement already satisfied: torch in /usr/local/lib/python3.10/dist-packages (2.3.1+cu121)\n",
1761
+ "Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (2.1.4)\n",
1762
+ "Requirement already satisfied: scikit-learn in /usr/local/lib/python3.10/dist-packages (1.3.2)\n",
1763
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers) (3.15.4)\n",
1764
+ "Requirement already satisfied: huggingface-hub<1.0,>=0.23.2 in /usr/local/lib/python3.10/dist-packages (from transformers) (0.23.5)\n",
1765
+ "Requirement already satisfied: numpy<2.0,>=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers) (1.26.4)\n",
1766
+ "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from transformers) (24.1)\n",
1767
+ "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from transformers) (6.0.2)\n",
1768
+ "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers) (2024.5.15)\n",
1769
+ "Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers) (2.32.3)\n",
1770
+ "Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from transformers) (0.4.4)\n",
1771
+ "Requirement already satisfied: tokenizers<0.20,>=0.19 in /usr/local/lib/python3.10/dist-packages (from transformers) (0.19.1)\n",
1772
+ "Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers) (4.66.5)\n",
1773
+ "Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch) (4.12.2)\n",
1774
+ "Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch) (1.13.2)\n",
1775
+ "Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch) (3.3)\n",
1776
+ "Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch) (3.1.4)\n",
1777
+ "Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch) (2024.6.1)\n",
1778
+ "Collecting nvidia-cuda-nvrtc-cu12==12.1.105 (from torch)\n",
1779
+ " Using cached nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl.metadata (1.5 kB)\n",
1780
+ "Collecting nvidia-cuda-runtime-cu12==12.1.105 (from torch)\n",
1781
+ " Using cached nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl.metadata (1.5 kB)\n",
1782
+ "Collecting nvidia-cuda-cupti-cu12==12.1.105 (from torch)\n",
1783
+ " Using cached nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl.metadata (1.6 kB)\n",
1784
+ "Collecting nvidia-cudnn-cu12==8.9.2.26 (from torch)\n",
1785
+ " Using cached nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl.metadata (1.6 kB)\n",
1786
+ "Collecting nvidia-cublas-cu12==12.1.3.1 (from torch)\n",
1787
+ " Using cached nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl.metadata (1.5 kB)\n",
1788
+ "Collecting nvidia-cufft-cu12==11.0.2.54 (from torch)\n",
1789
+ " Using cached nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl.metadata (1.5 kB)\n",
1790
+ "Collecting nvidia-curand-cu12==10.3.2.106 (from torch)\n",
1791
+ " Using cached nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl.metadata (1.5 kB)\n",
1792
+ "Collecting nvidia-cusolver-cu12==11.4.5.107 (from torch)\n",
1793
+ " Using cached nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl.metadata (1.6 kB)\n",
1794
+ "Collecting nvidia-cusparse-cu12==12.1.0.106 (from torch)\n",
1795
+ " Using cached nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl.metadata (1.6 kB)\n",
1796
+ "Collecting nvidia-nccl-cu12==2.20.5 (from torch)\n",
1797
+ " Using cached nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl.metadata (1.8 kB)\n",
1798
+ "Collecting nvidia-nvtx-cu12==12.1.105 (from torch)\n",
1799
+ " Using cached nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl.metadata (1.7 kB)\n",
1800
+ "Requirement already satisfied: triton==2.3.1 in /usr/local/lib/python3.10/dist-packages (from torch) (2.3.1)\n",
1801
+ "Collecting nvidia-nvjitlink-cu12 (from nvidia-cusolver-cu12==11.4.5.107->torch)\n",
1802
+ " Using cached nvidia_nvjitlink_cu12-12.6.20-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
1803
+ "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/dist-packages (from pandas) (2.8.2)\n",
1804
+ "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas) (2024.1)\n",
1805
+ "Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas) (2024.1)\n",
1806
+ "Requirement already satisfied: scipy>=1.5.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn) (1.13.1)\n",
1807
+ "Requirement already satisfied: joblib>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from scikit-learn) (1.4.2)\n",
1808
+ "Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn) (3.5.0)\n",
1809
+ "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\n",
1810
+ "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch) (2.1.5)\n",
1811
+ "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->transformers) (3.3.2)\n",
1812
+ "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->transformers) (3.7)\n",
1813
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->transformers) (2.0.7)\n",
1814
+ "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->transformers) (2024.7.4)\n",
1815
+ "Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch) (1.3.0)\n",
1816
+ "Using cached nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)\n",
1817
+ "Using cached nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)\n",
1818
+ "Using cached nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)\n",
1819
+ "Using cached nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)\n",
1820
+ "Using cached nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)\n",
1821
+ "Using cached nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)\n",
1822
+ "Using cached nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)\n",
1823
+ "Using cached nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)\n",
1824
+ "Using cached nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl (196.0 MB)\n",
1825
+ "Using cached nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl (176.2 MB)\n",
1826
+ "Using cached nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)\n",
1827
+ "Using cached nvidia_nvjitlink_cu12-12.6.20-py3-none-manylinux2014_x86_64.whl (19.7 MB)\n",
1828
+ "Installing collected packages: nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, nvidia-cusparse-cu12, nvidia-cudnn-cu12, nvidia-cusolver-cu12\n",
1829
+ "Successfully installed nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.20.5 nvidia-nvjitlink-cu12-12.6.20 nvidia-nvtx-cu12-12.1.105\n"
1830
+ ]
1831
+ }
1832
+ ]
1833
+ },
1834
+ {
1835
+ "cell_type": "code",
1836
+ "source": [
1837
+ "import pandas as pd\n",
1838
+ "import torch\n",
1839
+ "from transformers import BertTokenizer, BertForSequenceClassification, Trainer, TrainingArguments\n",
1840
+ "from sklearn.model_selection import train_test_split\n",
1841
+ "from sklearn.metrics import accuracy_score, classification_report\n",
1842
+ "from torch.utils.data import Dataset"
1843
+ ],
1844
+ "metadata": {
1845
+ "id": "tXPa3Q0HSsFC"
1846
+ },
1847
+ "execution_count": 2,
1848
+ "outputs": []
1849
+ },
1850
+ {
1851
+ "cell_type": "markdown",
1852
+ "source": [
1853
+ "***PRE-PROCESSING***"
1854
+ ],
1855
+ "metadata": {
1856
+ "id": "9yaeUJ_q3Zsf"
1857
+ }
1858
+ },
1859
+ {
1860
+ "cell_type": "code",
1861
+ "source": [
1862
+ "class TextDataset(Dataset):\n",
1863
+ " def __init__(self, texts, labels, tokenizer, max_len):\n",
1864
+ " self.texts = texts\n",
1865
+ " self.labels = labels\n",
1866
+ " self.tokenizer = tokenizer\n",
1867
+ " self.max_len = max_len\n",
1868
+ "\n",
1869
+ " def __len__(self):\n",
1870
+ " return len(self.texts)\n",
1871
+ "\n",
1872
+ " def __getitem__(self, idx):\n",
1873
+ " text = self.texts[idx]\n",
1874
+ " label = self.labels[idx]\n",
1875
+ " encoding = self.tokenizer.encode_plus(\n",
1876
+ " text,\n",
1877
+ " add_special_tokens=True,\n",
1878
+ " max_length=self.max_len,\n",
1879
+ " padding='max_length',\n",
1880
+ " truncation=True,\n",
1881
+ " return_tensors='pt'\n",
1882
+ " )\n",
1883
+ " return {\n",
1884
+ " 'input_ids': encoding['input_ids'].flatten(),\n",
1885
+ " 'attention_mask': encoding['attention_mask'].flatten(),\n",
1886
+ " 'labels': torch.tensor(label, dtype=torch.long)\n",
1887
+ " }"
1888
+ ],
1889
+ "metadata": {
1890
+ "id": "_5o2TqupSswE"
1891
+ },
1892
+ "execution_count": 3,
1893
+ "outputs": []
1894
+ },
1895
+ {
1896
+ "cell_type": "markdown",
1897
+ "source": [
1898
+ "***BERT - MODEL ***"
1899
+ ],
1900
+ "metadata": {
1901
+ "id": "eJxuyQlk3hrB"
1902
+ }
1903
+ },
1904
+ {
1905
+ "cell_type": "code",
1906
+ "source": [
1907
+ "train_df = pd.read_csv('labelled_train_set (1).csv')\n",
1908
+ "test_df = pd.read_csv('unlabelled_test2 (1).csv')"
1909
+ ],
1910
+ "metadata": {
1911
+ "id": "AaYpOIpHSsyw"
1912
+ },
1913
+ "execution_count": 4,
1914
+ "outputs": []
1915
+ },
1916
+ {
1917
+ "cell_type": "code",
1918
+ "source": [
1919
+ "tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')"
1920
+ ],
1921
+ "metadata": {
1922
+ "id": "STWbzQnNSs1l",
1923
+ "colab": {
1924
+ "base_uri": "https://localhost:8080/",
1925
+ "height": 269,
1926
+ "referenced_widgets": [
1927
+ "801a67b0b1014f149c3fe286084bed6a",
1928
+ "65e6146ec9b1405a89430dcdb35ea43f",
1929
+ "147dd205c35247b69e4e64e078594050",
1930
+ "4d09a266eb024d4394e79957f9003d69",
1931
+ "d0d8ef68f91b4bc987fe7340f0c9fef6",
1932
+ "c1dc9015cca74cdda44e6d3a0abd59b6",
1933
+ "0de7b1b1acbf4043b27f6ca3731227c9",
1934
+ "b4da7aa493b247cd9059c48f006aa413",
1935
+ "50adc2c76ec04e4cb5c2f32c15eaf2b0",
1936
+ "c9109f203621459f9896ad0efb96fcb6",
1937
+ "9988a0ab441a4a2f93d99b265bd8f57a",
1938
+ "55ee667c3dcb41c08400bf90038722d9",
1939
+ "461d88d461f842bf85740d0b8d17ebf6",
1940
+ "41bd360f7fa04dcda27a0337fa54352c",
1941
+ "e75e8a7446474eccb66b40d23b8957ba",
1942
+ "a9161eeae0ab47a4b1d5b7399aacaa48",
1943
+ "39dcdf16614b4ed9bf0196bdbac532b6",
1944
+ "01ce0177179741c291771af3b73f2f1a",
1945
+ "4615a6dc5789422da105340aeebcfb47",
1946
+ "7f87719908fd440b986fd0b550b0164a",
1947
+ "05c4b2238a404b4e905e496368738875",
1948
+ "69cc54efbf704901918a85e82639e21d",
1949
+ "ca8228676cc04cad8d76bda6442bd168",
1950
+ "4fca4c1548ef45ff97545cf74fead26a",
1951
+ "670ede8f323b42a1a4369374370040c8",
1952
+ "8fd946e2a242415682c39a5db2c3433b",
1953
+ "061f66fbb37e495e930ac15670fe6ed9",
1954
+ "26db81c738ce4380a24316ff5d03ec9f",
1955
+ "95299a9a9e8a4723a91bdbfb73a177cd",
1956
+ "1f95007b96db468384088baed3bf05cb",
1957
+ "7393d10f5da54e6a90d47fd1ab8edca5",
1958
+ "bd1b4729eb7e482d9f53302909b4e73d",
1959
+ "3b589229b8204057a93020a8cc7a2cad",
1960
+ "7cb5a1c1aa1c4b7686c0a4bad4c80361",
1961
+ "9d0a97e3c7e846a6aa53ae26e1cba567",
1962
+ "2f18383ad64349bbb9afad28ff7bc2d5",
1963
+ "01f5066b088f49ee8f8e3346d11948aa",
1964
+ "b5338e00dc42428982df63b59f545439",
1965
+ "f2210b6852f148968002245c50b1b94b",
1966
+ "cd994d33e9c548cb8d84e9f136dfdf30",
1967
+ "31e717b3d406475aaed17430e22918ad",
1968
+ "264dc1c494fa4cd58f6809ac4f65fba6",
1969
+ "c69adcc934f54680b5f5b80b46eece95",
1970
+ "e7ce0207a1e34205a5997edf5d1b591b"
1971
+ ]
1972
+ },
1973
+ "outputId": "89325f36-62b4-458b-c576-55ccc92d7fd3"
1974
+ },
1975
+ "execution_count": 5,
1976
+ "outputs": [
1977
+ {
1978
+ "output_type": "stream",
1979
+ "name": "stderr",
1980
+ "text": [
1981
+ "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_token.py:89: UserWarning: \n",
1982
+ "The secret `HF_TOKEN` does not exist in your Colab secrets.\n",
1983
+ "To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n",
1984
+ "You will be able to reuse this secret in all of your notebooks.\n",
1985
+ "Please note that authentication is recommended but still optional to access public models or datasets.\n",
1986
+ " warnings.warn(\n"
1987
+ ]
1988
+ },
1989
+ {
1990
+ "output_type": "display_data",
1991
+ "data": {
1992
+ "text/plain": [
1993
+ "tokenizer_config.json: 0%| | 0.00/48.0 [00:00<?, ?B/s]"
1994
+ ],
1995
+ "application/vnd.jupyter.widget-view+json": {
1996
+ "version_major": 2,
1997
+ "version_minor": 0,
1998
+ "model_id": "801a67b0b1014f149c3fe286084bed6a"
1999
+ }
2000
+ },
2001
+ "metadata": {}
2002
+ },
2003
+ {
2004
+ "output_type": "display_data",
2005
+ "data": {
2006
+ "text/plain": [
2007
+ "vocab.txt: 0%| | 0.00/232k [00:00<?, ?B/s]"
2008
+ ],
2009
+ "application/vnd.jupyter.widget-view+json": {
2010
+ "version_major": 2,
2011
+ "version_minor": 0,
2012
+ "model_id": "55ee667c3dcb41c08400bf90038722d9"
2013
+ }
2014
+ },
2015
+ "metadata": {}
2016
+ },
2017
+ {
2018
+ "output_type": "display_data",
2019
+ "data": {
2020
+ "text/plain": [
2021
+ "tokenizer.json: 0%| | 0.00/466k [00:00<?, ?B/s]"
2022
+ ],
2023
+ "application/vnd.jupyter.widget-view+json": {
2024
+ "version_major": 2,
2025
+ "version_minor": 0,
2026
+ "model_id": "ca8228676cc04cad8d76bda6442bd168"
2027
+ }
2028
+ },
2029
+ "metadata": {}
2030
+ },
2031
+ {
2032
+ "output_type": "display_data",
2033
+ "data": {
2034
+ "text/plain": [
2035
+ "config.json: 0%| | 0.00/570 [00:00<?, ?B/s]"
2036
+ ],
2037
+ "application/vnd.jupyter.widget-view+json": {
2038
+ "version_major": 2,
2039
+ "version_minor": 0,
2040
+ "model_id": "7cb5a1c1aa1c4b7686c0a4bad4c80361"
2041
+ }
2042
+ },
2043
+ "metadata": {}
2044
+ }
2045
+ ]
2046
+ },
2047
+ {
2048
+ "cell_type": "code",
2049
+ "source": [
2050
+ "label_mapping = {'Human-written': 0, 'AI-generated': 1}\n",
2051
+ "train_df['Type'] = train_df['Type'].map(label_mapping)"
2052
+ ],
2053
+ "metadata": {
2054
+ "id": "ntdnZUKKSs3z"
2055
+ },
2056
+ "execution_count": 6,
2057
+ "outputs": []
2058
+ },
2059
+ {
2060
+ "cell_type": "code",
2061
+ "source": [
2062
+ "X = train_df['Article'].tolist()\n",
2063
+ "y = train_df['Type'].tolist()"
2064
+ ],
2065
+ "metadata": {
2066
+ "id": "LvUVKOKBSs6S"
2067
+ },
2068
+ "execution_count": 7,
2069
+ "outputs": []
2070
+ },
2071
+ {
2072
+ "cell_type": "code",
2073
+ "source": [
2074
+ "X_train, X_val, y_train, y_val = train_test_split(X, y, test_size=0.2, random_state=42)\n"
2075
+ ],
2076
+ "metadata": {
2077
+ "id": "lkqV1HffSs8m"
2078
+ },
2079
+ "execution_count": 8,
2080
+ "outputs": []
2081
+ },
2082
+ {
2083
+ "cell_type": "code",
2084
+ "source": [
2085
+ "MAX_LEN = 256"
2086
+ ],
2087
+ "metadata": {
2088
+ "id": "G5oCbeVGSs_P"
2089
+ },
2090
+ "execution_count": 9,
2091
+ "outputs": []
2092
+ },
2093
+ {
2094
+ "cell_type": "code",
2095
+ "source": [
2096
+ "train_dataset = TextDataset(X_train, y_train, tokenizer, MAX_LEN)\n",
2097
+ "val_dataset = TextDataset(X_val, y_val, tokenizer, MAX_LEN)"
2098
+ ],
2099
+ "metadata": {
2100
+ "id": "4ew1JIulStB4"
2101
+ },
2102
+ "execution_count": 10,
2103
+ "outputs": []
2104
+ },
2105
+ {
2106
+ "cell_type": "code",
2107
+ "source": [
2108
+ "model = BertForSequenceClassification.from_pretrained('bert-base-uncased', num_labels=2)"
2109
+ ],
2110
+ "metadata": {
2111
+ "colab": {
2112
+ "base_uri": "https://localhost:8080/",
2113
+ "height": 104,
2114
+ "referenced_widgets": [
2115
+ "3c81be5080ec403e90d2f1f26d1713b3",
2116
+ "f95170ab6050497e9867dec502de8d59",
2117
+ "4a3f414ab41e40d2beff1e1a18614c21",
2118
+ "f7aa426fc9484ba2bc1345cafdddf958",
2119
+ "61c34b9db4ac46c3a3f6924cce296c1f",
2120
+ "ca029e26b304491281cafe3ea45242bf",
2121
+ "b74a832501734dfd8431bac7e1d7d3cc",
2122
+ "1f970c7407bf415a904799b0cf23fc72",
2123
+ "b4bc0a2450044e988243e8609180b132",
2124
+ "283e8900cfbc46a9b87fcd360dce0517",
2125
+ "30363ae06da7424790c717993e97061b"
2126
+ ]
2127
+ },
2128
+ "id": "XWFNCnc5StEb",
2129
+ "outputId": "75fd09d3-62fd-4c60-bde3-aabe63c9067f"
2130
+ },
2131
+ "execution_count": 11,
2132
+ "outputs": [
2133
+ {
2134
+ "output_type": "display_data",
2135
+ "data": {
2136
+ "text/plain": [
2137
+ "model.safetensors: 0%| | 0.00/440M [00:00<?, ?B/s]"
2138
+ ],
2139
+ "application/vnd.jupyter.widget-view+json": {
2140
+ "version_major": 2,
2141
+ "version_minor": 0,
2142
+ "model_id": "3c81be5080ec403e90d2f1f26d1713b3"
2143
+ }
2144
+ },
2145
+ "metadata": {}
2146
+ },
2147
+ {
2148
+ "output_type": "stream",
2149
+ "name": "stderr",
2150
+ "text": [
2151
+ "Some weights of BertForSequenceClassification were not initialized from the model checkpoint at bert-base-uncased and are newly initialized: ['classifier.bias', 'classifier.weight']\n",
2152
+ "You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
2153
+ ]
2154
+ }
2155
+ ]
2156
+ },
2157
+ {
2158
+ "cell_type": "markdown",
2159
+ "source": [
2160
+ "***TRAINING THE SET (FITS)***"
2161
+ ],
2162
+ "metadata": {
2163
+ "id": "dkLIt8l13-Oz"
2164
+ }
2165
+ },
2166
+ {
2167
+ "cell_type": "code",
2168
+ "source": [
2169
+ "training_args = TrainingArguments(\n",
2170
+ " output_dir='./results',\n",
2171
+ " num_train_epochs=5,\n",
2172
+ " per_device_train_batch_size=16,\n",
2173
+ " per_device_eval_batch_size=16,\n",
2174
+ " learning_rate=2e-5,\n",
2175
+ " warmup_steps=500,\n",
2176
+ " weight_decay=0.01,\n",
2177
+ " logging_dir='./logs',\n",
2178
+ " logging_steps=10,\n",
2179
+ " eval_strategy=\"steps\",\n",
2180
+ " eval_steps=500,\n",
2181
+ " save_steps=1000,\n",
2182
+ " save_total_limit=2,\n",
2183
+ " load_best_model_at_end=True,\n",
2184
+ " metric_for_best_model=\"accuracy\",\n",
2185
+ ")"
2186
+ ],
2187
+ "metadata": {
2188
+ "id": "8BJS4wEtStGw"
2189
+ },
2190
+ "execution_count": 12,
2191
+ "outputs": []
2192
+ },
2193
+ {
2194
+ "cell_type": "code",
2195
+ "source": [
2196
+ "from transformers import TrainerCallback\n",
2197
+ "\n",
2198
+ "class EarlyStoppingCallback(TrainerCallback):\n",
2199
+ " def __init__(self, early_stopping_patience: int):\n",
2200
+ " self.early_stopping_patience = early_stopping_patience\n",
2201
+ " self.best_score = float('-inf')\n",
2202
+ " self.patience_counter = 0\n",
2203
+ "\n",
2204
+ " def on_evaluate(self, args, state, control, **kwargs):\n",
2205
+ " eval_metrics = kwargs.get('metrics', {})\n",
2206
+ " current_score = eval_metrics.get('eval_accuracy', float('-inf'))\n",
2207
+ "\n",
2208
+ " if current_score > self.best_score:\n",
2209
+ " self.best_score = current_score\n",
2210
+ " self.patience_counter = 0\n",
2211
+ " else:\n",
2212
+ " self.patience_counter += 1\n",
2213
+ "\n",
2214
+ " if self.patience_counter >= self.early_stopping_patience:\n",
2215
+ " control.should_terminate = True\n",
2216
+ "\n",
2217
+ " return control"
2218
+ ],
2219
+ "metadata": {
2220
+ "id": "9dRwLRaz9p-V"
2221
+ },
2222
+ "execution_count": 13,
2223
+ "outputs": []
2224
+ },
2225
+ {
2226
+ "cell_type": "code",
2227
+ "source": [
2228
+ "trainer = Trainer(\n",
2229
+ " model=model,\n",
2230
+ " args=training_args,\n",
2231
+ " train_dataset=train_dataset,\n",
2232
+ " eval_dataset=val_dataset,\n",
2233
+ " callbacks=[EarlyStoppingCallback(early_stopping_patience=3)], # Early stopping to avoid overfitting\n",
2234
+ ")"
2235
+ ],
2236
+ "metadata": {
2237
+ "id": "nUrxO_YwStJF"
2238
+ },
2239
+ "execution_count": 14,
2240
+ "outputs": []
2241
+ },
2242
+ {
2243
+ "cell_type": "code",
2244
+ "source": [
2245
+ "trainer.train()"
2246
+ ],
2247
+ "metadata": {
2248
+ "colab": {
2249
+ "base_uri": "https://localhost:8080/",
2250
+ "height": 110
2251
+ },
2252
+ "id": "oRdQ7YQTStLx",
2253
+ "outputId": "b2e276c4-7099-45bb-e310-228b54a968c7"
2254
+ },
2255
+ "execution_count": 15,
2256
+ "outputs": [
2257
+ {
2258
+ "output_type": "display_data",
2259
+ "data": {
2260
+ "text/plain": [
2261
+ "<IPython.core.display.HTML object>"
2262
+ ],
2263
+ "text/html": [
2264
+ "\n",
2265
+ " <div>\n",
2266
+ " \n",
2267
+ " <progress value='125' max='125' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
2268
+ " [125/125 1:24:17, Epoch 5/5]\n",
2269
+ " </div>\n",
2270
+ " <table border=\"1\" class=\"dataframe\">\n",
2271
+ " <thead>\n",
2272
+ " <tr style=\"text-align: left;\">\n",
2273
+ " <th>Step</th>\n",
2274
+ " <th>Training Loss</th>\n",
2275
+ " <th>Validation Loss</th>\n",
2276
+ " </tr>\n",
2277
+ " </thead>\n",
2278
+ " <tbody>\n",
2279
+ " </tbody>\n",
2280
+ "</table><p>"
2281
+ ]
2282
+ },
2283
+ "metadata": {}
2284
+ },
2285
+ {
2286
+ "output_type": "execute_result",
2287
+ "data": {
2288
+ "text/plain": [
2289
+ "TrainOutput(global_step=125, training_loss=0.46063039779663084, metrics={'train_runtime': 5104.3322, 'train_samples_per_second': 0.392, 'train_steps_per_second': 0.024, 'total_flos': 263111055360000.0, 'train_loss': 0.46063039779663084, 'epoch': 5.0})"
2290
+ ]
2291
+ },
2292
+ "metadata": {},
2293
+ "execution_count": 15
2294
+ }
2295
+ ]
2296
+ },
2297
+ {
2298
+ "cell_type": "code",
2299
+ "source": [
2300
+ "eval_results = trainer.evaluate()\n",
2301
+ "print(\"Evaluation Results:\", eval_results)\n",
2302
+ "\n",
2303
+ "if 'eval_accuracy' in eval_results:\n",
2304
+ " print(f\"Validation Accuracy: {eval_results['eval_accuracy']}\")\n",
2305
+ "else:\n",
2306
+ " print(\"AC not found\")\n"
2307
+ ],
2308
+ "metadata": {
2309
+ "id": "fcMtp-HMTR3T",
2310
+ "colab": {
2311
+ "base_uri": "https://localhost:8080/",
2312
+ "height": 92
2313
+ },
2314
+ "outputId": "8c89a269-26b8-437f-e0b9-e583d677a632"
2315
+ },
2316
+ "execution_count": 16,
2317
+ "outputs": [
2318
+ {
2319
+ "output_type": "display_data",
2320
+ "data": {
2321
+ "text/plain": [
2322
+ "<IPython.core.display.HTML object>"
2323
+ ],
2324
+ "text/html": [
2325
+ "\n",
2326
+ " <div>\n",
2327
+ " \n",
2328
+ " <progress value='7' max='7' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
2329
+ " [7/7 01:02]\n",
2330
+ " </div>\n",
2331
+ " "
2332
+ ]
2333
+ },
2334
+ "metadata": {}
2335
+ },
2336
+ {
2337
+ "output_type": "stream",
2338
+ "name": "stdout",
2339
+ "text": [
2340
+ "Evaluation Results: {'eval_loss': 0.2704020142555237, 'eval_runtime': 74.4392, 'eval_samples_per_second': 1.343, 'eval_steps_per_second': 0.094, 'epoch': 5.0}\n",
2341
+ "AC not found\n"
2342
+ ]
2343
+ }
2344
+ ]
2345
+ },
2346
+ {
2347
+ "cell_type": "markdown",
2348
+ "source": [
2349
+ "**`*`FINAL RUN`*`**"
2350
+ ],
2351
+ "metadata": {
2352
+ "id": "XHlI8nUB4Kvv"
2353
+ }
2354
+ },
2355
+ {
2356
+ "cell_type": "code",
2357
+ "source": [
2358
+ "from sklearn.metrics import accuracy_score\n",
2359
+ "\n",
2360
+ "# Make predictions on the validation set\n",
2361
+ "val_predictions = trainer.predict(val_dataset)\n",
2362
+ "val_preds = val_predictions.predictions.argmax(axis=-1)\n",
2363
+ "\n",
2364
+ "# Compute accuracy\n",
2365
+ "val_accuracy = accuracy_score(y_val, val_preds)\n",
2366
+ "print(f\"Validation Accuracy: {val_accuracy}\")\n",
2367
+ "\n",
2368
+ "# classification report\n",
2369
+ "print(\"\\nClassification Report:\")\n",
2370
+ "print(classification_report(y_val, val_preds))\n"
2371
+ ],
2372
+ "metadata": {
2373
+ "colab": {
2374
+ "base_uri": "https://localhost:8080/",
2375
+ "height": 225
2376
+ },
2377
+ "id": "7Z63Jd8KjEq_",
2378
+ "outputId": "cd761333-990a-4889-b3c4-625ac6194721"
2379
+ },
2380
+ "execution_count": 17,
2381
+ "outputs": [
2382
+ {
2383
+ "output_type": "display_data",
2384
+ "data": {
2385
+ "text/plain": [
2386
+ "<IPython.core.display.HTML object>"
2387
+ ],
2388
+ "text/html": []
2389
+ },
2390
+ "metadata": {}
2391
+ },
2392
+ {
2393
+ "output_type": "stream",
2394
+ "name": "stdout",
2395
+ "text": [
2396
+ "Validation Accuracy: 0.96\n",
2397
+ "\n",
2398
+ "Classification Report:\n",
2399
+ " precision recall f1-score support\n",
2400
+ "\n",
2401
+ " 0 1.00 0.95 0.97 77\n",
2402
+ " 1 0.85 1.00 0.92 23\n",
2403
+ "\n",
2404
+ " accuracy 0.96 100\n",
2405
+ " macro avg 0.93 0.97 0.95 100\n",
2406
+ "weighted avg 0.97 0.96 0.96 100\n",
2407
+ "\n"
2408
+ ]
2409
+ }
2410
+ ]
2411
+ },
2412
+ {
2413
+ "cell_type": "markdown",
2414
+ "source": [
2415
+ "***APPLYING THE SAME PROCESSING TO TEST SET***"
2416
+ ],
2417
+ "metadata": {
2418
+ "id": "_I2mZkuT4Pe_"
2419
+ }
2420
+ },
2421
+ {
2422
+ "cell_type": "code",
2423
+ "source": [
2424
+ "class TestDataset(Dataset):\n",
2425
+ " def __init__(self, texts, tokenizer, max_len):\n",
2426
+ " self.texts = texts\n",
2427
+ " self.tokenizer = tokenizer\n",
2428
+ " self.max_len = max_len\n",
2429
+ "\n",
2430
+ " def __len__(self):\n",
2431
+ " return len(self.texts)\n",
2432
+ "\n",
2433
+ " def __getitem__(self, idx):\n",
2434
+ " text = self.texts[idx]\n",
2435
+ " encoding = self.tokenizer.encode_plus(\n",
2436
+ " text,\n",
2437
+ " add_special_tokens=True,\n",
2438
+ " max_length=self.max_len,\n",
2439
+ " padding='max_length',\n",
2440
+ " truncation=True,\n",
2441
+ " return_tensors='pt'\n",
2442
+ " )\n",
2443
+ " return {\n",
2444
+ " 'input_ids': encoding['input_ids'].flatten(),\n",
2445
+ " 'attention_mask': encoding['attention_mask'].flatten()\n",
2446
+ " }"
2447
+ ],
2448
+ "metadata": {
2449
+ "id": "pZJmFa4BTR5n"
2450
+ },
2451
+ "execution_count": 18,
2452
+ "outputs": []
2453
+ },
2454
+ {
2455
+ "cell_type": "markdown",
2456
+ "source": [
2457
+ "# ***`PREDICTIONS ON TEST SET`***"
2458
+ ],
2459
+ "metadata": {
2460
+ "id": "eEM6hUcg4Zty"
2461
+ }
2462
+ },
2463
+ {
2464
+ "cell_type": "code",
2465
+ "source": [
2466
+ "test_dataset = TestDataset(test_df['Article'].tolist(), tokenizer, MAX_LEN)"
2467
+ ],
2468
+ "metadata": {
2469
+ "id": "0Lzt_28ZTR8B"
2470
+ },
2471
+ "execution_count": 19,
2472
+ "outputs": []
2473
+ },
2474
+ {
2475
+ "cell_type": "code",
2476
+ "source": [
2477
+ "predictions = trainer.predict(test_dataset)\n",
2478
+ "pred_labels = predictions.predictions.argmax(axis=-1)\n"
2479
+ ],
2480
+ "metadata": {
2481
+ "id": "yfxQ04G58yuK",
2482
+ "colab": {
2483
+ "base_uri": "https://localhost:8080/",
2484
+ "height": 17
2485
+ },
2486
+ "outputId": "5ffc15a3-101f-47e4-af7c-6ea6dd9c52f4"
2487
+ },
2488
+ "execution_count": 20,
2489
+ "outputs": [
2490
+ {
2491
+ "output_type": "display_data",
2492
+ "data": {
2493
+ "text/plain": [
2494
+ "<IPython.core.display.HTML object>"
2495
+ ],
2496
+ "text/html": []
2497
+ },
2498
+ "metadata": {}
2499
+ }
2500
+ ]
2501
+ },
2502
+ {
2503
+ "cell_type": "markdown",
2504
+ "source": [
2505
+ "**`*SUBMISSION FILE*`**"
2506
+ ],
2507
+ "metadata": {
2508
+ "id": "9jiq3aWX4hym"
2509
+ }
2510
+ },
2511
+ {
2512
+ "cell_type": "code",
2513
+ "source": [
2514
+ "submission_df = pd.DataFrame({\n",
2515
+ " 'ID': test_df['ID'],\n",
2516
+ " 'Predicted Type': pred_labels\n",
2517
+ "})"
2518
+ ],
2519
+ "metadata": {
2520
+ "id": "0Nle0hXV80nR"
2521
+ },
2522
+ "execution_count": 21,
2523
+ "outputs": []
2524
+ },
2525
+ {
2526
+ "cell_type": "code",
2527
+ "source": [
2528
+ "submission_df.to_csv('submission.csv', index=False)"
2529
+ ],
2530
+ "metadata": {
2531
+ "id": "lvb8jI-K896Z"
2532
+ },
2533
+ "execution_count": 22,
2534
+ "outputs": []
2535
+ },
2536
+ {
2537
+ "cell_type": "code",
2538
+ "source": [
2539
+ "# from google.colab import files\n",
2540
+ "# files.download('submission.csv')\n"
2541
+ ],
2542
+ "metadata": {
2543
+ "colab": {
2544
+ "base_uri": "https://localhost:8080/",
2545
+ "height": 17
2546
+ },
2547
+ "id": "WfDPMk9twxKA",
2548
+ "outputId": "5c2509bb-211c-45d1-9409-028727682fa4"
2549
+ },
2550
+ "execution_count": null,
2551
+ "outputs": [
2552
+ {
2553
+ "output_type": "display_data",
2554
+ "data": {
2555
+ "text/plain": [
2556
+ "<IPython.core.display.Javascript object>"
2557
+ ],
2558
+ "application/javascript": [
2559
+ "\n",
2560
+ " async function download(id, filename, size) {\n",
2561
+ " if (!google.colab.kernel.accessAllowed) {\n",
2562
+ " return;\n",
2563
+ " }\n",
2564
+ " const div = document.createElement('div');\n",
2565
+ " const label = document.createElement('label');\n",
2566
+ " label.textContent = `Downloading \"${filename}\": `;\n",
2567
+ " div.appendChild(label);\n",
2568
+ " const progress = document.createElement('progress');\n",
2569
+ " progress.max = size;\n",
2570
+ " div.appendChild(progress);\n",
2571
+ " document.body.appendChild(div);\n",
2572
+ "\n",
2573
+ " const buffers = [];\n",
2574
+ " let downloaded = 0;\n",
2575
+ "\n",
2576
+ " const channel = await google.colab.kernel.comms.open(id);\n",
2577
+ " // Send a message to notify the kernel that we're ready.\n",
2578
+ " channel.send({})\n",
2579
+ "\n",
2580
+ " for await (const message of channel.messages) {\n",
2581
+ " // Send a message to notify the kernel that we're ready.\n",
2582
+ " channel.send({})\n",
2583
+ " if (message.buffers) {\n",
2584
+ " for (const buffer of message.buffers) {\n",
2585
+ " buffers.push(buffer);\n",
2586
+ " downloaded += buffer.byteLength;\n",
2587
+ " progress.value = downloaded;\n",
2588
+ " }\n",
2589
+ " }\n",
2590
+ " }\n",
2591
+ " const blob = new Blob(buffers, {type: 'application/binary'});\n",
2592
+ " const a = document.createElement('a');\n",
2593
+ " a.href = window.URL.createObjectURL(blob);\n",
2594
+ " a.download = filename;\n",
2595
+ " div.appendChild(a);\n",
2596
+ " a.click();\n",
2597
+ " div.remove();\n",
2598
+ " }\n",
2599
+ " "
2600
+ ]
2601
+ },
2602
+ "metadata": {}
2603
+ },
2604
+ {
2605
+ "output_type": "display_data",
2606
+ "data": {
2607
+ "text/plain": [
2608
+ "<IPython.core.display.Javascript object>"
2609
+ ],
2610
+ "application/javascript": [
2611
+ "download(\"download_5382ef96-92a7-48f9-8a52-b0813fdff46b\", \"submission.csv\", 5597)"
2612
+ ]
2613
+ },
2614
+ "metadata": {}
2615
+ }
2616
+ ]
2617
+ }
2618
+ ]
2619
+ }
labelled_train_set (1).csv ADDED
The diff for this file is too large to render. See raw diff
 
model_path.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9530074754bdaf96c05bddf7cb970571d34830c80cc30db352c24ac322c5c6d
3
+ size 405356077
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ transformers==4.25.1
2
+ torch==1.12.1
3
+ pandas==1.3.3
4
+ streamlit==1.2.0
5
+
6
+
unlabelled_test2 (1).csv ADDED
The diff for this file is too large to render. See raw diff