From 403801dae2cc2f2178c3c5a072c4f24af0c6f98c Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 7 Feb 2025 13:52:53 +0530 Subject: [PATCH] Removal of direct kubeflow innvocation from Retrain Pipeline Change-Id: I6513ecadb7372214f15f591e647963d9655f54c5 Signed-off-by: Swaraj Kumar --- kf-pipelines/qoe-pipeline-retrain-2.ipynb | 42 +++---------------------------- 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kf-pipelines/qoe-pipeline-retrain-2.ipynb b/kf-pipelines/qoe-pipeline-retrain-2.ipynb index 7604066..e339505 100644 --- a/kf-pipelines/qoe-pipeline-retrain-2.ipynb +++ b/kf-pipelines/qoe-pipeline-retrain-2.ipynb @@ -129,11 +129,12 @@ " else:\n", " print(f'Zip file not found: {zip_file_path}')\n", "\n", - " # Load the model in SavedModel format\n", " # Path to the directory containing the saved model\n", " model_path = f\"./Model/{modelversion}\"\n", - " \n", + "\n", + " # Load the model in SavedModel format \n", " model = tf.keras.models.load_model(model_path)\n", + " \n", " model.compile(loss='mse', optimizer='adam', metrics=['mse'])\n", " model.summary()\n", "\n", @@ -242,43 +243,6 @@ "requests.post(\"http://tm.traininghost:32002/pipelines/{}/upload\".format(pipeline_name), files={'file':open(pipeline_file,'rb')})" ] }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "Experiment details." - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "Run details." - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "from kfp.client import Client\n", - "client = Client(host='http://ml-pipeline-ui.kubeflow:80')\n", - "# client.upload_pipeline_version(pipeline_package_path='pipeline.yaml',pipeline_version_name='v2', pipeline_name='sample-pipeline')\n", - "result = client.create_run_from_pipeline_package('qoe_model_pipeline_retrain_2.yaml', arguments={'trainingjob_name':'testing_influxdb_301', 'epochs':'5', 'version':'1'})" - ] - }, { "cell_type": "code", "execution_count": null, -- 2.16.6