Self-hosted model
A self-hosted model is an AI model that an organisation runs on hardware it controls, in its own building, private cloud or computer, instead of sending requests to a provider's service.
Most people use AI models through a hosted service: a prompt goes over the internet to the provider's data centre and the answer comes back. A self-hosted model reverses that arrangement. The organisation downloads the model's weights, the numbers that make up the trained model, and runs inference on machines it controls, whether servers in its own building, rented GPUs in a private cloud account or a single workstation. This is only possible when the weights are available, so self-hosting goes hand in hand with open-weight models.
Running a model takes serving software as well as hardware. vLLM, an open-source inference library that began at UC Berkeley's Sky Computing Lab, is a widely used example. It manages the memory holding the model's attention keys and values efficiently with a technique called PagedAttention and offers an OpenAI-compatible interface, so applications written for a hosted service can often be pointed at an in-house model with few changes. It runs on Nvidia and AMD GPUs as well as ordinary CPUs.
Hardware needs depend mainly on model size and numeric precision. When Meta released Llama 3.1 on July 23, 2024, Hugging Face set out the GPU memory needed just to load each version. The 8 billion parameter model needs 16 GB at 16-bit precision, or 4 GB when compressed to 4-bit integers, which fits on a good desktop graphics card. The 70 billion parameter model needs 140 GB at 16-bit. The 405 billion parameter model needs 810 GB at 16-bit, more than an eight-GPU H100 server holds, so it has to be spread across several servers or run at 8-bit precision. Serving real users needs further memory on top of these figures.
Organisations self-host chiefly for control. Running software on premises gives an organisation full control over its data and its security, which matters to regulated businesses such as banks that may find cloud arrangements difficult. A self-hosted model also cannot be changed or withdrawn by its provider, and it can be fine-tuned freely. The costs are the familiar ones of running your own systems: large upfront spending on hardware, specialist staff, and responsibility for maintenance, updates and backups.
The trade-off is mostly about capability against control. The strongest models from the largest labs are usually offered only as hosted services, so a self-hosted deployment typically runs a smaller or open-weight model. For many tasks, such as summarising internal documents or classifying text, that is enough. Self-hosting also does not make a system secure by itself: data stays inside the organisation only if the surrounding systems are built and run properly.
It means downloading a large language model's weights and running it on hardware you control, rather than calling a provider's API. Serving software such as vLLM loads the model and answers requests, often through an interface that mimics the hosted services so existing applications can switch over easily. It depends on the model's size and precision. Hugging Face's figures for Llama 3.1 show the 8 billion parameter version needs 16 GB of GPU memory at 16-bit or 4 GB at 4-bit, while the 405 billion parameter version needs 810 GB at 16-bit, more than a single eight-GPU H100 server. It can be, because prompts and documents never leave systems the organisation controls, which is the main reason regulated businesses choose it. Privacy still depends on how those systems are secured, logged and accessed, so self-hosting moves the responsibility in-house rather than removing it. Not automatically. Self-hosting replaces per-request charges with upfront hardware costs, power and specialist staff, so it pays off mainly at high, steady volumes or where control over data is required. For light or unpredictable use, a hosted API is usually cheaper and simpler.Common questions
What does it mean to self-host an LLM?
How much hardware do I need to run a model locally?
Is a self-hosted model more private?
Is self-hosting cheaper than using an AI API?
Search for "self-hosted LLM", "local LLM inference", "vLLM deployment" or "LLM GPU memory requirements" to plan or understand a deployment. The most dependable sources are the documentation for inference software such as vLLM, model cards and release notes from the model publishers, and technical write-ups from Hugging Face. Treat cost comparisons between self-hosting and APIs with care, since they depend heavily on how busy the hardware is kept and on what staff and maintenance costs are counted.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.