Skip to content

Commit 04da8bf

Browse files
committed
updating customization to fix minor issues
1 parent 2876668 commit 04da8bf

11 files changed

+1711
-163
lines changed

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

Lines changed: 22 additions & 22 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-6a5b85c3c79441aa94290f63a389e48d\n",
266-
"Validation file ID: file-f827f2fff84c498fbb12940dc1e9ff33\n"
265+
"Training file ID: file-adcc886357074524b0158c9b28e75c23\n",
266+
"Validation file ID: file-2c40fbf6d80647b2ac0181e911b9e41c\n"
267267
]
268268
}
269269
],
@@ -296,19 +296,19 @@
296296
},
297297
{
298298
"cell_type": "code",
299-
"execution_count": 8,
299+
"execution_count": 7,
300300
"id": "86ddf91d",
301301
"metadata": {},
302302
"outputs": [
303303
{
304304
"name": "stdout",
305305
"output_type": "stream",
306306
"text": [
307-
"Job ID: ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\n",
308-
"Status: ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\n",
307+
"Job ID: ftjob-9a89ce8f64994a46befa93136433c43e\n",
308+
"Status: ftjob-9a89ce8f64994a46befa93136433c43e\n",
309309
"{\n",
310-
" \"id\": \"ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\",\n",
311-
" \"created_at\": 1762422994,\n",
310+
" \"id\": \"ftjob-9a89ce8f64994a46befa93136433c43e\",\n",
311+
" \"created_at\": 1762435747,\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-6a5b85c3c79441aa94290f63a389e48d\",\n",
328-
" \"validation_file\": \"file-f827f2fff84c498fbb12940dc1e9ff33\",\n",
329-
" \"estimated_finish\": 1762423895,\n",
327+
" \"training_file\": \"file-adcc886357074524b0158c9b28e75c23\",\n",
328+
" \"validation_file\": \"file-2c40fbf6d80647b2ac0181e911b9e41c\",\n",
329+
" \"estimated_finish\": 1762436649,\n",
330330
" \"integrations\": null,\n",
331331
" \"metadata\": null,\n",
332332
" \"method\": null\n",
@@ -346,12 +346,10 @@
346346
"response = client.fine_tuning.jobs.create(\n",
347347
" training_file=training_file_id,\n",
348348
" validation_file=validation_file_id,\n",
349-
" model=\"gpt-4o\", # Enter base model name. Note that in Azure OpenAI the model name contains dashes and cannot contain dot/period characters.\n",
349+
" model=\"gpt-4o-2024-08-06\", # Enter base model name. Note that in Azure OpenAI the model name contains dashes and cannot contain dot/period characters.\n",
350350
" seed = 105, # seed parameter controls reproducibility of the fine-tuning job. If no seed is specified one will be generated automatically.\n",
351351
")\n",
352352
"\n",
353-
"\n",
354-
"\n",
355353
"job_id = response.id\n",
356354
"\n",
357355
"# You can use the job ID to monitor the status of the fine-tuning job.\n",
@@ -383,31 +381,33 @@
383381
"output_type": "stream",
384382
"text": [
385383
"{\n",
386-
" \"id\": \"ftjob-bcf37c4d7a8947c8b281a2b3e6a1ed73\",\n",
387-
" \"created_at\": 1762422994,\n",
384+
" \"id\": \"ftjob-9a89ce8f64994a46befa93136433c43e\",\n",
385+
" \"created_at\": 1762435747,\n",
388386
" \"error\": null,\n",
389387
" \"fine_tuned_model\": null,\n",
390388
" \"finished_at\": null,\n",
391389
" \"hyperparameters\": {\n",
392-
" \"batch_size\": -1,\n",
390+
" \"batch_size\": 1,\n",
393391
" \"learning_rate_multiplier\": 1.0,\n",
394-
" \"n_epochs\": -1\n",
392+
" \"n_epochs\": 3\n",
395393
" },\n",
396394
" \"model\": \"gpt-4o-2024-08-06\",\n",
397395
" \"object\": \"fine_tuning.job\",\n",
398396
" \"organization_id\": null,\n",
399-
" \"result_files\": null,\n",
397+
" \"result_files\": [\n",
398+
" \"file-04cffffb55664b39bc9193f650dd991e\"\n",
399+
" ],\n",
400400
" \"seed\": 105,\n",
401401
" \"status\": \"running\",\n",
402402
" \"trained_tokens\": null,\n",
403-
" \"training_file\": \"file-6a5b85c3c79441aa94290f63a389e48d\",\n",
404-
" \"validation_file\": \"file-f827f2fff84c498fbb12940dc1e9ff33\",\n",
405-
" \"estimated_finish\": 1762423895,\n",
403+
" \"training_file\": \"file-adcc886357074524b0158c9b28e75c23\",\n",
404+
" \"validation_file\": \"file-2c40fbf6d80647b2ac0181e911b9e41c\",\n",
405+
" \"estimated_finish\": 1762437316,\n",
406406
" \"integrations\": null,\n",
407407
" \"metadata\": null,\n",
408408
" \"method\": null\n",
409409
"}\n",
410-
"Elapsed time: 18 minutes 20 seconds\n",
410+
"Elapsed time: 58 minutes 18 seconds\n",
411411
"Status: running\n"
412412
]
413413
}

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

Lines changed: 59 additions & 57 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)