|
24 | 24 | " \n", |
25 | 25 | "\n", |
26 | 26 | "The following figure shows the overview of the solution.\n", |
| 27 | + "\n", |
27 | 28 | "" |
28 | 29 | ] |
29 | 30 | }, |
|
48 | 49 | { |
49 | 50 | "cell_type": "code", |
50 | 51 | "execution_count": null, |
51 | | - "metadata": {}, |
| 52 | + "metadata": { |
| 53 | + "execution": { |
| 54 | + "iopub.execute_input": "2025-10-15T17:56:50.196738Z", |
| 55 | + "iopub.status.busy": "2025-10-15T17:56:50.196483Z", |
| 56 | + "iopub.status.idle": "2025-10-15T17:56:58.331883Z", |
| 57 | + "shell.execute_reply": "2025-10-15T17:56:58.331192Z", |
| 58 | + "shell.execute_reply.started": "2025-10-15T17:56:50.196718Z" |
| 59 | + } |
| 60 | + }, |
52 | 61 | "outputs": [], |
53 | 62 | "source": [ |
54 | 63 | "%pip install -r ./scripts/requirements.txt --upgrade --quiet" |
|
57 | 66 | { |
58 | 67 | "cell_type": "code", |
59 | 68 | "execution_count": null, |
60 | | - "metadata": {}, |
| 69 | + "metadata": { |
| 70 | + "execution": { |
| 71 | + "iopub.execute_input": "2025-10-15T17:56:58.332985Z", |
| 72 | + "iopub.status.busy": "2025-10-15T17:56:58.332771Z", |
| 73 | + "iopub.status.idle": "2025-10-15T17:56:58.338882Z", |
| 74 | + "shell.execute_reply": "2025-10-15T17:56:58.338429Z", |
| 75 | + "shell.execute_reply.started": "2025-10-15T17:56:58.332962Z" |
| 76 | + } |
| 77 | + }, |
61 | 78 | "outputs": [], |
62 | 79 | "source": [ |
63 | 80 | "from IPython import get_ipython\n", |
|
76 | 93 | { |
77 | 94 | "cell_type": "code", |
78 | 95 | "execution_count": null, |
79 | | - "metadata": {}, |
| 96 | + "metadata": { |
| 97 | + "execution": { |
| 98 | + "iopub.execute_input": "2025-10-15T18:10:38.890122Z", |
| 99 | + "iopub.status.busy": "2025-10-15T18:10:38.889793Z", |
| 100 | + "iopub.status.idle": "2025-10-15T18:10:40.611213Z", |
| 101 | + "shell.execute_reply": "2025-10-15T18:10:40.610667Z", |
| 102 | + "shell.execute_reply.started": "2025-10-15T18:10:38.890099Z" |
| 103 | + } |
| 104 | + }, |
80 | 105 | "outputs": [], |
81 | 106 | "source": [ |
82 | 107 | "import os\n", |
|
108 | 133 | { |
109 | 134 | "cell_type": "code", |
110 | 135 | "execution_count": null, |
111 | | - "metadata": {}, |
| 136 | + "metadata": { |
| 137 | + "execution": { |
| 138 | + "iopub.execute_input": "2025-10-15T18:12:29.689442Z", |
| 139 | + "iopub.status.busy": "2025-10-15T18:12:29.689175Z", |
| 140 | + "iopub.status.idle": "2025-10-15T18:12:30.791433Z", |
| 141 | + "shell.execute_reply": "2025-10-15T18:12:30.790896Z", |
| 142 | + "shell.execute_reply.started": "2025-10-15T18:12:29.689422Z" |
| 143 | + } |
| 144 | + }, |
112 | 145 | "outputs": [], |
113 | 146 | "source": [ |
114 | 147 | "sagemaker_session = sagemaker.session.Session()\n", |
115 | 148 | "role = sagemaker.get_execution_role()\n", |
116 | 149 | "instance_type = \"ml.m5.xlarge\"\n", |
117 | | - "pipeline_name = \"AIM405-qwen3-finetune-pipeline\"\n", |
| 150 | + "pipeline_name = \"qwen3-finetune-pipeline\"\n", |
118 | 151 | "bucket_name = sagemaker_session.default_bucket()\n", |
119 | 152 | "default_prefix = sagemaker_session.default_bucket_prefix\n", |
120 | 153 | "if default_prefix:\n", |
|
152 | 185 | { |
153 | 186 | "cell_type": "code", |
154 | 187 | "execution_count": null, |
155 | | - "metadata": {}, |
| 188 | + "metadata": { |
| 189 | + "execution": { |
| 190 | + "iopub.execute_input": "2025-10-15T18:12:30.838220Z", |
| 191 | + "iopub.status.busy": "2025-10-15T18:12:30.837950Z", |
| 192 | + "iopub.status.idle": "2025-10-15T18:12:31.008197Z", |
| 193 | + "shell.execute_reply": "2025-10-15T18:12:31.007542Z", |
| 194 | + "shell.execute_reply.started": "2025-10-15T18:12:30.838200Z" |
| 195 | + } |
| 196 | + }, |
156 | 197 | "outputs": [], |
157 | 198 | "source": [ |
158 | 199 | "mlflow_tracking_server_arn = \"<REPLACE WITH YOUR ARN>\"\n", |
|
180 | 221 | { |
181 | 222 | "cell_type": "code", |
182 | 223 | "execution_count": null, |
183 | | - "metadata": {}, |
| 224 | + "metadata": { |
| 225 | + "execution": { |
| 226 | + "iopub.execute_input": "2025-10-15T18:12:32.608898Z", |
| 227 | + "iopub.status.busy": "2025-10-15T18:12:32.608642Z", |
| 228 | + "iopub.status.idle": "2025-10-15T18:12:32.612632Z", |
| 229 | + "shell.execute_reply": "2025-10-15T18:12:32.612142Z", |
| 230 | + "shell.execute_reply.started": "2025-10-15T18:12:32.608878Z" |
| 231 | + } |
| 232 | + }, |
184 | 233 | "outputs": [], |
185 | 234 | "source": [ |
186 | 235 | "%%writefile config.yaml\n", |
|
203 | 252 | { |
204 | 253 | "cell_type": "code", |
205 | 254 | "execution_count": null, |
206 | | - "metadata": {}, |
| 255 | + "metadata": { |
| 256 | + "execution": { |
| 257 | + "iopub.execute_input": "2025-10-15T18:12:33.245143Z", |
| 258 | + "iopub.status.busy": "2025-10-15T18:12:33.244889Z", |
| 259 | + "iopub.status.idle": "2025-10-15T18:12:33.247752Z", |
| 260 | + "shell.execute_reply": "2025-10-15T18:12:33.247285Z", |
| 261 | + "shell.execute_reply.started": "2025-10-15T18:12:33.245122Z" |
| 262 | + } |
| 263 | + }, |
207 | 264 | "outputs": [], |
208 | 265 | "source": [ |
209 | 266 | "# Set path to config file\n", |
|
221 | 278 | "cell_type": "code", |
222 | 279 | "execution_count": null, |
223 | 280 | "metadata": { |
| 281 | + "execution": { |
| 282 | + "iopub.execute_input": "2025-10-15T18:12:34.760569Z", |
| 283 | + "iopub.status.busy": "2025-10-15T18:12:34.760310Z", |
| 284 | + "iopub.status.idle": "2025-10-15T18:12:35.448363Z", |
| 285 | + "shell.execute_reply": "2025-10-15T18:12:35.447833Z", |
| 286 | + "shell.execute_reply.started": "2025-10-15T18:12:34.760549Z" |
| 287 | + }, |
224 | 288 | "scrolled": true |
225 | 289 | }, |
226 | 290 | "outputs": [], |
|
362 | 426 | { |
363 | 427 | "cell_type": "code", |
364 | 428 | "execution_count": null, |
365 | | - "metadata": {}, |
| 429 | + "metadata": { |
| 430 | + "execution": { |
| 431 | + "iopub.execute_input": "2025-10-15T18:12:37.083014Z", |
| 432 | + "iopub.status.busy": "2025-10-15T18:12:37.082756Z", |
| 433 | + "iopub.status.idle": "2025-10-15T18:12:37.095488Z", |
| 434 | + "shell.execute_reply": "2025-10-15T18:12:37.094990Z", |
| 435 | + "shell.execute_reply.started": "2025-10-15T18:12:37.082991Z" |
| 436 | + } |
| 437 | + }, |
366 | 438 | "outputs": [], |
367 | 439 | "source": [ |
368 | 440 | "%%bash\n", |
|
440 | 512 | { |
441 | 513 | "cell_type": "code", |
442 | 514 | "execution_count": null, |
443 | | - "metadata": {}, |
| 515 | + "metadata": { |
| 516 | + "execution": { |
| 517 | + "iopub.execute_input": "2025-10-15T18:12:40.136027Z", |
| 518 | + "iopub.status.busy": "2025-10-15T18:12:40.135746Z", |
| 519 | + "iopub.status.idle": "2025-10-15T18:12:40.542117Z", |
| 520 | + "shell.execute_reply": "2025-10-15T18:12:40.541629Z", |
| 521 | + "shell.execute_reply.started": "2025-10-15T18:12:40.136005Z" |
| 522 | + } |
| 523 | + }, |
444 | 524 | "outputs": [], |
445 | 525 | "source": [ |
446 | 526 | "from sagemaker.s3 import S3Uploader\n", |
|
481 | 561 | { |
482 | 562 | "cell_type": "code", |
483 | 563 | "execution_count": null, |
484 | | - "metadata": {}, |
| 564 | + "metadata": { |
| 565 | + "execution": { |
| 566 | + "iopub.execute_input": "2025-10-15T18:12:43.868659Z", |
| 567 | + "iopub.status.busy": "2025-10-15T18:12:43.868403Z", |
| 568 | + "iopub.status.idle": "2025-10-15T18:12:44.216288Z", |
| 569 | + "shell.execute_reply": "2025-10-15T18:12:44.215721Z", |
| 570 | + "shell.execute_reply.started": "2025-10-15T18:12:43.868639Z" |
| 571 | + } |
| 572 | + }, |
485 | 573 | "outputs": [], |
486 | 574 | "source": [ |
487 | 575 | "from steps import pipeline_utils\n", |
488 | | - "guardrail_id, guardrail_version =pipeline_utils.get_or_create_guardrail()" |
| 576 | + "guardrail_id, guardrail_version = pipeline_utils.get_or_create_guardrail()" |
489 | 577 | ] |
490 | 578 | }, |
491 | 579 | { |
492 | 580 | "cell_type": "code", |
493 | 581 | "execution_count": null, |
494 | | - "metadata": {}, |
| 582 | + "metadata": { |
| 583 | + "execution": { |
| 584 | + "iopub.execute_input": "2025-10-15T18:13:22.801488Z", |
| 585 | + "iopub.status.busy": "2025-10-15T18:13:22.801207Z", |
| 586 | + "iopub.status.idle": "2025-10-15T18:13:25.970853Z", |
| 587 | + "shell.execute_reply": "2025-10-15T18:13:25.970278Z", |
| 588 | + "shell.execute_reply.started": "2025-10-15T18:13:22.801468Z" |
| 589 | + } |
| 590 | + }, |
495 | 591 | "outputs": [], |
496 | 592 | "source": [ |
497 | 593 | "from steps import (\n", |
|
618 | 714 | "cell_type": "code", |
619 | 715 | "execution_count": null, |
620 | 716 | "metadata": { |
| 717 | + "execution": { |
| 718 | + "iopub.execute_input": "2025-10-15T18:13:25.972041Z", |
| 719 | + "iopub.status.busy": "2025-10-15T18:13:25.971610Z", |
| 720 | + "iopub.status.idle": "2025-10-15T18:13:38.971434Z", |
| 721 | + "shell.execute_reply": "2025-10-15T18:13:38.970889Z", |
| 722 | + "shell.execute_reply.started": "2025-10-15T18:13:25.972020Z" |
| 723 | + }, |
621 | 724 | "scrolled": true |
622 | 725 | }, |
623 | 726 | "outputs": [], |
|
637 | 740 | { |
638 | 741 | "cell_type": "code", |
639 | 742 | "execution_count": null, |
640 | | - "metadata": {}, |
| 743 | + "metadata": { |
| 744 | + "execution": { |
| 745 | + "iopub.execute_input": "2025-10-15T18:13:38.972413Z", |
| 746 | + "iopub.status.busy": "2025-10-15T18:13:38.972199Z", |
| 747 | + "iopub.status.idle": "2025-10-15T18:13:39.429711Z", |
| 748 | + "shell.execute_reply": "2025-10-15T18:13:39.429119Z", |
| 749 | + "shell.execute_reply.started": "2025-10-15T18:13:38.972394Z" |
| 750 | + } |
| 751 | + }, |
641 | 752 | "outputs": [], |
642 | 753 | "source": [ |
643 | 754 | "execution = pipeline.start()" |
|
0 commit comments