{"id":11875,"date":"2021-08-10T12:25:24","date_gmt":"2021-08-10T12:25:24","guid":{"rendered":"http:\/\/ismiletechnologies.com\/?p=11875"},"modified":"2021-10-11T19:13:21","modified_gmt":"2021-10-11T13:43:21","slug":"how-to-deploy-machine-learning-on-google-cloud-platform","status":"publish","type":"post","link":"https:\/\/ismiletechnologies.com\/en_us\/cloud-services\/how-to-deploy-machine-learning-on-google-cloud-platform\/","title":{"rendered":"How to deploy machine learning on google cloud platform"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"11875\" class=\"elementor elementor-11875\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-58fee9fd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"58fee9fd\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5725c117\" data-id=\"5725c117\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5f6f140e elementor-widget elementor-widget-text-editor\" data-id=\"5f6f140e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t\n<p class=\"wp-block-paragraph\">Google Cloud Platform is one of the latest cloud\u00a0technology\u00a0that has been able to capture a large market share in cloud computing. GCP has a wide variety of basic services like computing, storage, processing, data warehouses and database management systems. What Google has focused mainly is to provide services in the domain that has real time application for users and has integration of latest technologies. Google provides many services in the field of Artificial Intelligence. It has focused on creating specific services like google vision that is mainly used for image related datasets. It has text-to-speech-to-text service that comes handy when someone is trying to make a voice\u00a0command based\u00a0product.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">The Artificial Intelligence services provided by Google Cloud Platform\u00a0are:-\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Vertex AI- A service that helps in deploying machine learning models, and scaling which also helps accelerating data preparation.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Virtual Agent- It is a very advanced ML service which is very useful in creating a virtual assistant or a chat-bot\u00a0that\u00a0 can\u00a0interact with customers 24\/7 without any human intervention and is fast to deploy.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Vision OCR- It is\u00a0a\u00a0Image based service that parses text data from handwritten or printed pdf or image and converts into a machine understandable text that can be used for processing or digitizing the documents.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">These services are trained and ready-to-use, but what if you want to build a product that needs a custom Machine learning algorithm with your dataset provided.\u00a0One day you will need to deploy your machine learning model so for deploying this you have platforms like GCP, Azure, AWS.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Google Cloud Platform\u202fis one of them and often used. Google Cloud Platform\u202fGCP is very friendly as compared to others. Only little change or work has to be done. The Data lifecycle in a\u00a0MLOps\u00a0environment is shown in the diagram.\u00a0<\/p>\n<p>\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">The procedure to train and deploy machine learning model using Google Cloud Services is shown below:\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 1: Firstly, we should pack\u00a0our\u00a0 machine\u00a0learning model properly your model properly\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 2: Build a bucket on Google Cloud Storage\u00a0\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 3: Now in this Cloud Storage Bucket\u00a0add packed machine learning model\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 4: Building an AI Platform Prediction Model Resource\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 5: Building an AI Platform Prediction Version Resource\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 1: Firstly, we should pack our model machine learning model properly your model properly\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">GCP expects our model should be packaged as a single file or sometimes multiple files. There are different ways to pack your models also you can pack or deploy your machine learning model by Packaging your machine learning model with\u00a0joblib\u00a0or with pickle file\u00a0like\u00a0\u202fmodel.joblib,\u202fmodel.pkl,\u2026\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 2: Build a bucket on Google Cloud Storage\u00a0\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">In order to access our packaged models by google cloud platform resources. We should\u00a0upload \u202fto\u00a0GCP and store properly.\u00a0Gcp\u00a0offers a standard solution to store\u00a0\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">your model files in buckets. An easy way to do so is to pass the following\u00a0gsutil\u00a0command:\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">$gsutil\u00a0mb -l gs:\/\/\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Step 3: Now in this Cloud Storage Bucket\u00a0add packed machine learning model\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-11878\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/08\/image-7.png\" alt=\"\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/medium.com\/xebia-france\/how-to-deploy-your-own-ml-model-to-gcp-in-5-simple-steps-bf2b5898c1ab#14ff\" target=\"_blank\" rel=\"noreferrer noopener\">Step 4: Building an AI Platform Prediction Model Resource<\/a>\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-11880\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/08\/image-9.png\" alt=\"\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/medium.com\/xebia-france\/how-to-deploy-your-own-ml-model-to-gcp-in-5-simple-steps-bf2b5898c1ab#14cc\" target=\"_blank\" rel=\"noreferrer noopener\">Step 5: Building an AI Platform Prediction Version Resource<\/a>\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-11881\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/08\/image-10.png\" alt=\"\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Here You can see your model deployed and ready for use.\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-11879\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/08\/image-8.png\" alt=\"\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Conclusion:-\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">This blog shows how we can deploy our machine learning model on google cloud platform\u00a0<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b1506b3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b1506b3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dd9cca6\" data-id=\"dd9cca6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Google Cloud Platform is one of the latest cloud\u00a0technology\u00a0that has been able to capture a large market share in cloud computing. GCP has a wide variety of basic services like computing, storage, processing, data warehouses and database management systems. What Google has focused mainly is to provide services in the domain that has real time [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":11885,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[162],"class_list":["post-11875","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-services","tag-google-cloud"],"_links":{"self":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/11875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/comments?post=11875"}],"version-history":[{"count":3,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/11875\/revisions"}],"predecessor-version":[{"id":18799,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/11875\/revisions\/18799"}],"wp:attachment":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media?parent=11875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/categories?post=11875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/tags?post=11875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}