Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lezhimiffyliu committed Aug 27, 2024
2 parents 5bbfc03 + 6c43bec commit d35b5d8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions finetune/glm_lora_finetune_pysdk.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"import os\n",
"from zhipuai import ZhipuAI\n",
"\n",
"os.environ[\"ZHIPUAI_API_KEY\"] = \"3db8a3bcecdae18ce765689c563fd2a6.qHjiJPELFaGCntzo\"\n",
"os.environ[\"ZHIPUAI_API_KEY\"] = \"\"\n",
"client = ZhipuAI()"
],
"metadata": {
Expand Down Expand Up @@ -182,14 +182,14 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2024-08-21T06:19:47.387585Z",
"start_time": "2024-08-21T06:19:46.585988Z"
"end_time": "2024-08-21T07:41:32.258677Z",
"start_time": "2024-08-21T07:41:31.160834Z"
}
},
"cell_type": "code",
"source": [
"job = client.fine_tuning.jobs.create(\n",
" model=\"glm-4-flash\",\n",
" model=\"glm-4-air\",\n",
" training_file=\"file-20240821061500706-kbn67\",\n",
" validation_file=\"file-20240821061501259-6ksl5\",\n",
" hyperparameters={\n",
Expand All @@ -207,15 +207,15 @@
{
"data": {
"text/plain": [
"'ftjob-20240821141947481-r7ln2'"
"'ftjob-20240821154132388-khlc6'"
]
},
"execution_count": 6,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 6
"execution_count": 11
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -247,24 +247,24 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-08-21T06:19:50.245280Z",
"start_time": "2024-08-21T06:19:49.902680Z"
"end_time": "2024-08-21T07:41:39.033845Z",
"start_time": "2024-08-21T07:41:38.352898Z"
}
},
"id": "bd40ce03fe32fd6e",
"outputs": [
{
"data": {
"text/plain": [
"FineTuningJob(id='ftjob-20240821141947481-r7ln2', request_id=None, created_at=1724221187, error=None, fine_tuned_model='glm-4-flash:1601347751:zr_reco:7nnzj3pw', finished_at=None, hyperparameters=None, model='glm-4-flash', object='fine_tuning.job', result_files=[], status='created', trained_tokens=None, training_file='file-20240821061500706-kbn67', validation_file='file-20240821061501259-6ksl5', deployButton=False, experienceCenterButton=False)"
"FineTuningJob(id='ftjob-20240821154132388-khlc6', request_id=None, created_at=1724226092, error=None, fine_tuned_model='glm-4-air:1601347751:zr_reco:a8ostspv', finished_at=None, hyperparameters=None, model='glm-4-air', object='fine_tuning.job', result_files=[], status='created', trained_tokens=None, training_file='file-20240821061500706-kbn67', validation_file='file-20240821061501259-6ksl5', deployButton=False, experienceCenterButton=False)"
]
},
"execution_count": 7,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 7
"execution_count": 12
},
{
"cell_type": "markdown",
Expand Down

0 comments on commit d35b5d8

Please sign in to comment.