Delete Math_Add_Sub_Mul_Div.ipynb
Browse files- Math_Add_Sub_Mul_Div.ipynb +0 -796
Math_Add_Sub_Mul_Div.ipynb
DELETED
|
@@ -1,796 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"nbformat": 4,
|
| 3 |
-
"nbformat_minor": 0,
|
| 4 |
-
"metadata": {
|
| 5 |
-
"colab": {
|
| 6 |
-
"provenance": []
|
| 7 |
-
},
|
| 8 |
-
"kernelspec": {
|
| 9 |
-
"name": "python3",
|
| 10 |
-
"display_name": "Python 3"
|
| 11 |
-
},
|
| 12 |
-
"language_info": {
|
| 13 |
-
"name": "python"
|
| 14 |
-
},
|
| 15 |
-
"widgets": {
|
| 16 |
-
"application/vnd.jupyter.widget-state+json": {
|
| 17 |
-
"db1b009654884679b423b3f2957e0026": {
|
| 18 |
-
"model_module": "@jupyter-widgets/controls",
|
| 19 |
-
"model_name": "HBoxModel",
|
| 20 |
-
"model_module_version": "1.5.0",
|
| 21 |
-
"state": {
|
| 22 |
-
"_dom_classes": [],
|
| 23 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 24 |
-
"_model_module_version": "1.5.0",
|
| 25 |
-
"_model_name": "HBoxModel",
|
| 26 |
-
"_view_count": null,
|
| 27 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 28 |
-
"_view_module_version": "1.5.0",
|
| 29 |
-
"_view_name": "HBoxView",
|
| 30 |
-
"box_style": "",
|
| 31 |
-
"children": [
|
| 32 |
-
"IPY_MODEL_30ff234646864b6bacca542c2f5dc147",
|
| 33 |
-
"IPY_MODEL_4d53e007798745eb9c3eef9894930e0e",
|
| 34 |
-
"IPY_MODEL_a2260d3710504d2cb84c3f7a31375d30"
|
| 35 |
-
],
|
| 36 |
-
"layout": "IPY_MODEL_101177b8e08c4515af26396ce934b3cd"
|
| 37 |
-
}
|
| 38 |
-
},
|
| 39 |
-
"30ff234646864b6bacca542c2f5dc147": {
|
| 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_35f5d90507ca4b62a9e6eff1d7671a8f",
|
| 55 |
-
"placeholder": "",
|
| 56 |
-
"style": "IPY_MODEL_6531fba09cd04fafb6a60d6bf8da89ca",
|
| 57 |
-
"value": "math_add_sub_mul_div_model.safetensors: 100%"
|
| 58 |
-
}
|
| 59 |
-
},
|
| 60 |
-
"4d53e007798745eb9c3eef9894930e0e": {
|
| 61 |
-
"model_module": "@jupyter-widgets/controls",
|
| 62 |
-
"model_name": "FloatProgressModel",
|
| 63 |
-
"model_module_version": "1.5.0",
|
| 64 |
-
"state": {
|
| 65 |
-
"_dom_classes": [],
|
| 66 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 67 |
-
"_model_module_version": "1.5.0",
|
| 68 |
-
"_model_name": "FloatProgressModel",
|
| 69 |
-
"_view_count": null,
|
| 70 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 71 |
-
"_view_module_version": "1.5.0",
|
| 72 |
-
"_view_name": "ProgressView",
|
| 73 |
-
"bar_style": "success",
|
| 74 |
-
"description": "",
|
| 75 |
-
"description_tooltip": null,
|
| 76 |
-
"layout": "IPY_MODEL_350bd326bc01450c95311521650b1250",
|
| 77 |
-
"max": 18256,
|
| 78 |
-
"min": 0,
|
| 79 |
-
"orientation": "horizontal",
|
| 80 |
-
"style": "IPY_MODEL_1daf9c25d50c430a90d50807ae51f02c",
|
| 81 |
-
"value": 18256
|
| 82 |
-
}
|
| 83 |
-
},
|
| 84 |
-
"a2260d3710504d2cb84c3f7a31375d30": {
|
| 85 |
-
"model_module": "@jupyter-widgets/controls",
|
| 86 |
-
"model_name": "HTMLModel",
|
| 87 |
-
"model_module_version": "1.5.0",
|
| 88 |
-
"state": {
|
| 89 |
-
"_dom_classes": [],
|
| 90 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 91 |
-
"_model_module_version": "1.5.0",
|
| 92 |
-
"_model_name": "HTMLModel",
|
| 93 |
-
"_view_count": null,
|
| 94 |
-
"_view_module": "@jupyter-widgets/controls",
|
| 95 |
-
"_view_module_version": "1.5.0",
|
| 96 |
-
"_view_name": "HTMLView",
|
| 97 |
-
"description": "",
|
| 98 |
-
"description_tooltip": null,
|
| 99 |
-
"layout": "IPY_MODEL_f92cf32c524d46ad9af9aaf3c7f3333f",
|
| 100 |
-
"placeholder": "",
|
| 101 |
-
"style": "IPY_MODEL_a4a84ca7f8194670bc377cd2547c2656",
|
| 102 |
-
"value": " 18.3k/18.3k [00:00<00:00, 75.3kB/s]"
|
| 103 |
-
}
|
| 104 |
-
},
|
| 105 |
-
"101177b8e08c4515af26396ce934b3cd": {
|
| 106 |
-
"model_module": "@jupyter-widgets/base",
|
| 107 |
-
"model_name": "LayoutModel",
|
| 108 |
-
"model_module_version": "1.2.0",
|
| 109 |
-
"state": {
|
| 110 |
-
"_model_module": "@jupyter-widgets/base",
|
| 111 |
-
"_model_module_version": "1.2.0",
|
| 112 |
-
"_model_name": "LayoutModel",
|
| 113 |
-
"_view_count": null,
|
| 114 |
-
"_view_module": "@jupyter-widgets/base",
|
| 115 |
-
"_view_module_version": "1.2.0",
|
| 116 |
-
"_view_name": "LayoutView",
|
| 117 |
-
"align_content": null,
|
| 118 |
-
"align_items": null,
|
| 119 |
-
"align_self": null,
|
| 120 |
-
"border": null,
|
| 121 |
-
"bottom": null,
|
| 122 |
-
"display": null,
|
| 123 |
-
"flex": null,
|
| 124 |
-
"flex_flow": null,
|
| 125 |
-
"grid_area": null,
|
| 126 |
-
"grid_auto_columns": null,
|
| 127 |
-
"grid_auto_flow": null,
|
| 128 |
-
"grid_auto_rows": null,
|
| 129 |
-
"grid_column": null,
|
| 130 |
-
"grid_gap": null,
|
| 131 |
-
"grid_row": null,
|
| 132 |
-
"grid_template_areas": null,
|
| 133 |
-
"grid_template_columns": null,
|
| 134 |
-
"grid_template_rows": null,
|
| 135 |
-
"height": null,
|
| 136 |
-
"justify_content": null,
|
| 137 |
-
"justify_items": null,
|
| 138 |
-
"left": null,
|
| 139 |
-
"margin": null,
|
| 140 |
-
"max_height": null,
|
| 141 |
-
"max_width": null,
|
| 142 |
-
"min_height": null,
|
| 143 |
-
"min_width": null,
|
| 144 |
-
"object_fit": null,
|
| 145 |
-
"object_position": null,
|
| 146 |
-
"order": null,
|
| 147 |
-
"overflow": null,
|
| 148 |
-
"overflow_x": null,
|
| 149 |
-
"overflow_y": null,
|
| 150 |
-
"padding": null,
|
| 151 |
-
"right": null,
|
| 152 |
-
"top": null,
|
| 153 |
-
"visibility": null,
|
| 154 |
-
"width": null
|
| 155 |
-
}
|
| 156 |
-
},
|
| 157 |
-
"35f5d90507ca4b62a9e6eff1d7671a8f": {
|
| 158 |
-
"model_module": "@jupyter-widgets/base",
|
| 159 |
-
"model_name": "LayoutModel",
|
| 160 |
-
"model_module_version": "1.2.0",
|
| 161 |
-
"state": {
|
| 162 |
-
"_model_module": "@jupyter-widgets/base",
|
| 163 |
-
"_model_module_version": "1.2.0",
|
| 164 |
-
"_model_name": "LayoutModel",
|
| 165 |
-
"_view_count": null,
|
| 166 |
-
"_view_module": "@jupyter-widgets/base",
|
| 167 |
-
"_view_module_version": "1.2.0",
|
| 168 |
-
"_view_name": "LayoutView",
|
| 169 |
-
"align_content": null,
|
| 170 |
-
"align_items": null,
|
| 171 |
-
"align_self": null,
|
| 172 |
-
"border": null,
|
| 173 |
-
"bottom": null,
|
| 174 |
-
"display": null,
|
| 175 |
-
"flex": null,
|
| 176 |
-
"flex_flow": null,
|
| 177 |
-
"grid_area": null,
|
| 178 |
-
"grid_auto_columns": null,
|
| 179 |
-
"grid_auto_flow": null,
|
| 180 |
-
"grid_auto_rows": null,
|
| 181 |
-
"grid_column": null,
|
| 182 |
-
"grid_gap": null,
|
| 183 |
-
"grid_row": null,
|
| 184 |
-
"grid_template_areas": null,
|
| 185 |
-
"grid_template_columns": null,
|
| 186 |
-
"grid_template_rows": null,
|
| 187 |
-
"height": null,
|
| 188 |
-
"justify_content": null,
|
| 189 |
-
"justify_items": null,
|
| 190 |
-
"left": null,
|
| 191 |
-
"margin": null,
|
| 192 |
-
"max_height": null,
|
| 193 |
-
"max_width": null,
|
| 194 |
-
"min_height": null,
|
| 195 |
-
"min_width": null,
|
| 196 |
-
"object_fit": null,
|
| 197 |
-
"object_position": null,
|
| 198 |
-
"order": null,
|
| 199 |
-
"overflow": null,
|
| 200 |
-
"overflow_x": null,
|
| 201 |
-
"overflow_y": null,
|
| 202 |
-
"padding": null,
|
| 203 |
-
"right": null,
|
| 204 |
-
"top": null,
|
| 205 |
-
"visibility": null,
|
| 206 |
-
"width": null
|
| 207 |
-
}
|
| 208 |
-
},
|
| 209 |
-
"6531fba09cd04fafb6a60d6bf8da89ca": {
|
| 210 |
-
"model_module": "@jupyter-widgets/controls",
|
| 211 |
-
"model_name": "DescriptionStyleModel",
|
| 212 |
-
"model_module_version": "1.5.0",
|
| 213 |
-
"state": {
|
| 214 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 215 |
-
"_model_module_version": "1.5.0",
|
| 216 |
-
"_model_name": "DescriptionStyleModel",
|
| 217 |
-
"_view_count": null,
|
| 218 |
-
"_view_module": "@jupyter-widgets/base",
|
| 219 |
-
"_view_module_version": "1.2.0",
|
| 220 |
-
"_view_name": "StyleView",
|
| 221 |
-
"description_width": ""
|
| 222 |
-
}
|
| 223 |
-
},
|
| 224 |
-
"350bd326bc01450c95311521650b1250": {
|
| 225 |
-
"model_module": "@jupyter-widgets/base",
|
| 226 |
-
"model_name": "LayoutModel",
|
| 227 |
-
"model_module_version": "1.2.0",
|
| 228 |
-
"state": {
|
| 229 |
-
"_model_module": "@jupyter-widgets/base",
|
| 230 |
-
"_model_module_version": "1.2.0",
|
| 231 |
-
"_model_name": "LayoutModel",
|
| 232 |
-
"_view_count": null,
|
| 233 |
-
"_view_module": "@jupyter-widgets/base",
|
| 234 |
-
"_view_module_version": "1.2.0",
|
| 235 |
-
"_view_name": "LayoutView",
|
| 236 |
-
"align_content": null,
|
| 237 |
-
"align_items": null,
|
| 238 |
-
"align_self": null,
|
| 239 |
-
"border": null,
|
| 240 |
-
"bottom": null,
|
| 241 |
-
"display": null,
|
| 242 |
-
"flex": null,
|
| 243 |
-
"flex_flow": null,
|
| 244 |
-
"grid_area": null,
|
| 245 |
-
"grid_auto_columns": null,
|
| 246 |
-
"grid_auto_flow": null,
|
| 247 |
-
"grid_auto_rows": null,
|
| 248 |
-
"grid_column": null,
|
| 249 |
-
"grid_gap": null,
|
| 250 |
-
"grid_row": null,
|
| 251 |
-
"grid_template_areas": null,
|
| 252 |
-
"grid_template_columns": null,
|
| 253 |
-
"grid_template_rows": null,
|
| 254 |
-
"height": null,
|
| 255 |
-
"justify_content": null,
|
| 256 |
-
"justify_items": null,
|
| 257 |
-
"left": null,
|
| 258 |
-
"margin": null,
|
| 259 |
-
"max_height": null,
|
| 260 |
-
"max_width": null,
|
| 261 |
-
"min_height": null,
|
| 262 |
-
"min_width": null,
|
| 263 |
-
"object_fit": null,
|
| 264 |
-
"object_position": null,
|
| 265 |
-
"order": null,
|
| 266 |
-
"overflow": null,
|
| 267 |
-
"overflow_x": null,
|
| 268 |
-
"overflow_y": null,
|
| 269 |
-
"padding": null,
|
| 270 |
-
"right": null,
|
| 271 |
-
"top": null,
|
| 272 |
-
"visibility": null,
|
| 273 |
-
"width": null
|
| 274 |
-
}
|
| 275 |
-
},
|
| 276 |
-
"1daf9c25d50c430a90d50807ae51f02c": {
|
| 277 |
-
"model_module": "@jupyter-widgets/controls",
|
| 278 |
-
"model_name": "ProgressStyleModel",
|
| 279 |
-
"model_module_version": "1.5.0",
|
| 280 |
-
"state": {
|
| 281 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 282 |
-
"_model_module_version": "1.5.0",
|
| 283 |
-
"_model_name": "ProgressStyleModel",
|
| 284 |
-
"_view_count": null,
|
| 285 |
-
"_view_module": "@jupyter-widgets/base",
|
| 286 |
-
"_view_module_version": "1.2.0",
|
| 287 |
-
"_view_name": "StyleView",
|
| 288 |
-
"bar_color": null,
|
| 289 |
-
"description_width": ""
|
| 290 |
-
}
|
| 291 |
-
},
|
| 292 |
-
"f92cf32c524d46ad9af9aaf3c7f3333f": {
|
| 293 |
-
"model_module": "@jupyter-widgets/base",
|
| 294 |
-
"model_name": "LayoutModel",
|
| 295 |
-
"model_module_version": "1.2.0",
|
| 296 |
-
"state": {
|
| 297 |
-
"_model_module": "@jupyter-widgets/base",
|
| 298 |
-
"_model_module_version": "1.2.0",
|
| 299 |
-
"_model_name": "LayoutModel",
|
| 300 |
-
"_view_count": null,
|
| 301 |
-
"_view_module": "@jupyter-widgets/base",
|
| 302 |
-
"_view_module_version": "1.2.0",
|
| 303 |
-
"_view_name": "LayoutView",
|
| 304 |
-
"align_content": null,
|
| 305 |
-
"align_items": null,
|
| 306 |
-
"align_self": null,
|
| 307 |
-
"border": null,
|
| 308 |
-
"bottom": null,
|
| 309 |
-
"display": null,
|
| 310 |
-
"flex": null,
|
| 311 |
-
"flex_flow": null,
|
| 312 |
-
"grid_area": null,
|
| 313 |
-
"grid_auto_columns": null,
|
| 314 |
-
"grid_auto_flow": null,
|
| 315 |
-
"grid_auto_rows": null,
|
| 316 |
-
"grid_column": null,
|
| 317 |
-
"grid_gap": null,
|
| 318 |
-
"grid_row": null,
|
| 319 |
-
"grid_template_areas": null,
|
| 320 |
-
"grid_template_columns": null,
|
| 321 |
-
"grid_template_rows": null,
|
| 322 |
-
"height": null,
|
| 323 |
-
"justify_content": null,
|
| 324 |
-
"justify_items": null,
|
| 325 |
-
"left": null,
|
| 326 |
-
"margin": null,
|
| 327 |
-
"max_height": null,
|
| 328 |
-
"max_width": null,
|
| 329 |
-
"min_height": null,
|
| 330 |
-
"min_width": null,
|
| 331 |
-
"object_fit": null,
|
| 332 |
-
"object_position": null,
|
| 333 |
-
"order": null,
|
| 334 |
-
"overflow": null,
|
| 335 |
-
"overflow_x": null,
|
| 336 |
-
"overflow_y": null,
|
| 337 |
-
"padding": null,
|
| 338 |
-
"right": null,
|
| 339 |
-
"top": null,
|
| 340 |
-
"visibility": null,
|
| 341 |
-
"width": null
|
| 342 |
-
}
|
| 343 |
-
},
|
| 344 |
-
"a4a84ca7f8194670bc377cd2547c2656": {
|
| 345 |
-
"model_module": "@jupyter-widgets/controls",
|
| 346 |
-
"model_name": "DescriptionStyleModel",
|
| 347 |
-
"model_module_version": "1.5.0",
|
| 348 |
-
"state": {
|
| 349 |
-
"_model_module": "@jupyter-widgets/controls",
|
| 350 |
-
"_model_module_version": "1.5.0",
|
| 351 |
-
"_model_name": "DescriptionStyleModel",
|
| 352 |
-
"_view_count": null,
|
| 353 |
-
"_view_module": "@jupyter-widgets/base",
|
| 354 |
-
"_view_module_version": "1.2.0",
|
| 355 |
-
"_view_name": "StyleView",
|
| 356 |
-
"description_width": ""
|
| 357 |
-
}
|
| 358 |
-
}
|
| 359 |
-
}
|
| 360 |
-
}
|
| 361 |
-
},
|
| 362 |
-
"cells": [
|
| 363 |
-
{
|
| 364 |
-
"cell_type": "code",
|
| 365 |
-
"execution_count": 55,
|
| 366 |
-
"metadata": {
|
| 367 |
-
"id": "SHsGymlK6Q5d"
|
| 368 |
-
},
|
| 369 |
-
"outputs": [],
|
| 370 |
-
"source": [
|
| 371 |
-
"!pip install torch safetensors huggingface_hub"
|
| 372 |
-
]
|
| 373 |
-
},
|
| 374 |
-
{
|
| 375 |
-
"cell_type": "code",
|
| 376 |
-
"source": [
|
| 377 |
-
"import torch\n",
|
| 378 |
-
"import torch.nn as nn\n",
|
| 379 |
-
"import torch.optim as optim\n",
|
| 380 |
-
"\n",
|
| 381 |
-
"from safetensors.torch import save_file"
|
| 382 |
-
],
|
| 383 |
-
"metadata": {
|
| 384 |
-
"id": "-hrp9a078H5x"
|
| 385 |
-
},
|
| 386 |
-
"execution_count": 56,
|
| 387 |
-
"outputs": []
|
| 388 |
-
},
|
| 389 |
-
{
|
| 390 |
-
"cell_type": "code",
|
| 391 |
-
"source": [
|
| 392 |
-
"import random\n",
|
| 393 |
-
"\n",
|
| 394 |
-
"X = []\n",
|
| 395 |
-
"Y = []\n",
|
| 396 |
-
"\n",
|
| 397 |
-
"for _ in range(5000):\n",
|
| 398 |
-
"\n",
|
| 399 |
-
" a = random.uniform(1, 10)\n",
|
| 400 |
-
" b = random.uniform(1, 10)\n",
|
| 401 |
-
"\n",
|
| 402 |
-
" inputs = [a, b]\n",
|
| 403 |
-
"\n",
|
| 404 |
-
" outputs = [\n",
|
| 405 |
-
" a + b,\n",
|
| 406 |
-
" a - b,\n",
|
| 407 |
-
" a * b,\n",
|
| 408 |
-
" a / b\n",
|
| 409 |
-
" ]\n",
|
| 410 |
-
"\n",
|
| 411 |
-
" X.append(inputs)\n",
|
| 412 |
-
" Y.append(outputs)\n",
|
| 413 |
-
"\n",
|
| 414 |
-
"X = torch.tensor(X, dtype=torch.float32)\n",
|
| 415 |
-
"Y = torch.tensor(Y, dtype=torch.float32)\n",
|
| 416 |
-
"\n",
|
| 417 |
-
"print(X.shape)\n",
|
| 418 |
-
"print(Y.shape)"
|
| 419 |
-
],
|
| 420 |
-
"metadata": {
|
| 421 |
-
"id": "WYAJTDJI8Kqm"
|
| 422 |
-
},
|
| 423 |
-
"execution_count": 57,
|
| 424 |
-
"outputs": []
|
| 425 |
-
},
|
| 426 |
-
{
|
| 427 |
-
"cell_type": "code",
|
| 428 |
-
"source": [
|
| 429 |
-
"class MathModel(nn.Module):\n",
|
| 430 |
-
"\n",
|
| 431 |
-
" def __init__(self):\n",
|
| 432 |
-
" super().__init__()\n",
|
| 433 |
-
"\n",
|
| 434 |
-
" self.net = nn.Sequential(\n",
|
| 435 |
-
"\n",
|
| 436 |
-
" nn.Linear(2, 32),\n",
|
| 437 |
-
" nn.ReLU(),\n",
|
| 438 |
-
"\n",
|
| 439 |
-
" nn.Linear(32, 64),\n",
|
| 440 |
-
" nn.ReLU(),\n",
|
| 441 |
-
"\n",
|
| 442 |
-
" nn.Linear(64, 32),\n",
|
| 443 |
-
" nn.ReLU(),\n",
|
| 444 |
-
"\n",
|
| 445 |
-
" nn.Linear(32, 4)\n",
|
| 446 |
-
" )\n",
|
| 447 |
-
"\n",
|
| 448 |
-
" def forward(self, x):\n",
|
| 449 |
-
" return self.net(x)"
|
| 450 |
-
],
|
| 451 |
-
"metadata": {
|
| 452 |
-
"id": "a9T_97D_8NAc"
|
| 453 |
-
},
|
| 454 |
-
"execution_count": 58,
|
| 455 |
-
"outputs": []
|
| 456 |
-
},
|
| 457 |
-
{
|
| 458 |
-
"cell_type": "code",
|
| 459 |
-
"source": [
|
| 460 |
-
"model = MathModel()\n",
|
| 461 |
-
"\n",
|
| 462 |
-
"print(model)"
|
| 463 |
-
],
|
| 464 |
-
"metadata": {
|
| 465 |
-
"colab": {
|
| 466 |
-
"base_uri": "https://localhost:8080/"
|
| 467 |
-
},
|
| 468 |
-
"id": "1jxqfO6v8PGD",
|
| 469 |
-
"outputId": "26c43cae-f6ee-4125-833a-ec2006807836"
|
| 470 |
-
},
|
| 471 |
-
"execution_count": 59,
|
| 472 |
-
"outputs": [
|
| 473 |
-
{
|
| 474 |
-
"output_type": "stream",
|
| 475 |
-
"name": "stdout",
|
| 476 |
-
"text": [
|
| 477 |
-
"MathModel(\n",
|
| 478 |
-
" (net): Sequential(\n",
|
| 479 |
-
" (0): Linear(in_features=2, out_features=32, bias=True)\n",
|
| 480 |
-
" (1): ReLU()\n",
|
| 481 |
-
" (2): Linear(in_features=32, out_features=64, bias=True)\n",
|
| 482 |
-
" (3): ReLU()\n",
|
| 483 |
-
" (4): Linear(in_features=64, out_features=32, bias=True)\n",
|
| 484 |
-
" (5): ReLU()\n",
|
| 485 |
-
" (6): Linear(in_features=32, out_features=4, bias=True)\n",
|
| 486 |
-
" )\n",
|
| 487 |
-
")\n"
|
| 488 |
-
]
|
| 489 |
-
}
|
| 490 |
-
]
|
| 491 |
-
},
|
| 492 |
-
{
|
| 493 |
-
"cell_type": "code",
|
| 494 |
-
"source": [
|
| 495 |
-
"criterion = nn.MSELoss()\n",
|
| 496 |
-
"\n",
|
| 497 |
-
"optimizer = optim.Adam(\n",
|
| 498 |
-
" model.parameters(),\n",
|
| 499 |
-
" lr=0.001\n",
|
| 500 |
-
")"
|
| 501 |
-
],
|
| 502 |
-
"metadata": {
|
| 503 |
-
"id": "BhcNFeMZ8Qti"
|
| 504 |
-
},
|
| 505 |
-
"execution_count": 60,
|
| 506 |
-
"outputs": []
|
| 507 |
-
},
|
| 508 |
-
{
|
| 509 |
-
"cell_type": "code",
|
| 510 |
-
"source": [
|
| 511 |
-
"epochs = 500\n",
|
| 512 |
-
"\n",
|
| 513 |
-
"for epoch in range(epochs):\n",
|
| 514 |
-
"\n",
|
| 515 |
-
" predictions = model(X)\n",
|
| 516 |
-
"\n",
|
| 517 |
-
" loss = criterion(predictions, Y)\n",
|
| 518 |
-
"\n",
|
| 519 |
-
" optimizer.zero_grad()\n",
|
| 520 |
-
"\n",
|
| 521 |
-
" loss.backward()\n",
|
| 522 |
-
"\n",
|
| 523 |
-
" optimizer.step()\n",
|
| 524 |
-
"\n",
|
| 525 |
-
" if epoch % 50 == 0:\n",
|
| 526 |
-
" print(f\"Epoch {epoch} Loss: {loss.item():.4f}\")"
|
| 527 |
-
],
|
| 528 |
-
"metadata": {
|
| 529 |
-
"id": "ZdNlDDp48lVE"
|
| 530 |
-
},
|
| 531 |
-
"execution_count": 61,
|
| 532 |
-
"outputs": []
|
| 533 |
-
},
|
| 534 |
-
{
|
| 535 |
-
"cell_type": "code",
|
| 536 |
-
"source": [
|
| 537 |
-
"test_input = torch.tensor([[6.0, 2.0]])\n",
|
| 538 |
-
"\n",
|
| 539 |
-
"prediction = model(test_input)\n",
|
| 540 |
-
"\n",
|
| 541 |
-
"print(prediction)"
|
| 542 |
-
],
|
| 543 |
-
"metadata": {
|
| 544 |
-
"id": "bwfPd2e_8nkb"
|
| 545 |
-
},
|
| 546 |
-
"execution_count": 62,
|
| 547 |
-
"outputs": []
|
| 548 |
-
},
|
| 549 |
-
{
|
| 550 |
-
"cell_type": "code",
|
| 551 |
-
"source": [
|
| 552 |
-
"a = 6\n",
|
| 553 |
-
"b = 2\n",
|
| 554 |
-
"\n",
|
| 555 |
-
"test_input = torch.tensor([[a, b]], dtype=torch.float32)\n",
|
| 556 |
-
"\n",
|
| 557 |
-
"prediction = model(test_input).detach().numpy()[0]\n",
|
| 558 |
-
"\n",
|
| 559 |
-
"print(\"INPUT\")\n",
|
| 560 |
-
"print(a, b)\n",
|
| 561 |
-
"\n",
|
| 562 |
-
"print(\"\\nPREDICTIONS\")\n",
|
| 563 |
-
"\n",
|
| 564 |
-
"print(\"ADD :\", prediction[0])\n",
|
| 565 |
-
"print(\"SUB :\", prediction[1])\n",
|
| 566 |
-
"print(\"MUL :\", prediction[2])\n",
|
| 567 |
-
"print(\"DIV :\", prediction[3])"
|
| 568 |
-
],
|
| 569 |
-
"metadata": {
|
| 570 |
-
"id": "2yRAy_ek8peN"
|
| 571 |
-
},
|
| 572 |
-
"execution_count": 63,
|
| 573 |
-
"outputs": []
|
| 574 |
-
},
|
| 575 |
-
{
|
| 576 |
-
"cell_type": "code",
|
| 577 |
-
"source": [
|
| 578 |
-
"save_file(\n",
|
| 579 |
-
" model.state_dict(),\n",
|
| 580 |
-
" \"math_add_sub_mul_div_model.safetensors\"\n",
|
| 581 |
-
")\n",
|
| 582 |
-
"\n",
|
| 583 |
-
"print(\"Saved!\")"
|
| 584 |
-
],
|
| 585 |
-
"metadata": {
|
| 586 |
-
"id": "FcPuskx58rkF"
|
| 587 |
-
},
|
| 588 |
-
"execution_count": 64,
|
| 589 |
-
"outputs": []
|
| 590 |
-
},
|
| 591 |
-
{
|
| 592 |
-
"cell_type": "code",
|
| 593 |
-
"source": [
|
| 594 |
-
"import os\n",
|
| 595 |
-
"\n",
|
| 596 |
-
"print(os.listdir())"
|
| 597 |
-
],
|
| 598 |
-
"metadata": {
|
| 599 |
-
"colab": {
|
| 600 |
-
"base_uri": "https://localhost:8080/"
|
| 601 |
-
},
|
| 602 |
-
"id": "8vhzfzAe8tKW",
|
| 603 |
-
"outputId": "3855f92f-5f56-47e5-e7e9-8ad5e93b16b8"
|
| 604 |
-
},
|
| 605 |
-
"execution_count": 65,
|
| 606 |
-
"outputs": [
|
| 607 |
-
{
|
| 608 |
-
"output_type": "stream",
|
| 609 |
-
"name": "stdout",
|
| 610 |
-
"text": [
|
| 611 |
-
"['.config', 'README.md', 'math_add_sub_mul_div_model.safetensors', 'sample_data']\n"
|
| 612 |
-
]
|
| 613 |
-
}
|
| 614 |
-
]
|
| 615 |
-
},
|
| 616 |
-
{
|
| 617 |
-
"cell_type": "code",
|
| 618 |
-
"source": [
|
| 619 |
-
"from huggingface_hub import login\n",
|
| 620 |
-
"\n",
|
| 621 |
-
"login()"
|
| 622 |
-
],
|
| 623 |
-
"metadata": {
|
| 624 |
-
"id": "U5qADMmz8u65"
|
| 625 |
-
},
|
| 626 |
-
"execution_count": 66,
|
| 627 |
-
"outputs": []
|
| 628 |
-
},
|
| 629 |
-
{
|
| 630 |
-
"cell_type": "code",
|
| 631 |
-
"source": [
|
| 632 |
-
"from huggingface_hub import HfApi\n",
|
| 633 |
-
"\n",
|
| 634 |
-
"api = HfApi()\n",
|
| 635 |
-
"\n",
|
| 636 |
-
"api.upload_file(\n",
|
| 637 |
-
" path_or_fileobj=\"math_add_sub_mul_div_model.safetensors\",\n",
|
| 638 |
-
" path_in_repo=\"math_add_sub_mul_div_model.safetensors\",\n",
|
| 639 |
-
" repo_id=\"harishforaiandml/math-add-sub-mul-div-model\",\n",
|
| 640 |
-
" repo_type=\"model\",\n",
|
| 641 |
-
")\n",
|
| 642 |
-
"\n",
|
| 643 |
-
"print(\"Uploaded!\")"
|
| 644 |
-
],
|
| 645 |
-
"metadata": {
|
| 646 |
-
"id": "5o1XmEOX8ycJ"
|
| 647 |
-
},
|
| 648 |
-
"execution_count": 67,
|
| 649 |
-
"outputs": []
|
| 650 |
-
},
|
| 651 |
-
{
|
| 652 |
-
"cell_type": "code",
|
| 653 |
-
"source": [
|
| 654 |
-
"readme = \"\"\"\n",
|
| 655 |
-
"# Basic Math AI\n",
|
| 656 |
-
"\n",
|
| 657 |
-
"Tiny neural network trained to perform:\n",
|
| 658 |
-
"\n",
|
| 659 |
-
"- Addition\n",
|
| 660 |
-
"- Subtraction\n",
|
| 661 |
-
"- Multiplication\n",
|
| 662 |
-
"- Division\n",
|
| 663 |
-
"\n",
|
| 664 |
-
"Inputs:\n",
|
| 665 |
-
"[a, b]\n",
|
| 666 |
-
"\n",
|
| 667 |
-
"Outputs:\n",
|
| 668 |
-
"[a+b, a-b, a*b, a/b]\n",
|
| 669 |
-
"\n",
|
| 670 |
-
"Saved using SafeTensors.\n",
|
| 671 |
-
"\"\"\"\n",
|
| 672 |
-
"\n",
|
| 673 |
-
"with open(\"README.md\", \"w\") as f:\n",
|
| 674 |
-
" f.write(readme)"
|
| 675 |
-
],
|
| 676 |
-
"metadata": {
|
| 677 |
-
"id": "SjlZCtl69H8R"
|
| 678 |
-
},
|
| 679 |
-
"execution_count": 68,
|
| 680 |
-
"outputs": []
|
| 681 |
-
},
|
| 682 |
-
{
|
| 683 |
-
"cell_type": "code",
|
| 684 |
-
"source": [
|
| 685 |
-
"api.upload_file(\n",
|
| 686 |
-
" path_or_fileobj=\"README.md\",\n",
|
| 687 |
-
" path_in_repo=\"README.md\",\n",
|
| 688 |
-
" repo_id=\"harishforaiandml/math-add-sub-mul-div-model\",\n",
|
| 689 |
-
" repo_type=\"model\",\n",
|
| 690 |
-
")\n",
|
| 691 |
-
"\n",
|
| 692 |
-
"print(\"README uploaded!\")"
|
| 693 |
-
],
|
| 694 |
-
"metadata": {
|
| 695 |
-
"id": "N3ALvS4n9hKe"
|
| 696 |
-
},
|
| 697 |
-
"execution_count": 69,
|
| 698 |
-
"outputs": []
|
| 699 |
-
},
|
| 700 |
-
{
|
| 701 |
-
"cell_type": "code",
|
| 702 |
-
"source": [
|
| 703 |
-
"from huggingface_hub import hf_hub_download\n",
|
| 704 |
-
"from safetensors.torch import load_file"
|
| 705 |
-
],
|
| 706 |
-
"metadata": {
|
| 707 |
-
"id": "r5gb1XAO-7bh"
|
| 708 |
-
},
|
| 709 |
-
"execution_count": 70,
|
| 710 |
-
"outputs": []
|
| 711 |
-
},
|
| 712 |
-
{
|
| 713 |
-
"cell_type": "code",
|
| 714 |
-
"source": [
|
| 715 |
-
"def load_math_model():\n",
|
| 716 |
-
"\n",
|
| 717 |
-
" model_path = hf_hub_download(\n",
|
| 718 |
-
" repo_id=\"harishforaiandml/math-add-sub-mul-div-model\",\n",
|
| 719 |
-
" filename=\"math_add_sub_mul_div_model.safetensors\"\n",
|
| 720 |
-
" )\n",
|
| 721 |
-
"\n",
|
| 722 |
-
" state_dict = load_file(model_path)\n",
|
| 723 |
-
"\n",
|
| 724 |
-
" model = MathModel()\n",
|
| 725 |
-
"\n",
|
| 726 |
-
" model.load_state_dict(state_dict)\n",
|
| 727 |
-
"\n",
|
| 728 |
-
" model.eval()\n",
|
| 729 |
-
"\n",
|
| 730 |
-
" return model"
|
| 731 |
-
],
|
| 732 |
-
"metadata": {
|
| 733 |
-
"id": "JEnr8lUS-PVr"
|
| 734 |
-
},
|
| 735 |
-
"execution_count": 71,
|
| 736 |
-
"outputs": []
|
| 737 |
-
},
|
| 738 |
-
{
|
| 739 |
-
"cell_type": "code",
|
| 740 |
-
"source": [
|
| 741 |
-
"model = load_math_model()\n",
|
| 742 |
-
"\n",
|
| 743 |
-
"x = torch.tensor([[10.0, 5.0]])\n",
|
| 744 |
-
"\n",
|
| 745 |
-
"result = model(x)\n",
|
| 746 |
-
"\n",
|
| 747 |
-
"print(result)"
|
| 748 |
-
],
|
| 749 |
-
"metadata": {
|
| 750 |
-
"colab": {
|
| 751 |
-
"base_uri": "https://localhost:8080/",
|
| 752 |
-
"height": 67,
|
| 753 |
-
"referenced_widgets": [
|
| 754 |
-
"db1b009654884679b423b3f2957e0026",
|
| 755 |
-
"30ff234646864b6bacca542c2f5dc147",
|
| 756 |
-
"4d53e007798745eb9c3eef9894930e0e",
|
| 757 |
-
"a2260d3710504d2cb84c3f7a31375d30",
|
| 758 |
-
"101177b8e08c4515af26396ce934b3cd",
|
| 759 |
-
"35f5d90507ca4b62a9e6eff1d7671a8f",
|
| 760 |
-
"6531fba09cd04fafb6a60d6bf8da89ca",
|
| 761 |
-
"350bd326bc01450c95311521650b1250",
|
| 762 |
-
"1daf9c25d50c430a90d50807ae51f02c",
|
| 763 |
-
"f92cf32c524d46ad9af9aaf3c7f3333f",
|
| 764 |
-
"a4a84ca7f8194670bc377cd2547c2656"
|
| 765 |
-
]
|
| 766 |
-
},
|
| 767 |
-
"id": "lbVdBthn-RIv",
|
| 768 |
-
"outputId": "e7e00a00-7e40-40c2-ca44-8913adb70128"
|
| 769 |
-
},
|
| 770 |
-
"execution_count": 72,
|
| 771 |
-
"outputs": [
|
| 772 |
-
{
|
| 773 |
-
"output_type": "display_data",
|
| 774 |
-
"data": {
|
| 775 |
-
"text/plain": [
|
| 776 |
-
"math_add_sub_mul_div_model.safetensors: 0%| | 0.00/18.3k [00:00<?, ?B/s]"
|
| 777 |
-
],
|
| 778 |
-
"application/vnd.jupyter.widget-view+json": {
|
| 779 |
-
"version_major": 2,
|
| 780 |
-
"version_minor": 0,
|
| 781 |
-
"model_id": "db1b009654884679b423b3f2957e0026"
|
| 782 |
-
}
|
| 783 |
-
},
|
| 784 |
-
"metadata": {}
|
| 785 |
-
},
|
| 786 |
-
{
|
| 787 |
-
"output_type": "stream",
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