Choose and access a model

Cloud or local models

Compare cloud and local model use through capability, privacy, hardware, maintenance, and total cost.

8 minute lesson

~~~

A cloud model runs on infrastructure managed by a provider. A local model runs on hardware you control, such as your laptop, workstation, or private server.

The choice is not powerful versus private. Both sides have several tradeoffs.

Cloud models

Cloud services are easy to start and often provide strong general capabilities, large context windows, multimodal input, and managed scaling. You do not need to buy hardware or maintain the inference software.

Your data crosses a boundary to the provider. Read the current policy for retention, training, region, subprocessors, and deletion. Consumer chat terms may differ from API or enterprise terms.

Cloud also creates a network and vendor dependency. Your feature must handle latency, outages, rate limits, price changes, and model retirement.

Local models

A local model can work offline and keep inputs on the machine. It gives you more control over versions and deployment. For a repeated high-volume task, owned hardware can also make costs predictable.

But the model weights, context cache, and runtime need memory. Larger models need more RAM or GPU memory and produce tokens more slowly on weak hardware. Quantization reduces memory by storing weights with less precision, but it can also reduce quality.

You maintain the runtime, model files, updates, security, monitoring, and capacity. If the model runs on a shared server, you still need authentication and data isolation. Local does not automatically mean secure.

Privacy needs a data-flow review

Ask where the prompt, files, tool results, output, logs, and backups travel. A local model can still send data through a connected search tool. A cloud API can be acceptable for private work when the contract, configuration, and data minimization match the requirement.

Do not use a local model as a shortcut around understanding the data. Decide which information is allowed to enter the system before choosing where the system runs.

A hybrid approach

You can route tasks by sensitivity and difficulty. A local model might summarize private notes, while a cloud model handles a difficult public-code question. A small local model can also filter or redact input before another service receives it.

Test the exact task on the exact hardware or service. Compare quality, speed, total cost, and operational effort. The best deployment is the one that meets the requirement, not the one with the most appealing label.

Lesson completed

Take this course offline

Get every free book and course as PDF and EPUB files.

Get the download library →