Private LLM on Google Cloud: running it in your project
A private LLM on Google Cloud runs in your own project and VPC, or on a managed Vertex AI endpoint. Here is how the two paths differ and what each controls.
Updated
A private LLM on Google Cloud is an open-weight model that runs inside your own project and VPC, under your own IAM roles, keys and logs. You either serve it yourself on compute in that project, or you call a managed endpoint such as Vertex AI, where Google runs the serving layer.
The choice comes down to two questions: who runs the serving stack, and who holds the weights.
What makes an LLM private on Google Cloud?
Private means the prompts, documents and outputs stay inside a boundary you set. Running a model in your project does not make it compliant by itself. It means the model runs in your environment, under your own controls.
A typical setup has four parts: model weights in a bucket you own, a serving container in your project, a subnet with no public IP, and logs that stay in your project. Each part is a control you can name and audit. This is not legal, medical, tax or financial advice. Ask your security and compliance team which of these to review for your data.
Vertex AI vs self hosted model: which one fits?
Vertex AI is the managed path. Its model garden offers catalog models you can deploy to endpoints in your project, and Google handles much of the serving infrastructure. A self-hosted model puts the serving software, compute, scaling rules and upgrade schedule on your team.
| Managed endpoint on Vertex AI | Self-hosted model in your project | |
|---|---|---|
| Who runs serving | Google, within the endpoint settings | Your team |
| Weights | Catalog model terms apply, so read each license | You hold the weights you trained |
| Your fine-tuned model | Only if the platform accepts your format | Yes, and you choose the format |
| Operations work | Lower | Higher: patching, scaling, monitoring |
| Throughput tuning | Limited to platform options | Full control, and the responsibility too |
A managed endpoint is the right call when volume is low, you have no one to run serving, or a catalog model already does the job. Self-hosting is the wrong call for a small team that sends modest traffic and wants to stop thinking about infrastructure. Check Google’s current pricing page for endpoint and compute costs.
How do I self host an LLM on GCP?
Work through these steps in order.
- Pick one task. One model for one high-volume job is far simpler to run than a general assistant.
- Build the test first. Use your own records, and score the model you use today on a held-out set you never train on. See how to build a test set.
- Train, then compare. The trained model must beat the current model on that test before it goes near production.
- Serve in your project. Put the container on a subnet with no public IP, restrict egress with firewall rules, and send logs to a logging setup you control.
- Keep the weights. Store them in a bucket you own, encrypt them with keys you manage, and record which weights version answered each request.
How do you run an LLM in a GCP VPC?
Run the serving endpoint in a VPC subnet with no public IP. Use Private Google Access for the Google APIs you need, and reach your own services over internal addresses. Add firewall rules that block outbound traffic the model does not need. If your organization uses VPC Service Controls, place the project inside that perimeter, which restricts copying data out of it.
Test the network path before real data goes in. Confirm that a call from outside the VPC fails, and that the endpoint answers from inside. Keep the test output. Auditors ask for it, and you will want it when someone edits a firewall rule months later. For more on network design, read keeping LLM traffic inside your VPC.
Can you host a fine-tuned model on Google Cloud?
Yes. Copy the trained weights into a bucket in your project, load them in a serving container you control, and point your application at the internal endpoint. You own the weights, so the model can move later to another cloud or to a building you run yourself.
Our process, at Own Weights, has four steps. An audit maps your AI spend by task from code and invoices, and it is free. An evaluation builds a test from your real data and scores the current model first. Training has to beat the current model on that test before deployment. Serving runs in your cloud or on-prem, tuned for throughput.
Before the model takes real traffic, run the accuracy comparison and a load test at peak concurrency from inside the same VPC it will serve from, so the held-out records never leave your boundary, and store accuracy, latency and throughput with the weights version so the next model has a number to beat.
Want to see which AI calls in your code could move to a model you control? Run the free audit below. It reads your code on your machine and uploads nothing. Prefer to talk first? Book a call.
Questions
Can I run a private LLM on Google Cloud?
Yes. You can serve an open-weight model inside your own project, on a subnet with no public IP, under your own service accounts and logs. Whether that meets your rules depends on your data and your controls, so have your security team review the design before real data goes in.
How do I self host an LLM on GCP?
Start with one task, build a test from your own records, and score the model you use today. Serve the trained model in a container in your project, and keep the weights in a bucket you control.
Is Vertex AI or a self-hosted model better?
Neither wins on every axis. A managed endpoint means less operations work, while a self-hosted model means you hold the weights and choose the serving setup. Pick by volume, the team you have, and whether you need a model you trained yourself.
Can an LLM run inside a GCP VPC?
Yes, with no public IP on the serving endpoint, private access to the Google APIs you need, and firewall rules that block outbound traffic the model does not need. Test the path from outside the VPC before you send real data, and keep the result.
Can I host a fine-tuned model on Google Cloud?
Yes. Copy the trained weights into a bucket in your project and load them in a container you control. Run the comparison against your current model on a held-out test first, since that result decides whether the model ships.