Skip to content

Commit 2876668

Browse files
committed
updating datasets and customization notebooks
1 parent 2f67e63 commit 2876668

File tree

5 files changed

+564
-67
lines changed

5 files changed

+564
-67
lines changed

labs/3-customization/31-basic-finetuning.ipynb

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@
262262
"name": "stdout",
263263
"output_type": "stream",
264264
"text": [
265-
"Training file ID: file-68845d9da06f4ff8bfccfdf787ee2c7e\n",
266-
"Validation file ID: file-e5ac2bf890ae4741970222a616e6c088\n"
265+
"Training file ID: file-6a5b85c3c79441aa94290f63a389e48d\n",
266+
"Validation file ID: file-f827f2fff84c498fbb12940dc1e9ff33\n"
267267
]
268268
}
269269
],
@@ -304,11 +304,11 @@
304304
"name": "stdout",
305305
"output_type": "stream",
306306
"text": [
307-
"Job ID: ftjob-749fe8acedac4835b95639ae176fa47b\n",
308-
"Status: ftjob-749fe8acedac4835b95639ae176fa47b\n",
307+
"Job ID: ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\n",
308+
"Status: ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\n",
309309
"{\n",
310-
" \"id\": \"ftjob-749fe8acedac4835b95639ae176fa47b\",\n",
311-
" \"created_at\": 1762286463,\n",
310+
" \"id\": \"ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\",\n",
311+
" \"created_at\": 1762422994,\n",
312312
" \"error\": null,\n",
313313
" \"fine_tuned_model\": null,\n",
314314
" \"finished_at\": null,\n",
@@ -324,9 +324,9 @@
324324
" \"seed\": 105,\n",
325325
" \"status\": \"pending\",\n",
326326
" \"trained_tokens\": null,\n",
327-
" \"training_file\": \"file-68845d9da06f4ff8bfccfdf787ee2c7e\",\n",
328-
" \"validation_file\": \"file-e5ac2bf890ae4741970222a616e6c088\",\n",
329-
" \"estimated_finish\": 1762287365,\n",
327+
" \"training_file\": \"file-6a5b85c3c79441aa94290f63a389e48d\",\n",
328+
" \"validation_file\": \"file-f827f2fff84c498fbb12940dc1e9ff33\",\n",
329+
" \"estimated_finish\": 1762423895,\n",
330330
" \"integrations\": null,\n",
331331
" \"metadata\": null,\n",
332332
" \"method\": null\n",
@@ -338,6 +338,7 @@
338338
"# Submit fine-tuning training job\n",
339339
"# Add a delay so the cell runs for about 1 minute\n",
340340
"import time\n",
341+
"time.sleep(60)\n",
341342
"\n",
342343
"# Note that the model you specify here must be one that can be fine-tuned.\n",
343344
"# Currently gpt-4o can be fine-tuned only in Sweden Central and North Central US\n",
@@ -349,7 +350,7 @@
349350
" seed = 105, # seed parameter controls reproducibility of the fine-tuning job. If no seed is specified one will be generated automatically.\n",
350351
")\n",
351352
"\n",
352-
"time.sleep(60)\n",
353+
"\n",
353354
"\n",
354355
"job_id = response.id\n",
355356
"\n",
@@ -381,9 +382,33 @@
381382
"name": "stdout",
382383
"output_type": "stream",
383384
"text": [
384-
"Fine-tuning job ftjob-153a8a4806f84480acba096c9cfd24f4 finished with status: succeeded\n",
385-
"Checking other fine-tune jobs for this resource.\n",
386-
"Found 1 fine-tune jobs.\n"
385+
"{\n",
386+
" \"id\": \"ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\",\n",
387+
" \"created_at\": 1762422994,\n",
388+
" \"error\": null,\n",
389+
" \"fine_tuned_model\": null,\n",
390+
" \"finished_at\": null,\n",
391+
" \"hyperparameters\": {\n",
392+
" \"batch_size\": -1,\n",
393+
" \"learning_rate_multiplier\": 1.0,\n",
394+
" \"n_epochs\": -1\n",
395+
" },\n",
396+
" \"model\": \"gpt-4o-2024-08-06\",\n",
397+
" \"object\": \"fine_tuning.job\",\n",
398+
" \"organization_id\": null,\n",
399+
" \"result_files\": null,\n",
400+
" \"seed\": 105,\n",
401+
" \"status\": \"running\",\n",
402+
" \"trained_tokens\": null,\n",
403+
" \"training_file\": \"file-6a5b85c3c79441aa94290f63a389e48d\",\n",
404+
" \"validation_file\": \"file-f827f2fff84c498fbb12940dc1e9ff33\",\n",
405+
" \"estimated_finish\": 1762423895,\n",
406+
" \"integrations\": null,\n",
407+
" \"metadata\": null,\n",
408+
" \"method\": null\n",
409+
"}\n",
410+
"Elapsed time: 18 minutes 20 seconds\n",
411+
"Status: running\n"
387412
]
388413
}
389414
],
@@ -814,7 +839,7 @@
814839
],
815840
"metadata": {
816841
"kernelspec": {
817-
"display_name": ".venv",
842+
"display_name": "Python 3",
818843
"language": "python",
819844
"name": "python3"
820845
},

labs/3-customization/32-custom-grader.ipynb

Lines changed: 46 additions & 53 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)