Skip to content
Book a conversation

What does it take to run a local LLM in your company?

A local LLM runs on servers your company controls, and the graphics card memory must hold the model weights, the cache for each conversation and headroom for the serving program. Learn how to estimate that memory from your task, who needs to operate the environment and how to test before buying equipment.

Luiz GardelinUpdated 13 min readRead in Markdown
Beige spiral shape inside a blue ring on a yellow background
On this pageIntroduction

A local LLM in a company is a large language model that runs on servers the organization itself controls, on its premises or in an infrastructure account in its name, without sending queries to a third-party AI service. In practice, the document someone on the team asks to summarize is read by a program installed on a company machine, and the answer is produced there. For this to work, the organization needs a well-defined task, equipment with enough memory, a program to run the model, people to maintain the environment and a test showing whether quality and response time fit the work. This article explains how to estimate each of these requirements before buying or renting a server.

What changes when an LLM runs on the company's own servers?

When an LLM runs on the company's own servers, the organization takes on tasks that a contracted service would leave to the provider. Someone has to buy or rent the equipment, install the serving program, download and update the model, control who has access, keep records and restore the service when it stops.

Running the model locally, also called local inference, solves one specific concern: queries and documents no longer pass through an external service. It does not solve the others on its own. An internal server without access control lets a person in one area read documents from another. A smaller model may make more mistakes on the task the team needs. That is why the project starts with the work the model will do, not with the machine.

If you are still deciding between running the model yourself and using a managed AI service, that comparison is in the article on self-hosted or managed AI. Here, we start from the point where the organization wants to know what local execution requires.

Why does the task come before choosing the server for a local LLM?

The task comes before choosing the server for a local LLM because it defines the size of the model, the amount of text it reads at a time and the number of people using it simultaneously. These three factors determine the memory required, and memory is the most expensive part of the equipment.

Before asking for a quote, record five pieces of information about the task:

  1. What goes in: document type, usual length in pages and language.
  2. What comes out: summary, classification, field extraction or an answer to a question.
  3. How many people use it and how many, at most, use it at the same time.
  4. What response time the team accepts, in seconds, for a typical request.
  5. Who reviews the answer before it moves on in the process.

Consider a hypothetical example. A law office with 40 people wants to summarize contracts of up to 15 pages and list deadlines and obligations. At peak time, up to six people request summaries at once. The summary must arrive in under a minute, and the lawyer responsible for the contract checks the deadlines before recording them in the system. With this data, you can already do the memory calculation and set up a test.

What does the data show about the memory needed to run a local LLM?

To run a local LLM, the graphics card memory must hold the model weights, the cache for each ongoing conversation and headroom for the serving program. The graphics card, or GPU, is the processor that does the model's calculations, and its memory is separate from the server's regular memory. The model weights are the numbers learned during training. The cache stores information about each token, the piece of text the model processes, so it does not have to recompute everything for each word it generates.

The documentation for vLLM-Omni, a project linked to the vLLM serving program, estimates weight memory by multiplying the number of parameters by the bytes per parameter: a 7-billion-parameter model takes about 14 GB at 16 bits and about 7 GB at 8 bits. The same documentation lists, besides the weights, the cache, activation memory and system overhead, and advises against reserving 100% of GPU memory for the model, because it leaves no buffer.

The cache grows with the length of the text and the number of conversations. According to Sebastian Raschka's memory calculator, the Qwen3 8B model stores 144 KiB of cache per token at 16 bits. A conversation of 8,192 tokens takes 1.13 GiB, and one of 32,768 tokens takes 4.5 GiB, on top of the 14.9 GiB of weights. The calculator states that each concurrent conversation keeps its own cache, while the weights are shared, and that the total excludes the serving program's memory.

Quantization reduces the space taken by the weights by storing each parameter with fewer bits. According to Spheron, a GPU rental company, the 4-bit file of Qwen3-32B is 19.8 GB for 32.8 billion parameters, about 0.6 byte per parameter. In the same company's calculation, that model fits on a 24 GB card, but the remaining memory holds about 20,000 tokens of context, half of what the model accepts. Spheron also notes that quantizing the weights does not reduce the cache and recommends adding 0.5 to 2 GB for the serving program and reserving another 10% to 15% for peaks.

Memory componentWhat makes it growDocumented exampleSource
Model weightsNumber of parameters and bits per parameter7 billion parameters: about 14 GB at 16 bits and 7 GB at 8 bitsvLLM-Omni
4-bit weightsFormat of the quantized fileQwen3-32B: 19.8 GB file, about 0.6 byte per parameterSpheron
Cache for one conversationTokens read and generated in the conversationQwen3 8B: 1.13 GiB at 8,192 tokens and 4.5 GiB at 32,768 tokensSebastian Raschka
Long-context cacheLarger models and long textsLlama 3.1 70B: about 40 GB for one 128,000-token conversationSpheron
Serving program and marginProgram chosen and usage variation0.5 to 2 GB, plus a 10% to 15% margin for peaksSpheron

These figures come from technical documentation, a public calculator and an infrastructure provider, and apply to the models cited. They do not replace measurement on your equipment, with your serving program and your documents.

How do you estimate the memory of a local LLM for your company's task?

To estimate the memory of a local LLM, add the model weights, the cache for each concurrent conversation, the serving program's overhead and a margin for peaks. You will need the five pieces of task information, the name of the candidate model and the model page with its parameter count.

  1. Convert the documents into tokens. Ask someone who knows the tool to count the tokens in three typical documents, adding the instruction and the expected answer. In the law office example, assume a 15-page contract with instruction and summary stays under 8,192 tokens. If a document exceeds the limit the model accepts, called the context window, the task has to be split.
  2. Calculate the weights. Multiply the number of parameters by the bytes per parameter: 2 bytes at 16 bits, 1 byte at 8 bits and about 0.6 byte in 4-bit files. For Qwen3 8B at 16 bits, the calculator cited shows 14.9 GiB.
  3. Calculate the cache. Multiply the cache per conversation by the maximum number of concurrent conversations. In the example, 1.13 GiB times six conversations is about 6.8 GiB.
  4. Add the overhead and the margin. Add 2 GB for the serving program and apply a 15% margin. In the example, 14.9 GiB of weights, 6.8 GiB of cache and about 1.9 GiB of overhead add up to 23.6 GiB, which becomes about 27 GiB with the margin.
  5. Compare with the card. A 24 GB card has about 22.4 GiB, because 1 GiB equals 1.07 GB. The example does not fit at 16 bits. With 4-bit weights, about 4.5 GiB, the total drops to about 15 GiB and fits.
  6. Record what changed. If you reduced the bits to fit the card, note that the quality of the quantized model must be checked in the test with real documents.

The result is a memory range per scenario, not a purchase recommendation. If the number of concurrent users doubles, the cache doubles. If documents are three times longer, the cache per conversation grows in the same proportion. Redo the calculation with the peak expected for the coming months.

Which programs are used to run a local LLM?

The programs used to run a local LLM fall into those meant for testing a model on a computer and those that serve many people at once on a server. Ollama and LM Studio install and run models with a few commands or through a graphical interface, and are usually used for experimenting. llama.cpp is the engine many of these programs use underneath. vLLM was built to serve many simultaneous requests and has a parameter, gpu_memory_utilization, that sets the fraction of GPU memory the program may use.

The choice of program affects available memory, the model formats accepted and how other company tools connect to the model. Check whether the program accepts the model and quantized format you chose, whether it offers a programming interface compatible with the applications that will query it, and who will update it when a new version comes out. Also check the model's license before putting it into use, as covered in the article on AI model and application licenses.

Who needs to operate a local LLM after installation?

To operate a local LLM after installation, the organization needs at least four defined responsibilities, even if the same person holds two of them. Without these names, the server works in the first month and stops being maintained at the first failure.

ResponsibilityWhat it doesQuestion that must be answered
Technical operationUpdates the system, the card drivers and the serving program, monitors memory use and restores the serviceWho responds when the model stops in the middle of the workday?
Data and accessDefines who queries which documents, what is logged and for how longCan a person in one area read documents from another area?
User departmentAssesses whether answers serve the work and reports recurring errorsWho checks the answer before it moves on in the process?
Model decisionsApproves changing the model, version or quantized formatWhat test must the new version pass before going into use?

In the law office example, technical operation can stay with an IT service provider already under contract, as long as the contract covers the model server. Responsibility for data and access lies with the partner in charge of compliance with Brazil's LGPD, and the user department is the contracts team. Local execution does not remove the need for a data protection review, covered in the article on complying with the LGPD when contracting AI tools.

How do you test a local LLM before rolling it out to the whole team?

To test a local LLM before rolling it out to the whole team, run a pilot project with real documents, reference answers and the peak number of concurrent conversations. The test produces three results: answer quality, response time and memory use. You will need test equipment, which can be rented by the hour, the serving program installed and a person from the user department with time to review.

  1. Build the test set. The person from the user department selects 30 real documents that have already been handled and notes the correct answer for each. In the law office, these are 30 contracts with the deadlines and obligations the lawyer recorded. Remove personal data that the task does not need.
  2. Define the approval criterion. Before running, write down what counts as a correct answer and what proportion of correct answers the team accepts. For example: all deadlines found, with the correct date, in at least 27 of the 30 contracts. The article on acceptance criteria for AI projects explains how to write this criterion.
  3. Run one document at a time. Whoever operates the server processes the 30 documents and saves the answers. The person from the user department compares each answer with the reference and marks it right or wrong, with the reason.
  4. Run the peak. Send six documents at once, repeating a few times, and note the time until the last complete answer. During the test, monitor the card's memory. On NVIDIA cards, the command nvidia-smi --query-gpu=memory.total --format=csv, shown in the vLLM-Omni documentation, displays total memory, and the same program shows usage during execution.
  5. Compare with the estimate. If memory use exceeds the estimate or the program drops conversations for lack of memory, reduce the context, the number of conversations or the bits of the weights and return to step 3.
  6. Record the decision. Note the model, version, format, serving program, equipment, proportion of correct answers and peak response time.

The test is complete when another person can repeat the run using the same record and reach similar results. It also shows what still requires human judgment: in the example, the lawyer keeps checking deadlines before recording them, even if the model gets most of them right.

When is a local LLM not the right path for your company?

A local LLM is not the right path when no one in the organization can take on technical operation, when usage volume is too small to justify dedicated equipment, or when the test shows that the models that fit your budget do not reach the quality the task requires. In these cases, the project can restart with a comparison against a contracted service or with a different task.

It is also worth waiting when the task is not yet defined. A team that wants "one AI for everything" cannot estimate context or the number of conversations, and the server ends up sized by guesswork.

How does The Company Brain help evaluate a local LLM?

Before recommending any equipment, we talk with the people who carry out the task and map how the work actually happens. In the organizational AI assessment, we survey the documents, the volume and who reviews each answer, and compare implementation effort with impact on the work. This survey shows whether local execution is necessary for that task or whether another solution works.

When the decision is to move forward, the work continues in custom AI solutions:

  1. A memory estimate for each usage scenario.
  2. A test set with real documents and reference answers.
  3. The pilot record, with quality, response time and memory use.
  4. The division of responsibilities for operation, data, the user department and model decisions.

If your team wants to use AI with internal documents and the question is whether the model can run inside the company, bring the task, the document type and how many people would use it. We can talk about how to estimate and test that case. Schedule a conversation.

Common questions

What is a local LLM in a company?

A local LLM in a company is a large language model that runs on servers the organization itself controls, without sending queries to a third-party AI service. Documents are read and answers are produced on a company machine. In return, the organization takes on buying or renting the equipment, updating the model, access control and maintenance.

How much GPU memory does a local LLM need?

The GPU memory a local LLM needs is the sum of the model weights, the cache for each concurrent conversation, the serving program's overhead and a margin for peaks. According to the vLLM-Omni documentation, a 7-billion-parameter model takes about 14 GB at 16 bits. According to Sebastian Raschka's calculator, Qwen3 8B uses another 1.13 GiB of cache for each 8,192-token conversation.

What is the difference between running a local LLM at 16 bits and at 4 bits?

Running a local LLM at 4 bits reduces the weights from 2 bytes to about 0.6 byte per parameter, according to Spheron. This allows cards with less memory, but it does not reduce the cache for each conversation. The quantized model's quality must be checked with the task's real documents before use.

What are the risks of running a local LLM in a company?

The main risk of running a local LLM is installing the server without named people to operate it, control access and decide on updates. Local execution does not stop a person from reading another area's documents if access control is not configured. There is also the risk of sizing memory poorly when the number of concurrent conversations or document length has not been surveyed.

How do you test a local LLM before buying the server?

To test a local LLM before buying the server, run a pilot on rented equipment with about 30 real documents and the correct answer for each. Define the approval criterion beforehand, process the documents one at a time, then simulate the peak of concurrent conversations and monitor response time and memory use. Record the model, version, format and result so another person can repeat the test.

When is it not worth running a local LLM in a company?

It is not worth running a local LLM when no one in the organization can take on technical operation, when usage volume is too small to justify dedicated equipment, or when the test shows the possible models do not reach the required quality. It is also better to wait while the task is undefined, because without it memory cannot be estimated.

Sources

  1. GPU Memory Calculation and Configuration vLLM-Omni (vLLM project)

    Approximate formula for weight memory and the components of GPU memory during execution. General estimates; they do not measure specific equipment.

  2. LLM Memory Calculator Sebastian Raschka, LLM Architecture Gallery

    Cache per token and weight memory for Qwen3 8B. A logical estimate that excludes activations and serving program memory.

  3. LLM VRAM Requirements: How Much GPU Memory You Need (2026) Spheron

    Quantized file size for Qwen3-32B, context limit on a 24 GB card, Llama 3.1 70B cache and recommended margin. Commercial source from a GPU rental company.

Written by

Luiz Gardelin

Founder and lead consultant at The Company Brain

Luiz Gardelin is the founder and lead consultant at The Company Brain, an AI organizational transformation consultancy based in Brazil. He also founded Webinhood and Tropk.ai.

See all content by this author

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation

Continue reading

All resources