{"id":288515,"date":"2025-06-11T18:22:10","date_gmt":"2025-06-11T18:22:10","guid":{"rendered":"https:\/\/peraltafinancing.com\/uncategorized\/how-to-run-gemma-3-on-google-cloud-run-the-easiest-way-with-ai-studio\/"},"modified":"2025-06-11T18:22:10","modified_gmt":"2025-06-11T18:22:10","slug":"how-to-run-gemma-3-on-google-cloud-run-the-easiest-way-with-ai-studio","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=288515","title":{"rendered":"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>Gemma is a collection of lightweight, modern open models built by Google. They are designed to run fast on devices like phones, on machines in the cloud, to help developers create AI applications. In this post, you will learn the easiest and fastest way to run the latest version of <a href=\"https:\/\/blog.google\/technology\/developers\/gemma-3\/\">Gemma, 3<\/a> (4 B), on Google Cloud Run deployed from Google AI Studio. Let\u2019s get started!<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/01gemma3-on-cloud-run.jpg\" title=\"How to run Gemma 3 on Google Cloud Run with AI Studio and the magic behind it\" alt=\"How to run Gemma 3 on Google Cloud Run with AI Studio and the magic behind it\"\/><\/p>\n<h2 id=\"table-of-contents\" tabindex=\"-1\">Table of Contents <a class=\"direct-link\" href=\"#table-of-contents\">#<\/a><\/h2>\n<h2 id=\"gemma-3-on-cloud-run\" tabindex=\"-1\">Gemma 3 on Cloud Run <a class=\"direct-link\" href=\"#gemma-3-on-cloud-run\">#<\/a><\/h2>\n<p>To deploy Gemma 3 (4 billion parameters model) on Google Cloud Run from Google AI Studio. Gemma 3 models\u2019 size <a href=\"https:\/\/ollama.com\/library\/gemma3\">ranges<\/a> from 815 MB for 1B parameters to 17 GB for the 27B parameters. The model you will deploy is the 4B parameters, which is 3.3 GB.<\/p>\n<p>You will first create a new Google Cloud Project. You can deploy Gemma 3 from AI Studio with just a few clicks. When deployed from AI Studio, it uses Ollama under the hood to run Gemma 3 inside a container. In that container, there is a slim Go server\/proxy to <a href=\"https:\/\/github.com\/google-gemini\/gemma-cookbook\/blob\/main\/Demos\/Gemma-on-Cloudrun\/proxy.go#L86\">verify<\/a> the API key.<\/p>\n<p>You will also learn about a command you can run on Google Cloud Shell that will have a similar effect later in this tutorial. You will create a new Google Cloud Project in the next section to get going.<\/p>\n<h3 id=\"create-google-cloud-project\" tabindex=\"-1\">Create Google Cloud Project <a class=\"direct-link\" href=\"#create-google-cloud-project\">#<\/a><\/h3>\n<p>To create a new Google Cloud Project, make sure you are logged into your Google Account. Then you can go to the <a href=\"https:\/\/console.cloud.google.com\/projectcreate\">Create new project<\/a> page on GCP and fill in the following details:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/02new-gcp-project.jpg\" loading=\"lazy\" title=\"Create a new GCP project to run Gemma 3 on Cloud Run\" alt=\"Create a new GCP project to run Gemma 3 on Cloud Run\"\/><\/p>\n<p>After that, click the <code>Create<\/code> blue button to create the project. It may take some time, and your project will be created, and you will be notified about that:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/03gcp-project-created.jpg\" loading=\"lazy\" title=\"Created a new GCP project to run Gemma 3 on Cloud Run\" alt=\"Created a new GCP project to run Gemma 3 on Cloud Run\"\/><\/p>\n<p>Note the project name you just created. Then, go to Google AI Studio and follow the steps shown in the next section.<\/p>\n<h3 id=\"deploy-gemma-3-from-ai-studio\" tabindex=\"-1\">Deploy Gemma 3 from AI Studio <a class=\"direct-link\" href=\"#deploy-gemma-3-from-ai-studio\">#<\/a><\/h3>\n<p>On <a href=\"https:\/\/aistudio.google.com\/\">Google AI Studio<\/a>, go to the <code>Chat<\/code> section, which should open by default:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/04google-ai-studio-chat.jpg\" loading=\"lazy\" title=\"Google AI Studio with the default chat screen\" alt=\"Google AI Studio with the default chat screen\"\/><\/p>\n<p>Under the <code>Run setting<\/code> on the right side bar, click on the dropdown that has the model name selected, like <code>Gemini 2.5 Flash\u2026<\/code>, then select <code>Gemma<\/code>, and after that click <code>Gemma 3 4B<\/code>, as seen below:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/05gemma3-4b-on-ai-studio.jpg\" loading=\"lazy\" title=\"Select Gemma 3 with 4 billion parameters on Google AI Studio\" alt=\"Select Gemma 3 with 4 billion parameters on Google AI Studio\"\/><\/p>\n<p>On the selected <code>Gemma 3 4B<\/code> model, bring the temperature down to <code>0.3<\/code> and the Top P setting to <code>0.4<\/code> , as follows:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/06gemma3-settings.jpg\" loading=\"lazy\" title=\"Setting the temparature (creativity) and top p settings for Gemma 3:4B on AI Studio\" alt=\"Setting the temparature (creativity) and top p settings for Gemma 3:4B on AI Studio\"\/><\/p>\n<p>The above setting doesn&#8217;t matter when you deploy. If you want, you can chat with Gemma 3 like ask it <code>why is the sky blue?, give the shortest possible answer<\/code>. It should give back a one sentence answer.<\/p>\n<p>After that, click on the black and white Rocket icon (\ud83d\ude80) besides the <code>Run settings<\/code> and click <code>Deploy to Cloud Run<\/code> as seen below:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/07ai-studio-gemma3-to-cloud-run.jpg\" loading=\"lazy\" title=\"Deploy Gemma 3 to Google Cloud Run from AI Studio\" alt=\"Deploy Gemma 3 to Google Cloud Run from AI Studio\"\/><\/p>\n<p>Then, you can select the project created in the previous step, which was <code>gemma3-on-cr<\/code> in my case:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/08ai-studio-select-project.jpg\" loading=\"lazy\" title=\"Select GCP Project on Google AI Studio\" alt=\"Select GCP Project on Google AI Studio\"\/><\/p>\n<p>After that, click the <code>Deploy to Google Cloud<\/code> blue button. It will take some time to say <code>Deploying to Cloud Run<\/code>. If all goes well after a couple of minutes, you will get a URL where Gemma 3 (4B) is running on Google Cloud Run with an API key as follows:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/09gemma3-deployed.jpg\" loading=\"lazy\" title=\"Gemma3 deployed on Cloud Run from Google AI Studio\" alt=\"Gemma3 deployed on Cloud Run from Google AI Studio\"\/><\/p>\n<p>You can click the <code>Get code<\/code> blue button to try a curl command to verify that Gemma 3 on Cloud Run works as expected, select <code>REST<\/code> on the left select box, and copy the code:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/10curl-to-test-gemma3-on-cloud-run.jpg\" loading=\"lazy\" title=\"Curl code to test Gemma3 deployed on Cloud Run from Google AI Studio\" alt=\"Curl code to test Gemma3 deployed on Cloud Run from Google AI Studio\"\/><\/p>\n<p>When you run the copied code in the command line, add <code>give your answer in 1 sentence<\/code>, then only run the code. The final code I ran was:<\/p>\n<pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl<\/span> <span class=\"token string\">\"https:\/\/gemma-3-4b-it-some-long-number-region.run.app\/v1beta\/models\/gemma-3-4b-it:streamGenerateContent?key=the-api-key\"<\/span> <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">'Content-Type: application\/json'<\/span> <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">-X<\/span> POST <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">'{<br\/>\"contents\": [{<br\/>\"parts\":[{\"text\": \"How does AI work? give your answer in 1 sentence\"}]<br\/>}]<br\/>}'<\/span><\/code><\/pre>\n<p>Which resulted in:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/11gemma3-working.jpg\" loading=\"lazy\" title=\"Gemma 3 working on Cloud Run\" alt=\"Gemma 3 working on Cloud Run\"\/><\/p>\n<p>Hurray! You have Gemma 3 running on Google Cloud Run. Now you can use it in your applications. You can add <a href=\"https:\/\/geshan.com.np\/blog\/2025\/02\/ollama-docker-compose\/\">Open WebUI<\/a> if you like.<\/p>\n<h2 id=\"the-docker-image\" tabindex=\"-1\">The Docker image <a class=\"direct-link\" href=\"#the-docker-image\">#<\/a><\/h2>\n<p>From the surface, it looks partially like magic, but most of the heavy lifting is being done by a prebuilt Docker image available on the Google Cloud Artifact registry (pkg.dev) built with Google Cloud Biuld.<\/p>\n<p>When you read the official docs about <a href=\"https:\/\/github.com\/google-gemini\/gemma-cookbook\/tree\/main\/Demos\/Gemma-on-Cloudrun\">Gemma on Cloud Run<\/a>, you can find out that there are pre-built Docker images like <a href=\"https:\/\/us-docker.pkg.dev\/cloudrun\/container\/gemma\/gemma3-4b\">Gemma 3:4B<\/a> on the package registry. As <a href=\"https:\/\/cloud.google.com\/run\/docs\/configuring\/services\/gpu\">GPUs on Cloud Run<\/a> have become available on demand with no reservations needed, deploying any model with Ollama on Cloud Run has become much easier.<\/p>\n<p>The Dockerfile also has a <a href=\"https:\/\/github.com\/google-gemini\/gemma-cookbook\/blob\/main\/Demos\/Gemma-on-Cloudrun\/proxy.go\">proxy server<\/a> to add the API key validation on top of a regular Ollama instance. It would be good to go through the <a href=\"https:\/\/github.com\/google-gemini\/gemma-cookbook\/tree\/main\/Demos\/Gemma-on-Cloudrun\">readme<\/a> to know more about this and other features.<\/p>\n<p>In the next section, you will learn about the single command for deploying Gemma 3 on Cloud Run.<\/p>\n<h3 id=\"how-to-run-it-with-one-command\" tabindex=\"-1\">How to run it with one command <a class=\"direct-link\" href=\"#how-to-run-it-with-one-command\">#<\/a><\/h3>\n<p>To run Gemma 3:4B on Cloud Run, you can run the following command on <a href=\"http:\/\/geshan.com.np\/blog\/2024\/01\/cloud-shell-editor\/#google-cloud-shell-terminal\">Google Cloud Shell<\/a> of your respective Google Cloud Project:<\/p>\n<pre class=\"language-bash\"><code class=\"language-bash\">gcloud run deploy gemma3-4b-dwc <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--image<\/span> us-docker.pkg.dev\/cloudrun\/container\/gemma\/gemma3-4b <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--concurrency<\/span> <span class=\"token number\">4<\/span> <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--cpu<\/span> <span class=\"token number\">8<\/span> <span class=\"token punctuation\">\\<\/span><br\/>--set-env-vars <span class=\"token assign-left variable\">OLLAMA_NUM_PARALLEL<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">4<\/span> <span class=\"token punctuation\">\\<\/span><br\/>--set-env-vars<span class=\"token operator\">=<\/span>API_KEY<span class=\"token operator\">=<\/span>gf2lv74w79ubm5lr <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--gpu<\/span> <span class=\"token number\">1<\/span> <span class=\"token punctuation\">\\<\/span><br\/>--gpu-type nvidia-l4 <span class=\"token punctuation\">\\<\/span><br\/>--max-instances <span class=\"token number\">1<\/span> <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--memory<\/span> 32Gi <span class=\"token punctuation\">\\<\/span><br\/>--allow-unauthenticated <span class=\"token punctuation\">\\<\/span><br\/>--no-cpu-throttling <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--timeout<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">600<\/span> <span class=\"token punctuation\">\\<\/span><br\/><span class=\"token parameter variable\">--region<\/span> us-central1<\/code><\/pre>\n<p>You can run it on Google Cloud Shell as:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/12cloud-run-deploy-gemma3-4b.jpg\" loading=\"lazy\" title=\"Gcloud run deploy command to deploy Gemma 3 4B on Cloud Run\" alt=\"Gcloud run deploy command to deploy Gemma 3 4B on Cloud Run\"\/><\/p>\n<p>It might ask you do deploy with <code>no zonal redundancy<\/code>, write <code>y<\/code> for yes, and it should deploy the service and give you back a URL as follows:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/13gemma3-deploy-with-cli.jpg\" loading=\"lazy\" title=\"Gemma 3 deploy with Gcloud run command\" alt=\"Gemma 3 deploy with Gcloud run command\"\/><\/p>\n<p>If you hit the URL key with the API key, you can see the <code>Ollama is running<\/code> message as seen below:<\/p>\n<p><img decoding=\"async\" class=\"center\" src=\"https:\/\/geshan.com.np\/images\/gemma3-on-cloud-run\/14gemma3-running.jpg\" loading=\"lazy\" title=\"Gemma 3 running deployed with Gcloud run command\" alt=\"Gemma 3 running deployed with Gcloud run command\"\/><\/p>\n<p>There you have it. Now you know you have decoded the secret of the magic AI studio doing in the background to enable the API key. Gemma 3 is running on Google Cloud Run with Ollama and a proxy server written in Go.<\/p>\n<h2 id=\"conclusion\" tabindex=\"-1\">Conclusion <a class=\"direct-link\" href=\"#conclusion\">#<\/a><\/h2>\n<p>In this post, you learned about deploying Gemma 3 on Google Cloud Run through Google AI Studio&#8217;s intuitive interface, which simplifies a complex process into a few clicks. You also learned that this deployment leverages Ollama and pre-built Docker images from the Google Cloud Artifact Registry, enhanced with a Go-based proxy server for API key validation.<\/p>\n<p>Additionally, you could decode the magic using a single gcloud command within the Google Cloud Shell, offering flexibility and control over deployment parameters like concurrency, CPU, GPU, and memory. Both methods result in a functional Gemma 3 instance on Cloud Run, ready to be integrated into applications, providing developers like you with powerful AI model capabilities with minimal effort. Keep experimenting!<\/p>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Gemma is a collection of lightweight, modern open models built by Google. They are designed to run fast on devices like phones, on machines in the cloud, to help developers create AI applications. In this post, you will learn the easiest and fastest way to run the latest version of Gemma, 3 (4 B), on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":288516,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12564,16180,23318,119341,119340,1531,2753,4553],"dealstore":[],"offerexpiration":[],"class_list":["post-288515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-cloud","tag-easiest","tag-gemma","tag-gemma3-on-gcp","tag-gemma3-on-google-cloud-run","tag-google","tag-run","tag-studio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=288515\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Gemma is a collection of lightweight, modern open models built by Google. They are designed to run fast on devices like phones, on machines in the cloud, to help developers create AI applications. In this post, you will learn the easiest and fastest way to run the latest version of Gemma, 3 (4 B), on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=288515\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-11T18:22:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=288515#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=288515\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio\",\"datePublished\":\"2025-06-11T18:22:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=288515\"},\"wordCount\":942,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=288515#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg\",\"keywords\":[\"Cloud\",\"Easiest\",\"Gemma\",\"gemma3 on gcp\",\"gemma3 on google cloud run\",\"Google\",\"Run\",\"Studio\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=288515#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=288515\",\"url\":\"https:\/\/fivemor.com\/?p=288515\",\"name\":\"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=288515#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=288515#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg\",\"datePublished\":\"2025-06-11T18:22:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=288515#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=288515\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=288515#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg\",\"width\":800,\"height\":450},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=288515#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=288515","og_locale":"en_US","og_type":"article","og_title":"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio - Som2ny Network","og_description":"Gemma is a collection of lightweight, modern open models built by Google. They are designed to run fast on devices like phones, on machines in the cloud, to help developers create AI applications. In this post, you will learn the easiest and fastest way to run the latest version of Gemma, 3 (4 B), on [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=288515","og_site_name":"Som2ny Network","article_published_time":"2025-06-11T18:22:10+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=288515#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=288515"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio","datePublished":"2025-06-11T18:22:10+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=288515"},"wordCount":942,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=288515#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg","keywords":["Cloud","Easiest","Gemma","gemma3 on gcp","gemma3 on google cloud run","Google","Run","Studio"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=288515#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=288515","url":"https:\/\/fivemor.com\/?p=288515","name":"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=288515#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=288515#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg","datePublished":"2025-06-11T18:22:10+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=288515#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=288515"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=288515#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/06\/01gemma3-on-cloud-run.jpg","width":800,"height":450},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=288515#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"How to run Gemma 3 on Google Cloud Run, the easiest way with AI Studio"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/288515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=288515"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/288515\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/288516"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288515"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=288515"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=288515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}