├── Fewshot_GPT&T5_StyleTransfer.ipynb
├── Fewshot_LLM_Prompting.ipynb
├── Fewshot_OPT_PROMPTING.ipynb
├── LICENSE
├── PPT-Sildes
├── LabSeminar_NLGwithPrompting.pdf
├── LabSeminar_NLGwithPrompting.pptx
└── readme.md
├── README.md
├── Textchat2Prompt
├── NMT_KO
│ ├── NMT_KO.ipynb
│ └── readme.md
├── TextChat2Prompt_inference.ipynb
├── only_paper_pdf.pdf
├── paper_pdf.pdf
└── readme.md
└── notebook
├── KoGPT_Infer.ipynb
├── KoGPT_KorQuAD.ipynb
├── KoGPT_NSMC_Selection2_prompt1.ipynb
├── KoGPT_TextChat2Prompt.ipynb
├── KoGPT_nsmc1.ipynb
├── KoGPT_nsmc1_result.ipynb
├── KoGPT_nsmc_PROMPT2.ipynb
├── KoGPT_nsmc_prompt#3.ipynb
├── KoGPT_nsmc_prompt2_수정better.ipynb
├── KoGPT_nsmc_selection3.ipynb
└── readme.md
/Fewshot_GPT&T5_StyleTransfer.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "nbformat": 4,
3 | "nbformat_minor": 0,
4 | "metadata": {
5 | "colab": {
6 | "provenance": [],
7 | "machine_shape": "hm",
8 | "authorship_tag": "ABX9TyPcH5NWWF6h+VgcLQzxpHxG",
9 | "include_colab_link": true
10 | },
11 | "kernelspec": {
12 | "name": "python3",
13 | "display_name": "Python 3"
14 | },
15 | "language_info": {
16 | "name": "python"
17 | },
18 | "gpuClass": "standard",
19 | "widgets": {
20 | "application/vnd.jupyter.widget-state+json": {
21 | "b539d7fa50874c5cb353742acc38d035": {
22 | "model_module": "@jupyter-widgets/controls",
23 | "model_name": "HBoxModel",
24 | "model_module_version": "1.5.0",
25 | "state": {
26 | "_dom_classes": [],
27 | "_model_module": "@jupyter-widgets/controls",
28 | "_model_module_version": "1.5.0",
29 | "_model_name": "HBoxModel",
30 | "_view_count": null,
31 | "_view_module": "@jupyter-widgets/controls",
32 | "_view_module_version": "1.5.0",
33 | "_view_name": "HBoxView",
34 | "box_style": "",
35 | "children": [
36 | "IPY_MODEL_63ea3da5f9ec47a9856fd878ff9653ed",
37 | "IPY_MODEL_0fed3654a5e5479e933a65aa41ea0556",
38 | "IPY_MODEL_6299de1200494cb0ac2e54ff7c16d2bf"
39 | ],
40 | "layout": "IPY_MODEL_6f763e8210ac4e0992317f24f1fdb546"
41 | }
42 | },
43 | "63ea3da5f9ec47a9856fd878ff9653ed": {
44 | "model_module": "@jupyter-widgets/controls",
45 | "model_name": "HTMLModel",
46 | "model_module_version": "1.5.0",
47 | "state": {
48 | "_dom_classes": [],
49 | "_model_module": "@jupyter-widgets/controls",
50 | "_model_module_version": "1.5.0",
51 | "_model_name": "HTMLModel",
52 | "_view_count": null,
53 | "_view_module": "@jupyter-widgets/controls",
54 | "_view_module_version": "1.5.0",
55 | "_view_name": "HTMLView",
56 | "description": "",
57 | "description_tooltip": null,
58 | "layout": "IPY_MODEL_dd9cf398e6604ab9953d372cc833fd75",
59 | "placeholder": "",
60 | "style": "IPY_MODEL_a61ac8da58ad42a2bd7329d2d339d07c",
61 | "value": "Downloading: 100%"
62 | }
63 | },
64 | "0fed3654a5e5479e933a65aa41ea0556": {
65 | "model_module": "@jupyter-widgets/controls",
66 | "model_name": "FloatProgressModel",
67 | "model_module_version": "1.5.0",
68 | "state": {
69 | "_dom_classes": [],
70 | "_model_module": "@jupyter-widgets/controls",
71 | "_model_module_version": "1.5.0",
72 | "_model_name": "FloatProgressModel",
73 | "_view_count": null,
74 | "_view_module": "@jupyter-widgets/controls",
75 | "_view_module_version": "1.5.0",
76 | "_view_name": "ProgressView",
77 | "bar_style": "success",
78 | "description": "",
79 | "description_tooltip": null,
80 | "layout": "IPY_MODEL_17dbb761d1664bae8bb96915e8c23bec",
81 | "max": 689,
82 | "min": 0,
83 | "orientation": "horizontal",
84 | "style": "IPY_MODEL_9ca215a28e914c8abccb1c5d3385775f",
85 | "value": 689
86 | }
87 | },
88 | "6299de1200494cb0ac2e54ff7c16d2bf": {
89 | "model_module": "@jupyter-widgets/controls",
90 | "model_name": "HTMLModel",
91 | "model_module_version": "1.5.0",
92 | "state": {
93 | "_dom_classes": [],
94 | "_model_module": "@jupyter-widgets/controls",
95 | "_model_module_version": "1.5.0",
96 | "_model_name": "HTMLModel",
97 | "_view_count": null,
98 | "_view_module": "@jupyter-widgets/controls",
99 | "_view_module_version": "1.5.0",
100 | "_view_name": "HTMLView",
101 | "description": "",
102 | "description_tooltip": null,
103 | "layout": "IPY_MODEL_f58a5bcefd394896a052075108e9a1b3",
104 | "placeholder": "",
105 | "style": "IPY_MODEL_eadd4f803c3949ef908873b191ddaf99",
106 | "value": " 689/689 [00:00<00:00, 31.6kB/s]"
107 | }
108 | },
109 | "6f763e8210ac4e0992317f24f1fdb546": {
110 | "model_module": "@jupyter-widgets/base",
111 | "model_name": "LayoutModel",
112 | "model_module_version": "1.2.0",
113 | "state": {
114 | "_model_module": "@jupyter-widgets/base",
115 | "_model_module_version": "1.2.0",
116 | "_model_name": "LayoutModel",
117 | "_view_count": null,
118 | "_view_module": "@jupyter-widgets/base",
119 | "_view_module_version": "1.2.0",
120 | "_view_name": "LayoutView",
121 | "align_content": null,
122 | "align_items": null,
123 | "align_self": null,
124 | "border": null,
125 | "bottom": null,
126 | "display": null,
127 | "flex": null,
128 | "flex_flow": null,
129 | "grid_area": null,
130 | "grid_auto_columns": null,
131 | "grid_auto_flow": null,
132 | "grid_auto_rows": null,
133 | "grid_column": null,
134 | "grid_gap": null,
135 | "grid_row": null,
136 | "grid_template_areas": null,
137 | "grid_template_columns": null,
138 | "grid_template_rows": null,
139 | "height": null,
140 | "justify_content": null,
141 | "justify_items": null,
142 | "left": null,
143 | "margin": null,
144 | "max_height": null,
145 | "max_width": null,
146 | "min_height": null,
147 | "min_width": null,
148 | "object_fit": null,
149 | "object_position": null,
150 | "order": null,
151 | "overflow": null,
152 | "overflow_x": null,
153 | "overflow_y": null,
154 | "padding": null,
155 | "right": null,
156 | "top": null,
157 | "visibility": null,
158 | "width": null
159 | }
160 | },
161 | "dd9cf398e6604ab9953d372cc833fd75": {
162 | "model_module": "@jupyter-widgets/base",
163 | "model_name": "LayoutModel",
164 | "model_module_version": "1.2.0",
165 | "state": {
166 | "_model_module": "@jupyter-widgets/base",
167 | "_model_module_version": "1.2.0",
168 | "_model_name": "LayoutModel",
169 | "_view_count": null,
170 | "_view_module": "@jupyter-widgets/base",
171 | "_view_module_version": "1.2.0",
172 | "_view_name": "LayoutView",
173 | "align_content": null,
174 | "align_items": null,
175 | "align_self": null,
176 | "border": null,
177 | "bottom": null,
178 | "display": null,
179 | "flex": null,
180 | "flex_flow": null,
181 | "grid_area": null,
182 | "grid_auto_columns": null,
183 | "grid_auto_flow": null,
184 | "grid_auto_rows": null,
185 | "grid_column": null,
186 | "grid_gap": null,
187 | "grid_row": null,
188 | "grid_template_areas": null,
189 | "grid_template_columns": null,
190 | "grid_template_rows": null,
191 | "height": null,
192 | "justify_content": null,
193 | "justify_items": null,
194 | "left": null,
195 | "margin": null,
196 | "max_height": null,
197 | "max_width": null,
198 | "min_height": null,
199 | "min_width": null,
200 | "object_fit": null,
201 | "object_position": null,
202 | "order": null,
203 | "overflow": null,
204 | "overflow_x": null,
205 | "overflow_y": null,
206 | "padding": null,
207 | "right": null,
208 | "top": null,
209 | "visibility": null,
210 | "width": null
211 | }
212 | },
213 | "a61ac8da58ad42a2bd7329d2d339d07c": {
214 | "model_module": "@jupyter-widgets/controls",
215 | "model_name": "DescriptionStyleModel",
216 | "model_module_version": "1.5.0",
217 | "state": {
218 | "_model_module": "@jupyter-widgets/controls",
219 | "_model_module_version": "1.5.0",
220 | "_model_name": "DescriptionStyleModel",
221 | "_view_count": null,
222 | "_view_module": "@jupyter-widgets/base",
223 | "_view_module_version": "1.2.0",
224 | "_view_name": "StyleView",
225 | "description_width": ""
226 | }
227 | },
228 | "17dbb761d1664bae8bb96915e8c23bec": {
229 | "model_module": "@jupyter-widgets/base",
230 | "model_name": "LayoutModel",
231 | "model_module_version": "1.2.0",
232 | "state": {
233 | "_model_module": "@jupyter-widgets/base",
234 | "_model_module_version": "1.2.0",
235 | "_model_name": "LayoutModel",
236 | "_view_count": null,
237 | "_view_module": "@jupyter-widgets/base",
238 | "_view_module_version": "1.2.0",
239 | "_view_name": "LayoutView",
240 | "align_content": null,
241 | "align_items": null,
242 | "align_self": null,
243 | "border": null,
244 | "bottom": null,
245 | "display": null,
246 | "flex": null,
247 | "flex_flow": null,
248 | "grid_area": null,
249 | "grid_auto_columns": null,
250 | "grid_auto_flow": null,
251 | "grid_auto_rows": null,
252 | "grid_column": null,
253 | "grid_gap": null,
254 | "grid_row": null,
255 | "grid_template_areas": null,
256 | "grid_template_columns": null,
257 | "grid_template_rows": null,
258 | "height": null,
259 | "justify_content": null,
260 | "justify_items": null,
261 | "left": null,
262 | "margin": null,
263 | "max_height": null,
264 | "max_width": null,
265 | "min_height": null,
266 | "min_width": null,
267 | "object_fit": null,
268 | "object_position": null,
269 | "order": null,
270 | "overflow": null,
271 | "overflow_x": null,
272 | "overflow_y": null,
273 | "padding": null,
274 | "right": null,
275 | "top": null,
276 | "visibility": null,
277 | "width": null
278 | }
279 | },
280 | "9ca215a28e914c8abccb1c5d3385775f": {
281 | "model_module": "@jupyter-widgets/controls",
282 | "model_name": "ProgressStyleModel",
283 | "model_module_version": "1.5.0",
284 | "state": {
285 | "_model_module": "@jupyter-widgets/controls",
286 | "_model_module_version": "1.5.0",
287 | "_model_name": "ProgressStyleModel",
288 | "_view_count": null,
289 | "_view_module": "@jupyter-widgets/base",
290 | "_view_module_version": "1.2.0",
291 | "_view_name": "StyleView",
292 | "bar_color": null,
293 | "description_width": ""
294 | }
295 | },
296 | "f58a5bcefd394896a052075108e9a1b3": {
297 | "model_module": "@jupyter-widgets/base",
298 | "model_name": "LayoutModel",
299 | "model_module_version": "1.2.0",
300 | "state": {
301 | "_model_module": "@jupyter-widgets/base",
302 | "_model_module_version": "1.2.0",
303 | "_model_name": "LayoutModel",
304 | "_view_count": null,
305 | "_view_module": "@jupyter-widgets/base",
306 | "_view_module_version": "1.2.0",
307 | "_view_name": "LayoutView",
308 | "align_content": null,
309 | "align_items": null,
310 | "align_self": null,
311 | "border": null,
312 | "bottom": null,
313 | "display": null,
314 | "flex": null,
315 | "flex_flow": null,
316 | "grid_area": null,
317 | "grid_auto_columns": null,
318 | "grid_auto_flow": null,
319 | "grid_auto_rows": null,
320 | "grid_column": null,
321 | "grid_gap": null,
322 | "grid_row": null,
323 | "grid_template_areas": null,
324 | "grid_template_columns": null,
325 | "grid_template_rows": null,
326 | "height": null,
327 | "justify_content": null,
328 | "justify_items": null,
329 | "left": null,
330 | "margin": null,
331 | "max_height": null,
332 | "max_width": null,
333 | "min_height": null,
334 | "min_width": null,
335 | "object_fit": null,
336 | "object_position": null,
337 | "order": null,
338 | "overflow": null,
339 | "overflow_x": null,
340 | "overflow_y": null,
341 | "padding": null,
342 | "right": null,
343 | "top": null,
344 | "visibility": null,
345 | "width": null
346 | }
347 | },
348 | "eadd4f803c3949ef908873b191ddaf99": {
349 | "model_module": "@jupyter-widgets/controls",
350 | "model_name": "DescriptionStyleModel",
351 | "model_module_version": "1.5.0",
352 | "state": {
353 | "_model_module": "@jupyter-widgets/controls",
354 | "_model_module_version": "1.5.0",
355 | "_model_name": "DescriptionStyleModel",
356 | "_view_count": null,
357 | "_view_module": "@jupyter-widgets/base",
358 | "_view_module_version": "1.2.0",
359 | "_view_name": "StyleView",
360 | "description_width": ""
361 | }
362 | },
363 | "1dd2fc24b5884aadae9e0b9995ca55f0": {
364 | "model_module": "@jupyter-widgets/controls",
365 | "model_name": "HBoxModel",
366 | "model_module_version": "1.5.0",
367 | "state": {
368 | "_dom_classes": [],
369 | "_model_module": "@jupyter-widgets/controls",
370 | "_model_module_version": "1.5.0",
371 | "_model_name": "HBoxModel",
372 | "_view_count": null,
373 | "_view_module": "@jupyter-widgets/controls",
374 | "_view_module_version": "1.5.0",
375 | "_view_name": "HBoxView",
376 | "box_style": "",
377 | "children": [
378 | "IPY_MODEL_8caea121390c4267b01fde27f3afe6b3",
379 | "IPY_MODEL_1760b31dbdf843099341a67608c1464d",
380 | "IPY_MODEL_62ec2b2f26594d57ad78947f5710dd8d"
381 | ],
382 | "layout": "IPY_MODEL_6721a3f8ce98467497272204722f3c6a"
383 | }
384 | },
385 | "8caea121390c4267b01fde27f3afe6b3": {
386 | "model_module": "@jupyter-widgets/controls",
387 | "model_name": "HTMLModel",
388 | "model_module_version": "1.5.0",
389 | "state": {
390 | "_dom_classes": [],
391 | "_model_module": "@jupyter-widgets/controls",
392 | "_model_module_version": "1.5.0",
393 | "_model_name": "HTMLModel",
394 | "_view_count": null,
395 | "_view_module": "@jupyter-widgets/controls",
396 | "_view_module_version": "1.5.0",
397 | "_view_name": "HTMLView",
398 | "description": "",
399 | "description_tooltip": null,
400 | "layout": "IPY_MODEL_f0b867f5fb1a4f898702c4f413bcc78e",
401 | "placeholder": "",
402 | "style": "IPY_MODEL_baa787efb0c24407b8ab0948fc1f92e3",
403 | "value": "Downloading: 100%"
404 | }
405 | },
406 | "1760b31dbdf843099341a67608c1464d": {
407 | "model_module": "@jupyter-widgets/controls",
408 | "model_name": "FloatProgressModel",
409 | "model_module_version": "1.5.0",
410 | "state": {
411 | "_dom_classes": [],
412 | "_model_module": "@jupyter-widgets/controls",
413 | "_model_module_version": "1.5.0",
414 | "_model_name": "FloatProgressModel",
415 | "_view_count": null,
416 | "_view_module": "@jupyter-widgets/controls",
417 | "_view_module_version": "1.5.0",
418 | "_view_name": "ProgressView",
419 | "bar_style": "success",
420 | "description": "",
421 | "description_tooltip": null,
422 | "layout": "IPY_MODEL_ca734695bf1b4ab5a94bc2c6b4e193dc",
423 | "max": 1042301,
424 | "min": 0,
425 | "orientation": "horizontal",
426 | "style": "IPY_MODEL_07239082bbb04095b8f5b53311d523fb",
427 | "value": 1042301
428 | }
429 | },
430 | "62ec2b2f26594d57ad78947f5710dd8d": {
431 | "model_module": "@jupyter-widgets/controls",
432 | "model_name": "HTMLModel",
433 | "model_module_version": "1.5.0",
434 | "state": {
435 | "_dom_classes": [],
436 | "_model_module": "@jupyter-widgets/controls",
437 | "_model_module_version": "1.5.0",
438 | "_model_name": "HTMLModel",
439 | "_view_count": null,
440 | "_view_module": "@jupyter-widgets/controls",
441 | "_view_module_version": "1.5.0",
442 | "_view_name": "HTMLView",
443 | "description": "",
444 | "description_tooltip": null,
445 | "layout": "IPY_MODEL_8b32bf66fdd6450f96d4829d44d360a5",
446 | "placeholder": "",
447 | "style": "IPY_MODEL_95930beda3aa4d8ca2a3ad077cdf7767",
448 | "value": " 1.04M/1.04M [00:00<00:00, 3.66MB/s]"
449 | }
450 | },
451 | "6721a3f8ce98467497272204722f3c6a": {
452 | "model_module": "@jupyter-widgets/base",
453 | "model_name": "LayoutModel",
454 | "model_module_version": "1.2.0",
455 | "state": {
456 | "_model_module": "@jupyter-widgets/base",
457 | "_model_module_version": "1.2.0",
458 | "_model_name": "LayoutModel",
459 | "_view_count": null,
460 | "_view_module": "@jupyter-widgets/base",
461 | "_view_module_version": "1.2.0",
462 | "_view_name": "LayoutView",
463 | "align_content": null,
464 | "align_items": null,
465 | "align_self": null,
466 | "border": null,
467 | "bottom": null,
468 | "display": null,
469 | "flex": null,
470 | "flex_flow": null,
471 | "grid_area": null,
472 | "grid_auto_columns": null,
473 | "grid_auto_flow": null,
474 | "grid_auto_rows": null,
475 | "grid_column": null,
476 | "grid_gap": null,
477 | "grid_row": null,
478 | "grid_template_areas": null,
479 | "grid_template_columns": null,
480 | "grid_template_rows": null,
481 | "height": null,
482 | "justify_content": null,
483 | "justify_items": null,
484 | "left": null,
485 | "margin": null,
486 | "max_height": null,
487 | "max_width": null,
488 | "min_height": null,
489 | "min_width": null,
490 | "object_fit": null,
491 | "object_position": null,
492 | "order": null,
493 | "overflow": null,
494 | "overflow_x": null,
495 | "overflow_y": null,
496 | "padding": null,
497 | "right": null,
498 | "top": null,
499 | "visibility": null,
500 | "width": null
501 | }
502 | },
503 | "f0b867f5fb1a4f898702c4f413bcc78e": {
504 | "model_module": "@jupyter-widgets/base",
505 | "model_name": "LayoutModel",
506 | "model_module_version": "1.2.0",
507 | "state": {
508 | "_model_module": "@jupyter-widgets/base",
509 | "_model_module_version": "1.2.0",
510 | "_model_name": "LayoutModel",
511 | "_view_count": null,
512 | "_view_module": "@jupyter-widgets/base",
513 | "_view_module_version": "1.2.0",
514 | "_view_name": "LayoutView",
515 | "align_content": null,
516 | "align_items": null,
517 | "align_self": null,
518 | "border": null,
519 | "bottom": null,
520 | "display": null,
521 | "flex": null,
522 | "flex_flow": null,
523 | "grid_area": null,
524 | "grid_auto_columns": null,
525 | "grid_auto_flow": null,
526 | "grid_auto_rows": null,
527 | "grid_column": null,
528 | "grid_gap": null,
529 | "grid_row": null,
530 | "grid_template_areas": null,
531 | "grid_template_columns": null,
532 | "grid_template_rows": null,
533 | "height": null,
534 | "justify_content": null,
535 | "justify_items": null,
536 | "left": null,
537 | "margin": null,
538 | "max_height": null,
539 | "max_width": null,
540 | "min_height": null,
541 | "min_width": null,
542 | "object_fit": null,
543 | "object_position": null,
544 | "order": null,
545 | "overflow": null,
546 | "overflow_x": null,
547 | "overflow_y": null,
548 | "padding": null,
549 | "right": null,
550 | "top": null,
551 | "visibility": null,
552 | "width": null
553 | }
554 | },
555 | "baa787efb0c24407b8ab0948fc1f92e3": {
556 | "model_module": "@jupyter-widgets/controls",
557 | "model_name": "DescriptionStyleModel",
558 | "model_module_version": "1.5.0",
559 | "state": {
560 | "_model_module": "@jupyter-widgets/controls",
561 | "_model_module_version": "1.5.0",
562 | "_model_name": "DescriptionStyleModel",
563 | "_view_count": null,
564 | "_view_module": "@jupyter-widgets/base",
565 | "_view_module_version": "1.2.0",
566 | "_view_name": "StyleView",
567 | "description_width": ""
568 | }
569 | },
570 | "ca734695bf1b4ab5a94bc2c6b4e193dc": {
571 | "model_module": "@jupyter-widgets/base",
572 | "model_name": "LayoutModel",
573 | "model_module_version": "1.2.0",
574 | "state": {
575 | "_model_module": "@jupyter-widgets/base",
576 | "_model_module_version": "1.2.0",
577 | "_model_name": "LayoutModel",
578 | "_view_count": null,
579 | "_view_module": "@jupyter-widgets/base",
580 | "_view_module_version": "1.2.0",
581 | "_view_name": "LayoutView",
582 | "align_content": null,
583 | "align_items": null,
584 | "align_self": null,
585 | "border": null,
586 | "bottom": null,
587 | "display": null,
588 | "flex": null,
589 | "flex_flow": null,
590 | "grid_area": null,
591 | "grid_auto_columns": null,
592 | "grid_auto_flow": null,
593 | "grid_auto_rows": null,
594 | "grid_column": null,
595 | "grid_gap": null,
596 | "grid_row": null,
597 | "grid_template_areas": null,
598 | "grid_template_columns": null,
599 | "grid_template_rows": null,
600 | "height": null,
601 | "justify_content": null,
602 | "justify_items": null,
603 | "left": null,
604 | "margin": null,
605 | "max_height": null,
606 | "max_width": null,
607 | "min_height": null,
608 | "min_width": null,
609 | "object_fit": null,
610 | "object_position": null,
611 | "order": null,
612 | "overflow": null,
613 | "overflow_x": null,
614 | "overflow_y": null,
615 | "padding": null,
616 | "right": null,
617 | "top": null,
618 | "visibility": null,
619 | "width": null
620 | }
621 | },
622 | "07239082bbb04095b8f5b53311d523fb": {
623 | "model_module": "@jupyter-widgets/controls",
624 | "model_name": "ProgressStyleModel",
625 | "model_module_version": "1.5.0",
626 | "state": {
627 | "_model_module": "@jupyter-widgets/controls",
628 | "_model_module_version": "1.5.0",
629 | "_model_name": "ProgressStyleModel",
630 | "_view_count": null,
631 | "_view_module": "@jupyter-widgets/base",
632 | "_view_module_version": "1.2.0",
633 | "_view_name": "StyleView",
634 | "bar_color": null,
635 | "description_width": ""
636 | }
637 | },
638 | "8b32bf66fdd6450f96d4829d44d360a5": {
639 | "model_module": "@jupyter-widgets/base",
640 | "model_name": "LayoutModel",
641 | "model_module_version": "1.2.0",
642 | "state": {
643 | "_model_module": "@jupyter-widgets/base",
644 | "_model_module_version": "1.2.0",
645 | "_model_name": "LayoutModel",
646 | "_view_count": null,
647 | "_view_module": "@jupyter-widgets/base",
648 | "_view_module_version": "1.2.0",
649 | "_view_name": "LayoutView",
650 | "align_content": null,
651 | "align_items": null,
652 | "align_self": null,
653 | "border": null,
654 | "bottom": null,
655 | "display": null,
656 | "flex": null,
657 | "flex_flow": null,
658 | "grid_area": null,
659 | "grid_auto_columns": null,
660 | "grid_auto_flow": null,
661 | "grid_auto_rows": null,
662 | "grid_column": null,
663 | "grid_gap": null,
664 | "grid_row": null,
665 | "grid_template_areas": null,
666 | "grid_template_columns": null,
667 | "grid_template_rows": null,
668 | "height": null,
669 | "justify_content": null,
670 | "justify_items": null,
671 | "left": null,
672 | "margin": null,
673 | "max_height": null,
674 | "max_width": null,
675 | "min_height": null,
676 | "min_width": null,
677 | "object_fit": null,
678 | "object_position": null,
679 | "order": null,
680 | "overflow": null,
681 | "overflow_x": null,
682 | "overflow_y": null,
683 | "padding": null,
684 | "right": null,
685 | "top": null,
686 | "visibility": null,
687 | "width": null
688 | }
689 | },
690 | "95930beda3aa4d8ca2a3ad077cdf7767": {
691 | "model_module": "@jupyter-widgets/controls",
692 | "model_name": "DescriptionStyleModel",
693 | "model_module_version": "1.5.0",
694 | "state": {
695 | "_model_module": "@jupyter-widgets/controls",
696 | "_model_module_version": "1.5.0",
697 | "_model_name": "DescriptionStyleModel",
698 | "_view_count": null,
699 | "_view_module": "@jupyter-widgets/base",
700 | "_view_module_version": "1.2.0",
701 | "_view_name": "StyleView",
702 | "description_width": ""
703 | }
704 | },
705 | "dbdd3dea8dcd4d16b07012222e74a6ec": {
706 | "model_module": "@jupyter-widgets/controls",
707 | "model_name": "HBoxModel",
708 | "model_module_version": "1.5.0",
709 | "state": {
710 | "_dom_classes": [],
711 | "_model_module": "@jupyter-widgets/controls",
712 | "_model_module_version": "1.5.0",
713 | "_model_name": "HBoxModel",
714 | "_view_count": null,
715 | "_view_module": "@jupyter-widgets/controls",
716 | "_view_module_version": "1.5.0",
717 | "_view_name": "HBoxView",
718 | "box_style": "",
719 | "children": [
720 | "IPY_MODEL_e6706518f93d43a3922af38f33950175",
721 | "IPY_MODEL_0233c7dcc0744465a12dabead48e3e97",
722 | "IPY_MODEL_3cac992c4ab64f50a5ab47ebbbcbc482"
723 | ],
724 | "layout": "IPY_MODEL_a6910a37ffa94c6e9381a31c2d96a81c"
725 | }
726 | },
727 | "e6706518f93d43a3922af38f33950175": {
728 | "model_module": "@jupyter-widgets/controls",
729 | "model_name": "HTMLModel",
730 | "model_module_version": "1.5.0",
731 | "state": {
732 | "_dom_classes": [],
733 | "_model_module": "@jupyter-widgets/controls",
734 | "_model_module_version": "1.5.0",
735 | "_model_name": "HTMLModel",
736 | "_view_count": null,
737 | "_view_module": "@jupyter-widgets/controls",
738 | "_view_module_version": "1.5.0",
739 | "_view_name": "HTMLView",
740 | "description": "",
741 | "description_tooltip": null,
742 | "layout": "IPY_MODEL_874c31e0b254426ab6741f39a20d1ffe",
743 | "placeholder": "",
744 | "style": "IPY_MODEL_56ec677b71664909a54b0aa07948f642",
745 | "value": "Downloading: 100%"
746 | }
747 | },
748 | "0233c7dcc0744465a12dabead48e3e97": {
749 | "model_module": "@jupyter-widgets/controls",
750 | "model_name": "FloatProgressModel",
751 | "model_module_version": "1.5.0",
752 | "state": {
753 | "_dom_classes": [],
754 | "_model_module": "@jupyter-widgets/controls",
755 | "_model_module_version": "1.5.0",
756 | "_model_name": "FloatProgressModel",
757 | "_view_count": null,
758 | "_view_module": "@jupyter-widgets/controls",
759 | "_view_module_version": "1.5.0",
760 | "_view_name": "ProgressView",
761 | "bar_style": "success",
762 | "description": "",
763 | "description_tooltip": null,
764 | "layout": "IPY_MODEL_1a9df2a53870436889a8884b38a9ce92",
765 | "max": 456318,
766 | "min": 0,
767 | "orientation": "horizontal",
768 | "style": "IPY_MODEL_5648468189ce45d5b524fc1c1c3da74b",
769 | "value": 456318
770 | }
771 | },
772 | "3cac992c4ab64f50a5ab47ebbbcbc482": {
773 | "model_module": "@jupyter-widgets/controls",
774 | "model_name": "HTMLModel",
775 | "model_module_version": "1.5.0",
776 | "state": {
777 | "_dom_classes": [],
778 | "_model_module": "@jupyter-widgets/controls",
779 | "_model_module_version": "1.5.0",
780 | "_model_name": "HTMLModel",
781 | "_view_count": null,
782 | "_view_module": "@jupyter-widgets/controls",
783 | "_view_module_version": "1.5.0",
784 | "_view_name": "HTMLView",
785 | "description": "",
786 | "description_tooltip": null,
787 | "layout": "IPY_MODEL_e14806aac33b49fd9107ca41f4ae54c1",
788 | "placeholder": "",
789 | "style": "IPY_MODEL_71e38be035e940c4a3e85b30a58b8bd2",
790 | "value": " 456k/456k [00:00<00:00, 3.70MB/s]"
791 | }
792 | },
793 | "a6910a37ffa94c6e9381a31c2d96a81c": {
794 | "model_module": "@jupyter-widgets/base",
795 | "model_name": "LayoutModel",
796 | "model_module_version": "1.2.0",
797 | "state": {
798 | "_model_module": "@jupyter-widgets/base",
799 | "_model_module_version": "1.2.0",
800 | "_model_name": "LayoutModel",
801 | "_view_count": null,
802 | "_view_module": "@jupyter-widgets/base",
803 | "_view_module_version": "1.2.0",
804 | "_view_name": "LayoutView",
805 | "align_content": null,
806 | "align_items": null,
807 | "align_self": null,
808 | "border": null,
809 | "bottom": null,
810 | "display": null,
811 | "flex": null,
812 | "flex_flow": null,
813 | "grid_area": null,
814 | "grid_auto_columns": null,
815 | "grid_auto_flow": null,
816 | "grid_auto_rows": null,
817 | "grid_column": null,
818 | "grid_gap": null,
819 | "grid_row": null,
820 | "grid_template_areas": null,
821 | "grid_template_columns": null,
822 | "grid_template_rows": null,
823 | "height": null,
824 | "justify_content": null,
825 | "justify_items": null,
826 | "left": null,
827 | "margin": null,
828 | "max_height": null,
829 | "max_width": null,
830 | "min_height": null,
831 | "min_width": null,
832 | "object_fit": null,
833 | "object_position": null,
834 | "order": null,
835 | "overflow": null,
836 | "overflow_x": null,
837 | "overflow_y": null,
838 | "padding": null,
839 | "right": null,
840 | "top": null,
841 | "visibility": null,
842 | "width": null
843 | }
844 | },
845 | "874c31e0b254426ab6741f39a20d1ffe": {
846 | "model_module": "@jupyter-widgets/base",
847 | "model_name": "LayoutModel",
848 | "model_module_version": "1.2.0",
849 | "state": {
850 | "_model_module": "@jupyter-widgets/base",
851 | "_model_module_version": "1.2.0",
852 | "_model_name": "LayoutModel",
853 | "_view_count": null,
854 | "_view_module": "@jupyter-widgets/base",
855 | "_view_module_version": "1.2.0",
856 | "_view_name": "LayoutView",
857 | "align_content": null,
858 | "align_items": null,
859 | "align_self": null,
860 | "border": null,
861 | "bottom": null,
862 | "display": null,
863 | "flex": null,
864 | "flex_flow": null,
865 | "grid_area": null,
866 | "grid_auto_columns": null,
867 | "grid_auto_flow": null,
868 | "grid_auto_rows": null,
869 | "grid_column": null,
870 | "grid_gap": null,
871 | "grid_row": null,
872 | "grid_template_areas": null,
873 | "grid_template_columns": null,
874 | "grid_template_rows": null,
875 | "height": null,
876 | "justify_content": null,
877 | "justify_items": null,
878 | "left": null,
879 | "margin": null,
880 | "max_height": null,
881 | "max_width": null,
882 | "min_height": null,
883 | "min_width": null,
884 | "object_fit": null,
885 | "object_position": null,
886 | "order": null,
887 | "overflow": null,
888 | "overflow_x": null,
889 | "overflow_y": null,
890 | "padding": null,
891 | "right": null,
892 | "top": null,
893 | "visibility": null,
894 | "width": null
895 | }
896 | },
897 | "56ec677b71664909a54b0aa07948f642": {
898 | "model_module": "@jupyter-widgets/controls",
899 | "model_name": "DescriptionStyleModel",
900 | "model_module_version": "1.5.0",
901 | "state": {
902 | "_model_module": "@jupyter-widgets/controls",
903 | "_model_module_version": "1.5.0",
904 | "_model_name": "DescriptionStyleModel",
905 | "_view_count": null,
906 | "_view_module": "@jupyter-widgets/base",
907 | "_view_module_version": "1.2.0",
908 | "_view_name": "StyleView",
909 | "description_width": ""
910 | }
911 | },
912 | "1a9df2a53870436889a8884b38a9ce92": {
913 | "model_module": "@jupyter-widgets/base",
914 | "model_name": "LayoutModel",
915 | "model_module_version": "1.2.0",
916 | "state": {
917 | "_model_module": "@jupyter-widgets/base",
918 | "_model_module_version": "1.2.0",
919 | "_model_name": "LayoutModel",
920 | "_view_count": null,
921 | "_view_module": "@jupyter-widgets/base",
922 | "_view_module_version": "1.2.0",
923 | "_view_name": "LayoutView",
924 | "align_content": null,
925 | "align_items": null,
926 | "align_self": null,
927 | "border": null,
928 | "bottom": null,
929 | "display": null,
930 | "flex": null,
931 | "flex_flow": null,
932 | "grid_area": null,
933 | "grid_auto_columns": null,
934 | "grid_auto_flow": null,
935 | "grid_auto_rows": null,
936 | "grid_column": null,
937 | "grid_gap": null,
938 | "grid_row": null,
939 | "grid_template_areas": null,
940 | "grid_template_columns": null,
941 | "grid_template_rows": null,
942 | "height": null,
943 | "justify_content": null,
944 | "justify_items": null,
945 | "left": null,
946 | "margin": null,
947 | "max_height": null,
948 | "max_width": null,
949 | "min_height": null,
950 | "min_width": null,
951 | "object_fit": null,
952 | "object_position": null,
953 | "order": null,
954 | "overflow": null,
955 | "overflow_x": null,
956 | "overflow_y": null,
957 | "padding": null,
958 | "right": null,
959 | "top": null,
960 | "visibility": null,
961 | "width": null
962 | }
963 | },
964 | "5648468189ce45d5b524fc1c1c3da74b": {
965 | "model_module": "@jupyter-widgets/controls",
966 | "model_name": "ProgressStyleModel",
967 | "model_module_version": "1.5.0",
968 | "state": {
969 | "_model_module": "@jupyter-widgets/controls",
970 | "_model_module_version": "1.5.0",
971 | "_model_name": "ProgressStyleModel",
972 | "_view_count": null,
973 | "_view_module": "@jupyter-widgets/base",
974 | "_view_module_version": "1.2.0",
975 | "_view_name": "StyleView",
976 | "bar_color": null,
977 | "description_width": ""
978 | }
979 | },
980 | "e14806aac33b49fd9107ca41f4ae54c1": {
981 | "model_module": "@jupyter-widgets/base",
982 | "model_name": "LayoutModel",
983 | "model_module_version": "1.2.0",
984 | "state": {
985 | "_model_module": "@jupyter-widgets/base",
986 | "_model_module_version": "1.2.0",
987 | "_model_name": "LayoutModel",
988 | "_view_count": null,
989 | "_view_module": "@jupyter-widgets/base",
990 | "_view_module_version": "1.2.0",
991 | "_view_name": "LayoutView",
992 | "align_content": null,
993 | "align_items": null,
994 | "align_self": null,
995 | "border": null,
996 | "bottom": null,
997 | "display": null,
998 | "flex": null,
999 | "flex_flow": null,
1000 | "grid_area": null,
1001 | "grid_auto_columns": null,
1002 | "grid_auto_flow": null,
1003 | "grid_auto_rows": null,
1004 | "grid_column": null,
1005 | "grid_gap": null,
1006 | "grid_row": null,
1007 | "grid_template_areas": null,
1008 | "grid_template_columns": null,
1009 | "grid_template_rows": null,
1010 | "height": null,
1011 | "justify_content": null,
1012 | "justify_items": null,
1013 | "left": null,
1014 | "margin": null,
1015 | "max_height": null,
1016 | "max_width": null,
1017 | "min_height": null,
1018 | "min_width": null,
1019 | "object_fit": null,
1020 | "object_position": null,
1021 | "order": null,
1022 | "overflow": null,
1023 | "overflow_x": null,
1024 | "overflow_y": null,
1025 | "padding": null,
1026 | "right": null,
1027 | "top": null,
1028 | "visibility": null,
1029 | "width": null
1030 | }
1031 | },
1032 | "71e38be035e940c4a3e85b30a58b8bd2": {
1033 | "model_module": "@jupyter-widgets/controls",
1034 | "model_name": "DescriptionStyleModel",
1035 | "model_module_version": "1.5.0",
1036 | "state": {
1037 | "_model_module": "@jupyter-widgets/controls",
1038 | "_model_module_version": "1.5.0",
1039 | "_model_name": "DescriptionStyleModel",
1040 | "_view_count": null,
1041 | "_view_module": "@jupyter-widgets/base",
1042 | "_view_module_version": "1.2.0",
1043 | "_view_name": "StyleView",
1044 | "description_width": ""
1045 | }
1046 | },
1047 | "ab0aad4ff0364e2f9c669787f4fa2325": {
1048 | "model_module": "@jupyter-widgets/controls",
1049 | "model_name": "HBoxModel",
1050 | "model_module_version": "1.5.0",
1051 | "state": {
1052 | "_dom_classes": [],
1053 | "_model_module": "@jupyter-widgets/controls",
1054 | "_model_module_version": "1.5.0",
1055 | "_model_name": "HBoxModel",
1056 | "_view_count": null,
1057 | "_view_module": "@jupyter-widgets/controls",
1058 | "_view_module_version": "1.5.0",
1059 | "_view_name": "HBoxView",
1060 | "box_style": "",
1061 | "children": [
1062 | "IPY_MODEL_835cfc81f94f4e67a703de2a95ec0d8b",
1063 | "IPY_MODEL_70d0301df2ce492f8f74fdcd4b8948da",
1064 | "IPY_MODEL_74e66cf643634539a7a19c44837c6f25"
1065 | ],
1066 | "layout": "IPY_MODEL_b12381d1d85247b7bb909a62a9ea4c50"
1067 | }
1068 | },
1069 | "835cfc81f94f4e67a703de2a95ec0d8b": {
1070 | "model_module": "@jupyter-widgets/controls",
1071 | "model_name": "HTMLModel",
1072 | "model_module_version": "1.5.0",
1073 | "state": {
1074 | "_dom_classes": [],
1075 | "_model_module": "@jupyter-widgets/controls",
1076 | "_model_module_version": "1.5.0",
1077 | "_model_name": "HTMLModel",
1078 | "_view_count": null,
1079 | "_view_module": "@jupyter-widgets/controls",
1080 | "_view_module_version": "1.5.0",
1081 | "_view_name": "HTMLView",
1082 | "description": "",
1083 | "description_tooltip": null,
1084 | "layout": "IPY_MODEL_4a6bc061051d4200bb539c18dbd4efde",
1085 | "placeholder": "",
1086 | "style": "IPY_MODEL_bdd729c2cc4c4b6ab7cca979ee93634a",
1087 | "value": "Downloading: 100%"
1088 | }
1089 | },
1090 | "70d0301df2ce492f8f74fdcd4b8948da": {
1091 | "model_module": "@jupyter-widgets/controls",
1092 | "model_name": "FloatProgressModel",
1093 | "model_module_version": "1.5.0",
1094 | "state": {
1095 | "_dom_classes": [],
1096 | "_model_module": "@jupyter-widgets/controls",
1097 | "_model_module_version": "1.5.0",
1098 | "_model_name": "FloatProgressModel",
1099 | "_view_count": null,
1100 | "_view_module": "@jupyter-widgets/controls",
1101 | "_view_module_version": "1.5.0",
1102 | "_view_name": "ProgressView",
1103 | "bar_style": "success",
1104 | "description": "",
1105 | "description_tooltip": null,
1106 | "layout": "IPY_MODEL_71356ac8813f443bba51f96e1afeca12",
1107 | "max": 1355256,
1108 | "min": 0,
1109 | "orientation": "horizontal",
1110 | "style": "IPY_MODEL_8bcac4b50d1d498eaf47f31c9f02851a",
1111 | "value": 1355256
1112 | }
1113 | },
1114 | "74e66cf643634539a7a19c44837c6f25": {
1115 | "model_module": "@jupyter-widgets/controls",
1116 | "model_name": "HTMLModel",
1117 | "model_module_version": "1.5.0",
1118 | "state": {
1119 | "_dom_classes": [],
1120 | "_model_module": "@jupyter-widgets/controls",
1121 | "_model_module_version": "1.5.0",
1122 | "_model_name": "HTMLModel",
1123 | "_view_count": null,
1124 | "_view_module": "@jupyter-widgets/controls",
1125 | "_view_module_version": "1.5.0",
1126 | "_view_name": "HTMLView",
1127 | "description": "",
1128 | "description_tooltip": null,
1129 | "layout": "IPY_MODEL_7d17b7f55a0d4d19889784a738cdc80d",
1130 | "placeholder": "",
1131 | "style": "IPY_MODEL_79dac273081d4da7a09edd7c4ced0e06",
1132 | "value": " 1.36M/1.36M [00:00<00:00, 5.64MB/s]"
1133 | }
1134 | },
1135 | "b12381d1d85247b7bb909a62a9ea4c50": {
1136 | "model_module": "@jupyter-widgets/base",
1137 | "model_name": "LayoutModel",
1138 | "model_module_version": "1.2.0",
1139 | "state": {
1140 | "_model_module": "@jupyter-widgets/base",
1141 | "_model_module_version": "1.2.0",
1142 | "_model_name": "LayoutModel",
1143 | "_view_count": null,
1144 | "_view_module": "@jupyter-widgets/base",
1145 | "_view_module_version": "1.2.0",
1146 | "_view_name": "LayoutView",
1147 | "align_content": null,
1148 | "align_items": null,
1149 | "align_self": null,
1150 | "border": null,
1151 | "bottom": null,
1152 | "display": null,
1153 | "flex": null,
1154 | "flex_flow": null,
1155 | "grid_area": null,
1156 | "grid_auto_columns": null,
1157 | "grid_auto_flow": null,
1158 | "grid_auto_rows": null,
1159 | "grid_column": null,
1160 | "grid_gap": null,
1161 | "grid_row": null,
1162 | "grid_template_areas": null,
1163 | "grid_template_columns": null,
1164 | "grid_template_rows": null,
1165 | "height": null,
1166 | "justify_content": null,
1167 | "justify_items": null,
1168 | "left": null,
1169 | "margin": null,
1170 | "max_height": null,
1171 | "max_width": null,
1172 | "min_height": null,
1173 | "min_width": null,
1174 | "object_fit": null,
1175 | "object_position": null,
1176 | "order": null,
1177 | "overflow": null,
1178 | "overflow_x": null,
1179 | "overflow_y": null,
1180 | "padding": null,
1181 | "right": null,
1182 | "top": null,
1183 | "visibility": null,
1184 | "width": null
1185 | }
1186 | },
1187 | "4a6bc061051d4200bb539c18dbd4efde": {
1188 | "model_module": "@jupyter-widgets/base",
1189 | "model_name": "LayoutModel",
1190 | "model_module_version": "1.2.0",
1191 | "state": {
1192 | "_model_module": "@jupyter-widgets/base",
1193 | "_model_module_version": "1.2.0",
1194 | "_model_name": "LayoutModel",
1195 | "_view_count": null,
1196 | "_view_module": "@jupyter-widgets/base",
1197 | "_view_module_version": "1.2.0",
1198 | "_view_name": "LayoutView",
1199 | "align_content": null,
1200 | "align_items": null,
1201 | "align_self": null,
1202 | "border": null,
1203 | "bottom": null,
1204 | "display": null,
1205 | "flex": null,
1206 | "flex_flow": null,
1207 | "grid_area": null,
1208 | "grid_auto_columns": null,
1209 | "grid_auto_flow": null,
1210 | "grid_auto_rows": null,
1211 | "grid_column": null,
1212 | "grid_gap": null,
1213 | "grid_row": null,
1214 | "grid_template_areas": null,
1215 | "grid_template_columns": null,
1216 | "grid_template_rows": null,
1217 | "height": null,
1218 | "justify_content": null,
1219 | "justify_items": null,
1220 | "left": null,
1221 | "margin": null,
1222 | "max_height": null,
1223 | "max_width": null,
1224 | "min_height": null,
1225 | "min_width": null,
1226 | "object_fit": null,
1227 | "object_position": null,
1228 | "order": null,
1229 | "overflow": null,
1230 | "overflow_x": null,
1231 | "overflow_y": null,
1232 | "padding": null,
1233 | "right": null,
1234 | "top": null,
1235 | "visibility": null,
1236 | "width": null
1237 | }
1238 | },
1239 | "bdd729c2cc4c4b6ab7cca979ee93634a": {
1240 | "model_module": "@jupyter-widgets/controls",
1241 | "model_name": "DescriptionStyleModel",
1242 | "model_module_version": "1.5.0",
1243 | "state": {
1244 | "_model_module": "@jupyter-widgets/controls",
1245 | "_model_module_version": "1.5.0",
1246 | "_model_name": "DescriptionStyleModel",
1247 | "_view_count": null,
1248 | "_view_module": "@jupyter-widgets/base",
1249 | "_view_module_version": "1.2.0",
1250 | "_view_name": "StyleView",
1251 | "description_width": ""
1252 | }
1253 | },
1254 | "71356ac8813f443bba51f96e1afeca12": {
1255 | "model_module": "@jupyter-widgets/base",
1256 | "model_name": "LayoutModel",
1257 | "model_module_version": "1.2.0",
1258 | "state": {
1259 | "_model_module": "@jupyter-widgets/base",
1260 | "_model_module_version": "1.2.0",
1261 | "_model_name": "LayoutModel",
1262 | "_view_count": null,
1263 | "_view_module": "@jupyter-widgets/base",
1264 | "_view_module_version": "1.2.0",
1265 | "_view_name": "LayoutView",
1266 | "align_content": null,
1267 | "align_items": null,
1268 | "align_self": null,
1269 | "border": null,
1270 | "bottom": null,
1271 | "display": null,
1272 | "flex": null,
1273 | "flex_flow": null,
1274 | "grid_area": null,
1275 | "grid_auto_columns": null,
1276 | "grid_auto_flow": null,
1277 | "grid_auto_rows": null,
1278 | "grid_column": null,
1279 | "grid_gap": null,
1280 | "grid_row": null,
1281 | "grid_template_areas": null,
1282 | "grid_template_columns": null,
1283 | "grid_template_rows": null,
1284 | "height": null,
1285 | "justify_content": null,
1286 | "justify_items": null,
1287 | "left": null,
1288 | "margin": null,
1289 | "max_height": null,
1290 | "max_width": null,
1291 | "min_height": null,
1292 | "min_width": null,
1293 | "object_fit": null,
1294 | "object_position": null,
1295 | "order": null,
1296 | "overflow": null,
1297 | "overflow_x": null,
1298 | "overflow_y": null,
1299 | "padding": null,
1300 | "right": null,
1301 | "top": null,
1302 | "visibility": null,
1303 | "width": null
1304 | }
1305 | },
1306 | "8bcac4b50d1d498eaf47f31c9f02851a": {
1307 | "model_module": "@jupyter-widgets/controls",
1308 | "model_name": "ProgressStyleModel",
1309 | "model_module_version": "1.5.0",
1310 | "state": {
1311 | "_model_module": "@jupyter-widgets/controls",
1312 | "_model_module_version": "1.5.0",
1313 | "_model_name": "ProgressStyleModel",
1314 | "_view_count": null,
1315 | "_view_module": "@jupyter-widgets/base",
1316 | "_view_module_version": "1.2.0",
1317 | "_view_name": "StyleView",
1318 | "bar_color": null,
1319 | "description_width": ""
1320 | }
1321 | },
1322 | "7d17b7f55a0d4d19889784a738cdc80d": {
1323 | "model_module": "@jupyter-widgets/base",
1324 | "model_name": "LayoutModel",
1325 | "model_module_version": "1.2.0",
1326 | "state": {
1327 | "_model_module": "@jupyter-widgets/base",
1328 | "_model_module_version": "1.2.0",
1329 | "_model_name": "LayoutModel",
1330 | "_view_count": null,
1331 | "_view_module": "@jupyter-widgets/base",
1332 | "_view_module_version": "1.2.0",
1333 | "_view_name": "LayoutView",
1334 | "align_content": null,
1335 | "align_items": null,
1336 | "align_self": null,
1337 | "border": null,
1338 | "bottom": null,
1339 | "display": null,
1340 | "flex": null,
1341 | "flex_flow": null,
1342 | "grid_area": null,
1343 | "grid_auto_columns": null,
1344 | "grid_auto_flow": null,
1345 | "grid_auto_rows": null,
1346 | "grid_column": null,
1347 | "grid_gap": null,
1348 | "grid_row": null,
1349 | "grid_template_areas": null,
1350 | "grid_template_columns": null,
1351 | "grid_template_rows": null,
1352 | "height": null,
1353 | "justify_content": null,
1354 | "justify_items": null,
1355 | "left": null,
1356 | "margin": null,
1357 | "max_height": null,
1358 | "max_width": null,
1359 | "min_height": null,
1360 | "min_width": null,
1361 | "object_fit": null,
1362 | "object_position": null,
1363 | "order": null,
1364 | "overflow": null,
1365 | "overflow_x": null,
1366 | "overflow_y": null,
1367 | "padding": null,
1368 | "right": null,
1369 | "top": null,
1370 | "visibility": null,
1371 | "width": null
1372 | }
1373 | },
1374 | "79dac273081d4da7a09edd7c4ced0e06": {
1375 | "model_module": "@jupyter-widgets/controls",
1376 | "model_name": "DescriptionStyleModel",
1377 | "model_module_version": "1.5.0",
1378 | "state": {
1379 | "_model_module": "@jupyter-widgets/controls",
1380 | "_model_module_version": "1.5.0",
1381 | "_model_name": "DescriptionStyleModel",
1382 | "_view_count": null,
1383 | "_view_module": "@jupyter-widgets/base",
1384 | "_view_module_version": "1.2.0",
1385 | "_view_name": "StyleView",
1386 | "description_width": ""
1387 | }
1388 | },
1389 | "8fc8ad820a3c4e268fd6fd487becd5f9": {
1390 | "model_module": "@jupyter-widgets/controls",
1391 | "model_name": "HBoxModel",
1392 | "model_module_version": "1.5.0",
1393 | "state": {
1394 | "_dom_classes": [],
1395 | "_model_module": "@jupyter-widgets/controls",
1396 | "_model_module_version": "1.5.0",
1397 | "_model_name": "HBoxModel",
1398 | "_view_count": null,
1399 | "_view_module": "@jupyter-widgets/controls",
1400 | "_view_module_version": "1.5.0",
1401 | "_view_name": "HBoxView",
1402 | "box_style": "",
1403 | "children": [
1404 | "IPY_MODEL_b40392c4052b49ca8561972f1bfcdfa7",
1405 | "IPY_MODEL_3d8545b43fad4a2189be7be4c0905c98",
1406 | "IPY_MODEL_ff617d0462d34d8187550b382692075f"
1407 | ],
1408 | "layout": "IPY_MODEL_dd0561c26ae046ed95ba59c0f9839dff"
1409 | }
1410 | },
1411 | "b40392c4052b49ca8561972f1bfcdfa7": {
1412 | "model_module": "@jupyter-widgets/controls",
1413 | "model_name": "HTMLModel",
1414 | "model_module_version": "1.5.0",
1415 | "state": {
1416 | "_dom_classes": [],
1417 | "_model_module": "@jupyter-widgets/controls",
1418 | "_model_module_version": "1.5.0",
1419 | "_model_name": "HTMLModel",
1420 | "_view_count": null,
1421 | "_view_module": "@jupyter-widgets/controls",
1422 | "_view_module_version": "1.5.0",
1423 | "_view_name": "HTMLView",
1424 | "description": "",
1425 | "description_tooltip": null,
1426 | "layout": "IPY_MODEL_2d2f1b226c9943a48b6642e197f2fed8",
1427 | "placeholder": "",
1428 | "style": "IPY_MODEL_b44d3c3603af4867a53be7ef6fa8e168",
1429 | "value": "Downloading: 100%"
1430 | }
1431 | },
1432 | "3d8545b43fad4a2189be7be4c0905c98": {
1433 | "model_module": "@jupyter-widgets/controls",
1434 | "model_name": "FloatProgressModel",
1435 | "model_module_version": "1.5.0",
1436 | "state": {
1437 | "_dom_classes": [],
1438 | "_model_module": "@jupyter-widgets/controls",
1439 | "_model_module_version": "1.5.0",
1440 | "_model_name": "FloatProgressModel",
1441 | "_view_count": null,
1442 | "_view_module": "@jupyter-widgets/controls",
1443 | "_view_module_version": "1.5.0",
1444 | "_view_name": "ProgressView",
1445 | "bar_style": "success",
1446 | "description": "",
1447 | "description_tooltip": null,
1448 | "layout": "IPY_MODEL_4cc37601897e4f1d96974fe48cc0ac68",
1449 | "max": 6431878936,
1450 | "min": 0,
1451 | "orientation": "horizontal",
1452 | "style": "IPY_MODEL_45b89a44d72c43c28d364d8b6dfe67c6",
1453 | "value": 6431878936
1454 | }
1455 | },
1456 | "ff617d0462d34d8187550b382692075f": {
1457 | "model_module": "@jupyter-widgets/controls",
1458 | "model_name": "HTMLModel",
1459 | "model_module_version": "1.5.0",
1460 | "state": {
1461 | "_dom_classes": [],
1462 | "_model_module": "@jupyter-widgets/controls",
1463 | "_model_module_version": "1.5.0",
1464 | "_model_name": "HTMLModel",
1465 | "_view_count": null,
1466 | "_view_module": "@jupyter-widgets/controls",
1467 | "_view_module_version": "1.5.0",
1468 | "_view_name": "HTMLView",
1469 | "description": "",
1470 | "description_tooltip": null,
1471 | "layout": "IPY_MODEL_b9af6361d0c54e6dbebdbc42d0e05547",
1472 | "placeholder": "",
1473 | "style": "IPY_MODEL_a6eb35e7bbeb4de8bde2ad5c4c8bd1d1",
1474 | "value": " 6.43G/6.43G [01:54<00:00, 60.5MB/s]"
1475 | }
1476 | },
1477 | "dd0561c26ae046ed95ba59c0f9839dff": {
1478 | "model_module": "@jupyter-widgets/base",
1479 | "model_name": "LayoutModel",
1480 | "model_module_version": "1.2.0",
1481 | "state": {
1482 | "_model_module": "@jupyter-widgets/base",
1483 | "_model_module_version": "1.2.0",
1484 | "_model_name": "LayoutModel",
1485 | "_view_count": null,
1486 | "_view_module": "@jupyter-widgets/base",
1487 | "_view_module_version": "1.2.0",
1488 | "_view_name": "LayoutView",
1489 | "align_content": null,
1490 | "align_items": null,
1491 | "align_self": null,
1492 | "border": null,
1493 | "bottom": null,
1494 | "display": null,
1495 | "flex": null,
1496 | "flex_flow": null,
1497 | "grid_area": null,
1498 | "grid_auto_columns": null,
1499 | "grid_auto_flow": null,
1500 | "grid_auto_rows": null,
1501 | "grid_column": null,
1502 | "grid_gap": null,
1503 | "grid_row": null,
1504 | "grid_template_areas": null,
1505 | "grid_template_columns": null,
1506 | "grid_template_rows": null,
1507 | "height": null,
1508 | "justify_content": null,
1509 | "justify_items": null,
1510 | "left": null,
1511 | "margin": null,
1512 | "max_height": null,
1513 | "max_width": null,
1514 | "min_height": null,
1515 | "min_width": null,
1516 | "object_fit": null,
1517 | "object_position": null,
1518 | "order": null,
1519 | "overflow": null,
1520 | "overflow_x": null,
1521 | "overflow_y": null,
1522 | "padding": null,
1523 | "right": null,
1524 | "top": null,
1525 | "visibility": null,
1526 | "width": null
1527 | }
1528 | },
1529 | "2d2f1b226c9943a48b6642e197f2fed8": {
1530 | "model_module": "@jupyter-widgets/base",
1531 | "model_name": "LayoutModel",
1532 | "model_module_version": "1.2.0",
1533 | "state": {
1534 | "_model_module": "@jupyter-widgets/base",
1535 | "_model_module_version": "1.2.0",
1536 | "_model_name": "LayoutModel",
1537 | "_view_count": null,
1538 | "_view_module": "@jupyter-widgets/base",
1539 | "_view_module_version": "1.2.0",
1540 | "_view_name": "LayoutView",
1541 | "align_content": null,
1542 | "align_items": null,
1543 | "align_self": null,
1544 | "border": null,
1545 | "bottom": null,
1546 | "display": null,
1547 | "flex": null,
1548 | "flex_flow": null,
1549 | "grid_area": null,
1550 | "grid_auto_columns": null,
1551 | "grid_auto_flow": null,
1552 | "grid_auto_rows": null,
1553 | "grid_column": null,
1554 | "grid_gap": null,
1555 | "grid_row": null,
1556 | "grid_template_areas": null,
1557 | "grid_template_columns": null,
1558 | "grid_template_rows": null,
1559 | "height": null,
1560 | "justify_content": null,
1561 | "justify_items": null,
1562 | "left": null,
1563 | "margin": null,
1564 | "max_height": null,
1565 | "max_width": null,
1566 | "min_height": null,
1567 | "min_width": null,
1568 | "object_fit": null,
1569 | "object_position": null,
1570 | "order": null,
1571 | "overflow": null,
1572 | "overflow_x": null,
1573 | "overflow_y": null,
1574 | "padding": null,
1575 | "right": null,
1576 | "top": null,
1577 | "visibility": null,
1578 | "width": null
1579 | }
1580 | },
1581 | "b44d3c3603af4867a53be7ef6fa8e168": {
1582 | "model_module": "@jupyter-widgets/controls",
1583 | "model_name": "DescriptionStyleModel",
1584 | "model_module_version": "1.5.0",
1585 | "state": {
1586 | "_model_module": "@jupyter-widgets/controls",
1587 | "_model_module_version": "1.5.0",
1588 | "_model_name": "DescriptionStyleModel",
1589 | "_view_count": null,
1590 | "_view_module": "@jupyter-widgets/base",
1591 | "_view_module_version": "1.2.0",
1592 | "_view_name": "StyleView",
1593 | "description_width": ""
1594 | }
1595 | },
1596 | "4cc37601897e4f1d96974fe48cc0ac68": {
1597 | "model_module": "@jupyter-widgets/base",
1598 | "model_name": "LayoutModel",
1599 | "model_module_version": "1.2.0",
1600 | "state": {
1601 | "_model_module": "@jupyter-widgets/base",
1602 | "_model_module_version": "1.2.0",
1603 | "_model_name": "LayoutModel",
1604 | "_view_count": null,
1605 | "_view_module": "@jupyter-widgets/base",
1606 | "_view_module_version": "1.2.0",
1607 | "_view_name": "LayoutView",
1608 | "align_content": null,
1609 | "align_items": null,
1610 | "align_self": null,
1611 | "border": null,
1612 | "bottom": null,
1613 | "display": null,
1614 | "flex": null,
1615 | "flex_flow": null,
1616 | "grid_area": null,
1617 | "grid_auto_columns": null,
1618 | "grid_auto_flow": null,
1619 | "grid_auto_rows": null,
1620 | "grid_column": null,
1621 | "grid_gap": null,
1622 | "grid_row": null,
1623 | "grid_template_areas": null,
1624 | "grid_template_columns": null,
1625 | "grid_template_rows": null,
1626 | "height": null,
1627 | "justify_content": null,
1628 | "justify_items": null,
1629 | "left": null,
1630 | "margin": null,
1631 | "max_height": null,
1632 | "max_width": null,
1633 | "min_height": null,
1634 | "min_width": null,
1635 | "object_fit": null,
1636 | "object_position": null,
1637 | "order": null,
1638 | "overflow": null,
1639 | "overflow_x": null,
1640 | "overflow_y": null,
1641 | "padding": null,
1642 | "right": null,
1643 | "top": null,
1644 | "visibility": null,
1645 | "width": null
1646 | }
1647 | },
1648 | "45b89a44d72c43c28d364d8b6dfe67c6": {
1649 | "model_module": "@jupyter-widgets/controls",
1650 | "model_name": "ProgressStyleModel",
1651 | "model_module_version": "1.5.0",
1652 | "state": {
1653 | "_model_module": "@jupyter-widgets/controls",
1654 | "_model_module_version": "1.5.0",
1655 | "_model_name": "ProgressStyleModel",
1656 | "_view_count": null,
1657 | "_view_module": "@jupyter-widgets/base",
1658 | "_view_module_version": "1.2.0",
1659 | "_view_name": "StyleView",
1660 | "bar_color": null,
1661 | "description_width": ""
1662 | }
1663 | },
1664 | "b9af6361d0c54e6dbebdbc42d0e05547": {
1665 | "model_module": "@jupyter-widgets/base",
1666 | "model_name": "LayoutModel",
1667 | "model_module_version": "1.2.0",
1668 | "state": {
1669 | "_model_module": "@jupyter-widgets/base",
1670 | "_model_module_version": "1.2.0",
1671 | "_model_name": "LayoutModel",
1672 | "_view_count": null,
1673 | "_view_module": "@jupyter-widgets/base",
1674 | "_view_module_version": "1.2.0",
1675 | "_view_name": "LayoutView",
1676 | "align_content": null,
1677 | "align_items": null,
1678 | "align_self": null,
1679 | "border": null,
1680 | "bottom": null,
1681 | "display": null,
1682 | "flex": null,
1683 | "flex_flow": null,
1684 | "grid_area": null,
1685 | "grid_auto_columns": null,
1686 | "grid_auto_flow": null,
1687 | "grid_auto_rows": null,
1688 | "grid_column": null,
1689 | "grid_gap": null,
1690 | "grid_row": null,
1691 | "grid_template_areas": null,
1692 | "grid_template_columns": null,
1693 | "grid_template_rows": null,
1694 | "height": null,
1695 | "justify_content": null,
1696 | "justify_items": null,
1697 | "left": null,
1698 | "margin": null,
1699 | "max_height": null,
1700 | "max_width": null,
1701 | "min_height": null,
1702 | "min_width": null,
1703 | "object_fit": null,
1704 | "object_position": null,
1705 | "order": null,
1706 | "overflow": null,
1707 | "overflow_x": null,
1708 | "overflow_y": null,
1709 | "padding": null,
1710 | "right": null,
1711 | "top": null,
1712 | "visibility": null,
1713 | "width": null
1714 | }
1715 | },
1716 | "a6eb35e7bbeb4de8bde2ad5c4c8bd1d1": {
1717 | "model_module": "@jupyter-widgets/controls",
1718 | "model_name": "DescriptionStyleModel",
1719 | "model_module_version": "1.5.0",
1720 | "state": {
1721 | "_model_module": "@jupyter-widgets/controls",
1722 | "_model_module_version": "1.5.0",
1723 | "_model_name": "DescriptionStyleModel",
1724 | "_view_count": null,
1725 | "_view_module": "@jupyter-widgets/base",
1726 | "_view_module_version": "1.2.0",
1727 | "_view_name": "StyleView",
1728 | "description_width": ""
1729 | }
1730 | }
1731 | }
1732 | }
1733 | },
1734 | "cells": [
1735 | {
1736 | "cell_type": "markdown",
1737 | "metadata": {
1738 | "id": "view-in-github",
1739 | "colab_type": "text"
1740 | },
1741 | "source": [
1742 | "
"
1743 | ]
1744 | },
1745 | {
1746 | "cell_type": "markdown",
1747 | "source": [
1748 | "### Manual(수동) Prompt Engineering for Dialog2Prompt with Large Language Model \n",
1749 | "\n",
1750 | "## **[ Produced by ]**\n",
1751 | "\n",
1752 | "[Eunchan Lee of KNU-BrainAI](https://github.com/purang2)\n",
1753 | "\n",
1754 | "\n"
1755 | ],
1756 | "metadata": {
1757 | "id": "nr5CTloRas9w"
1758 | }
1759 | },
1760 | {
1761 | "cell_type": "code",
1762 | "execution_count": 1,
1763 | "metadata": {
1764 | "id": "LX_l7Im6Wc59"
1765 | },
1766 | "outputs": [],
1767 | "source": [
1768 | "import gc\n",
1769 | "import torch \n",
1770 | " \n",
1771 | "gc.collect()\n",
1772 | "torch.cuda.empty_cache()"
1773 | ]
1774 | },
1775 | {
1776 | "cell_type": "code",
1777 | "source": [
1778 | "!pip install transformers \n",
1779 | "!pip install accelerate"
1780 | ],
1781 | "metadata": {
1782 | "colab": {
1783 | "base_uri": "https://localhost:8080/"
1784 | },
1785 | "id": "rDURuRwOXUZH",
1786 | "outputId": "fd3bf6a7-0f79-49ad-c5b8-fcb067501f63"
1787 | },
1788 | "execution_count": 2,
1789 | "outputs": [
1790 | {
1791 | "output_type": "stream",
1792 | "name": "stdout",
1793 | "text": [
1794 | "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
1795 | "Collecting transformers\n",
1796 | " Downloading transformers-4.25.1-py3-none-any.whl (5.8 MB)\n",
1797 | "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.8/5.8 MB\u001b[0m \u001b[31m31.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1798 | "\u001b[?25hRequirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.8/dist-packages (from transformers) (4.64.1)\n",
1799 | "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.8/dist-packages (from transformers) (21.3)\n",
1800 | "Requirement already satisfied: filelock in /usr/local/lib/python3.8/dist-packages (from transformers) (3.9.0)\n",
1801 | "Collecting tokenizers!=0.11.3,<0.14,>=0.11.1\n",
1802 | " Downloading tokenizers-0.13.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB)\n",
1803 | "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.6/7.6 MB\u001b[0m \u001b[31m71.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1804 | "\u001b[?25hRequirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.8/dist-packages (from transformers) (2022.6.2)\n",
1805 | "Requirement already satisfied: requests in /usr/local/lib/python3.8/dist-packages (from transformers) (2.25.1)\n",
1806 | "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.8/dist-packages (from transformers) (6.0)\n",
1807 | "Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.8/dist-packages (from transformers) (1.21.6)\n",
1808 | "Collecting huggingface-hub<1.0,>=0.10.0\n",
1809 | " Downloading huggingface_hub-0.11.1-py3-none-any.whl (182 kB)\n",
1810 | "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m182.4/182.4 KB\u001b[0m \u001b[31m13.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1811 | "\u001b[?25hRequirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.8/dist-packages (from huggingface-hub<1.0,>=0.10.0->transformers) (4.4.0)\n",
1812 | "Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.8/dist-packages (from packaging>=20.0->transformers) (3.0.9)\n",
1813 | "Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.8/dist-packages (from requests->transformers) (2.10)\n",
1814 | "Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.8/dist-packages (from requests->transformers) (1.24.3)\n",
1815 | "Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.8/dist-packages (from requests->transformers) (4.0.0)\n",
1816 | "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/dist-packages (from requests->transformers) (2022.12.7)\n",
1817 | "Installing collected packages: tokenizers, huggingface-hub, transformers\n",
1818 | "Successfully installed huggingface-hub-0.11.1 tokenizers-0.13.2 transformers-4.25.1\n",
1819 | "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
1820 | "Collecting accelerate\n",
1821 | " Downloading accelerate-0.15.0-py3-none-any.whl (191 kB)\n",
1822 | "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m191.5/191.5 KB\u001b[0m \u001b[31m4.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1823 | "\u001b[?25hRequirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.8/dist-packages (from accelerate) (1.21.6)\n",
1824 | "Requirement already satisfied: torch>=1.4.0 in /usr/local/lib/python3.8/dist-packages (from accelerate) (1.13.0+cu116)\n",
1825 | "Requirement already satisfied: pyyaml in /usr/local/lib/python3.8/dist-packages (from accelerate) (6.0)\n",
1826 | "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.8/dist-packages (from accelerate) (21.3)\n",
1827 | "Requirement already satisfied: psutil in /usr/local/lib/python3.8/dist-packages (from accelerate) (5.4.8)\n",
1828 | "Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.8/dist-packages (from packaging>=20.0->accelerate) (3.0.9)\n",
1829 | "Requirement already satisfied: typing-extensions in /usr/local/lib/python3.8/dist-packages (from torch>=1.4.0->accelerate) (4.4.0)\n",
1830 | "Installing collected packages: accelerate\n",
1831 | "Successfully installed accelerate-0.15.0\n"
1832 | ]
1833 | }
1834 | ]
1835 | },
1836 | {
1837 | "cell_type": "code",
1838 | "source": [
1839 | "import torch\n",
1840 | "from transformers import AutoTokenizer, AutoModelForCausalLM"
1841 | ],
1842 | "metadata": {
1843 | "id": "Qkwz6aYXbCNp"
1844 | },
1845 | "execution_count": 3,
1846 | "outputs": []
1847 | },
1848 | {
1849 | "cell_type": "markdown",
1850 | "source": [
1851 | "Put datapair"
1852 | ],
1853 | "metadata": {
1854 | "id": "KfKGHuv7LfF5"
1855 | }
1856 | },
1857 | {
1858 | "cell_type": "code",
1859 | "source": [
1860 | "few_src = [] \n",
1861 | "few_tgt = []\n",
1862 | "\n",
1863 | "\n",
1864 | "def put_datapair(src, tgt):\n",
1865 | " few_src.append(src)\n",
1866 | " few_tgt.append(tgt)\n",
1867 | "\n",
1868 | "\n",
1869 | "# k=4\n",
1870 | "'''\n",
1871 | "put_datapair(\"k\", \"x\")\n",
1872 | "put_datapair(\"kk\", \"xx\")\n",
1873 | "put_datapair(\"kkk\", \"xxx\")\n",
1874 | "put_datapair(\"kkkk\", \"xxxx\")\n",
1875 | "'''\n",
1876 | "\n",
1877 | "\n",
1878 | "# k=4 -> Manual sample: Text style transfer\n",
1879 | "put_datapair(\"South Korea's Capital is Seoul\", \"Seoul -> South Korea\")\n",
1880 | "put_datapair(\"Mexico's Capital is Mexico City\", \"Mexico City -> Mexico\")\n",
1881 | "put_datapair(\"Germany's Capital is Berlin\", \"Berlin -> Germany\")\n",
1882 | "put_datapair(\"Uganda's Capital is Kampala\", \"Kampala -> Uganda\")\n",
1883 | "\n",
1884 | "\n",
1885 | "\n",
1886 | "print(few_src)\n",
1887 | "print(few_tgt)\n"
1888 | ],
1889 | "metadata": {
1890 | "id": "0Ki7stDebE_D",
1891 | "colab": {
1892 | "base_uri": "https://localhost:8080/"
1893 | },
1894 | "outputId": "2c41e7b1-310d-4011-b9c9-6eedd6c39c26"
1895 | },
1896 | "execution_count": 4,
1897 | "outputs": [
1898 | {
1899 | "output_type": "stream",
1900 | "name": "stdout",
1901 | "text": [
1902 | "[\"South Korea's Capital is Seoul\", \"Mexico's Capital is Mexico City\", \"Germany's Capital is Berlin\", \"Uganda's Capital is Kampala\"]\n",
1903 | "['Seoul -> South Korea', 'Mexico City -> Mexico', 'Berlin -> Germany', 'Kampala -> Uganda']\n"
1904 | ]
1905 | }
1906 | ]
1907 | },
1908 | {
1909 | "cell_type": "markdown",
1910 | "source": [
1911 | "### Prompt\n",
1912 | "\n",
1913 | "***Reference: [A Recipe for Arbitrary Text Style Transfer with Large Language Models, (Reif et al. (Google Research), ACL 2022)](https://aclanthology.org/2022.acl-short.94/)***"
1914 | ],
1915 | "metadata": {
1916 | "id": "ZwMZvIpCKOiP"
1917 | }
1918 | },
1919 | {
1920 | "cell_type": "code",
1921 | "source": [
1922 | "in_context_text = ''\n",
1923 | "\n",
1924 | "for i in range(len(few_src)):\n",
1925 | " in_context_text += f'Here is some text: {few_src[i]}. Here is a rewrite of the text, which is more simple: {few_tgt[i]}\\n'\n",
1926 | "\n",
1927 | "print(in_context_text)"
1928 | ],
1929 | "metadata": {
1930 | "colab": {
1931 | "base_uri": "https://localhost:8080/"
1932 | },
1933 | "id": "F5LM18a7f_FQ",
1934 | "outputId": "198de336-5edb-474e-951a-2ee846a9001f"
1935 | },
1936 | "execution_count": 5,
1937 | "outputs": [
1938 | {
1939 | "output_type": "stream",
1940 | "name": "stdout",
1941 | "text": [
1942 | "Here is some text: South Korea's Capital is Seoul. Here is a rewrite of the text, which is more simple: Seoul -> South Korea\n",
1943 | "Here is some text: Mexico's Capital is Mexico City. Here is a rewrite of the text, which is more simple: Mexico City -> Mexico\n",
1944 | "Here is some text: Germany's Capital is Berlin. Here is a rewrite of the text, which is more simple: Berlin -> Germany\n",
1945 | "Here is some text: Uganda's Capital is Kampala. Here is a rewrite of the text, which is more simple: Kampala -> Uganda\n",
1946 | "\n"
1947 | ]
1948 | }
1949 | ]
1950 | },
1951 | {
1952 | "cell_type": "markdown",
1953 | "source": [
1954 | "transformers model"
1955 | ],
1956 | "metadata": {
1957 | "id": "N8qXu5MTKStT"
1958 | }
1959 | },
1960 | {
1961 | "cell_type": "code",
1962 | "source": [
1963 | "from transformers import AutoTokenizer\n",
1964 | "from transformers import AutoModelForCausalLM, AutoModelForSeq2SeqLM\n",
1965 | "from transformers import pipeline\n",
1966 | "\n",
1967 | "\n",
1968 | "# GPT-2 (This is the smallest version of GPT-2, with 124M parameters.) = \"gpt2\"\n",
1969 | "# GPT-2 (XL) (1.5B parameters.) = \"gpt2-xl\"\n",
1970 | "# T5 (base, with 220 million parameters.) = \"t5-base\"\n",
1971 | "# T5 (3B parameters.) = \"t5-3b\"\n",
1972 | "# T5 (11B parameters.) = \"t5-11b\" -> 45.2GB (Colab may not cover this size..)\n",
1973 | "# GPT-J (6B parameters.) = \"EleutherAI/gpt-j-6B\"\n",
1974 | "\n",
1975 | "# In-context learning work well at least 1 Billions parameters. -eunchan-\n",
1976 | "\n",
1977 | "model_zoo = [\"gpt2\",\"gpt2-xl\",\"t5-base\",\"t5-3b\",\"t5-11b\",\"EleutherAI/gpt-j-6B\"]\n",
1978 | "\n",
1979 | "\n",
1980 | "\n",
1981 | "model_name = model_zoo[1]\n",
1982 | "\n",
1983 | "\n",
1984 | "if model_name.find('t5') > -1: #model = t5\n",
1985 | " tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
1986 | " model = AutoModelForSeq2SeqLM.from_pretrained(model_name)\n",
1987 | " nlg_pipeline = pipeline('text2text-generation',model=model, tokenizer=tokenizer)\n",
1988 | "\n",
1989 | "else: #model = gpt\n",
1990 | " tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
1991 | " model = AutoModelForCausalLM.from_pretrained(model_name)\n",
1992 | " #nlg_pipeline = pipeline(model=model, tokenizer=tokenizer)"
1993 | ],
1994 | "metadata": {
1995 | "colab": {
1996 | "base_uri": "https://localhost:8080/",
1997 | "height": 177,
1998 | "referenced_widgets": [
1999 | "b539d7fa50874c5cb353742acc38d035",
2000 | "63ea3da5f9ec47a9856fd878ff9653ed",
2001 | "0fed3654a5e5479e933a65aa41ea0556",
2002 | "6299de1200494cb0ac2e54ff7c16d2bf",
2003 | "6f763e8210ac4e0992317f24f1fdb546",
2004 | "dd9cf398e6604ab9953d372cc833fd75",
2005 | "a61ac8da58ad42a2bd7329d2d339d07c",
2006 | "17dbb761d1664bae8bb96915e8c23bec",
2007 | "9ca215a28e914c8abccb1c5d3385775f",
2008 | "f58a5bcefd394896a052075108e9a1b3",
2009 | "eadd4f803c3949ef908873b191ddaf99",
2010 | "1dd2fc24b5884aadae9e0b9995ca55f0",
2011 | "8caea121390c4267b01fde27f3afe6b3",
2012 | "1760b31dbdf843099341a67608c1464d",
2013 | "62ec2b2f26594d57ad78947f5710dd8d",
2014 | "6721a3f8ce98467497272204722f3c6a",
2015 | "f0b867f5fb1a4f898702c4f413bcc78e",
2016 | "baa787efb0c24407b8ab0948fc1f92e3",
2017 | "ca734695bf1b4ab5a94bc2c6b4e193dc",
2018 | "07239082bbb04095b8f5b53311d523fb",
2019 | "8b32bf66fdd6450f96d4829d44d360a5",
2020 | "95930beda3aa4d8ca2a3ad077cdf7767",
2021 | "dbdd3dea8dcd4d16b07012222e74a6ec",
2022 | "e6706518f93d43a3922af38f33950175",
2023 | "0233c7dcc0744465a12dabead48e3e97",
2024 | "3cac992c4ab64f50a5ab47ebbbcbc482",
2025 | "a6910a37ffa94c6e9381a31c2d96a81c",
2026 | "874c31e0b254426ab6741f39a20d1ffe",
2027 | "56ec677b71664909a54b0aa07948f642",
2028 | "1a9df2a53870436889a8884b38a9ce92",
2029 | "5648468189ce45d5b524fc1c1c3da74b",
2030 | "e14806aac33b49fd9107ca41f4ae54c1",
2031 | "71e38be035e940c4a3e85b30a58b8bd2",
2032 | "ab0aad4ff0364e2f9c669787f4fa2325",
2033 | "835cfc81f94f4e67a703de2a95ec0d8b",
2034 | "70d0301df2ce492f8f74fdcd4b8948da",
2035 | "74e66cf643634539a7a19c44837c6f25",
2036 | "b12381d1d85247b7bb909a62a9ea4c50",
2037 | "4a6bc061051d4200bb539c18dbd4efde",
2038 | "bdd729c2cc4c4b6ab7cca979ee93634a",
2039 | "71356ac8813f443bba51f96e1afeca12",
2040 | "8bcac4b50d1d498eaf47f31c9f02851a",
2041 | "7d17b7f55a0d4d19889784a738cdc80d",
2042 | "79dac273081d4da7a09edd7c4ced0e06",
2043 | "8fc8ad820a3c4e268fd6fd487becd5f9",
2044 | "b40392c4052b49ca8561972f1bfcdfa7",
2045 | "3d8545b43fad4a2189be7be4c0905c98",
2046 | "ff617d0462d34d8187550b382692075f",
2047 | "dd0561c26ae046ed95ba59c0f9839dff",
2048 | "2d2f1b226c9943a48b6642e197f2fed8",
2049 | "b44d3c3603af4867a53be7ef6fa8e168",
2050 | "4cc37601897e4f1d96974fe48cc0ac68",
2051 | "45b89a44d72c43c28d364d8b6dfe67c6",
2052 | "b9af6361d0c54e6dbebdbc42d0e05547",
2053 | "a6eb35e7bbeb4de8bde2ad5c4c8bd1d1"
2054 | ]
2055 | },
2056 | "id": "QVf1QNumiPlC",
2057 | "outputId": "860bdbf9-a63c-4812-a7f5-f7cc1f2ff950"
2058 | },
2059 | "execution_count": 6,
2060 | "outputs": [
2061 | {
2062 | "output_type": "display_data",
2063 | "data": {
2064 | "text/plain": [
2065 | "Downloading: 0%| | 0.00/689 [00:00, ?B/s]"
2066 | ],
2067 | "application/vnd.jupyter.widget-view+json": {
2068 | "version_major": 2,
2069 | "version_minor": 0,
2070 | "model_id": "b539d7fa50874c5cb353742acc38d035"
2071 | }
2072 | },
2073 | "metadata": {}
2074 | },
2075 | {
2076 | "output_type": "display_data",
2077 | "data": {
2078 | "text/plain": [
2079 | "Downloading: 0%| | 0.00/1.04M [00:00, ?B/s]"
2080 | ],
2081 | "application/vnd.jupyter.widget-view+json": {
2082 | "version_major": 2,
2083 | "version_minor": 0,
2084 | "model_id": "1dd2fc24b5884aadae9e0b9995ca55f0"
2085 | }
2086 | },
2087 | "metadata": {}
2088 | },
2089 | {
2090 | "output_type": "display_data",
2091 | "data": {
2092 | "text/plain": [
2093 | "Downloading: 0%| | 0.00/456k [00:00, ?B/s]"
2094 | ],
2095 | "application/vnd.jupyter.widget-view+json": {
2096 | "version_major": 2,
2097 | "version_minor": 0,
2098 | "model_id": "dbdd3dea8dcd4d16b07012222e74a6ec"
2099 | }
2100 | },
2101 | "metadata": {}
2102 | },
2103 | {
2104 | "output_type": "display_data",
2105 | "data": {
2106 | "text/plain": [
2107 | "Downloading: 0%| | 0.00/1.36M [00:00, ?B/s]"
2108 | ],
2109 | "application/vnd.jupyter.widget-view+json": {
2110 | "version_major": 2,
2111 | "version_minor": 0,
2112 | "model_id": "ab0aad4ff0364e2f9c669787f4fa2325"
2113 | }
2114 | },
2115 | "metadata": {}
2116 | },
2117 | {
2118 | "output_type": "display_data",
2119 | "data": {
2120 | "text/plain": [
2121 | "Downloading: 0%| | 0.00/6.43G [00:00, ?B/s]"
2122 | ],
2123 | "application/vnd.jupyter.widget-view+json": {
2124 | "version_major": 2,
2125 | "version_minor": 0,
2126 | "model_id": "8fc8ad820a3c4e268fd6fd487becd5f9"
2127 | }
2128 | },
2129 | "metadata": {}
2130 | }
2131 | ]
2132 | },
2133 | {
2134 | "cell_type": "markdown",
2135 | "source": [
2136 | "model inference"
2137 | ],
2138 | "metadata": {
2139 | "id": "1mfaqHtbKWYD"
2140 | }
2141 | },
2142 | {
2143 | "cell_type": "code",
2144 | "source": [
2145 | "\n",
2146 | "#test_input_text = 'kjkjkjkj'\n",
2147 | "test_input_text = \"Italy's Capital is Roma\"\n",
2148 | "test_output_length = 8 #token length\n",
2149 | "\n",
2150 | "\n",
2151 | "\n",
2152 | "if model_name.find('t5') > -1: #model = T5\n",
2153 | " def generate_text(pipe, text, num_return_sequences=5, max_length=512):\n",
2154 | " text = f\"{text}\"\n",
2155 | " out = pipe(text, num_return_sequences=num_return_sequences, max_length=max_length, num_beams=5, no_repeat_ngram_size=2,)\n",
2156 | " return [x['generated_text'] for x in out]\n",
2157 | "\n",
2158 | " #target_text = 'kjkjkjkj'\n",
2159 | " src_text = in_context_text + f\"Here is some text: {test_input_text}. Here is a rewrite of the text, which is more simple: \"\n",
2160 | "\n",
2161 | " print(\"Input text:\", src_text)\n",
2162 | " test_output_text = generate_text(nlg_pipeline, src_text, num_return_sequences=1, max_length=test_output_length)\n",
2163 | "\n",
2164 | "\n",
2165 | " #you can cook this output anything you want! \n",
2166 | " print(test_output_text)\n",
2167 | "\n",
2168 | "\n",
2169 | "\n",
2170 | "else: #model = GPT\n",
2171 | " src_text = in_context_text + f\"Here is some text: {test_input_text}. Here is a rewrite of the text, which is more simple: \"\n",
2172 | " tokens = tokenizer.encode(src_text, return_tensors='pt')\n",
2173 | " gen_tokens = model.generate(tokens, do_sample=True, temperature=0.8, max_length=len(tokens[0])+test_output_length)\n",
2174 | " generated = tokenizer.batch_decode(gen_tokens)[0]\n",
2175 | " \n",
2176 | " test_output_text = generated[generated.rfind('more simple:')+12:]\n",
2177 | " print(generated)\n",
2178 | "\n",
2179 | " #you can cook this output anything you want!\n",
2180 | " print(test_output_text)\n"
2181 | ],
2182 | "metadata": {
2183 | "colab": {
2184 | "base_uri": "https://localhost:8080/"
2185 | },
2186 | "id": "n71_yzKjz-gL",
2187 | "outputId": "c4e060a7-3e4c-4339-c8f6-42cdb0588535"
2188 | },
2189 | "execution_count": 10,
2190 | "outputs": [
2191 | {
2192 | "output_type": "stream",
2193 | "name": "stderr",
2194 | "text": [
2195 | "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n",
2196 | "Setting `pad_token_id` to `eos_token_id`:50256 for open-end generation.\n"
2197 | ]
2198 | },
2199 | {
2200 | "output_type": "stream",
2201 | "name": "stdout",
2202 | "text": [
2203 | "Here is some text: South Korea's Capital is Seoul. Here is a rewrite of the text, which is more simple: Seoul -> South Korea\n",
2204 | "Here is some text: Mexico's Capital is Mexico City. Here is a rewrite of the text, which is more simple: Mexico City -> Mexico\n",
2205 | "Here is some text: Germany's Capital is Berlin. Here is a rewrite of the text, which is more simple: Berlin -> Germany\n",
2206 | "Here is some text: Uganda's Capital is Kampala. Here is a rewrite of the text, which is more simple: Kampala -> Uganda\n",
2207 | "Here is some text: Italy's Capital is Roma. Here is a rewrite of the text, which is more simple: Roma -> Italy\n",
2208 | "Here is\n",
2209 | " Roma -> Italy\n",
2210 | "Here is\n"
2211 | ]
2212 | }
2213 | ]
2214 | },
2215 | {
2216 | "cell_type": "code",
2217 | "source": [],
2218 | "metadata": {
2219 | "id": "Akfyhhiw0fym"
2220 | },
2221 | "execution_count": 7,
2222 | "outputs": []
2223 | }
2224 | ]
2225 | }
--------------------------------------------------------------------------------
/Fewshot_OPT_PROMPTING.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "attachments": {},
5 | "cell_type": "markdown",
6 | "metadata": {
7 | "id": "nr5CTloRas9w"
8 | },
9 | "source": [
10 | "### Few-shot Prompting for Compositionality+Reasoning with Large Language Models \n",
11 | "\n",
12 | "\n",
13 | "**[ Code from ]** [Eunchan Lee of UNIST-LIL-LAB](https://github.com/purang2)\n",
14 | "\n",
15 | "\n",
16 | "Option\n",
17 | "```(python)\n",
18 | "- LLM : \"Meta AI/opt-6.7b\"\n",
19 | "- Number of data: 2개\n",
20 | "\n",
21 | "- Data [0]\n",
22 | " - Q: '[A man on a bike] [vs] [a bike on a man]. Please Explain what is more natural.', \n",
23 | " - A: '[N]: man, bike [V]: on [SEP] In nature, man can ride bike but bike cannot ride man. [Answer] [A man on a bike] is more natural.'\n",
24 | "- Data [1]\n",
25 | " - Q: '[The grass is eating the horse] [vs] [The horse is eating the grass.] Please Explain what is more natural.'\n",
26 | " - A: '[N]: grass, horse [V]: eat [SEP] In nature, horse can eat the grass because horses are animal but grass cannot eat horse because grass is a plant. [Answer] [The horse is eating the grass] is more natural.'\n",
27 | "```"
28 | ]
29 | },
30 | {
31 | "attachments": {},
32 | "cell_type": "markdown",
33 | "metadata": {},
34 | "source": [
35 | "install\n",
36 | "- torch\n",
37 | "- pip install transformers"
38 | ]
39 | },
40 | {
41 | "cell_type": "code",
42 | "execution_count": 1,
43 | "metadata": {},
44 | "outputs": [
45 | {
46 | "name": "stdout",
47 | "output_type": "stream",
48 | "text": [
49 | "True\n"
50 | ]
51 | }
52 | ],
53 | "source": [
54 | "# GPU 사용 가능 -> True, GPU 사용 불가 -> False\n",
55 | "import os\n",
56 | "import torch\n",
57 | "print(torch.cuda.is_available())\n",
58 | "os.environ[\"CUDA_VISIBLE_DEVICES\"]= \"0\""
59 | ]
60 | },
61 | {
62 | "attachments": {},
63 | "cell_type": "markdown",
64 | "metadata": {
65 | "id": "KfKGHuv7LfF5"
66 | },
67 | "source": [
68 | "Put datapair"
69 | ]
70 | },
71 | {
72 | "cell_type": "code",
73 | "execution_count": 11,
74 | "metadata": {
75 | "colab": {
76 | "base_uri": "https://localhost:8080/"
77 | },
78 | "id": "0Ki7stDebE_D",
79 | "outputId": "2c41e7b1-310d-4011-b9c9-6eedd6c39c26"
80 | },
81 | "outputs": [
82 | {
83 | "name": "stdout",
84 | "output_type": "stream",
85 | "text": [
86 | "['[A man on a bike] [vs] [a bike on a man]. Please Explain what is more natural.', '[The grass is eating the horse] [vs] [The horse is eating the grass.] Please Explain what is more natural.']\n",
87 | "['[N]: man, bike [V]: on [SEP] In nature, man can ride bike but bike cannot ride man. [Answer] [A man on a bike] is more natural.', '[N]: grass, horse [V]: eat [SEP] In nature, horse can eat the grass because horses are animal but grass cannot eat horse because grass is a plant. [Answer] [The horse is eating the grass] is more natural.']\n"
88 | ]
89 | }
90 | ],
91 | "source": [
92 | "few_src = [] \n",
93 | "few_tgt = []\n",
94 | "\n",
95 | "\n",
96 | "def put_datapair(src, tgt):\n",
97 | " few_src.append(src)\n",
98 | " few_tgt.append(tgt)\n",
99 | "\n",
100 | "\n",
101 | "#put_datapair(\"What's difference between \\\" a man on a bike \\\" vs \\\"a bike on a man\\\" ?\",\"In \\\"a man on a bike,\\\" the preposition \\\"on\\\" suggests that the man is riding or sitting on the bike. In this sentence, the bike is the means of transportation, and the man is the one using it. In contrast, \\\"a bike on a man\\\" reverses the relationship between the nouns, implying that the bike is positioned on top of the man.\")\n",
102 | "#put_datapair(\"What's difference between \\\" a brown cat is looking at a gray dog and sitting in a white bathtub\\\" vs \\\"a gray cat is looking at a white dog and sitting in a brown bathtub\\\"?\", \"\\\"A brown cat is looking at a gray dog and sitting in a white bathtub\\\": This sentence describes a scene where a brown-colored cat is looking at a gray-colored dog while sitting in a white-colored bathtub. In contrast \\\"A gray cat is looking at a white dog and sitting in a brown bathtub\\\": This sentence describes where a gray-colored cat is looking at a white-colored dog while sitting in a brown-colored bathtub.\")\n",
103 | "#put_datapair(\"What's difference between \\\"a red paved road behind the white house\\\" vs \\\"a red house behind the white paved road\\\"?\", \"\\\"A red paved road behind the white house\\\": This sentence describes a scenario where there is a road with red paving located behind a white house. The main focus of the description is the position of the red paved road in relation to the white house. \\\"A red house behind the white paved road\\\": This sentence describes a different scenario where there is a red house located behind a road with white paving. In this case, the main focus of the description is the position of the red house in relation to the white paved road.\")\n",
104 | "\n",
105 | "put_datapair(\"[A man on a bike] [vs] [a bike on a man]. Please Explain what is more natural\", \"[N]: man, bike [V]: on [SEP] In nature, man can ride bike but bike cannot ride man. [Answer] [A man on a bike] is more natural.\")\n",
106 | "put_datapair(\"[The grass is eating the horse] [vs] [The horse is eating the grass.] Please Explain what is more natural\", \"[N]: grass, horse [V]: eat [SEP] In nature, horse can eat the grass because horses are animal but grass cannot eat horse because grass is a plant. [Answer] [The horse is eating the grass] is more natural.\")\n",
107 | "\n",
108 | "\n",
109 | "print(few_src)\n",
110 | "print(few_tgt)\n"
111 | ]
112 | },
113 | {
114 | "attachments": {},
115 | "cell_type": "markdown",
116 | "metadata": {
117 | "id": "ZwMZvIpCKOiP"
118 | },
119 | "source": [
120 | "### Prompt\n",
121 | "\n",
122 | "***Reference: [A Recipe for Arbitrary Text Style Transfer with Large Language Models, (Reif et al. (Google Research), ACL 2022)](https://aclanthology.org/2022.acl-short.94/)***"
123 | ]
124 | },
125 | {
126 | "cell_type": "code",
127 | "execution_count": 12,
128 | "metadata": {
129 | "colab": {
130 | "base_uri": "https://localhost:8080/"
131 | },
132 | "id": "F5LM18a7f_FQ",
133 | "outputId": "198de336-5edb-474e-951a-2ee846a9001f"
134 | },
135 | "outputs": [
136 | {
137 | "name": "stdout",
138 | "output_type": "stream",
139 | "text": [
140 | "Q: [A man on a bike] [vs] [a bike on a man]. Please Explain what is more natural.. \n",
141 | "A: [N]: man, bike [V]: on [SEP] In nature, man can ride bike but bike cannot ride man. [Answer] [A man on a bike] is more natural.\n",
142 | "\n",
143 | "Q: [The grass is eating the horse] [vs] [The horse is eating the grass.] Please Explain what is more natural.. \n",
144 | "A: [N]: grass, horse [V]: eat [SEP] In nature, horse can eat the grass because horses are animal but grass cannot eat horse because grass is a plant. [Answer] [The horse is eating the grass] is more natural.\n",
145 | "\n",
146 | "\n"
147 | ]
148 | }
149 | ],
150 | "source": [
151 | "in_context_text = ''\n",
152 | "\n",
153 | "for i in range(len(few_src)):\n",
154 | " #in_context_text += f'Here is some text: {few_src[i]}. Here is a rewrite of the text, which is more simple: {few_tgt[i]}\\n'\n",
155 | " in_context_text += f'Q: {few_src[i]}. \\nA: {few_tgt[i]}\\n\\n'\n",
156 | " \n",
157 | "print(in_context_text)"
158 | ]
159 | },
160 | {
161 | "attachments": {},
162 | "cell_type": "markdown",
163 | "metadata": {
164 | "id": "N8qXu5MTKStT"
165 | },
166 | "source": [
167 | "transformers model"
168 | ]
169 | },
170 | {
171 | "cell_type": "code",
172 | "execution_count": 6,
173 | "metadata": {
174 | "colab": {
175 | "base_uri": "https://localhost:8080/",
176 | "height": 177,
177 | "referenced_widgets": [
178 | "b539d7fa50874c5cb353742acc38d035",
179 | "63ea3da5f9ec47a9856fd878ff9653ed",
180 | "0fed3654a5e5479e933a65aa41ea0556",
181 | "6299de1200494cb0ac2e54ff7c16d2bf",
182 | "6f763e8210ac4e0992317f24f1fdb546",
183 | "dd9cf398e6604ab9953d372cc833fd75",
184 | "a61ac8da58ad42a2bd7329d2d339d07c",
185 | "17dbb761d1664bae8bb96915e8c23bec",
186 | "9ca215a28e914c8abccb1c5d3385775f",
187 | "f58a5bcefd394896a052075108e9a1b3",
188 | "eadd4f803c3949ef908873b191ddaf99",
189 | "1dd2fc24b5884aadae9e0b9995ca55f0",
190 | "8caea121390c4267b01fde27f3afe6b3",
191 | "1760b31dbdf843099341a67608c1464d",
192 | "62ec2b2f26594d57ad78947f5710dd8d",
193 | "6721a3f8ce98467497272204722f3c6a",
194 | "f0b867f5fb1a4f898702c4f413bcc78e",
195 | "baa787efb0c24407b8ab0948fc1f92e3",
196 | "ca734695bf1b4ab5a94bc2c6b4e193dc",
197 | "07239082bbb04095b8f5b53311d523fb",
198 | "8b32bf66fdd6450f96d4829d44d360a5",
199 | "95930beda3aa4d8ca2a3ad077cdf7767",
200 | "dbdd3dea8dcd4d16b07012222e74a6ec",
201 | "e6706518f93d43a3922af38f33950175",
202 | "0233c7dcc0744465a12dabead48e3e97",
203 | "3cac992c4ab64f50a5ab47ebbbcbc482",
204 | "a6910a37ffa94c6e9381a31c2d96a81c",
205 | "874c31e0b254426ab6741f39a20d1ffe",
206 | "56ec677b71664909a54b0aa07948f642",
207 | "1a9df2a53870436889a8884b38a9ce92",
208 | "5648468189ce45d5b524fc1c1c3da74b",
209 | "e14806aac33b49fd9107ca41f4ae54c1",
210 | "71e38be035e940c4a3e85b30a58b8bd2",
211 | "ab0aad4ff0364e2f9c669787f4fa2325",
212 | "835cfc81f94f4e67a703de2a95ec0d8b",
213 | "70d0301df2ce492f8f74fdcd4b8948da",
214 | "74e66cf643634539a7a19c44837c6f25",
215 | "b12381d1d85247b7bb909a62a9ea4c50",
216 | "4a6bc061051d4200bb539c18dbd4efde",
217 | "bdd729c2cc4c4b6ab7cca979ee93634a",
218 | "71356ac8813f443bba51f96e1afeca12",
219 | "8bcac4b50d1d498eaf47f31c9f02851a",
220 | "7d17b7f55a0d4d19889784a738cdc80d",
221 | "79dac273081d4da7a09edd7c4ced0e06",
222 | "8fc8ad820a3c4e268fd6fd487becd5f9",
223 | "b40392c4052b49ca8561972f1bfcdfa7",
224 | "3d8545b43fad4a2189be7be4c0905c98",
225 | "ff617d0462d34d8187550b382692075f",
226 | "dd0561c26ae046ed95ba59c0f9839dff",
227 | "2d2f1b226c9943a48b6642e197f2fed8",
228 | "b44d3c3603af4867a53be7ef6fa8e168",
229 | "4cc37601897e4f1d96974fe48cc0ac68",
230 | "45b89a44d72c43c28d364d8b6dfe67c6",
231 | "b9af6361d0c54e6dbebdbc42d0e05547",
232 | "a6eb35e7bbeb4de8bde2ad5c4c8bd1d1"
233 | ]
234 | },
235 | "id": "QVf1QNumiPlC",
236 | "outputId": "860bdbf9-a63c-4812-a7f5-f7cc1f2ff950"
237 | },
238 | "outputs": [
239 | {
240 | "name": "stderr",
241 | "output_type": "stream",
242 | "text": [
243 | "Loading checkpoint shards: 100%|██████████| 2/2 [00:14<00:00, 7.12s/it]\n"
244 | ]
245 | }
246 | ],
247 | "source": [
248 | "from transformers import AutoTokenizer\n",
249 | "from transformers import AutoModelForCausalLM, AutoModelForSeq2SeqLM\n",
250 | "from transformers import pipeline\n",
251 | "\n",
252 | "model_zoo = [\"bigscience/bloom-7b1\",\"bigscience/test-bloomd-6b3\",\"bigscience/T0pp\",\"lmsys/vicuna-13b-delta-v1.1\",\"decapoda-research/llama-7b-hf\",\"facebook/opt-6.7b\"]\n",
253 | "\n",
254 | "model_name = model_zoo[5]\n",
255 | "\n",
256 | "\n",
257 | "if model_name.find('t5') > -1 or model_name.lower().find('t0') > -1: #model = t5, t0 [encoder-decoder]\n",
258 | " tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
259 | " model = AutoModelForSeq2SeqLM.from_pretrained(model_name)\n",
260 | " nlg_pipeline = pipeline('text2text-generation',model=model, tokenizer=tokenizer)\n",
261 | "\n",
262 | "else: #model = gpt,etc [decoder-only]\n",
263 | " tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
264 | " model = AutoModelForCausalLM.from_pretrained(model_name)\n",
265 | " #nlg_pipeline = pipeline(model=model, tokenizer=tokenizer)"
266 | ]
267 | },
268 | {
269 | "attachments": {},
270 | "cell_type": "markdown",
271 | "metadata": {
272 | "id": "1mfaqHtbKWYD"
273 | },
274 | "source": [
275 | "model inference"
276 | ]
277 | },
278 | {
279 | "cell_type": "code",
280 | "execution_count": 13,
281 | "metadata": {
282 | "colab": {
283 | "base_uri": "https://localhost:8080/"
284 | },
285 | "id": "n71_yzKjz-gL",
286 | "outputId": "c4e060a7-3e4c-4339-c8f6-42cdb0588535"
287 | },
288 | "outputs": [
289 | {
290 | "name": "stdout",
291 | "output_type": "stream",
292 | "text": [
293 | "OUTPUT\n",
294 | "\n",
295 | " \n",
296 | "A: [N]: boy, coffee [V]: drink [SEP] In nature, boy can drink coffee because boy is a human being but coffee cannot drink boy because coffee is a drink. [Answer] [The boy is drinking the coffee] is more natural.\n"
297 | ]
298 | }
299 | ],
300 | "source": [
301 | "\n",
302 | "test_input_text = \"[The coffee is drinking a boy] [vs] [A boy is drinkng the coffee.] Please Explain what is more natural\"\n",
303 | "#test_input_text = \"Italy's Capital is Roma\"\n",
304 | "test_output_length = 100 #token length\n",
305 | "\n",
306 | "\n",
307 | "if model_name.find('t5') > -1 or model_name.lower().find('t0') > -1: #model = t5, t0 [encoder-decoder]\n",
308 | " def generate_text(pipe, text, num_return_sequences=5, max_length=512):\n",
309 | " text = f\"{text}\"\n",
310 | " out = pipe(text, num_return_sequences=num_return_sequences, max_length=max_length, num_beams=5, no_repeat_ngram_size=2,)\n",
311 | " return [x['generated_text'] for x in out]\n",
312 | "\n",
313 | " #target_text = 'kjkjkjkj'\n",
314 | " #src_text = in_context_text + f\"Here is some text: {test_input_text}. Here is a rewrite of the text, which is more simple: \"\n",
315 | " src_text = in_context_text + f\"Q: {test_input_text} \\nA: \"\n",
316 | " #src_text = f\"Q: {test_input_text}. \\nA: \"\n",
317 | " \n",
318 | "\n",
319 | " print(\"Input text:\", src_text)\n",
320 | " test_output_text = generate_text(nlg_pipeline, src_text, num_return_sequences=1, max_length=test_output_length)\n",
321 | "\n",
322 | "\n",
323 | " #you can cook this output anything you want! \n",
324 | " print(test_output_text)\n",
325 | "\n",
326 | "\n",
327 | "\n",
328 | "else: #model = GPT, ETC\n",
329 | " src_text = in_context_text + f\"Q: {test_input_text} \\nA:\"\n",
330 | " tokens = tokenizer.encode(src_text, return_tensors='pt')\n",
331 | " gen_tokens = model.generate(tokens, do_sample=True, temperature=0.8, max_length=len(tokens[0])+test_output_length)\n",
332 | " generated = tokenizer.batch_decode(gen_tokens)[0]\n",
333 | " \n",
334 | " test_output_text = generated[len(src_text):]\n",
335 | " #print(generated)\n",
336 | "\n",
337 | " #you can cook this output anything you want!\n",
338 | " print(\"OUTPUT\\n\\n\",test_output_text)\n"
339 | ]
340 | },
341 | {
342 | "cell_type": "code",
343 | "execution_count": null,
344 | "metadata": {
345 | "id": "Akfyhhiw0fym"
346 | },
347 | "outputs": [],
348 | "source": []
349 | }
350 | ],
351 | "metadata": {
352 | "colab": {
353 | "authorship_tag": "ABX9TyPcH5NWWF6h+VgcLQzxpHxG",
354 | "include_colab_link": true,
355 | "machine_shape": "hm",
356 | "provenance": []
357 | },
358 | "gpuClass": "standard",
359 | "kernelspec": {
360 | "display_name": "Python 3",
361 | "name": "python3"
362 | },
363 | "language_info": {
364 | "codemirror_mode": {
365 | "name": "ipython",
366 | "version": 3
367 | },
368 | "file_extension": ".py",
369 | "mimetype": "text/x-python",
370 | "name": "python",
371 | "nbconvert_exporter": "python",
372 | "pygments_lexer": "ipython3",
373 | "version": "3.9.16"
374 | },
375 | "widgets": {
376 | "application/vnd.jupyter.widget-state+json": {
377 | "0233c7dcc0744465a12dabead48e3e97": {
378 | "model_module": "@jupyter-widgets/controls",
379 | "model_module_version": "1.5.0",
380 | "model_name": "FloatProgressModel",
381 | "state": {
382 | "_dom_classes": [],
383 | "_model_module": "@jupyter-widgets/controls",
384 | "_model_module_version": "1.5.0",
385 | "_model_name": "FloatProgressModel",
386 | "_view_count": null,
387 | "_view_module": "@jupyter-widgets/controls",
388 | "_view_module_version": "1.5.0",
389 | "_view_name": "ProgressView",
390 | "bar_style": "success",
391 | "description": "",
392 | "description_tooltip": null,
393 | "layout": "IPY_MODEL_1a9df2a53870436889a8884b38a9ce92",
394 | "max": 456318,
395 | "min": 0,
396 | "orientation": "horizontal",
397 | "style": "IPY_MODEL_5648468189ce45d5b524fc1c1c3da74b",
398 | "value": 456318
399 | }
400 | },
401 | "07239082bbb04095b8f5b53311d523fb": {
402 | "model_module": "@jupyter-widgets/controls",
403 | "model_module_version": "1.5.0",
404 | "model_name": "ProgressStyleModel",
405 | "state": {
406 | "_model_module": "@jupyter-widgets/controls",
407 | "_model_module_version": "1.5.0",
408 | "_model_name": "ProgressStyleModel",
409 | "_view_count": null,
410 | "_view_module": "@jupyter-widgets/base",
411 | "_view_module_version": "1.2.0",
412 | "_view_name": "StyleView",
413 | "bar_color": null,
414 | "description_width": ""
415 | }
416 | },
417 | "0fed3654a5e5479e933a65aa41ea0556": {
418 | "model_module": "@jupyter-widgets/controls",
419 | "model_module_version": "1.5.0",
420 | "model_name": "FloatProgressModel",
421 | "state": {
422 | "_dom_classes": [],
423 | "_model_module": "@jupyter-widgets/controls",
424 | "_model_module_version": "1.5.0",
425 | "_model_name": "FloatProgressModel",
426 | "_view_count": null,
427 | "_view_module": "@jupyter-widgets/controls",
428 | "_view_module_version": "1.5.0",
429 | "_view_name": "ProgressView",
430 | "bar_style": "success",
431 | "description": "",
432 | "description_tooltip": null,
433 | "layout": "IPY_MODEL_17dbb761d1664bae8bb96915e8c23bec",
434 | "max": 689,
435 | "min": 0,
436 | "orientation": "horizontal",
437 | "style": "IPY_MODEL_9ca215a28e914c8abccb1c5d3385775f",
438 | "value": 689
439 | }
440 | },
441 | "1760b31dbdf843099341a67608c1464d": {
442 | "model_module": "@jupyter-widgets/controls",
443 | "model_module_version": "1.5.0",
444 | "model_name": "FloatProgressModel",
445 | "state": {
446 | "_dom_classes": [],
447 | "_model_module": "@jupyter-widgets/controls",
448 | "_model_module_version": "1.5.0",
449 | "_model_name": "FloatProgressModel",
450 | "_view_count": null,
451 | "_view_module": "@jupyter-widgets/controls",
452 | "_view_module_version": "1.5.0",
453 | "_view_name": "ProgressView",
454 | "bar_style": "success",
455 | "description": "",
456 | "description_tooltip": null,
457 | "layout": "IPY_MODEL_ca734695bf1b4ab5a94bc2c6b4e193dc",
458 | "max": 1042301,
459 | "min": 0,
460 | "orientation": "horizontal",
461 | "style": "IPY_MODEL_07239082bbb04095b8f5b53311d523fb",
462 | "value": 1042301
463 | }
464 | },
465 | "17dbb761d1664bae8bb96915e8c23bec": {
466 | "model_module": "@jupyter-widgets/base",
467 | "model_module_version": "1.2.0",
468 | "model_name": "LayoutModel",
469 | "state": {
470 | "_model_module": "@jupyter-widgets/base",
471 | "_model_module_version": "1.2.0",
472 | "_model_name": "LayoutModel",
473 | "_view_count": null,
474 | "_view_module": "@jupyter-widgets/base",
475 | "_view_module_version": "1.2.0",
476 | "_view_name": "LayoutView",
477 | "align_content": null,
478 | "align_items": null,
479 | "align_self": null,
480 | "border": null,
481 | "bottom": null,
482 | "display": null,
483 | "flex": null,
484 | "flex_flow": null,
485 | "grid_area": null,
486 | "grid_auto_columns": null,
487 | "grid_auto_flow": null,
488 | "grid_auto_rows": null,
489 | "grid_column": null,
490 | "grid_gap": null,
491 | "grid_row": null,
492 | "grid_template_areas": null,
493 | "grid_template_columns": null,
494 | "grid_template_rows": null,
495 | "height": null,
496 | "justify_content": null,
497 | "justify_items": null,
498 | "left": null,
499 | "margin": null,
500 | "max_height": null,
501 | "max_width": null,
502 | "min_height": null,
503 | "min_width": null,
504 | "object_fit": null,
505 | "object_position": null,
506 | "order": null,
507 | "overflow": null,
508 | "overflow_x": null,
509 | "overflow_y": null,
510 | "padding": null,
511 | "right": null,
512 | "top": null,
513 | "visibility": null,
514 | "width": null
515 | }
516 | },
517 | "1a9df2a53870436889a8884b38a9ce92": {
518 | "model_module": "@jupyter-widgets/base",
519 | "model_module_version": "1.2.0",
520 | "model_name": "LayoutModel",
521 | "state": {
522 | "_model_module": "@jupyter-widgets/base",
523 | "_model_module_version": "1.2.0",
524 | "_model_name": "LayoutModel",
525 | "_view_count": null,
526 | "_view_module": "@jupyter-widgets/base",
527 | "_view_module_version": "1.2.0",
528 | "_view_name": "LayoutView",
529 | "align_content": null,
530 | "align_items": null,
531 | "align_self": null,
532 | "border": null,
533 | "bottom": null,
534 | "display": null,
535 | "flex": null,
536 | "flex_flow": null,
537 | "grid_area": null,
538 | "grid_auto_columns": null,
539 | "grid_auto_flow": null,
540 | "grid_auto_rows": null,
541 | "grid_column": null,
542 | "grid_gap": null,
543 | "grid_row": null,
544 | "grid_template_areas": null,
545 | "grid_template_columns": null,
546 | "grid_template_rows": null,
547 | "height": null,
548 | "justify_content": null,
549 | "justify_items": null,
550 | "left": null,
551 | "margin": null,
552 | "max_height": null,
553 | "max_width": null,
554 | "min_height": null,
555 | "min_width": null,
556 | "object_fit": null,
557 | "object_position": null,
558 | "order": null,
559 | "overflow": null,
560 | "overflow_x": null,
561 | "overflow_y": null,
562 | "padding": null,
563 | "right": null,
564 | "top": null,
565 | "visibility": null,
566 | "width": null
567 | }
568 | },
569 | "1dd2fc24b5884aadae9e0b9995ca55f0": {
570 | "model_module": "@jupyter-widgets/controls",
571 | "model_module_version": "1.5.0",
572 | "model_name": "HBoxModel",
573 | "state": {
574 | "_dom_classes": [],
575 | "_model_module": "@jupyter-widgets/controls",
576 | "_model_module_version": "1.5.0",
577 | "_model_name": "HBoxModel",
578 | "_view_count": null,
579 | "_view_module": "@jupyter-widgets/controls",
580 | "_view_module_version": "1.5.0",
581 | "_view_name": "HBoxView",
582 | "box_style": "",
583 | "children": [
584 | "IPY_MODEL_8caea121390c4267b01fde27f3afe6b3",
585 | "IPY_MODEL_1760b31dbdf843099341a67608c1464d",
586 | "IPY_MODEL_62ec2b2f26594d57ad78947f5710dd8d"
587 | ],
588 | "layout": "IPY_MODEL_6721a3f8ce98467497272204722f3c6a"
589 | }
590 | },
591 | "2d2f1b226c9943a48b6642e197f2fed8": {
592 | "model_module": "@jupyter-widgets/base",
593 | "model_module_version": "1.2.0",
594 | "model_name": "LayoutModel",
595 | "state": {
596 | "_model_module": "@jupyter-widgets/base",
597 | "_model_module_version": "1.2.0",
598 | "_model_name": "LayoutModel",
599 | "_view_count": null,
600 | "_view_module": "@jupyter-widgets/base",
601 | "_view_module_version": "1.2.0",
602 | "_view_name": "LayoutView",
603 | "align_content": null,
604 | "align_items": null,
605 | "align_self": null,
606 | "border": null,
607 | "bottom": null,
608 | "display": null,
609 | "flex": null,
610 | "flex_flow": null,
611 | "grid_area": null,
612 | "grid_auto_columns": null,
613 | "grid_auto_flow": null,
614 | "grid_auto_rows": null,
615 | "grid_column": null,
616 | "grid_gap": null,
617 | "grid_row": null,
618 | "grid_template_areas": null,
619 | "grid_template_columns": null,
620 | "grid_template_rows": null,
621 | "height": null,
622 | "justify_content": null,
623 | "justify_items": null,
624 | "left": null,
625 | "margin": null,
626 | "max_height": null,
627 | "max_width": null,
628 | "min_height": null,
629 | "min_width": null,
630 | "object_fit": null,
631 | "object_position": null,
632 | "order": null,
633 | "overflow": null,
634 | "overflow_x": null,
635 | "overflow_y": null,
636 | "padding": null,
637 | "right": null,
638 | "top": null,
639 | "visibility": null,
640 | "width": null
641 | }
642 | },
643 | "3cac992c4ab64f50a5ab47ebbbcbc482": {
644 | "model_module": "@jupyter-widgets/controls",
645 | "model_module_version": "1.5.0",
646 | "model_name": "HTMLModel",
647 | "state": {
648 | "_dom_classes": [],
649 | "_model_module": "@jupyter-widgets/controls",
650 | "_model_module_version": "1.5.0",
651 | "_model_name": "HTMLModel",
652 | "_view_count": null,
653 | "_view_module": "@jupyter-widgets/controls",
654 | "_view_module_version": "1.5.0",
655 | "_view_name": "HTMLView",
656 | "description": "",
657 | "description_tooltip": null,
658 | "layout": "IPY_MODEL_e14806aac33b49fd9107ca41f4ae54c1",
659 | "placeholder": "",
660 | "style": "IPY_MODEL_71e38be035e940c4a3e85b30a58b8bd2",
661 | "value": " 456k/456k [00:00<00:00, 3.70MB/s]"
662 | }
663 | },
664 | "3d8545b43fad4a2189be7be4c0905c98": {
665 | "model_module": "@jupyter-widgets/controls",
666 | "model_module_version": "1.5.0",
667 | "model_name": "FloatProgressModel",
668 | "state": {
669 | "_dom_classes": [],
670 | "_model_module": "@jupyter-widgets/controls",
671 | "_model_module_version": "1.5.0",
672 | "_model_name": "FloatProgressModel",
673 | "_view_count": null,
674 | "_view_module": "@jupyter-widgets/controls",
675 | "_view_module_version": "1.5.0",
676 | "_view_name": "ProgressView",
677 | "bar_style": "success",
678 | "description": "",
679 | "description_tooltip": null,
680 | "layout": "IPY_MODEL_4cc37601897e4f1d96974fe48cc0ac68",
681 | "max": 6431878936,
682 | "min": 0,
683 | "orientation": "horizontal",
684 | "style": "IPY_MODEL_45b89a44d72c43c28d364d8b6dfe67c6",
685 | "value": 6431878936
686 | }
687 | },
688 | "45b89a44d72c43c28d364d8b6dfe67c6": {
689 | "model_module": "@jupyter-widgets/controls",
690 | "model_module_version": "1.5.0",
691 | "model_name": "ProgressStyleModel",
692 | "state": {
693 | "_model_module": "@jupyter-widgets/controls",
694 | "_model_module_version": "1.5.0",
695 | "_model_name": "ProgressStyleModel",
696 | "_view_count": null,
697 | "_view_module": "@jupyter-widgets/base",
698 | "_view_module_version": "1.2.0",
699 | "_view_name": "StyleView",
700 | "bar_color": null,
701 | "description_width": ""
702 | }
703 | },
704 | "4a6bc061051d4200bb539c18dbd4efde": {
705 | "model_module": "@jupyter-widgets/base",
706 | "model_module_version": "1.2.0",
707 | "model_name": "LayoutModel",
708 | "state": {
709 | "_model_module": "@jupyter-widgets/base",
710 | "_model_module_version": "1.2.0",
711 | "_model_name": "LayoutModel",
712 | "_view_count": null,
713 | "_view_module": "@jupyter-widgets/base",
714 | "_view_module_version": "1.2.0",
715 | "_view_name": "LayoutView",
716 | "align_content": null,
717 | "align_items": null,
718 | "align_self": null,
719 | "border": null,
720 | "bottom": null,
721 | "display": null,
722 | "flex": null,
723 | "flex_flow": null,
724 | "grid_area": null,
725 | "grid_auto_columns": null,
726 | "grid_auto_flow": null,
727 | "grid_auto_rows": null,
728 | "grid_column": null,
729 | "grid_gap": null,
730 | "grid_row": null,
731 | "grid_template_areas": null,
732 | "grid_template_columns": null,
733 | "grid_template_rows": null,
734 | "height": null,
735 | "justify_content": null,
736 | "justify_items": null,
737 | "left": null,
738 | "margin": null,
739 | "max_height": null,
740 | "max_width": null,
741 | "min_height": null,
742 | "min_width": null,
743 | "object_fit": null,
744 | "object_position": null,
745 | "order": null,
746 | "overflow": null,
747 | "overflow_x": null,
748 | "overflow_y": null,
749 | "padding": null,
750 | "right": null,
751 | "top": null,
752 | "visibility": null,
753 | "width": null
754 | }
755 | },
756 | "4cc37601897e4f1d96974fe48cc0ac68": {
757 | "model_module": "@jupyter-widgets/base",
758 | "model_module_version": "1.2.0",
759 | "model_name": "LayoutModel",
760 | "state": {
761 | "_model_module": "@jupyter-widgets/base",
762 | "_model_module_version": "1.2.0",
763 | "_model_name": "LayoutModel",
764 | "_view_count": null,
765 | "_view_module": "@jupyter-widgets/base",
766 | "_view_module_version": "1.2.0",
767 | "_view_name": "LayoutView",
768 | "align_content": null,
769 | "align_items": null,
770 | "align_self": null,
771 | "border": null,
772 | "bottom": null,
773 | "display": null,
774 | "flex": null,
775 | "flex_flow": null,
776 | "grid_area": null,
777 | "grid_auto_columns": null,
778 | "grid_auto_flow": null,
779 | "grid_auto_rows": null,
780 | "grid_column": null,
781 | "grid_gap": null,
782 | "grid_row": null,
783 | "grid_template_areas": null,
784 | "grid_template_columns": null,
785 | "grid_template_rows": null,
786 | "height": null,
787 | "justify_content": null,
788 | "justify_items": null,
789 | "left": null,
790 | "margin": null,
791 | "max_height": null,
792 | "max_width": null,
793 | "min_height": null,
794 | "min_width": null,
795 | "object_fit": null,
796 | "object_position": null,
797 | "order": null,
798 | "overflow": null,
799 | "overflow_x": null,
800 | "overflow_y": null,
801 | "padding": null,
802 | "right": null,
803 | "top": null,
804 | "visibility": null,
805 | "width": null
806 | }
807 | },
808 | "5648468189ce45d5b524fc1c1c3da74b": {
809 | "model_module": "@jupyter-widgets/controls",
810 | "model_module_version": "1.5.0",
811 | "model_name": "ProgressStyleModel",
812 | "state": {
813 | "_model_module": "@jupyter-widgets/controls",
814 | "_model_module_version": "1.5.0",
815 | "_model_name": "ProgressStyleModel",
816 | "_view_count": null,
817 | "_view_module": "@jupyter-widgets/base",
818 | "_view_module_version": "1.2.0",
819 | "_view_name": "StyleView",
820 | "bar_color": null,
821 | "description_width": ""
822 | }
823 | },
824 | "56ec677b71664909a54b0aa07948f642": {
825 | "model_module": "@jupyter-widgets/controls",
826 | "model_module_version": "1.5.0",
827 | "model_name": "DescriptionStyleModel",
828 | "state": {
829 | "_model_module": "@jupyter-widgets/controls",
830 | "_model_module_version": "1.5.0",
831 | "_model_name": "DescriptionStyleModel",
832 | "_view_count": null,
833 | "_view_module": "@jupyter-widgets/base",
834 | "_view_module_version": "1.2.0",
835 | "_view_name": "StyleView",
836 | "description_width": ""
837 | }
838 | },
839 | "6299de1200494cb0ac2e54ff7c16d2bf": {
840 | "model_module": "@jupyter-widgets/controls",
841 | "model_module_version": "1.5.0",
842 | "model_name": "HTMLModel",
843 | "state": {
844 | "_dom_classes": [],
845 | "_model_module": "@jupyter-widgets/controls",
846 | "_model_module_version": "1.5.0",
847 | "_model_name": "HTMLModel",
848 | "_view_count": null,
849 | "_view_module": "@jupyter-widgets/controls",
850 | "_view_module_version": "1.5.0",
851 | "_view_name": "HTMLView",
852 | "description": "",
853 | "description_tooltip": null,
854 | "layout": "IPY_MODEL_f58a5bcefd394896a052075108e9a1b3",
855 | "placeholder": "",
856 | "style": "IPY_MODEL_eadd4f803c3949ef908873b191ddaf99",
857 | "value": " 689/689 [00:00<00:00, 31.6kB/s]"
858 | }
859 | },
860 | "62ec2b2f26594d57ad78947f5710dd8d": {
861 | "model_module": "@jupyter-widgets/controls",
862 | "model_module_version": "1.5.0",
863 | "model_name": "HTMLModel",
864 | "state": {
865 | "_dom_classes": [],
866 | "_model_module": "@jupyter-widgets/controls",
867 | "_model_module_version": "1.5.0",
868 | "_model_name": "HTMLModel",
869 | "_view_count": null,
870 | "_view_module": "@jupyter-widgets/controls",
871 | "_view_module_version": "1.5.0",
872 | "_view_name": "HTMLView",
873 | "description": "",
874 | "description_tooltip": null,
875 | "layout": "IPY_MODEL_8b32bf66fdd6450f96d4829d44d360a5",
876 | "placeholder": "",
877 | "style": "IPY_MODEL_95930beda3aa4d8ca2a3ad077cdf7767",
878 | "value": " 1.04M/1.04M [00:00<00:00, 3.66MB/s]"
879 | }
880 | },
881 | "63ea3da5f9ec47a9856fd878ff9653ed": {
882 | "model_module": "@jupyter-widgets/controls",
883 | "model_module_version": "1.5.0",
884 | "model_name": "HTMLModel",
885 | "state": {
886 | "_dom_classes": [],
887 | "_model_module": "@jupyter-widgets/controls",
888 | "_model_module_version": "1.5.0",
889 | "_model_name": "HTMLModel",
890 | "_view_count": null,
891 | "_view_module": "@jupyter-widgets/controls",
892 | "_view_module_version": "1.5.0",
893 | "_view_name": "HTMLView",
894 | "description": "",
895 | "description_tooltip": null,
896 | "layout": "IPY_MODEL_dd9cf398e6604ab9953d372cc833fd75",
897 | "placeholder": "",
898 | "style": "IPY_MODEL_a61ac8da58ad42a2bd7329d2d339d07c",
899 | "value": "Downloading: 100%"
900 | }
901 | },
902 | "6721a3f8ce98467497272204722f3c6a": {
903 | "model_module": "@jupyter-widgets/base",
904 | "model_module_version": "1.2.0",
905 | "model_name": "LayoutModel",
906 | "state": {
907 | "_model_module": "@jupyter-widgets/base",
908 | "_model_module_version": "1.2.0",
909 | "_model_name": "LayoutModel",
910 | "_view_count": null,
911 | "_view_module": "@jupyter-widgets/base",
912 | "_view_module_version": "1.2.0",
913 | "_view_name": "LayoutView",
914 | "align_content": null,
915 | "align_items": null,
916 | "align_self": null,
917 | "border": null,
918 | "bottom": null,
919 | "display": null,
920 | "flex": null,
921 | "flex_flow": null,
922 | "grid_area": null,
923 | "grid_auto_columns": null,
924 | "grid_auto_flow": null,
925 | "grid_auto_rows": null,
926 | "grid_column": null,
927 | "grid_gap": null,
928 | "grid_row": null,
929 | "grid_template_areas": null,
930 | "grid_template_columns": null,
931 | "grid_template_rows": null,
932 | "height": null,
933 | "justify_content": null,
934 | "justify_items": null,
935 | "left": null,
936 | "margin": null,
937 | "max_height": null,
938 | "max_width": null,
939 | "min_height": null,
940 | "min_width": null,
941 | "object_fit": null,
942 | "object_position": null,
943 | "order": null,
944 | "overflow": null,
945 | "overflow_x": null,
946 | "overflow_y": null,
947 | "padding": null,
948 | "right": null,
949 | "top": null,
950 | "visibility": null,
951 | "width": null
952 | }
953 | },
954 | "6f763e8210ac4e0992317f24f1fdb546": {
955 | "model_module": "@jupyter-widgets/base",
956 | "model_module_version": "1.2.0",
957 | "model_name": "LayoutModel",
958 | "state": {
959 | "_model_module": "@jupyter-widgets/base",
960 | "_model_module_version": "1.2.0",
961 | "_model_name": "LayoutModel",
962 | "_view_count": null,
963 | "_view_module": "@jupyter-widgets/base",
964 | "_view_module_version": "1.2.0",
965 | "_view_name": "LayoutView",
966 | "align_content": null,
967 | "align_items": null,
968 | "align_self": null,
969 | "border": null,
970 | "bottom": null,
971 | "display": null,
972 | "flex": null,
973 | "flex_flow": null,
974 | "grid_area": null,
975 | "grid_auto_columns": null,
976 | "grid_auto_flow": null,
977 | "grid_auto_rows": null,
978 | "grid_column": null,
979 | "grid_gap": null,
980 | "grid_row": null,
981 | "grid_template_areas": null,
982 | "grid_template_columns": null,
983 | "grid_template_rows": null,
984 | "height": null,
985 | "justify_content": null,
986 | "justify_items": null,
987 | "left": null,
988 | "margin": null,
989 | "max_height": null,
990 | "max_width": null,
991 | "min_height": null,
992 | "min_width": null,
993 | "object_fit": null,
994 | "object_position": null,
995 | "order": null,
996 | "overflow": null,
997 | "overflow_x": null,
998 | "overflow_y": null,
999 | "padding": null,
1000 | "right": null,
1001 | "top": null,
1002 | "visibility": null,
1003 | "width": null
1004 | }
1005 | },
1006 | "70d0301df2ce492f8f74fdcd4b8948da": {
1007 | "model_module": "@jupyter-widgets/controls",
1008 | "model_module_version": "1.5.0",
1009 | "model_name": "FloatProgressModel",
1010 | "state": {
1011 | "_dom_classes": [],
1012 | "_model_module": "@jupyter-widgets/controls",
1013 | "_model_module_version": "1.5.0",
1014 | "_model_name": "FloatProgressModel",
1015 | "_view_count": null,
1016 | "_view_module": "@jupyter-widgets/controls",
1017 | "_view_module_version": "1.5.0",
1018 | "_view_name": "ProgressView",
1019 | "bar_style": "success",
1020 | "description": "",
1021 | "description_tooltip": null,
1022 | "layout": "IPY_MODEL_71356ac8813f443bba51f96e1afeca12",
1023 | "max": 1355256,
1024 | "min": 0,
1025 | "orientation": "horizontal",
1026 | "style": "IPY_MODEL_8bcac4b50d1d498eaf47f31c9f02851a",
1027 | "value": 1355256
1028 | }
1029 | },
1030 | "71356ac8813f443bba51f96e1afeca12": {
1031 | "model_module": "@jupyter-widgets/base",
1032 | "model_module_version": "1.2.0",
1033 | "model_name": "LayoutModel",
1034 | "state": {
1035 | "_model_module": "@jupyter-widgets/base",
1036 | "_model_module_version": "1.2.0",
1037 | "_model_name": "LayoutModel",
1038 | "_view_count": null,
1039 | "_view_module": "@jupyter-widgets/base",
1040 | "_view_module_version": "1.2.0",
1041 | "_view_name": "LayoutView",
1042 | "align_content": null,
1043 | "align_items": null,
1044 | "align_self": null,
1045 | "border": null,
1046 | "bottom": null,
1047 | "display": null,
1048 | "flex": null,
1049 | "flex_flow": null,
1050 | "grid_area": null,
1051 | "grid_auto_columns": null,
1052 | "grid_auto_flow": null,
1053 | "grid_auto_rows": null,
1054 | "grid_column": null,
1055 | "grid_gap": null,
1056 | "grid_row": null,
1057 | "grid_template_areas": null,
1058 | "grid_template_columns": null,
1059 | "grid_template_rows": null,
1060 | "height": null,
1061 | "justify_content": null,
1062 | "justify_items": null,
1063 | "left": null,
1064 | "margin": null,
1065 | "max_height": null,
1066 | "max_width": null,
1067 | "min_height": null,
1068 | "min_width": null,
1069 | "object_fit": null,
1070 | "object_position": null,
1071 | "order": null,
1072 | "overflow": null,
1073 | "overflow_x": null,
1074 | "overflow_y": null,
1075 | "padding": null,
1076 | "right": null,
1077 | "top": null,
1078 | "visibility": null,
1079 | "width": null
1080 | }
1081 | },
1082 | "71e38be035e940c4a3e85b30a58b8bd2": {
1083 | "model_module": "@jupyter-widgets/controls",
1084 | "model_module_version": "1.5.0",
1085 | "model_name": "DescriptionStyleModel",
1086 | "state": {
1087 | "_model_module": "@jupyter-widgets/controls",
1088 | "_model_module_version": "1.5.0",
1089 | "_model_name": "DescriptionStyleModel",
1090 | "_view_count": null,
1091 | "_view_module": "@jupyter-widgets/base",
1092 | "_view_module_version": "1.2.0",
1093 | "_view_name": "StyleView",
1094 | "description_width": ""
1095 | }
1096 | },
1097 | "74e66cf643634539a7a19c44837c6f25": {
1098 | "model_module": "@jupyter-widgets/controls",
1099 | "model_module_version": "1.5.0",
1100 | "model_name": "HTMLModel",
1101 | "state": {
1102 | "_dom_classes": [],
1103 | "_model_module": "@jupyter-widgets/controls",
1104 | "_model_module_version": "1.5.0",
1105 | "_model_name": "HTMLModel",
1106 | "_view_count": null,
1107 | "_view_module": "@jupyter-widgets/controls",
1108 | "_view_module_version": "1.5.0",
1109 | "_view_name": "HTMLView",
1110 | "description": "",
1111 | "description_tooltip": null,
1112 | "layout": "IPY_MODEL_7d17b7f55a0d4d19889784a738cdc80d",
1113 | "placeholder": "",
1114 | "style": "IPY_MODEL_79dac273081d4da7a09edd7c4ced0e06",
1115 | "value": " 1.36M/1.36M [00:00<00:00, 5.64MB/s]"
1116 | }
1117 | },
1118 | "79dac273081d4da7a09edd7c4ced0e06": {
1119 | "model_module": "@jupyter-widgets/controls",
1120 | "model_module_version": "1.5.0",
1121 | "model_name": "DescriptionStyleModel",
1122 | "state": {
1123 | "_model_module": "@jupyter-widgets/controls",
1124 | "_model_module_version": "1.5.0",
1125 | "_model_name": "DescriptionStyleModel",
1126 | "_view_count": null,
1127 | "_view_module": "@jupyter-widgets/base",
1128 | "_view_module_version": "1.2.0",
1129 | "_view_name": "StyleView",
1130 | "description_width": ""
1131 | }
1132 | },
1133 | "7d17b7f55a0d4d19889784a738cdc80d": {
1134 | "model_module": "@jupyter-widgets/base",
1135 | "model_module_version": "1.2.0",
1136 | "model_name": "LayoutModel",
1137 | "state": {
1138 | "_model_module": "@jupyter-widgets/base",
1139 | "_model_module_version": "1.2.0",
1140 | "_model_name": "LayoutModel",
1141 | "_view_count": null,
1142 | "_view_module": "@jupyter-widgets/base",
1143 | "_view_module_version": "1.2.0",
1144 | "_view_name": "LayoutView",
1145 | "align_content": null,
1146 | "align_items": null,
1147 | "align_self": null,
1148 | "border": null,
1149 | "bottom": null,
1150 | "display": null,
1151 | "flex": null,
1152 | "flex_flow": null,
1153 | "grid_area": null,
1154 | "grid_auto_columns": null,
1155 | "grid_auto_flow": null,
1156 | "grid_auto_rows": null,
1157 | "grid_column": null,
1158 | "grid_gap": null,
1159 | "grid_row": null,
1160 | "grid_template_areas": null,
1161 | "grid_template_columns": null,
1162 | "grid_template_rows": null,
1163 | "height": null,
1164 | "justify_content": null,
1165 | "justify_items": null,
1166 | "left": null,
1167 | "margin": null,
1168 | "max_height": null,
1169 | "max_width": null,
1170 | "min_height": null,
1171 | "min_width": null,
1172 | "object_fit": null,
1173 | "object_position": null,
1174 | "order": null,
1175 | "overflow": null,
1176 | "overflow_x": null,
1177 | "overflow_y": null,
1178 | "padding": null,
1179 | "right": null,
1180 | "top": null,
1181 | "visibility": null,
1182 | "width": null
1183 | }
1184 | },
1185 | "835cfc81f94f4e67a703de2a95ec0d8b": {
1186 | "model_module": "@jupyter-widgets/controls",
1187 | "model_module_version": "1.5.0",
1188 | "model_name": "HTMLModel",
1189 | "state": {
1190 | "_dom_classes": [],
1191 | "_model_module": "@jupyter-widgets/controls",
1192 | "_model_module_version": "1.5.0",
1193 | "_model_name": "HTMLModel",
1194 | "_view_count": null,
1195 | "_view_module": "@jupyter-widgets/controls",
1196 | "_view_module_version": "1.5.0",
1197 | "_view_name": "HTMLView",
1198 | "description": "",
1199 | "description_tooltip": null,
1200 | "layout": "IPY_MODEL_4a6bc061051d4200bb539c18dbd4efde",
1201 | "placeholder": "",
1202 | "style": "IPY_MODEL_bdd729c2cc4c4b6ab7cca979ee93634a",
1203 | "value": "Downloading: 100%"
1204 | }
1205 | },
1206 | "874c31e0b254426ab6741f39a20d1ffe": {
1207 | "model_module": "@jupyter-widgets/base",
1208 | "model_module_version": "1.2.0",
1209 | "model_name": "LayoutModel",
1210 | "state": {
1211 | "_model_module": "@jupyter-widgets/base",
1212 | "_model_module_version": "1.2.0",
1213 | "_model_name": "LayoutModel",
1214 | "_view_count": null,
1215 | "_view_module": "@jupyter-widgets/base",
1216 | "_view_module_version": "1.2.0",
1217 | "_view_name": "LayoutView",
1218 | "align_content": null,
1219 | "align_items": null,
1220 | "align_self": null,
1221 | "border": null,
1222 | "bottom": null,
1223 | "display": null,
1224 | "flex": null,
1225 | "flex_flow": null,
1226 | "grid_area": null,
1227 | "grid_auto_columns": null,
1228 | "grid_auto_flow": null,
1229 | "grid_auto_rows": null,
1230 | "grid_column": null,
1231 | "grid_gap": null,
1232 | "grid_row": null,
1233 | "grid_template_areas": null,
1234 | "grid_template_columns": null,
1235 | "grid_template_rows": null,
1236 | "height": null,
1237 | "justify_content": null,
1238 | "justify_items": null,
1239 | "left": null,
1240 | "margin": null,
1241 | "max_height": null,
1242 | "max_width": null,
1243 | "min_height": null,
1244 | "min_width": null,
1245 | "object_fit": null,
1246 | "object_position": null,
1247 | "order": null,
1248 | "overflow": null,
1249 | "overflow_x": null,
1250 | "overflow_y": null,
1251 | "padding": null,
1252 | "right": null,
1253 | "top": null,
1254 | "visibility": null,
1255 | "width": null
1256 | }
1257 | },
1258 | "8b32bf66fdd6450f96d4829d44d360a5": {
1259 | "model_module": "@jupyter-widgets/base",
1260 | "model_module_version": "1.2.0",
1261 | "model_name": "LayoutModel",
1262 | "state": {
1263 | "_model_module": "@jupyter-widgets/base",
1264 | "_model_module_version": "1.2.0",
1265 | "_model_name": "LayoutModel",
1266 | "_view_count": null,
1267 | "_view_module": "@jupyter-widgets/base",
1268 | "_view_module_version": "1.2.0",
1269 | "_view_name": "LayoutView",
1270 | "align_content": null,
1271 | "align_items": null,
1272 | "align_self": null,
1273 | "border": null,
1274 | "bottom": null,
1275 | "display": null,
1276 | "flex": null,
1277 | "flex_flow": null,
1278 | "grid_area": null,
1279 | "grid_auto_columns": null,
1280 | "grid_auto_flow": null,
1281 | "grid_auto_rows": null,
1282 | "grid_column": null,
1283 | "grid_gap": null,
1284 | "grid_row": null,
1285 | "grid_template_areas": null,
1286 | "grid_template_columns": null,
1287 | "grid_template_rows": null,
1288 | "height": null,
1289 | "justify_content": null,
1290 | "justify_items": null,
1291 | "left": null,
1292 | "margin": null,
1293 | "max_height": null,
1294 | "max_width": null,
1295 | "min_height": null,
1296 | "min_width": null,
1297 | "object_fit": null,
1298 | "object_position": null,
1299 | "order": null,
1300 | "overflow": null,
1301 | "overflow_x": null,
1302 | "overflow_y": null,
1303 | "padding": null,
1304 | "right": null,
1305 | "top": null,
1306 | "visibility": null,
1307 | "width": null
1308 | }
1309 | },
1310 | "8bcac4b50d1d498eaf47f31c9f02851a": {
1311 | "model_module": "@jupyter-widgets/controls",
1312 | "model_module_version": "1.5.0",
1313 | "model_name": "ProgressStyleModel",
1314 | "state": {
1315 | "_model_module": "@jupyter-widgets/controls",
1316 | "_model_module_version": "1.5.0",
1317 | "_model_name": "ProgressStyleModel",
1318 | "_view_count": null,
1319 | "_view_module": "@jupyter-widgets/base",
1320 | "_view_module_version": "1.2.0",
1321 | "_view_name": "StyleView",
1322 | "bar_color": null,
1323 | "description_width": ""
1324 | }
1325 | },
1326 | "8caea121390c4267b01fde27f3afe6b3": {
1327 | "model_module": "@jupyter-widgets/controls",
1328 | "model_module_version": "1.5.0",
1329 | "model_name": "HTMLModel",
1330 | "state": {
1331 | "_dom_classes": [],
1332 | "_model_module": "@jupyter-widgets/controls",
1333 | "_model_module_version": "1.5.0",
1334 | "_model_name": "HTMLModel",
1335 | "_view_count": null,
1336 | "_view_module": "@jupyter-widgets/controls",
1337 | "_view_module_version": "1.5.0",
1338 | "_view_name": "HTMLView",
1339 | "description": "",
1340 | "description_tooltip": null,
1341 | "layout": "IPY_MODEL_f0b867f5fb1a4f898702c4f413bcc78e",
1342 | "placeholder": "",
1343 | "style": "IPY_MODEL_baa787efb0c24407b8ab0948fc1f92e3",
1344 | "value": "Downloading: 100%"
1345 | }
1346 | },
1347 | "8fc8ad820a3c4e268fd6fd487becd5f9": {
1348 | "model_module": "@jupyter-widgets/controls",
1349 | "model_module_version": "1.5.0",
1350 | "model_name": "HBoxModel",
1351 | "state": {
1352 | "_dom_classes": [],
1353 | "_model_module": "@jupyter-widgets/controls",
1354 | "_model_module_version": "1.5.0",
1355 | "_model_name": "HBoxModel",
1356 | "_view_count": null,
1357 | "_view_module": "@jupyter-widgets/controls",
1358 | "_view_module_version": "1.5.0",
1359 | "_view_name": "HBoxView",
1360 | "box_style": "",
1361 | "children": [
1362 | "IPY_MODEL_b40392c4052b49ca8561972f1bfcdfa7",
1363 | "IPY_MODEL_3d8545b43fad4a2189be7be4c0905c98",
1364 | "IPY_MODEL_ff617d0462d34d8187550b382692075f"
1365 | ],
1366 | "layout": "IPY_MODEL_dd0561c26ae046ed95ba59c0f9839dff"
1367 | }
1368 | },
1369 | "95930beda3aa4d8ca2a3ad077cdf7767": {
1370 | "model_module": "@jupyter-widgets/controls",
1371 | "model_module_version": "1.5.0",
1372 | "model_name": "DescriptionStyleModel",
1373 | "state": {
1374 | "_model_module": "@jupyter-widgets/controls",
1375 | "_model_module_version": "1.5.0",
1376 | "_model_name": "DescriptionStyleModel",
1377 | "_view_count": null,
1378 | "_view_module": "@jupyter-widgets/base",
1379 | "_view_module_version": "1.2.0",
1380 | "_view_name": "StyleView",
1381 | "description_width": ""
1382 | }
1383 | },
1384 | "9ca215a28e914c8abccb1c5d3385775f": {
1385 | "model_module": "@jupyter-widgets/controls",
1386 | "model_module_version": "1.5.0",
1387 | "model_name": "ProgressStyleModel",
1388 | "state": {
1389 | "_model_module": "@jupyter-widgets/controls",
1390 | "_model_module_version": "1.5.0",
1391 | "_model_name": "ProgressStyleModel",
1392 | "_view_count": null,
1393 | "_view_module": "@jupyter-widgets/base",
1394 | "_view_module_version": "1.2.0",
1395 | "_view_name": "StyleView",
1396 | "bar_color": null,
1397 | "description_width": ""
1398 | }
1399 | },
1400 | "a61ac8da58ad42a2bd7329d2d339d07c": {
1401 | "model_module": "@jupyter-widgets/controls",
1402 | "model_module_version": "1.5.0",
1403 | "model_name": "DescriptionStyleModel",
1404 | "state": {
1405 | "_model_module": "@jupyter-widgets/controls",
1406 | "_model_module_version": "1.5.0",
1407 | "_model_name": "DescriptionStyleModel",
1408 | "_view_count": null,
1409 | "_view_module": "@jupyter-widgets/base",
1410 | "_view_module_version": "1.2.0",
1411 | "_view_name": "StyleView",
1412 | "description_width": ""
1413 | }
1414 | },
1415 | "a6910a37ffa94c6e9381a31c2d96a81c": {
1416 | "model_module": "@jupyter-widgets/base",
1417 | "model_module_version": "1.2.0",
1418 | "model_name": "LayoutModel",
1419 | "state": {
1420 | "_model_module": "@jupyter-widgets/base",
1421 | "_model_module_version": "1.2.0",
1422 | "_model_name": "LayoutModel",
1423 | "_view_count": null,
1424 | "_view_module": "@jupyter-widgets/base",
1425 | "_view_module_version": "1.2.0",
1426 | "_view_name": "LayoutView",
1427 | "align_content": null,
1428 | "align_items": null,
1429 | "align_self": null,
1430 | "border": null,
1431 | "bottom": null,
1432 | "display": null,
1433 | "flex": null,
1434 | "flex_flow": null,
1435 | "grid_area": null,
1436 | "grid_auto_columns": null,
1437 | "grid_auto_flow": null,
1438 | "grid_auto_rows": null,
1439 | "grid_column": null,
1440 | "grid_gap": null,
1441 | "grid_row": null,
1442 | "grid_template_areas": null,
1443 | "grid_template_columns": null,
1444 | "grid_template_rows": null,
1445 | "height": null,
1446 | "justify_content": null,
1447 | "justify_items": null,
1448 | "left": null,
1449 | "margin": null,
1450 | "max_height": null,
1451 | "max_width": null,
1452 | "min_height": null,
1453 | "min_width": null,
1454 | "object_fit": null,
1455 | "object_position": null,
1456 | "order": null,
1457 | "overflow": null,
1458 | "overflow_x": null,
1459 | "overflow_y": null,
1460 | "padding": null,
1461 | "right": null,
1462 | "top": null,
1463 | "visibility": null,
1464 | "width": null
1465 | }
1466 | },
1467 | "a6eb35e7bbeb4de8bde2ad5c4c8bd1d1": {
1468 | "model_module": "@jupyter-widgets/controls",
1469 | "model_module_version": "1.5.0",
1470 | "model_name": "DescriptionStyleModel",
1471 | "state": {
1472 | "_model_module": "@jupyter-widgets/controls",
1473 | "_model_module_version": "1.5.0",
1474 | "_model_name": "DescriptionStyleModel",
1475 | "_view_count": null,
1476 | "_view_module": "@jupyter-widgets/base",
1477 | "_view_module_version": "1.2.0",
1478 | "_view_name": "StyleView",
1479 | "description_width": ""
1480 | }
1481 | },
1482 | "ab0aad4ff0364e2f9c669787f4fa2325": {
1483 | "model_module": "@jupyter-widgets/controls",
1484 | "model_module_version": "1.5.0",
1485 | "model_name": "HBoxModel",
1486 | "state": {
1487 | "_dom_classes": [],
1488 | "_model_module": "@jupyter-widgets/controls",
1489 | "_model_module_version": "1.5.0",
1490 | "_model_name": "HBoxModel",
1491 | "_view_count": null,
1492 | "_view_module": "@jupyter-widgets/controls",
1493 | "_view_module_version": "1.5.0",
1494 | "_view_name": "HBoxView",
1495 | "box_style": "",
1496 | "children": [
1497 | "IPY_MODEL_835cfc81f94f4e67a703de2a95ec0d8b",
1498 | "IPY_MODEL_70d0301df2ce492f8f74fdcd4b8948da",
1499 | "IPY_MODEL_74e66cf643634539a7a19c44837c6f25"
1500 | ],
1501 | "layout": "IPY_MODEL_b12381d1d85247b7bb909a62a9ea4c50"
1502 | }
1503 | },
1504 | "b12381d1d85247b7bb909a62a9ea4c50": {
1505 | "model_module": "@jupyter-widgets/base",
1506 | "model_module_version": "1.2.0",
1507 | "model_name": "LayoutModel",
1508 | "state": {
1509 | "_model_module": "@jupyter-widgets/base",
1510 | "_model_module_version": "1.2.0",
1511 | "_model_name": "LayoutModel",
1512 | "_view_count": null,
1513 | "_view_module": "@jupyter-widgets/base",
1514 | "_view_module_version": "1.2.0",
1515 | "_view_name": "LayoutView",
1516 | "align_content": null,
1517 | "align_items": null,
1518 | "align_self": null,
1519 | "border": null,
1520 | "bottom": null,
1521 | "display": null,
1522 | "flex": null,
1523 | "flex_flow": null,
1524 | "grid_area": null,
1525 | "grid_auto_columns": null,
1526 | "grid_auto_flow": null,
1527 | "grid_auto_rows": null,
1528 | "grid_column": null,
1529 | "grid_gap": null,
1530 | "grid_row": null,
1531 | "grid_template_areas": null,
1532 | "grid_template_columns": null,
1533 | "grid_template_rows": null,
1534 | "height": null,
1535 | "justify_content": null,
1536 | "justify_items": null,
1537 | "left": null,
1538 | "margin": null,
1539 | "max_height": null,
1540 | "max_width": null,
1541 | "min_height": null,
1542 | "min_width": null,
1543 | "object_fit": null,
1544 | "object_position": null,
1545 | "order": null,
1546 | "overflow": null,
1547 | "overflow_x": null,
1548 | "overflow_y": null,
1549 | "padding": null,
1550 | "right": null,
1551 | "top": null,
1552 | "visibility": null,
1553 | "width": null
1554 | }
1555 | },
1556 | "b40392c4052b49ca8561972f1bfcdfa7": {
1557 | "model_module": "@jupyter-widgets/controls",
1558 | "model_module_version": "1.5.0",
1559 | "model_name": "HTMLModel",
1560 | "state": {
1561 | "_dom_classes": [],
1562 | "_model_module": "@jupyter-widgets/controls",
1563 | "_model_module_version": "1.5.0",
1564 | "_model_name": "HTMLModel",
1565 | "_view_count": null,
1566 | "_view_module": "@jupyter-widgets/controls",
1567 | "_view_module_version": "1.5.0",
1568 | "_view_name": "HTMLView",
1569 | "description": "",
1570 | "description_tooltip": null,
1571 | "layout": "IPY_MODEL_2d2f1b226c9943a48b6642e197f2fed8",
1572 | "placeholder": "",
1573 | "style": "IPY_MODEL_b44d3c3603af4867a53be7ef6fa8e168",
1574 | "value": "Downloading: 100%"
1575 | }
1576 | },
1577 | "b44d3c3603af4867a53be7ef6fa8e168": {
1578 | "model_module": "@jupyter-widgets/controls",
1579 | "model_module_version": "1.5.0",
1580 | "model_name": "DescriptionStyleModel",
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 | "b539d7fa50874c5cb353742acc38d035": {
1593 | "model_module": "@jupyter-widgets/controls",
1594 | "model_module_version": "1.5.0",
1595 | "model_name": "HBoxModel",
1596 | "state": {
1597 | "_dom_classes": [],
1598 | "_model_module": "@jupyter-widgets/controls",
1599 | "_model_module_version": "1.5.0",
1600 | "_model_name": "HBoxModel",
1601 | "_view_count": null,
1602 | "_view_module": "@jupyter-widgets/controls",
1603 | "_view_module_version": "1.5.0",
1604 | "_view_name": "HBoxView",
1605 | "box_style": "",
1606 | "children": [
1607 | "IPY_MODEL_63ea3da5f9ec47a9856fd878ff9653ed",
1608 | "IPY_MODEL_0fed3654a5e5479e933a65aa41ea0556",
1609 | "IPY_MODEL_6299de1200494cb0ac2e54ff7c16d2bf"
1610 | ],
1611 | "layout": "IPY_MODEL_6f763e8210ac4e0992317f24f1fdb546"
1612 | }
1613 | },
1614 | "b9af6361d0c54e6dbebdbc42d0e05547": {
1615 | "model_module": "@jupyter-widgets/base",
1616 | "model_module_version": "1.2.0",
1617 | "model_name": "LayoutModel",
1618 | "state": {
1619 | "_model_module": "@jupyter-widgets/base",
1620 | "_model_module_version": "1.2.0",
1621 | "_model_name": "LayoutModel",
1622 | "_view_count": null,
1623 | "_view_module": "@jupyter-widgets/base",
1624 | "_view_module_version": "1.2.0",
1625 | "_view_name": "LayoutView",
1626 | "align_content": null,
1627 | "align_items": null,
1628 | "align_self": null,
1629 | "border": null,
1630 | "bottom": null,
1631 | "display": null,
1632 | "flex": null,
1633 | "flex_flow": null,
1634 | "grid_area": null,
1635 | "grid_auto_columns": null,
1636 | "grid_auto_flow": null,
1637 | "grid_auto_rows": null,
1638 | "grid_column": null,
1639 | "grid_gap": null,
1640 | "grid_row": null,
1641 | "grid_template_areas": null,
1642 | "grid_template_columns": null,
1643 | "grid_template_rows": null,
1644 | "height": null,
1645 | "justify_content": null,
1646 | "justify_items": null,
1647 | "left": null,
1648 | "margin": null,
1649 | "max_height": null,
1650 | "max_width": null,
1651 | "min_height": null,
1652 | "min_width": null,
1653 | "object_fit": null,
1654 | "object_position": null,
1655 | "order": null,
1656 | "overflow": null,
1657 | "overflow_x": null,
1658 | "overflow_y": null,
1659 | "padding": null,
1660 | "right": null,
1661 | "top": null,
1662 | "visibility": null,
1663 | "width": null
1664 | }
1665 | },
1666 | "baa787efb0c24407b8ab0948fc1f92e3": {
1667 | "model_module": "@jupyter-widgets/controls",
1668 | "model_module_version": "1.5.0",
1669 | "model_name": "DescriptionStyleModel",
1670 | "state": {
1671 | "_model_module": "@jupyter-widgets/controls",
1672 | "_model_module_version": "1.5.0",
1673 | "_model_name": "DescriptionStyleModel",
1674 | "_view_count": null,
1675 | "_view_module": "@jupyter-widgets/base",
1676 | "_view_module_version": "1.2.0",
1677 | "_view_name": "StyleView",
1678 | "description_width": ""
1679 | }
1680 | },
1681 | "bdd729c2cc4c4b6ab7cca979ee93634a": {
1682 | "model_module": "@jupyter-widgets/controls",
1683 | "model_module_version": "1.5.0",
1684 | "model_name": "DescriptionStyleModel",
1685 | "state": {
1686 | "_model_module": "@jupyter-widgets/controls",
1687 | "_model_module_version": "1.5.0",
1688 | "_model_name": "DescriptionStyleModel",
1689 | "_view_count": null,
1690 | "_view_module": "@jupyter-widgets/base",
1691 | "_view_module_version": "1.2.0",
1692 | "_view_name": "StyleView",
1693 | "description_width": ""
1694 | }
1695 | },
1696 | "ca734695bf1b4ab5a94bc2c6b4e193dc": {
1697 | "model_module": "@jupyter-widgets/base",
1698 | "model_module_version": "1.2.0",
1699 | "model_name": "LayoutModel",
1700 | "state": {
1701 | "_model_module": "@jupyter-widgets/base",
1702 | "_model_module_version": "1.2.0",
1703 | "_model_name": "LayoutModel",
1704 | "_view_count": null,
1705 | "_view_module": "@jupyter-widgets/base",
1706 | "_view_module_version": "1.2.0",
1707 | "_view_name": "LayoutView",
1708 | "align_content": null,
1709 | "align_items": null,
1710 | "align_self": null,
1711 | "border": null,
1712 | "bottom": null,
1713 | "display": null,
1714 | "flex": null,
1715 | "flex_flow": null,
1716 | "grid_area": null,
1717 | "grid_auto_columns": null,
1718 | "grid_auto_flow": null,
1719 | "grid_auto_rows": null,
1720 | "grid_column": null,
1721 | "grid_gap": null,
1722 | "grid_row": null,
1723 | "grid_template_areas": null,
1724 | "grid_template_columns": null,
1725 | "grid_template_rows": null,
1726 | "height": null,
1727 | "justify_content": null,
1728 | "justify_items": null,
1729 | "left": null,
1730 | "margin": null,
1731 | "max_height": null,
1732 | "max_width": null,
1733 | "min_height": null,
1734 | "min_width": null,
1735 | "object_fit": null,
1736 | "object_position": null,
1737 | "order": null,
1738 | "overflow": null,
1739 | "overflow_x": null,
1740 | "overflow_y": null,
1741 | "padding": null,
1742 | "right": null,
1743 | "top": null,
1744 | "visibility": null,
1745 | "width": null
1746 | }
1747 | },
1748 | "dbdd3dea8dcd4d16b07012222e74a6ec": {
1749 | "model_module": "@jupyter-widgets/controls",
1750 | "model_module_version": "1.5.0",
1751 | "model_name": "HBoxModel",
1752 | "state": {
1753 | "_dom_classes": [],
1754 | "_model_module": "@jupyter-widgets/controls",
1755 | "_model_module_version": "1.5.0",
1756 | "_model_name": "HBoxModel",
1757 | "_view_count": null,
1758 | "_view_module": "@jupyter-widgets/controls",
1759 | "_view_module_version": "1.5.0",
1760 | "_view_name": "HBoxView",
1761 | "box_style": "",
1762 | "children": [
1763 | "IPY_MODEL_e6706518f93d43a3922af38f33950175",
1764 | "IPY_MODEL_0233c7dcc0744465a12dabead48e3e97",
1765 | "IPY_MODEL_3cac992c4ab64f50a5ab47ebbbcbc482"
1766 | ],
1767 | "layout": "IPY_MODEL_a6910a37ffa94c6e9381a31c2d96a81c"
1768 | }
1769 | },
1770 | "dd0561c26ae046ed95ba59c0f9839dff": {
1771 | "model_module": "@jupyter-widgets/base",
1772 | "model_module_version": "1.2.0",
1773 | "model_name": "LayoutModel",
1774 | "state": {
1775 | "_model_module": "@jupyter-widgets/base",
1776 | "_model_module_version": "1.2.0",
1777 | "_model_name": "LayoutModel",
1778 | "_view_count": null,
1779 | "_view_module": "@jupyter-widgets/base",
1780 | "_view_module_version": "1.2.0",
1781 | "_view_name": "LayoutView",
1782 | "align_content": null,
1783 | "align_items": null,
1784 | "align_self": null,
1785 | "border": null,
1786 | "bottom": null,
1787 | "display": null,
1788 | "flex": null,
1789 | "flex_flow": null,
1790 | "grid_area": null,
1791 | "grid_auto_columns": null,
1792 | "grid_auto_flow": null,
1793 | "grid_auto_rows": null,
1794 | "grid_column": null,
1795 | "grid_gap": null,
1796 | "grid_row": null,
1797 | "grid_template_areas": null,
1798 | "grid_template_columns": null,
1799 | "grid_template_rows": null,
1800 | "height": null,
1801 | "justify_content": null,
1802 | "justify_items": null,
1803 | "left": null,
1804 | "margin": null,
1805 | "max_height": null,
1806 | "max_width": null,
1807 | "min_height": null,
1808 | "min_width": null,
1809 | "object_fit": null,
1810 | "object_position": null,
1811 | "order": null,
1812 | "overflow": null,
1813 | "overflow_x": null,
1814 | "overflow_y": null,
1815 | "padding": null,
1816 | "right": null,
1817 | "top": null,
1818 | "visibility": null,
1819 | "width": null
1820 | }
1821 | },
1822 | "dd9cf398e6604ab9953d372cc833fd75": {
1823 | "model_module": "@jupyter-widgets/base",
1824 | "model_module_version": "1.2.0",
1825 | "model_name": "LayoutModel",
1826 | "state": {
1827 | "_model_module": "@jupyter-widgets/base",
1828 | "_model_module_version": "1.2.0",
1829 | "_model_name": "LayoutModel",
1830 | "_view_count": null,
1831 | "_view_module": "@jupyter-widgets/base",
1832 | "_view_module_version": "1.2.0",
1833 | "_view_name": "LayoutView",
1834 | "align_content": null,
1835 | "align_items": null,
1836 | "align_self": null,
1837 | "border": null,
1838 | "bottom": null,
1839 | "display": null,
1840 | "flex": null,
1841 | "flex_flow": null,
1842 | "grid_area": null,
1843 | "grid_auto_columns": null,
1844 | "grid_auto_flow": null,
1845 | "grid_auto_rows": null,
1846 | "grid_column": null,
1847 | "grid_gap": null,
1848 | "grid_row": null,
1849 | "grid_template_areas": null,
1850 | "grid_template_columns": null,
1851 | "grid_template_rows": null,
1852 | "height": null,
1853 | "justify_content": null,
1854 | "justify_items": null,
1855 | "left": null,
1856 | "margin": null,
1857 | "max_height": null,
1858 | "max_width": null,
1859 | "min_height": null,
1860 | "min_width": null,
1861 | "object_fit": null,
1862 | "object_position": null,
1863 | "order": null,
1864 | "overflow": null,
1865 | "overflow_x": null,
1866 | "overflow_y": null,
1867 | "padding": null,
1868 | "right": null,
1869 | "top": null,
1870 | "visibility": null,
1871 | "width": null
1872 | }
1873 | },
1874 | "e14806aac33b49fd9107ca41f4ae54c1": {
1875 | "model_module": "@jupyter-widgets/base",
1876 | "model_module_version": "1.2.0",
1877 | "model_name": "LayoutModel",
1878 | "state": {
1879 | "_model_module": "@jupyter-widgets/base",
1880 | "_model_module_version": "1.2.0",
1881 | "_model_name": "LayoutModel",
1882 | "_view_count": null,
1883 | "_view_module": "@jupyter-widgets/base",
1884 | "_view_module_version": "1.2.0",
1885 | "_view_name": "LayoutView",
1886 | "align_content": null,
1887 | "align_items": null,
1888 | "align_self": null,
1889 | "border": null,
1890 | "bottom": null,
1891 | "display": null,
1892 | "flex": null,
1893 | "flex_flow": null,
1894 | "grid_area": null,
1895 | "grid_auto_columns": null,
1896 | "grid_auto_flow": null,
1897 | "grid_auto_rows": null,
1898 | "grid_column": null,
1899 | "grid_gap": null,
1900 | "grid_row": null,
1901 | "grid_template_areas": null,
1902 | "grid_template_columns": null,
1903 | "grid_template_rows": null,
1904 | "height": null,
1905 | "justify_content": null,
1906 | "justify_items": null,
1907 | "left": null,
1908 | "margin": null,
1909 | "max_height": null,
1910 | "max_width": null,
1911 | "min_height": null,
1912 | "min_width": null,
1913 | "object_fit": null,
1914 | "object_position": null,
1915 | "order": null,
1916 | "overflow": null,
1917 | "overflow_x": null,
1918 | "overflow_y": null,
1919 | "padding": null,
1920 | "right": null,
1921 | "top": null,
1922 | "visibility": null,
1923 | "width": null
1924 | }
1925 | },
1926 | "e6706518f93d43a3922af38f33950175": {
1927 | "model_module": "@jupyter-widgets/controls",
1928 | "model_module_version": "1.5.0",
1929 | "model_name": "HTMLModel",
1930 | "state": {
1931 | "_dom_classes": [],
1932 | "_model_module": "@jupyter-widgets/controls",
1933 | "_model_module_version": "1.5.0",
1934 | "_model_name": "HTMLModel",
1935 | "_view_count": null,
1936 | "_view_module": "@jupyter-widgets/controls",
1937 | "_view_module_version": "1.5.0",
1938 | "_view_name": "HTMLView",
1939 | "description": "",
1940 | "description_tooltip": null,
1941 | "layout": "IPY_MODEL_874c31e0b254426ab6741f39a20d1ffe",
1942 | "placeholder": "",
1943 | "style": "IPY_MODEL_56ec677b71664909a54b0aa07948f642",
1944 | "value": "Downloading: 100%"
1945 | }
1946 | },
1947 | "eadd4f803c3949ef908873b191ddaf99": {
1948 | "model_module": "@jupyter-widgets/controls",
1949 | "model_module_version": "1.5.0",
1950 | "model_name": "DescriptionStyleModel",
1951 | "state": {
1952 | "_model_module": "@jupyter-widgets/controls",
1953 | "_model_module_version": "1.5.0",
1954 | "_model_name": "DescriptionStyleModel",
1955 | "_view_count": null,
1956 | "_view_module": "@jupyter-widgets/base",
1957 | "_view_module_version": "1.2.0",
1958 | "_view_name": "StyleView",
1959 | "description_width": ""
1960 | }
1961 | },
1962 | "f0b867f5fb1a4f898702c4f413bcc78e": {
1963 | "model_module": "@jupyter-widgets/base",
1964 | "model_module_version": "1.2.0",
1965 | "model_name": "LayoutModel",
1966 | "state": {
1967 | "_model_module": "@jupyter-widgets/base",
1968 | "_model_module_version": "1.2.0",
1969 | "_model_name": "LayoutModel",
1970 | "_view_count": null,
1971 | "_view_module": "@jupyter-widgets/base",
1972 | "_view_module_version": "1.2.0",
1973 | "_view_name": "LayoutView",
1974 | "align_content": null,
1975 | "align_items": null,
1976 | "align_self": null,
1977 | "border": null,
1978 | "bottom": null,
1979 | "display": null,
1980 | "flex": null,
1981 | "flex_flow": null,
1982 | "grid_area": null,
1983 | "grid_auto_columns": null,
1984 | "grid_auto_flow": null,
1985 | "grid_auto_rows": null,
1986 | "grid_column": null,
1987 | "grid_gap": null,
1988 | "grid_row": null,
1989 | "grid_template_areas": null,
1990 | "grid_template_columns": null,
1991 | "grid_template_rows": null,
1992 | "height": null,
1993 | "justify_content": null,
1994 | "justify_items": null,
1995 | "left": null,
1996 | "margin": null,
1997 | "max_height": null,
1998 | "max_width": null,
1999 | "min_height": null,
2000 | "min_width": null,
2001 | "object_fit": null,
2002 | "object_position": null,
2003 | "order": null,
2004 | "overflow": null,
2005 | "overflow_x": null,
2006 | "overflow_y": null,
2007 | "padding": null,
2008 | "right": null,
2009 | "top": null,
2010 | "visibility": null,
2011 | "width": null
2012 | }
2013 | },
2014 | "f58a5bcefd394896a052075108e9a1b3": {
2015 | "model_module": "@jupyter-widgets/base",
2016 | "model_module_version": "1.2.0",
2017 | "model_name": "LayoutModel",
2018 | "state": {
2019 | "_model_module": "@jupyter-widgets/base",
2020 | "_model_module_version": "1.2.0",
2021 | "_model_name": "LayoutModel",
2022 | "_view_count": null,
2023 | "_view_module": "@jupyter-widgets/base",
2024 | "_view_module_version": "1.2.0",
2025 | "_view_name": "LayoutView",
2026 | "align_content": null,
2027 | "align_items": null,
2028 | "align_self": null,
2029 | "border": null,
2030 | "bottom": null,
2031 | "display": null,
2032 | "flex": null,
2033 | "flex_flow": null,
2034 | "grid_area": null,
2035 | "grid_auto_columns": null,
2036 | "grid_auto_flow": null,
2037 | "grid_auto_rows": null,
2038 | "grid_column": null,
2039 | "grid_gap": null,
2040 | "grid_row": null,
2041 | "grid_template_areas": null,
2042 | "grid_template_columns": null,
2043 | "grid_template_rows": null,
2044 | "height": null,
2045 | "justify_content": null,
2046 | "justify_items": null,
2047 | "left": null,
2048 | "margin": null,
2049 | "max_height": null,
2050 | "max_width": null,
2051 | "min_height": null,
2052 | "min_width": null,
2053 | "object_fit": null,
2054 | "object_position": null,
2055 | "order": null,
2056 | "overflow": null,
2057 | "overflow_x": null,
2058 | "overflow_y": null,
2059 | "padding": null,
2060 | "right": null,
2061 | "top": null,
2062 | "visibility": null,
2063 | "width": null
2064 | }
2065 | },
2066 | "ff617d0462d34d8187550b382692075f": {
2067 | "model_module": "@jupyter-widgets/controls",
2068 | "model_module_version": "1.5.0",
2069 | "model_name": "HTMLModel",
2070 | "state": {
2071 | "_dom_classes": [],
2072 | "_model_module": "@jupyter-widgets/controls",
2073 | "_model_module_version": "1.5.0",
2074 | "_model_name": "HTMLModel",
2075 | "_view_count": null,
2076 | "_view_module": "@jupyter-widgets/controls",
2077 | "_view_module_version": "1.5.0",
2078 | "_view_name": "HTMLView",
2079 | "description": "",
2080 | "description_tooltip": null,
2081 | "layout": "IPY_MODEL_b9af6361d0c54e6dbebdbc42d0e05547",
2082 | "placeholder": "",
2083 | "style": "IPY_MODEL_a6eb35e7bbeb4de8bde2ad5c4c8bd1d1",
2084 | "value": " 6.43G/6.43G [01:54<00:00, 60.5MB/s]"
2085 | }
2086 | }
2087 | }
2088 | }
2089 | },
2090 | "nbformat": 4,
2091 | "nbformat_minor": 0
2092 | }
2093 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Eunchan Lee
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/PPT-Sildes/LabSeminar_NLGwithPrompting.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/purang2/prompting-nlp/4463d46591d8b56607a92a17c6d64f3e2b2562cd/PPT-Sildes/LabSeminar_NLGwithPrompting.pdf
--------------------------------------------------------------------------------
/PPT-Sildes/LabSeminar_NLGwithPrompting.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/purang2/prompting-nlp/4463d46591d8b56607a92a17c6d64f3e2b2562cd/PPT-Sildes/LabSeminar_NLGwithPrompting.pptx
--------------------------------------------------------------------------------
/PPT-Sildes/readme.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## [Text Generation with Prompting /PPT, 2023-Feb version](https://github.com/purang2/prompting-nlp/blob/main/PPT-Sildes/LabSeminar_NLGwithPrompting.pdf)
4 |
5 | Text Generation with Prompting [PPT Slides](https://github.com/purang2/prompting-nlp/blob/main/PPT-Sildes/LabSeminar_NLGwithPrompting.pdf) ***by [Eunchan Lee ( UNIST AI )](https://github.com/purang2)***
6 |
7 |
8 |
9 |
10 | ### Outline ***(You can check it on the PPT)***
11 | Step 1: Text Generation
12 | ( Before & After GPT )
13 |
14 | Step 2: GPT-3 &
15 | In-Context Learning (ICL)
16 |
17 | Step 3: Prompting
18 |
19 | Step 4: What makes ICL work?
20 |
21 | Step 5: Variants of Prompting (Chain-of-Thought Prompting
22 | / Prompting for Multimodal)
23 |
24 | Step 6: Limitations & Future Directions of Prompting
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # prompting-nlp
2 | About, prompting few-shot learning
3 |
4 |
5 | Prompting language models (LMs) with training examples and task descriptions has been
6 | seen as critical to recent successes in few-shot
7 | learning.
8 |
9 |
10 |
11 | ## List of Papers for Studying Prompt-based Few-shot Learning
12 |
13 | - [Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing (Liu et al., ACM Survey, 2021)](https://openreview.net/forum?id=nlZ-VeHtoCG)
14 |
15 | - [Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language Models (Logan IV et al., ACL 2022)](https://aclanthology.org/2022.findings-acl.222.pdf)
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Textchat2Prompt/NMT_KO/readme.md:
--------------------------------------------------------------------------------
1 | # NMT_KO
2 |
3 | Kor -> Eng Ipython notebook
4 |
--------------------------------------------------------------------------------
/Textchat2Prompt/only_paper_pdf.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/purang2/prompting-nlp/4463d46591d8b56607a92a17c6d64f3e2b2562cd/Textchat2Prompt/only_paper_pdf.pdf
--------------------------------------------------------------------------------
/Textchat2Prompt/paper_pdf.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/purang2/prompting-nlp/4463d46591d8b56607a92a17c6d64f3e2b2562cd/Textchat2Prompt/paper_pdf.pdf
--------------------------------------------------------------------------------
/Textchat2Prompt/readme.md:
--------------------------------------------------------------------------------
1 | # Official Repository for Textchat2Prompt (HCLT'22, Eunchan Lee and Sangtae Ahn)
2 |
3 |
4 | ## Paper
5 |
6 |
7 | [[List of Contents + Paper, Link]](https://github.com/purang2/prompting-nlp/blob/main/Textchat2Prompt/paper_pdf.pdf)
8 |
9 | [[⭐Paper Only, Link]](https://github.com/purang2/prompting-nlp/blob/main/Textchat2Prompt/only_paper_pdf.pdf)
10 |
11 | 
12 |
13 |
14 | ## HCLT 2022 (The 34th Annual Conference on Human & Cognitive Language Technology, )
15 |
16 |
17 |
18 | 
19 |
20 |
21 | https://sites.google.com/view/hclt2022
22 |
--------------------------------------------------------------------------------
/notebook/readme.md:
--------------------------------------------------------------------------------
1 | Colab Notebook Code
2 |
--------------------------------------------------------------------------------