AI for Business · Resource Center

How to Run an LLM Locally: A Practical Guide for Businesses

By Los Angeles ITUpdated October 9, 202610 min read

Quick answer

To run an LLM locally, install a runtime such as Ollama or LM Studio on a computer with enough GPU memory or Apple Silicon unified memory, download an open-weight model like Llama, Qwen, Gemma, Mistral or gpt-oss, and chat with it on the machine. Add Open WebUI to give your team a private, browser-based chat interface.

Key takeaways

  • Local models keep prompts and documents on hardware you control, which suits sensitive data and offline use.
  • Memory is the main constraint. Plan roughly 8 to 16 GB for small models, 24 to 48 GB for mid-size, and much more for large ones.
  • Ollama is the simplest server-style option; LM Studio is the easiest desktop app.
  • Open WebUI adds a team chat front end with user accounts on top of Ollama.
  • Local models are capable but generally trail frontier cloud models like GPT, Claude and Gemini on complex reasoning.

Running a large language model on your own hardware used to require a research lab. Today an office manager can have a private AI chat running on a Mac or a GPU workstation in under an hour. The tools are free, the models are openly available, and nothing you type has to leave the building.

This guide covers why a business would self-host, what hardware you need, step-by-step setup with Ollama, LM Studio and Open WebUI, how to secure it on an office network, and where local models still fall short of the big cloud services.

Why run an LLM locally?

Privacy and control. Prompts and documents processed by a model on your own hardware do not go to an AI vendor. For law firms, medical and dental offices, financial advisors and anyone handling client confidential data, this can be the deciding factor. You still need to secure the system and follow your regulatory obligations, but you are not relying on a third party's retention and training policies.

Predictable cost. No per-seat subscription. After the hardware purchase, the main costs are power and maintenance. For heavy, repetitive workloads such as summarizing thousands of documents, that can beat paying per user or per token.

Offline and always available. A local model works during an internet outage and is not affected by a vendor's rate limits or service changes.

Customization. You choose the model, can swap it when better ones are released, and can connect it to internal documents and workflows without sending them to the cloud.

Hardware: what you actually need

The key number is memory. A model must fit in GPU memory (VRAM), or in Apple Silicon unified memory, to run at a usable speed. Models are usually run "quantized," compressed to around 4 to 8 bits per parameter, which cuts memory needs substantially with modest quality loss.

These tiers are rough guidance for 4-bit quantized models, with headroom for context:

Tier Memory available to the model Model size it handles well Typical hardware
Entry 8 to 16 GB Roughly 1 to 8 billion parameters Recent laptop, Mac with 16 GB, PC with an 8 to 12 GB GPU
Mid 24 to 48 GB Roughly 14 to 32 billion parameters, and gpt-oss-20b GPU with 24 GB VRAM, Mac with 32 to 64 GB
High 64 to 128 GB or more Roughly 70 billion parameters and larger mixture-of-experts models Workstation with multiple GPUs or a 48 GB+ card, Mac with 96 to 128 GB+

Apple Silicon note. Macs with M-series chips share one pool of unified memory between CPU and GPU, so a Mac with 64 GB can load models that would need an expensive GPU on a PC. Token speed is generally lower than a high-end NVIDIA card, but for a small team it is often the simplest and quietest option.

PC note. NVIDIA GPUs have the broadest support. System RAM matters too: a model that does not fit in VRAM can spill into regular memory, but it will run much slower. Use an SSD with plenty of free space, since a single model can be anywhere from a few GB to well over 50 GB.

LA business note

A GPU workstation running all day draws real power and puts out heat. Put it on a UPS sized for its load, keep it out of an unventilated closet during LA summer heat waves, and plan a clean shutdown for the power events that come with them.

Open-weight model families

"Open-weight" means the trained model files are published for you to download and run. Popular families as of 2026 include:

  • Llama (Meta): widely supported general models in several sizes.
  • Qwen (Alibaba): a broad range from very small to very large, with strong coding and multilingual variants.
  • Gemma (Google): efficient models designed to run well on modest hardware.
  • Mistral (Mistral AI): compact, efficient models from a French AI company.
  • gpt-oss (OpenAI): OpenAI's open-weight reasoning models, released in August 2025 under the Apache 2.0 license, in 20B and 120B sizes.

New versions appear every few months, so check the Ollama library or Hugging Face for current releases rather than relying on any list. Licenses differ: some are permissive, such as Apache 2.0, and some have custom terms with use restrictions. Read the license before using a model commercially.

Option A: Set up Ollama

Ollama is a free runtime that downloads and serves models with one command. It runs on macOS, Windows and Linux and exposes a local API that other apps can use.

STEP 01Install Ollama

On macOS or Windows, download the installer from ollama.com and run it. On Linux, the official install script is:

curl -fsSL https://ollama.com/install.sh | sh

STEP 02Download and run a model

Open a terminal and run a model by name. Ollama downloads it the first time:

ollama run gemma3:12b

Pick a size that fits your memory tier. For example, gpt-oss:20b is a reasonable choice for a machine with 16 GB or more of memory available to the model. Type a question at the prompt to test it, and /bye to exit.

STEP 03Manage your models

Use ollama list to see installed models, ollama pull <model> to download without starting a chat, and ollama rm <model> to delete one and free disk space. By default, Ollama serves its API at http://127.0.0.1:11434, reachable only from the same machine.

Option B: Set up LM Studio

LM Studio is a free desktop app with a graphical interface, and as of July 2025 it is free for work use as well as personal use. It suits individual users who prefer not to touch a terminal.

STEP 04Install LM Studio and download a model

Download LM Studio from lmstudio.ai and install it. Open the model search (the Discover tab), search for a family such as Qwen or Gemma, and choose a version that LM Studio indicates will fit your hardware.

STEP 05Chat, and optionally serve an API

Load the model in the Chat tab and start asking questions. You can attach documents for the model to read locally. To let other apps on the same machine use it, start LM Studio's local server from the Developer section; it offers an OpenAI-compatible API.

Give your team a chat front end with Open WebUI

Open WebUI is an open-source, browser-based chat interface that looks and works much like ChatGPT. Paired with Ollama on a server, it gives your staff a private AI chat at an internal address, with user accounts, chat history and document upload. Review its license terms before deploying, especially if you plan to change its branding.

STEP 06Install Open WebUI with Docker

On the machine running Ollama, install Docker, then run the command from Open WebUI's documentation:

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Open http://localhost:3000 in a browser. The documentation also recommends setting a WEBUI_SECRET_KEY value so sessions survive container rebuilds. Depending on your Docker setup, Ollama may need to listen beyond localhost for the container to reach it; see the Open WebUI connection troubleshooting docs.

STEP 07Create the admin account and add users

The first account you create becomes the administrator. Create it immediately, before anyone else can reach the page. Public sign-up turns off after that. To add staff, an admin can create accounts directly, or enable new sign-ups under Settings > Admin > Authentication, where new accounts wait as pending until approved.

Securing a local LLM on the office network

STEP 08Lock down network access

  • Keep Ollama on localhost when you can. Ollama binds to 127.0.0.1:11434 by default and has no built-in user authentication. If you change OLLAMA_HOST to 0.0.0.0, anyone who can reach that port can use your models. Never expose port 11434 to the internet.
  • Put Open WebUI behind HTTPS. Use a reverse proxy with a certificate so passwords and chats are encrypted on the network.
  • Restrict by network. Place the AI server on a VLAN or firewall rule set that only allows staff devices. On a UniFi network, this is a simple traffic rule. Remote users should come in over VPN, not a port forward.
  • Use strong passwords and SSO. Open WebUI supports external authentication options; tie it to your identity provider if you can.
  • Patch and back up. Update the OS, Docker, Ollama and Open WebUI regularly, and back up the Open WebUI data volume, which holds users and chat history.
  • Watch plugins and tools. Web search and other extensions can send data outside your network, which defeats the point. Enable only what you need.
Warning

A local AI server becomes a store of sensitive data, because chat history and uploaded documents live on it. Apply the same access controls, encryption and backup policies you use for your file server.

Limits compared with frontier cloud models

Be realistic about what a local model can do. Open-weight models have improved quickly, but the largest cloud models from OpenAI, Anthropic and Google generally remain stronger at complex reasoning, long documents, coding and nuanced writing. The models that fit on modest office hardware are smaller still.

Other tradeoffs:

  • Speed: a local model on a single machine serves a few users at a time well; a whole office hammering it at once will queue.
  • Maintenance: you own updates, security, backups and hardware failures.
  • Features: cloud tools bundle connectors, voice, image generation and integrations that take extra work to replicate locally.
Tip

Many businesses run a hybrid. A local model handles sensitive, routine work, such as summarizing client files, while a business-tier cloud tool covers general drafting and research under an AI governance framework.

For the cloud side of that decision, see how to use AI in business safely.

When to call an IT professional

A single user can set up Ollama or LM Studio in an afternoon. A shared office AI server is a different job: sizing hardware, building and securing the server, HTTPS, VLANs, VPN access, backups and connecting it to internal documents. Los Angeles IT builds and secures self-hosted AI for LA businesses at $95/hr with no long-term contract, and our network infrastructure team can segment it properly on your office network.

FAQ

How to Run an LLM Locally: FAQ

Can I run an LLM on a normal laptop?

Yes, small models in the roughly 1 to 8 billion parameter range run on many modern laptops, especially Apple Silicon Macs with 16 GB or more of unified memory or PCs with a recent GPU. They are good for drafting, summarizing and simple questions. Larger, more capable models need more memory, usually a workstation with a high-VRAM GPU or a Mac with lots of unified memory.

Is a local LLM private?

Prompts and documents processed by a model running on your own hardware do not have to leave your network, which is the main privacy benefit. Privacy still depends on setup: an exposed server, an unsecured web interface, or plugins that call outside services can leak data. Treat a local AI server like any other system holding sensitive information.

What is the difference between Ollama and LM Studio?

Ollama is a lightweight runtime that downloads and serves models through a command line and a local API, which makes it a good back end for other apps and team servers. LM Studio is a desktop application with a graphical model browser and chat window, and it can also run a local API server. Both are free to use; LM Studio became free for work use in July 2025.

Which open-weight model should a business start with?

Start with a mid-size general model that fits your hardware with room to spare, from a major family such as Qwen, Gemma, Llama, Mistral or OpenAI's gpt-oss. Try two or three on your real tasks and compare quality and speed. Check each model's license for commercial use terms before deploying it.

Is running an LLM locally cheaper than ChatGPT?

Sometimes. A local model has no per-seat fee, but you pay for hardware, power, setup and maintenance, and the model may need more human correction. For a handful of light users, business-tier cloud seats are often cheaper overall. Local makes more sense for heavy, repetitive workloads, sensitive data that cannot leave the office, or offline needs.

Rather have an engineer handle it?

Talk to a Los Angeles IT engineer today. $95/hr, onsite or remote, no contracts.