Kajsa Lidin commited on
Commit ·
db38dd7
1
Parent(s): c4e69bb
fix(gguf): clone llama.cpp repo and convert model to gguf with convert-hf-to-gguf.py file
Browse files- train.ipynb +15 -729
train.ipynb
CHANGED
|
@@ -15,614 +15,7 @@
|
|
| 15 |
"language_info": {
|
| 16 |
"name": "python"
|
| 17 |
},
|
| 18 |
-
"accelerator": "TPU"
|
| 19 |
-
"widgets": {
|
| 20 |
-
"application/vnd.jupyter.widget-state+json": {
|
| 21 |
-
"c9b69d234a5f462899f007fb50909eb4": {
|
| 22 |
-
"model_module": "@jupyter-widgets/controls",
|
| 23 |
-
"model_name": "VBoxModel",
|
| 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": "VBoxModel",
|
| 30 |
-
"_view_count": null,
|
| 31 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 32 |
-
"_view_module_version": "1.5.0",
|
| 33 |
-
"_view_name": "VBoxView",
|
| 34 |
-
"box_style": "",
|
| 35 |
-
"children": [],
|
| 36 |
-
"layout": "IPY_MODEL_da7a2b111cee4b91a34634e116c78b87"
|
| 37 |
-
}
|
| 38 |
-
},
|
| 39 |
-
"77df7be383c54acb86cbb0b76f471b30": {
|
| 40 |
-
"model_module": "@jupyter-widgets/controls",
|
| 41 |
-
"model_name": "HTMLModel",
|
| 42 |
-
"model_module_version": "1.5.0",
|
| 43 |
-
"state": {
|
| 44 |
-
"_dom_classes": [],
|
| 45 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 46 |
-
"_model_module_version": "1.5.0",
|
| 47 |
-
"_model_name": "HTMLModel",
|
| 48 |
-
"_view_count": null,
|
| 49 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 50 |
-
"_view_module_version": "1.5.0",
|
| 51 |
-
"_view_name": "HTMLView",
|
| 52 |
-
"description": "",
|
| 53 |
-
"description_tooltip": null,
|
| 54 |
-
"layout": "IPY_MODEL_15fa6f5b3d9141e98844cff2fedffc66",
|
| 55 |
-
"placeholder": "",
|
| 56 |
-
"style": "IPY_MODEL_3c35ed12a7044e21b954222269e33735",
|
| 57 |
-
"value": "<center> <img\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.svg\nalt='Hugging Face'> <br> Copy a token from <a\nhref=\"https://huggingface.co/settings/tokens\" target=\"_blank\">your Hugging Face\ntokens page</a> and paste it below. <br> Immediately click login after copying\nyour token or it might be stored in plain text in this notebook file. </center>"
|
| 58 |
-
}
|
| 59 |
-
},
|
| 60 |
-
"482d99e33a3242c39025ba95b1a8a8e5": {
|
| 61 |
-
"model_module": "@jupyter-widgets/controls",
|
| 62 |
-
"model_name": "PasswordModel",
|
| 63 |
-
"model_module_version": "1.5.0",
|
| 64 |
-
"state": {
|
| 65 |
-
"_dom_classes": [],
|
| 66 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 67 |
-
"_model_module_version": "1.5.0",
|
| 68 |
-
"_model_name": "PasswordModel",
|
| 69 |
-
"_view_count": null,
|
| 70 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 71 |
-
"_view_module_version": "1.5.0",
|
| 72 |
-
"_view_name": "PasswordView",
|
| 73 |
-
"continuous_update": true,
|
| 74 |
-
"description": "Token:",
|
| 75 |
-
"description_tooltip": null,
|
| 76 |
-
"disabled": false,
|
| 77 |
-
"layout": "IPY_MODEL_543ea04bca404365807c1ebe5cfd079e",
|
| 78 |
-
"placeholder": "",
|
| 79 |
-
"style": "IPY_MODEL_6f5edd6c5221403bae033cce21558ede",
|
| 80 |
-
"value": ""
|
| 81 |
-
}
|
| 82 |
-
},
|
| 83 |
-
"d43934a62af74c00be2946dea0e642c5": {
|
| 84 |
-
"model_module": "@jupyter-widgets/controls",
|
| 85 |
-
"model_name": "CheckboxModel",
|
| 86 |
-
"model_module_version": "1.5.0",
|
| 87 |
-
"state": {
|
| 88 |
-
"_dom_classes": [],
|
| 89 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 90 |
-
"_model_module_version": "1.5.0",
|
| 91 |
-
"_model_name": "CheckboxModel",
|
| 92 |
-
"_view_count": null,
|
| 93 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 94 |
-
"_view_module_version": "1.5.0",
|
| 95 |
-
"_view_name": "CheckboxView",
|
| 96 |
-
"description": "Add token as git credential?",
|
| 97 |
-
"description_tooltip": null,
|
| 98 |
-
"disabled": false,
|
| 99 |
-
"indent": true,
|
| 100 |
-
"layout": "IPY_MODEL_e242b623f7dc43ad8785da73d57e6af7",
|
| 101 |
-
"style": "IPY_MODEL_23fabd02ec7143d6823fa7ac18f42d0b",
|
| 102 |
-
"value": true
|
| 103 |
-
}
|
| 104 |
-
},
|
| 105 |
-
"1d3f3cf85ac24af88121920cdf0d6ddd": {
|
| 106 |
-
"model_module": "@jupyter-widgets/controls",
|
| 107 |
-
"model_name": "ButtonModel",
|
| 108 |
-
"model_module_version": "1.5.0",
|
| 109 |
-
"state": {
|
| 110 |
-
"_dom_classes": [],
|
| 111 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 112 |
-
"_model_module_version": "1.5.0",
|
| 113 |
-
"_model_name": "ButtonModel",
|
| 114 |
-
"_view_count": null,
|
| 115 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 116 |
-
"_view_module_version": "1.5.0",
|
| 117 |
-
"_view_name": "ButtonView",
|
| 118 |
-
"button_style": "",
|
| 119 |
-
"description": "Login",
|
| 120 |
-
"disabled": false,
|
| 121 |
-
"icon": "",
|
| 122 |
-
"layout": "IPY_MODEL_805cc2b401e84c499708f4c53d1143ec",
|
| 123 |
-
"style": "IPY_MODEL_cc3c725e4fa24214884fb3c59fdd9952",
|
| 124 |
-
"tooltip": ""
|
| 125 |
-
}
|
| 126 |
-
},
|
| 127 |
-
"76165cc50ab643c886bf130a07fb1a8e": {
|
| 128 |
-
"model_module": "@jupyter-widgets/controls",
|
| 129 |
-
"model_name": "HTMLModel",
|
| 130 |
-
"model_module_version": "1.5.0",
|
| 131 |
-
"state": {
|
| 132 |
-
"_dom_classes": [],
|
| 133 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 134 |
-
"_model_module_version": "1.5.0",
|
| 135 |
-
"_model_name": "HTMLModel",
|
| 136 |
-
"_view_count": null,
|
| 137 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 138 |
-
"_view_module_version": "1.5.0",
|
| 139 |
-
"_view_name": "HTMLView",
|
| 140 |
-
"description": "",
|
| 141 |
-
"description_tooltip": null,
|
| 142 |
-
"layout": "IPY_MODEL_3a473d82fa374307aae8b61f176f33c8",
|
| 143 |
-
"placeholder": "",
|
| 144 |
-
"style": "IPY_MODEL_0752ba4bd95b46d4857f57dd090a7449",
|
| 145 |
-
"value": "\n<b>Pro Tip:</b> If you don't already have one, you can create a dedicated\n'notebooks' token with 'write' access, that you can then easily reuse for all\nnotebooks. </center>"
|
| 146 |
-
}
|
| 147 |
-
},
|
| 148 |
-
"da7a2b111cee4b91a34634e116c78b87": {
|
| 149 |
-
"model_module": "@jupyter-widgets/base",
|
| 150 |
-
"model_name": "LayoutModel",
|
| 151 |
-
"model_module_version": "1.2.0",
|
| 152 |
-
"state": {
|
| 153 |
-
"_model_module": "@jupyter-widgets/base",
|
| 154 |
-
"_model_module_version": "1.2.0",
|
| 155 |
-
"_model_name": "LayoutModel",
|
| 156 |
-
"_view_count": null,
|
| 157 |
-
"_view_module": "@jupyter-widgets/base",
|
| 158 |
-
"_view_module_version": "1.2.0",
|
| 159 |
-
"_view_name": "LayoutView",
|
| 160 |
-
"align_content": null,
|
| 161 |
-
"align_items": "center",
|
| 162 |
-
"align_self": null,
|
| 163 |
-
"border": null,
|
| 164 |
-
"bottom": null,
|
| 165 |
-
"display": "flex",
|
| 166 |
-
"flex": null,
|
| 167 |
-
"flex_flow": "column",
|
| 168 |
-
"grid_area": null,
|
| 169 |
-
"grid_auto_columns": null,
|
| 170 |
-
"grid_auto_flow": null,
|
| 171 |
-
"grid_auto_rows": null,
|
| 172 |
-
"grid_column": null,
|
| 173 |
-
"grid_gap": null,
|
| 174 |
-
"grid_row": null,
|
| 175 |
-
"grid_template_areas": null,
|
| 176 |
-
"grid_template_columns": null,
|
| 177 |
-
"grid_template_rows": null,
|
| 178 |
-
"height": null,
|
| 179 |
-
"justify_content": null,
|
| 180 |
-
"justify_items": null,
|
| 181 |
-
"left": null,
|
| 182 |
-
"margin": null,
|
| 183 |
-
"max_height": null,
|
| 184 |
-
"max_width": null,
|
| 185 |
-
"min_height": null,
|
| 186 |
-
"min_width": null,
|
| 187 |
-
"object_fit": null,
|
| 188 |
-
"object_position": null,
|
| 189 |
-
"order": null,
|
| 190 |
-
"overflow": null,
|
| 191 |
-
"overflow_x": null,
|
| 192 |
-
"overflow_y": null,
|
| 193 |
-
"padding": null,
|
| 194 |
-
"right": null,
|
| 195 |
-
"top": null,
|
| 196 |
-
"visibility": null,
|
| 197 |
-
"width": "50%"
|
| 198 |
-
}
|
| 199 |
-
},
|
| 200 |
-
"15fa6f5b3d9141e98844cff2fedffc66": {
|
| 201 |
-
"model_module": "@jupyter-widgets/base",
|
| 202 |
-
"model_name": "LayoutModel",
|
| 203 |
-
"model_module_version": "1.2.0",
|
| 204 |
-
"state": {
|
| 205 |
-
"_model_module": "@jupyter-widgets/base",
|
| 206 |
-
"_model_module_version": "1.2.0",
|
| 207 |
-
"_model_name": "LayoutModel",
|
| 208 |
-
"_view_count": null,
|
| 209 |
-
"_view_module": "@jupyter-widgets/base",
|
| 210 |
-
"_view_module_version": "1.2.0",
|
| 211 |
-
"_view_name": "LayoutView",
|
| 212 |
-
"align_content": null,
|
| 213 |
-
"align_items": null,
|
| 214 |
-
"align_self": null,
|
| 215 |
-
"border": null,
|
| 216 |
-
"bottom": null,
|
| 217 |
-
"display": null,
|
| 218 |
-
"flex": null,
|
| 219 |
-
"flex_flow": null,
|
| 220 |
-
"grid_area": null,
|
| 221 |
-
"grid_auto_columns": null,
|
| 222 |
-
"grid_auto_flow": null,
|
| 223 |
-
"grid_auto_rows": null,
|
| 224 |
-
"grid_column": null,
|
| 225 |
-
"grid_gap": null,
|
| 226 |
-
"grid_row": null,
|
| 227 |
-
"grid_template_areas": null,
|
| 228 |
-
"grid_template_columns": null,
|
| 229 |
-
"grid_template_rows": null,
|
| 230 |
-
"height": null,
|
| 231 |
-
"justify_content": null,
|
| 232 |
-
"justify_items": null,
|
| 233 |
-
"left": null,
|
| 234 |
-
"margin": null,
|
| 235 |
-
"max_height": null,
|
| 236 |
-
"max_width": null,
|
| 237 |
-
"min_height": null,
|
| 238 |
-
"min_width": null,
|
| 239 |
-
"object_fit": null,
|
| 240 |
-
"object_position": null,
|
| 241 |
-
"order": null,
|
| 242 |
-
"overflow": null,
|
| 243 |
-
"overflow_x": null,
|
| 244 |
-
"overflow_y": null,
|
| 245 |
-
"padding": null,
|
| 246 |
-
"right": null,
|
| 247 |
-
"top": null,
|
| 248 |
-
"visibility": null,
|
| 249 |
-
"width": null
|
| 250 |
-
}
|
| 251 |
-
},
|
| 252 |
-
"3c35ed12a7044e21b954222269e33735": {
|
| 253 |
-
"model_module": "@jupyter-widgets/controls",
|
| 254 |
-
"model_name": "DescriptionStyleModel",
|
| 255 |
-
"model_module_version": "1.5.0",
|
| 256 |
-
"state": {
|
| 257 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 258 |
-
"_model_module_version": "1.5.0",
|
| 259 |
-
"_model_name": "DescriptionStyleModel",
|
| 260 |
-
"_view_count": null,
|
| 261 |
-
"_view_module": "@jupyter-widgets/base",
|
| 262 |
-
"_view_module_version": "1.2.0",
|
| 263 |
-
"_view_name": "StyleView",
|
| 264 |
-
"description_width": ""
|
| 265 |
-
}
|
| 266 |
-
},
|
| 267 |
-
"543ea04bca404365807c1ebe5cfd079e": {
|
| 268 |
-
"model_module": "@jupyter-widgets/base",
|
| 269 |
-
"model_name": "LayoutModel",
|
| 270 |
-
"model_module_version": "1.2.0",
|
| 271 |
-
"state": {
|
| 272 |
-
"_model_module": "@jupyter-widgets/base",
|
| 273 |
-
"_model_module_version": "1.2.0",
|
| 274 |
-
"_model_name": "LayoutModel",
|
| 275 |
-
"_view_count": null,
|
| 276 |
-
"_view_module": "@jupyter-widgets/base",
|
| 277 |
-
"_view_module_version": "1.2.0",
|
| 278 |
-
"_view_name": "LayoutView",
|
| 279 |
-
"align_content": null,
|
| 280 |
-
"align_items": null,
|
| 281 |
-
"align_self": null,
|
| 282 |
-
"border": null,
|
| 283 |
-
"bottom": null,
|
| 284 |
-
"display": null,
|
| 285 |
-
"flex": null,
|
| 286 |
-
"flex_flow": null,
|
| 287 |
-
"grid_area": null,
|
| 288 |
-
"grid_auto_columns": null,
|
| 289 |
-
"grid_auto_flow": null,
|
| 290 |
-
"grid_auto_rows": null,
|
| 291 |
-
"grid_column": null,
|
| 292 |
-
"grid_gap": null,
|
| 293 |
-
"grid_row": null,
|
| 294 |
-
"grid_template_areas": null,
|
| 295 |
-
"grid_template_columns": null,
|
| 296 |
-
"grid_template_rows": null,
|
| 297 |
-
"height": null,
|
| 298 |
-
"justify_content": null,
|
| 299 |
-
"justify_items": null,
|
| 300 |
-
"left": null,
|
| 301 |
-
"margin": null,
|
| 302 |
-
"max_height": null,
|
| 303 |
-
"max_width": null,
|
| 304 |
-
"min_height": null,
|
| 305 |
-
"min_width": null,
|
| 306 |
-
"object_fit": null,
|
| 307 |
-
"object_position": null,
|
| 308 |
-
"order": null,
|
| 309 |
-
"overflow": null,
|
| 310 |
-
"overflow_x": null,
|
| 311 |
-
"overflow_y": null,
|
| 312 |
-
"padding": null,
|
| 313 |
-
"right": null,
|
| 314 |
-
"top": null,
|
| 315 |
-
"visibility": null,
|
| 316 |
-
"width": null
|
| 317 |
-
}
|
| 318 |
-
},
|
| 319 |
-
"6f5edd6c5221403bae033cce21558ede": {
|
| 320 |
-
"model_module": "@jupyter-widgets/controls",
|
| 321 |
-
"model_name": "DescriptionStyleModel",
|
| 322 |
-
"model_module_version": "1.5.0",
|
| 323 |
-
"state": {
|
| 324 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 325 |
-
"_model_module_version": "1.5.0",
|
| 326 |
-
"_model_name": "DescriptionStyleModel",
|
| 327 |
-
"_view_count": null,
|
| 328 |
-
"_view_module": "@jupyter-widgets/base",
|
| 329 |
-
"_view_module_version": "1.2.0",
|
| 330 |
-
"_view_name": "StyleView",
|
| 331 |
-
"description_width": ""
|
| 332 |
-
}
|
| 333 |
-
},
|
| 334 |
-
"e242b623f7dc43ad8785da73d57e6af7": {
|
| 335 |
-
"model_module": "@jupyter-widgets/base",
|
| 336 |
-
"model_name": "LayoutModel",
|
| 337 |
-
"model_module_version": "1.2.0",
|
| 338 |
-
"state": {
|
| 339 |
-
"_model_module": "@jupyter-widgets/base",
|
| 340 |
-
"_model_module_version": "1.2.0",
|
| 341 |
-
"_model_name": "LayoutModel",
|
| 342 |
-
"_view_count": null,
|
| 343 |
-
"_view_module": "@jupyter-widgets/base",
|
| 344 |
-
"_view_module_version": "1.2.0",
|
| 345 |
-
"_view_name": "LayoutView",
|
| 346 |
-
"align_content": null,
|
| 347 |
-
"align_items": null,
|
| 348 |
-
"align_self": null,
|
| 349 |
-
"border": null,
|
| 350 |
-
"bottom": null,
|
| 351 |
-
"display": null,
|
| 352 |
-
"flex": null,
|
| 353 |
-
"flex_flow": null,
|
| 354 |
-
"grid_area": null,
|
| 355 |
-
"grid_auto_columns": null,
|
| 356 |
-
"grid_auto_flow": null,
|
| 357 |
-
"grid_auto_rows": null,
|
| 358 |
-
"grid_column": null,
|
| 359 |
-
"grid_gap": null,
|
| 360 |
-
"grid_row": null,
|
| 361 |
-
"grid_template_areas": null,
|
| 362 |
-
"grid_template_columns": null,
|
| 363 |
-
"grid_template_rows": null,
|
| 364 |
-
"height": null,
|
| 365 |
-
"justify_content": null,
|
| 366 |
-
"justify_items": null,
|
| 367 |
-
"left": null,
|
| 368 |
-
"margin": null,
|
| 369 |
-
"max_height": null,
|
| 370 |
-
"max_width": null,
|
| 371 |
-
"min_height": null,
|
| 372 |
-
"min_width": null,
|
| 373 |
-
"object_fit": null,
|
| 374 |
-
"object_position": null,
|
| 375 |
-
"order": null,
|
| 376 |
-
"overflow": null,
|
| 377 |
-
"overflow_x": null,
|
| 378 |
-
"overflow_y": null,
|
| 379 |
-
"padding": null,
|
| 380 |
-
"right": null,
|
| 381 |
-
"top": null,
|
| 382 |
-
"visibility": null,
|
| 383 |
-
"width": null
|
| 384 |
-
}
|
| 385 |
-
},
|
| 386 |
-
"23fabd02ec7143d6823fa7ac18f42d0b": {
|
| 387 |
-
"model_module": "@jupyter-widgets/controls",
|
| 388 |
-
"model_name": "DescriptionStyleModel",
|
| 389 |
-
"model_module_version": "1.5.0",
|
| 390 |
-
"state": {
|
| 391 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 392 |
-
"_model_module_version": "1.5.0",
|
| 393 |
-
"_model_name": "DescriptionStyleModel",
|
| 394 |
-
"_view_count": null,
|
| 395 |
-
"_view_module": "@jupyter-widgets/base",
|
| 396 |
-
"_view_module_version": "1.2.0",
|
| 397 |
-
"_view_name": "StyleView",
|
| 398 |
-
"description_width": ""
|
| 399 |
-
}
|
| 400 |
-
},
|
| 401 |
-
"805cc2b401e84c499708f4c53d1143ec": {
|
| 402 |
-
"model_module": "@jupyter-widgets/base",
|
| 403 |
-
"model_name": "LayoutModel",
|
| 404 |
-
"model_module_version": "1.2.0",
|
| 405 |
-
"state": {
|
| 406 |
-
"_model_module": "@jupyter-widgets/base",
|
| 407 |
-
"_model_module_version": "1.2.0",
|
| 408 |
-
"_model_name": "LayoutModel",
|
| 409 |
-
"_view_count": null,
|
| 410 |
-
"_view_module": "@jupyter-widgets/base",
|
| 411 |
-
"_view_module_version": "1.2.0",
|
| 412 |
-
"_view_name": "LayoutView",
|
| 413 |
-
"align_content": null,
|
| 414 |
-
"align_items": null,
|
| 415 |
-
"align_self": null,
|
| 416 |
-
"border": null,
|
| 417 |
-
"bottom": null,
|
| 418 |
-
"display": null,
|
| 419 |
-
"flex": null,
|
| 420 |
-
"flex_flow": null,
|
| 421 |
-
"grid_area": null,
|
| 422 |
-
"grid_auto_columns": null,
|
| 423 |
-
"grid_auto_flow": null,
|
| 424 |
-
"grid_auto_rows": null,
|
| 425 |
-
"grid_column": null,
|
| 426 |
-
"grid_gap": null,
|
| 427 |
-
"grid_row": null,
|
| 428 |
-
"grid_template_areas": null,
|
| 429 |
-
"grid_template_columns": null,
|
| 430 |
-
"grid_template_rows": null,
|
| 431 |
-
"height": null,
|
| 432 |
-
"justify_content": null,
|
| 433 |
-
"justify_items": null,
|
| 434 |
-
"left": null,
|
| 435 |
-
"margin": null,
|
| 436 |
-
"max_height": null,
|
| 437 |
-
"max_width": null,
|
| 438 |
-
"min_height": null,
|
| 439 |
-
"min_width": null,
|
| 440 |
-
"object_fit": null,
|
| 441 |
-
"object_position": null,
|
| 442 |
-
"order": null,
|
| 443 |
-
"overflow": null,
|
| 444 |
-
"overflow_x": null,
|
| 445 |
-
"overflow_y": null,
|
| 446 |
-
"padding": null,
|
| 447 |
-
"right": null,
|
| 448 |
-
"top": null,
|
| 449 |
-
"visibility": null,
|
| 450 |
-
"width": null
|
| 451 |
-
}
|
| 452 |
-
},
|
| 453 |
-
"cc3c725e4fa24214884fb3c59fdd9952": {
|
| 454 |
-
"model_module": "@jupyter-widgets/controls",
|
| 455 |
-
"model_name": "ButtonStyleModel",
|
| 456 |
-
"model_module_version": "1.5.0",
|
| 457 |
-
"state": {
|
| 458 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 459 |
-
"_model_module_version": "1.5.0",
|
| 460 |
-
"_model_name": "ButtonStyleModel",
|
| 461 |
-
"_view_count": null,
|
| 462 |
-
"_view_module": "@jupyter-widgets/base",
|
| 463 |
-
"_view_module_version": "1.2.0",
|
| 464 |
-
"_view_name": "StyleView",
|
| 465 |
-
"button_color": null,
|
| 466 |
-
"font_weight": ""
|
| 467 |
-
}
|
| 468 |
-
},
|
| 469 |
-
"3a473d82fa374307aae8b61f176f33c8": {
|
| 470 |
-
"model_module": "@jupyter-widgets/base",
|
| 471 |
-
"model_name": "LayoutModel",
|
| 472 |
-
"model_module_version": "1.2.0",
|
| 473 |
-
"state": {
|
| 474 |
-
"_model_module": "@jupyter-widgets/base",
|
| 475 |
-
"_model_module_version": "1.2.0",
|
| 476 |
-
"_model_name": "LayoutModel",
|
| 477 |
-
"_view_count": null,
|
| 478 |
-
"_view_module": "@jupyter-widgets/base",
|
| 479 |
-
"_view_module_version": "1.2.0",
|
| 480 |
-
"_view_name": "LayoutView",
|
| 481 |
-
"align_content": null,
|
| 482 |
-
"align_items": null,
|
| 483 |
-
"align_self": null,
|
| 484 |
-
"border": null,
|
| 485 |
-
"bottom": null,
|
| 486 |
-
"display": null,
|
| 487 |
-
"flex": null,
|
| 488 |
-
"flex_flow": null,
|
| 489 |
-
"grid_area": null,
|
| 490 |
-
"grid_auto_columns": null,
|
| 491 |
-
"grid_auto_flow": null,
|
| 492 |
-
"grid_auto_rows": null,
|
| 493 |
-
"grid_column": null,
|
| 494 |
-
"grid_gap": null,
|
| 495 |
-
"grid_row": null,
|
| 496 |
-
"grid_template_areas": null,
|
| 497 |
-
"grid_template_columns": null,
|
| 498 |
-
"grid_template_rows": null,
|
| 499 |
-
"height": null,
|
| 500 |
-
"justify_content": null,
|
| 501 |
-
"justify_items": null,
|
| 502 |
-
"left": null,
|
| 503 |
-
"margin": null,
|
| 504 |
-
"max_height": null,
|
| 505 |
-
"max_width": null,
|
| 506 |
-
"min_height": null,
|
| 507 |
-
"min_width": null,
|
| 508 |
-
"object_fit": null,
|
| 509 |
-
"object_position": null,
|
| 510 |
-
"order": null,
|
| 511 |
-
"overflow": null,
|
| 512 |
-
"overflow_x": null,
|
| 513 |
-
"overflow_y": null,
|
| 514 |
-
"padding": null,
|
| 515 |
-
"right": null,
|
| 516 |
-
"top": null,
|
| 517 |
-
"visibility": null,
|
| 518 |
-
"width": null
|
| 519 |
-
}
|
| 520 |
-
},
|
| 521 |
-
"0752ba4bd95b46d4857f57dd090a7449": {
|
| 522 |
-
"model_module": "@jupyter-widgets/controls",
|
| 523 |
-
"model_name": "DescriptionStyleModel",
|
| 524 |
-
"model_module_version": "1.5.0",
|
| 525 |
-
"state": {
|
| 526 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 527 |
-
"_model_module_version": "1.5.0",
|
| 528 |
-
"_model_name": "DescriptionStyleModel",
|
| 529 |
-
"_view_count": null,
|
| 530 |
-
"_view_module": "@jupyter-widgets/base",
|
| 531 |
-
"_view_module_version": "1.2.0",
|
| 532 |
-
"_view_name": "StyleView",
|
| 533 |
-
"description_width": ""
|
| 534 |
-
}
|
| 535 |
-
},
|
| 536 |
-
"b7d36d31eba54353b4010baa040612d1": {
|
| 537 |
-
"model_module": "@jupyter-widgets/controls",
|
| 538 |
-
"model_name": "LabelModel",
|
| 539 |
-
"model_module_version": "1.5.0",
|
| 540 |
-
"state": {
|
| 541 |
-
"_dom_classes": [],
|
| 542 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 543 |
-
"_model_module_version": "1.5.0",
|
| 544 |
-
"_model_name": "LabelModel",
|
| 545 |
-
"_view_count": null,
|
| 546 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 547 |
-
"_view_module_version": "1.5.0",
|
| 548 |
-
"_view_name": "LabelView",
|
| 549 |
-
"description": "",
|
| 550 |
-
"description_tooltip": null,
|
| 551 |
-
"layout": "IPY_MODEL_e3246a5fab444a48ae8a41b33f7f3f2c",
|
| 552 |
-
"placeholder": "",
|
| 553 |
-
"style": "IPY_MODEL_03a21816ab254a9cb6447bc3b69823fd",
|
| 554 |
-
"value": "Connecting..."
|
| 555 |
-
}
|
| 556 |
-
},
|
| 557 |
-
"e3246a5fab444a48ae8a41b33f7f3f2c": {
|
| 558 |
-
"model_module": "@jupyter-widgets/base",
|
| 559 |
-
"model_name": "LayoutModel",
|
| 560 |
-
"model_module_version": "1.2.0",
|
| 561 |
-
"state": {
|
| 562 |
-
"_model_module": "@jupyter-widgets/base",
|
| 563 |
-
"_model_module_version": "1.2.0",
|
| 564 |
-
"_model_name": "LayoutModel",
|
| 565 |
-
"_view_count": null,
|
| 566 |
-
"_view_module": "@jupyter-widgets/base",
|
| 567 |
-
"_view_module_version": "1.2.0",
|
| 568 |
-
"_view_name": "LayoutView",
|
| 569 |
-
"align_content": null,
|
| 570 |
-
"align_items": null,
|
| 571 |
-
"align_self": null,
|
| 572 |
-
"border": null,
|
| 573 |
-
"bottom": null,
|
| 574 |
-
"display": null,
|
| 575 |
-
"flex": null,
|
| 576 |
-
"flex_flow": null,
|
| 577 |
-
"grid_area": null,
|
| 578 |
-
"grid_auto_columns": null,
|
| 579 |
-
"grid_auto_flow": null,
|
| 580 |
-
"grid_auto_rows": null,
|
| 581 |
-
"grid_column": null,
|
| 582 |
-
"grid_gap": null,
|
| 583 |
-
"grid_row": null,
|
| 584 |
-
"grid_template_areas": null,
|
| 585 |
-
"grid_template_columns": null,
|
| 586 |
-
"grid_template_rows": null,
|
| 587 |
-
"height": null,
|
| 588 |
-
"justify_content": null,
|
| 589 |
-
"justify_items": null,
|
| 590 |
-
"left": null,
|
| 591 |
-
"margin": null,
|
| 592 |
-
"max_height": null,
|
| 593 |
-
"max_width": null,
|
| 594 |
-
"min_height": null,
|
| 595 |
-
"min_width": null,
|
| 596 |
-
"object_fit": null,
|
| 597 |
-
"object_position": null,
|
| 598 |
-
"order": null,
|
| 599 |
-
"overflow": null,
|
| 600 |
-
"overflow_x": null,
|
| 601 |
-
"overflow_y": null,
|
| 602 |
-
"padding": null,
|
| 603 |
-
"right": null,
|
| 604 |
-
"top": null,
|
| 605 |
-
"visibility": null,
|
| 606 |
-
"width": null
|
| 607 |
-
}
|
| 608 |
-
},
|
| 609 |
-
"03a21816ab254a9cb6447bc3b69823fd": {
|
| 610 |
-
"model_module": "@jupyter-widgets/controls",
|
| 611 |
-
"model_name": "DescriptionStyleModel",
|
| 612 |
-
"model_module_version": "1.5.0",
|
| 613 |
-
"state": {
|
| 614 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 615 |
-
"_model_module_version": "1.5.0",
|
| 616 |
-
"_model_name": "DescriptionStyleModel",
|
| 617 |
-
"_view_count": null,
|
| 618 |
-
"_view_module": "@jupyter-widgets/base",
|
| 619 |
-
"_view_module_version": "1.2.0",
|
| 620 |
-
"_view_name": "StyleView",
|
| 621 |
-
"description_width": ""
|
| 622 |
-
}
|
| 623 |
-
}
|
| 624 |
-
}
|
| 625 |
-
}
|
| 626 |
},
|
| 627 |
"cells": [
|
| 628 |
{
|
|
@@ -652,24 +45,11 @@
|
|
| 652 |
"print(\"CPU used:\", psutil.virtual_memory().used/1e9, \"GB\")\n"
|
| 653 |
],
|
| 654 |
"metadata": {
|
| 655 |
-
"colab": {
|
| 656 |
-
"base_uri": "https://localhost:8080/"
|
| 657 |
-
},
|
| 658 |
"collapsed": true,
|
| 659 |
-
"id": "7sw-OYaKLIb5"
|
| 660 |
-
"outputId": "d6d85f74-ef16-4969-9514-dd7c2ac52221"
|
| 661 |
},
|
| 662 |
-
"execution_count":
|
| 663 |
-
"outputs": [
|
| 664 |
-
{
|
| 665 |
-
"output_type": "stream",
|
| 666 |
-
"name": "stdout",
|
| 667 |
-
"text": [
|
| 668 |
-
"GPU allocated: 0.0 GB\n",
|
| 669 |
-
"CPU used: 3.050508288 GB\n"
|
| 670 |
-
]
|
| 671 |
-
}
|
| 672 |
-
]
|
| 673 |
},
|
| 674 |
{
|
| 675 |
"cell_type": "code",
|
|
@@ -681,12 +61,12 @@
|
|
| 681 |
"metadata": {
|
| 682 |
"id": "t3Gzr3z7LPw3"
|
| 683 |
},
|
| 684 |
-
"execution_count":
|
| 685 |
"outputs": []
|
| 686 |
},
|
| 687 |
{
|
| 688 |
"cell_type": "code",
|
| 689 |
-
"execution_count":
|
| 690 |
"metadata": {
|
| 691 |
"id": "TUwzrKYWu1V1"
|
| 692 |
},
|
|
@@ -706,52 +86,10 @@
|
|
| 706 |
"notebook_login()"
|
| 707 |
],
|
| 708 |
"metadata": {
|
| 709 |
-
"
|
| 710 |
-
"base_uri": "https://localhost:8080/",
|
| 711 |
-
"height": 17,
|
| 712 |
-
"referenced_widgets": [
|
| 713 |
-
"c9b69d234a5f462899f007fb50909eb4",
|
| 714 |
-
"77df7be383c54acb86cbb0b76f471b30",
|
| 715 |
-
"482d99e33a3242c39025ba95b1a8a8e5",
|
| 716 |
-
"d43934a62af74c00be2946dea0e642c5",
|
| 717 |
-
"1d3f3cf85ac24af88121920cdf0d6ddd",
|
| 718 |
-
"76165cc50ab643c886bf130a07fb1a8e",
|
| 719 |
-
"da7a2b111cee4b91a34634e116c78b87",
|
| 720 |
-
"15fa6f5b3d9141e98844cff2fedffc66",
|
| 721 |
-
"3c35ed12a7044e21b954222269e33735",
|
| 722 |
-
"543ea04bca404365807c1ebe5cfd079e",
|
| 723 |
-
"6f5edd6c5221403bae033cce21558ede",
|
| 724 |
-
"e242b623f7dc43ad8785da73d57e6af7",
|
| 725 |
-
"23fabd02ec7143d6823fa7ac18f42d0b",
|
| 726 |
-
"805cc2b401e84c499708f4c53d1143ec",
|
| 727 |
-
"cc3c725e4fa24214884fb3c59fdd9952",
|
| 728 |
-
"3a473d82fa374307aae8b61f176f33c8",
|
| 729 |
-
"0752ba4bd95b46d4857f57dd090a7449",
|
| 730 |
-
"b7d36d31eba54353b4010baa040612d1",
|
| 731 |
-
"e3246a5fab444a48ae8a41b33f7f3f2c",
|
| 732 |
-
"03a21816ab254a9cb6447bc3b69823fd"
|
| 733 |
-
]
|
| 734 |
-
},
|
| 735 |
-
"id": "mkSDOk9Ipa3l",
|
| 736 |
-
"outputId": "75840ce6-5f48-4132-81f1-08282715b8b6"
|
| 737 |
},
|
| 738 |
-
"execution_count":
|
| 739 |
-
"outputs": [
|
| 740 |
-
{
|
| 741 |
-
"output_type": "display_data",
|
| 742 |
-
"data": {
|
| 743 |
-
"text/plain": [
|
| 744 |
-
"VBox(children=(HTML(value='<center> <img\\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.sv…"
|
| 745 |
-
],
|
| 746 |
-
"application/vnd.jupyter.widget-view+json": {
|
| 747 |
-
"version_major": 2,
|
| 748 |
-
"version_minor": 0,
|
| 749 |
-
"model_id": "c9b69d234a5f462899f007fb50909eb4"
|
| 750 |
-
}
|
| 751 |
-
},
|
| 752 |
-
"metadata": {}
|
| 753 |
-
}
|
| 754 |
-
]
|
| 755 |
},
|
| 756 |
{
|
| 757 |
"cell_type": "code",
|
|
@@ -767,41 +105,10 @@
|
|
| 767 |
")"
|
| 768 |
],
|
| 769 |
"metadata": {
|
| 770 |
-
"
|
| 771 |
-
"base_uri": "https://localhost:8080/",
|
| 772 |
-
"height": 198
|
| 773 |
-
},
|
| 774 |
-
"id": "59UAr7pNsS5P",
|
| 775 |
-
"outputId": "d813772f-6acf-4340-8b3d-9254098f4eb8"
|
| 776 |
},
|
| 777 |
-
"execution_count":
|
| 778 |
-
"outputs": [
|
| 779 |
-
{
|
| 780 |
-
"output_type": "stream",
|
| 781 |
-
"name": "stderr",
|
| 782 |
-
"text": [
|
| 783 |
-
"/usr/local/lib/python3.12/dist-packages/huggingface_hub/utils/_auth.py:94: UserWarning: \n",
|
| 784 |
-
"The secret `HF_TOKEN` does not exist in your Colab secrets.\n",
|
| 785 |
-
"To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n",
|
| 786 |
-
"You will be able to reuse this secret in all of your notebooks.\n",
|
| 787 |
-
"Please note that authentication is recommended but still optional to access public models or datasets.\n",
|
| 788 |
-
" warnings.warn(\n"
|
| 789 |
-
]
|
| 790 |
-
},
|
| 791 |
-
{
|
| 792 |
-
"output_type": "execute_result",
|
| 793 |
-
"data": {
|
| 794 |
-
"text/plain": [
|
| 795 |
-
"RepoUrl('https://huggingface.co/ft-lora/llama3.2-3b-instruct-finetuned', endpoint='https://huggingface.co', repo_type='model', repo_id='ft-lora/llama3.2-3b-instruct-finetuned')"
|
| 796 |
-
],
|
| 797 |
-
"application/vnd.google.colaboratory.intrinsic+json": {
|
| 798 |
-
"type": "string"
|
| 799 |
-
}
|
| 800 |
-
},
|
| 801 |
-
"metadata": {},
|
| 802 |
-
"execution_count": 4
|
| 803 |
-
}
|
| 804 |
-
]
|
| 805 |
},
|
| 806 |
{
|
| 807 |
"cell_type": "markdown",
|
|
@@ -852,31 +159,10 @@
|
|
| 852 |
")"
|
| 853 |
],
|
| 854 |
"metadata": {
|
| 855 |
-
"
|
| 856 |
-
"base_uri": "https://localhost:8080/",
|
| 857 |
-
"height": 507
|
| 858 |
-
},
|
| 859 |
-
"id": "QDTe7QyavVdK",
|
| 860 |
-
"outputId": "ffa7128d-7805-4cc3-a8db-a952ae25c3bb"
|
| 861 |
},
|
| 862 |
-
"execution_count":
|
| 863 |
-
"outputs": [
|
| 864 |
-
{
|
| 865 |
-
"output_type": "error",
|
| 866 |
-
"ename": "NotImplementedError",
|
| 867 |
-
"evalue": "Unsloth cannot find any torch accelerator? You need a GPU.",
|
| 868 |
-
"traceback": [
|
| 869 |
-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 870 |
-
"\u001b[0;31mNotImplementedError\u001b[0m Traceback (most recent call last)",
|
| 871 |
-
"\u001b[0;32m/tmp/ipython-input-422719767.py\u001b[0m in \u001b[0;36m<cell line: 0>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0munsloth\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mFastLanguageModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;31m# max_seq_length = 2048 # Choose any! We auto support RoPE Scaling internally!\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mmax_seq_length\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1024\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mdtype\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;31m# None for auto detection. Float16 for Tesla T4, V100, Bfloat16 for Ampere+\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 872 |
-
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/unsloth/__init__.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 78\u001b[0m \u001b[0;31m# except:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 79\u001b[0m \u001b[0;31m# raise ImportError(\"Unsloth: Please update unsloth_zoo via `pip install --upgrade --no-cache-dir --no-deps unsloth_zoo`\")\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 80\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0munsloth_zoo\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 81\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mPackageNotFoundError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 82\u001b[0m raise ImportError(\n",
|
| 873 |
-
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/unsloth_zoo/__init__.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 134\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 135\u001b[0m \u001b[0;31m# Get device types and other variables\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 136\u001b[0;31m from .device_type import (\n\u001b[0m\u001b[1;32m 137\u001b[0m \u001b[0mis_hip\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 138\u001b[0m \u001b[0mget_device_type\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 874 |
-
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/unsloth_zoo/device_type.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 54\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mNotImplementedError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Unsloth currently only works on NVIDIA, AMD and Intel GPUs.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[0;32mpass\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 56\u001b[0;31m \u001b[0mDEVICE_TYPE\u001b[0m \u001b[0;34m:\u001b[0m \u001b[0mstr\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mget_device_type\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 57\u001b[0m \u001b[0;31m# HIP fails for autocast and other torch functions. Use CUDA instead\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 58\u001b[0m \u001b[0mDEVICE_TYPE_TORCH\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mDEVICE_TYPE\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 875 |
-
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/unsloth_zoo/device_type.py\u001b[0m in \u001b[0;36mget_device_type\u001b[0;34m()\u001b[0m\n\u001b[1;32m 44\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mhasattr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtorch\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"accelerator\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 45\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maccelerator\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mis_available\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 46\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mNotImplementedError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Unsloth cannot find any torch accelerator? You need a GPU.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 47\u001b[0m \u001b[0maccelerator\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maccelerator\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcurrent_accelerator\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 48\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0maccelerator\u001b[0m \u001b[0;32min\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;34m\"cuda\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"xpu\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"hip\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 876 |
-
"\u001b[0;31mNotImplementedError\u001b[0m: Unsloth cannot find any torch accelerator? You need a GPU."
|
| 877 |
-
]
|
| 878 |
-
}
|
| 879 |
-
]
|
| 880 |
},
|
| 881 |
{
|
| 882 |
"cell_type": "code",
|
|
|
|
| 15 |
"language_info": {
|
| 16 |
"name": "python"
|
| 17 |
},
|
| 18 |
+
"accelerator": "TPU"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
},
|
| 20 |
"cells": [
|
| 21 |
{
|
|
|
|
| 45 |
"print(\"CPU used:\", psutil.virtual_memory().used/1e9, \"GB\")\n"
|
| 46 |
],
|
| 47 |
"metadata": {
|
|
|
|
|
|
|
|
|
|
| 48 |
"collapsed": true,
|
| 49 |
+
"id": "7sw-OYaKLIb5"
|
|
|
|
| 50 |
},
|
| 51 |
+
"execution_count": null,
|
| 52 |
+
"outputs": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"cell_type": "code",
|
|
|
|
| 61 |
"metadata": {
|
| 62 |
"id": "t3Gzr3z7LPw3"
|
| 63 |
},
|
| 64 |
+
"execution_count": null,
|
| 65 |
"outputs": []
|
| 66 |
},
|
| 67 |
{
|
| 68 |
"cell_type": "code",
|
| 69 |
+
"execution_count": null,
|
| 70 |
"metadata": {
|
| 71 |
"id": "TUwzrKYWu1V1"
|
| 72 |
},
|
|
|
|
| 86 |
"notebook_login()"
|
| 87 |
],
|
| 88 |
"metadata": {
|
| 89 |
+
"id": "mkSDOk9Ipa3l"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
},
|
| 91 |
+
"execution_count": null,
|
| 92 |
+
"outputs": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
},
|
| 94 |
{
|
| 95 |
"cell_type": "code",
|
|
|
|
| 105 |
")"
|
| 106 |
],
|
| 107 |
"metadata": {
|
| 108 |
+
"id": "59UAr7pNsS5P"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
},
|
| 110 |
+
"execution_count": null,
|
| 111 |
+
"outputs": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
},
|
| 113 |
{
|
| 114 |
"cell_type": "markdown",
|
|
|
|
| 159 |
")"
|
| 160 |
],
|
| 161 |
"metadata": {
|
| 162 |
+
"id": "QDTe7QyavVdK"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
},
|
| 164 |
+
"execution_count": null,
|
| 165 |
+
"outputs": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
},
|
| 167 |
{
|
| 168 |
"cell_type": "code",
|