|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "# Deploy Spark Model to PipelineAI\n", |
| 8 | + "\n", |
| 9 | + "You will need to fill in the unique values for the following:\n", |
| 10 | + "* `<YOUR_USER_ID>` - 8 character id that uniquely identifies the PipelineAI user. You will see the UserId in the upper right hand corner of the Settings tab after you login to [PipelineAI Community Edition](https://community.cloud.pipeline.ai)\n", |
| 11 | + "* `<YOUR_API_TOKEN>` - 8 character id that uniquely identifies the PipelineAI user. You will see the UserId in the upper right hand corner of the Settings tab after you login to [PipelineAI Community Edition](https://community.cloud.pipeline.ai)\n", |
| 12 | + "\n", |
| 13 | + "\n", |
| 14 | + "\n", |
| 15 | + "```\n", |
| 16 | + "pipeline resource-upload --host community.cloud.pipeline.ai \\\n", |
| 17 | + " --api-token <YOUR_API_TOKEN> \\\n", |
| 18 | + " --user-id <YOUR_USER_ID> \\\n", |
| 19 | + " --resource-type spark \\\n", |
| 20 | + " --resource-subtype spark \\\n", |
| 21 | + " --name sparkpi \\\n", |
| 22 | + " --tag v1 \\\n", |
| 23 | + " --path ./spark_model\n", |
| 24 | + "```\n", |
| 25 | + "\n", |
| 26 | + "Actions performed:\n", |
| 27 | + "* Compress resource source code into a tar archive.\n", |
| 28 | + "* Create required directories and generate deployment and service resource definitions.\n", |
| 29 | + "* Initialize training resource\n", |
| 30 | + "\n", |
| 31 | + "# Optimize and Deploy the Model\n", |
| 32 | + "You can optimize (select one or more chips and/or one or more runtimes) and deploy your model using the CLI or the [UI](https://community.cloud.pipeline.ai) (Choose either the CLI or UI).\n" |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + "cell_type": "code", |
| 37 | + "execution_count": null, |
| 38 | + "metadata": {}, |
| 39 | + "outputs": [], |
| 40 | + "source": [ |
| 41 | + "%%bash \n", |
| 42 | + "\n", |
| 43 | + "pipeline resource-upload --host community.cloud.pipeline.ai \\\n", |
| 44 | + " --api-token <YOUR_API_TOKEN> \\\n", |
| 45 | + " --user-id <YOUR_USER_ID> \\\n", |
| 46 | + " --resource-type spark \\\n", |
| 47 | + " --resource-subtype spark \\\n", |
| 48 | + " --name sparkpi \\\n", |
| 49 | + " --tag v1 \\\n", |
| 50 | + " --path ./spark_model" |
| 51 | + ] |
| 52 | + }, |
| 53 | + { |
| 54 | + "cell_type": "markdown", |
| 55 | + "metadata": {}, |
| 56 | + "source": [ |
| 57 | + "# Navigate to https://community.pipeline.ai and Start Your Spark Job!" |
| 58 | + ] |
| 59 | + }, |
| 60 | + { |
| 61 | + "cell_type": "code", |
| 62 | + "execution_count": null, |
| 63 | + "metadata": {}, |
| 64 | + "outputs": [], |
| 65 | + "source": [] |
| 66 | + } |
| 67 | + ], |
| 68 | + "metadata": { |
| 69 | + "kernelspec": { |
| 70 | + "display_name": "Python 3", |
| 71 | + "language": "python", |
| 72 | + "name": "python3" |
| 73 | + }, |
| 74 | + "language_info": { |
| 75 | + "codemirror_mode": { |
| 76 | + "name": "ipython", |
| 77 | + "version": 3 |
| 78 | + }, |
| 79 | + "file_extension": ".py", |
| 80 | + "mimetype": "text/x-python", |
| 81 | + "name": "python", |
| 82 | + "nbconvert_exporter": "python", |
| 83 | + "pygments_lexer": "ipython3", |
| 84 | + "version": "3.6.6" |
| 85 | + } |
| 86 | + }, |
| 87 | + "nbformat": 4, |
| 88 | + "nbformat_minor": 2 |
| 89 | +} |
0 commit comments