Skip to content
HIPS
  • Earn with your GPU
  • Pricing
  • Docs
Sign inJoin early access
  1. Learn
  2. /
  3. Self-hosted LLM

Self-hosted LLM: what it takes and what it costs

A self-hosted LLM is an open-weight language model you run on a GPU you control, owned or rented, through an inference server such as vLLM, llama.cpp or Ollama, instead of calling a provider's API. Your data stays on your machines. In return, you size the GPU, run the software and pay for every hour it is on.

A HIPS guide. Updated December 2, 2026. Every figure names its source, listed at the end.

On this page+
  1. 01When self-hosting pays
  2. 02How to self host an LLM, step by step
  3. 03Which inference server to run
  4. 04What a self-hosted LLM costs
  5. 05Self-hosting on a rented GPU
  6. 06Questions
  7. 07Sources
Join early accessRent a GPU by the millisecond
FIG. 1Self-hosted LLM
YOUR APP/v1/chat/completionsENDPOINTOPENAI-COMPATIBLEYOUYOUPROVIDERINFERENCE SERVERVLLM, LLAMA.CPP, OLLAMAYOUYOUPROVIDERDRIVERYOUPROVIDERPROVIDERGPU AND MEMORYYOUPROVIDERPROVIDERYOUR OWNMACHINEA RENTEDGPUA PROVIDER'SAPI

On this page

  1. 01When self-hosting pays
  2. 02How to self host an LLM, step by step
  3. 03Which inference server to run
  4. 04What a self-hosted LLM costs
  5. 05Self-hosting on a rented GPU
  6. 06Questions
  7. 07Sources
01

When self-hosting an LLM pays, and when it does not

It pays when:

  • Your data may not leave machines you control.
  • Your GPU will be busy most hours of the day, so its cost spreads over many tokens.
  • You need a model no provider serves, such as one you fine-tuned.
  • You must pin one exact model version for years, or run with no internet.

It does not when:

  • Your traffic comes in bursts and the GPU would sit idle between them.
  • You need the largest models, which take more GPUs than you want to own.
  • Nobody on your team wants to run servers at three in the morning.
  • You want to switch between many models as new ones appear.
02

How to self host an LLM, step by step

  1. 01

    1. Choose the model.Start from the task, then check the license and the size. Licenses differ by model: the gpt-oss models, for example, carry the Apache 2.0 license, as their model card states.[1]

  2. 02

    2. Size the GPU.The weights take the parameter count times the bytes per parameter, and the KV cache grows with context length and concurrent requests. NVIDIA's example: 7 billion parameters in 16-bit precision "would take roughly 7B * sizeof(FP16) ~= 14 GB in memory."[2] The private AI server guide has the full method, and the VRAM calculator does the arithmetic.

  3. 03

    3. Mind the context length.A longer context needs more memory. Ollama's documentation sets its default by the GPU's memory: "< 24 GiB VRAM: 4k context", "24-48 GiB VRAM: 32k context", ">= 48 GiB VRAM: 256k context", and warns that "Setting a larger context length will increase the amount of memory required to run a model."[3]

  4. 04

    4. Pick the inference server.It loads the weights, schedules requests and exposes an API. The table below compares four.

  5. 05

    5. Serve an OpenAI-compatible endpoint.Most servers speak OpenAI's request shape, so the same client code works against your server and against a provider. Point your client's base URL at your server.

  6. 06

    6. Lock it down.Keep the server off the public internet unless it sits behind authentication and TLS. Ollama, for one, "binds 127.0.0.1 port 11434 by default."[4]

  7. 07

    7. Measure it.Send your real prompts at your real concurrency, and record time to first token and tokens per second. The low-latency guide has a script.

  8. 08

    8. Keep it running.Update drivers and the server, watch memory and errors, and plan for the day the GPU fails.

03

Which inference server to run

Each project in its own words, read December 2, 2026.

Which inference server to run
ServerIn its own wordsFits
vLLM"vLLM is a fast and easy-to-use library for LLM inference and serving." It lists "Continuous batching of incoming requests, chunked prefill, prefix caching" and an "OpenAI-compatible API server, plus Anthropic Messages API and gRPC support".[5]A data-center GPU serving many requests at once
llama.cpp"The main goal of llama.cpp is to enable LLM (and MLLM) inference with minimal setup and state-of-the-art performance on a wide range of hardware - locally and in the cloud."[6]Quantized models on almost any hardware, from laptops to servers
Ollama"Ollama runs locally. We don’t see your prompts or data when you run locally." and "Ollama supports a subset of the OpenAI API".[4]One machine, the quickest start
LM Studio"Serve local models on OpenAI-like endpoints, locally and on the network" and "Nothing you enter into LM Studio when chatting with LLMs leaves your device." Its desktop app terms license it "solely for Your personal and / or internal business purposes".[7]A desktop with a graphical app

Throughput differs by server, model and settings. The vLLM paper reported that its memory management "improves the throughput of popular LLMs by 2-4× with the same level of latency compared to the state-of-the-art systems" of 2023.[8] Test the servers you shortlist on your own workload.

04

What a self-hosted LLM costs

Self-hosting turns a price per token into a price per hour. Two formulas tell you which is lower for your workload.

Your price per million tokens. Divide the GPU's hourly cost by the tokens it produces in an hour, then multiply by one million:

cost per million tokens = hourly cost ÷ (tokens per second × 3,600) × 1,000,000

The break-even rate. Divide the GPU's hourly cost by an API's price per token, then by 3,600. Below that many tokens a second, paying per token costs less; above it, the GPU does:

break-even tokens per second = hourly cost ÷ price per token ÷ 3,600

A worked example, with dated HIPS prices. gpt-oss-120b fits "a single 80GB GPU", by its model card.[1] HIPS rents an NVIDIA RTX PRO 6000 Blackwell with 96 GB at $2.5272 an hour kept on, or $3.6144 an hour on demand, on its price list of November 27, 2026. The same model costs $0.0294 per million input tokens and $0.147 per million output tokens through HIPS's API (catalog of December 1, 2026, Certified pool). Since input and output are priced apart, the table gives both ends: a workload that is all output, and one that is all input. Any real mix falls between.

What a self-hosted LLM costs
GPU, as rentedModel and API priceBreak-even if every token were outputBreak-even if every token were input
RTX PRO 6000, kept on, $2.5272 an hourgpt-oss-120b, $0.147 out, $0.0294 in4,776 tokens a second23,878 tokens a second
RTX PRO 6000, on demand, $3.6144 an hourgpt-oss-120b, $0.147 out, $0.0294 in6,830 tokens a second34,150 tokens a second
RTX PRO 6000, kept on, $2.5272 an hourgpt-oss-20b, $0.0882 out, $0.0176 in7,959 tokens a second39,886 tokens a second

These are thresholds, not speeds: whether one GPU sustains them depends on the model, the server and how many requests it batches. Measure your own rate before you decide. The arithmetic for the first cell: $2.5272 ÷ $0.147 per million = 17.19 million tokens an hour, which is 4,776 a second.

Utilization changes everything. The formulas assume the GPU is busy every second it is paid for. A GPU that is idle half the day produces half the tokens for the same hourly cost, so each token costs twice as much. A batch API moves the line the other way: on HIPS, batch jobs are billed at half the on-demand rate of the same model, which doubles every break-even rate in the table.

What the formulas leave out. The hours your team spends on the server, storage for model files, data transfer, a spare GPU for failover, and for owned hardware, power, space and the purchase itself.

05

Self-hosting on a rented GPU

If you want your own inference server without owning hardware, HIPS rents the GPU's work by the millisecond.

  • Your container, your server. Package vLLM, llama.cpp or your own code with your model as a container image. GPU rental on HIPS gets you a GPU that runs your container, billed by the millisecond, kept on for as long as you want. You never log in to the machine: no SSH, no shell, no virtual machine.
  • Private while it runs. One GPU runs one workspace's worker at a time, and its memory is cleared before the next workspace's worker starts. Workers run in the Certified pool: data-center servers HIPS operates or has certified.
  • Kept on or on demand. Active workers keep your model loaded; flex workers start with traffic and stop after your idle timeout. Scaling by itself is a serverless GPU endpoint.
  • Business plan. GPU rental is on the Business plan: $200 a month, including $250 of credits each month.

Or skip the server. To have HIPS serve an LLM you bring, see Deploy an LLM from Hugging Face: HIPS imports the weights and bills by the token. To use an open model HIPS already serves, call the LLM API. HIPS never trains on, retains or logs your prompt data.

HIPS does not rent a machine you log into, and lists only the GPU types it can run your container on: today the RTX PRO 6000 Blackwell, 96 GB.

  • GPU rental
  • GPU pricing
  • The model catalog
06

Self-hosted LLM questions

What is a self-hosted LLM?

An open-weight language model you run yourself, on a GPU you own or rent, through an inference server such as vLLM, llama.cpp or Ollama. Your application calls your server instead of a provider's API.

Does self-hosting an LLM cost less than an API?

It depends on how busy the GPU is. Divide the GPU's hourly cost by the API's price per token: if your workload keeps the GPU producing more tokens a second than that, the GPU costs less per token; if not, the API does. The worked example above runs the numbers with dated HIPS prices.

Can I self-host an LLM on my own computer?

Yes, if the model fits your memory. The gpt-oss-20b model card says it runs "within 16GB of memory".[1] Ollama and LM Studio both run on desktop computers.

What GPU do I need to self-host an LLM?

One with enough memory for the weights at your chosen precision, plus the KV cache for your context length and concurrency. A 7-billion-parameter model in 16-bit precision needs about 14 GB for its weights alone, by NVIDIA's arithmetic.[2]

Is a self-hosted LLM more secure?

It is as secure as you run it. Self-hosting removes the provider from the data path, and puts patching, access control and logging on you.

Can I self-host a closed model?

No. Only models whose weights are published can be self-hosted. Closed models run on their maker's service, under its terms.

07

Sources

  1. [1]

    Hugging Face, the openai/gpt-oss-120b model card, read December 2, 2026.

    huggingface.co/openai/gpt-oss-120b
  2. [2]

    NVIDIA Technical Blog, "Mastering LLM Techniques: Inference Optimization", published November 17, 2023, updated 2025, read December 2, 2026.

    developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/
  3. [3]

    Ollama, context length documentation, read December 2, 2026.

    docs.ollama.com/context-length
  4. [4]

    Ollama, FAQ and OpenAI compatibility documentation, read December 2, 2026.

    docs.ollama.com/faqdocs.ollama.com/api/openai-compatibility
  5. [5]

    vLLM documentation, home page, read December 2, 2026.

    docs.vllm.ai/en/latest/
  6. [6]

    llama.cpp, its GitHub repository's README, read December 2, 2026.

    github.com/ggml-org/llama.cpp
  7. [7]

    LM Studio, app documentation, offline operation documentation and desktop app terms, read December 2, 2026.

    lmstudio.ai/docs/applmstudio.ai/docs/app/offlinelmstudio.ai/app-terms
  8. [8]

    "Efficient Memory Management for Large Language Model Serving with PagedAttention", arXiv 2309.06180, submitted September 12, 2023, read December 2, 2026.

    arxiv.org/abs/2309.06180
  9. HIPS: GPU rental price list of November 27, 2026; HIPS catalog of December 1, 2026.

Run your own model, without the hardware

Join early access. Sign-up is by invitation.

Join early accessGPU rental by the millisecond

Guides to running large language models

  • Private LLM: what it means and four ways to run one
  • Private AI server: buy, rent or use an API
  • LLM inference, explained
  • Low-latency AI inference: measure it, then cut it
  • How to reduce LLM API costs

Product

  • Inference
  • Models
  • Serverless GPUs
  • GPU rental
  • Deploy your model
  • Coding agents
  • How it works
  • Use cases
  • Pricing

Models

  • DeepSeek API
  • Kimi API
  • Qwen API
  • GLM API
  • Gemma API
  • Mistral API
  • gpt-oss API
  • All models

Developer

  • Docs
  • Quickstart
  • Migrate to HIPS
  • HIPS SDK
  • Batch jobs
  • API reference
  • Claude Code pricing
  • Claude Code limits
  • Best models for coding
  • Token counter
  • LLM price table
  • VRAM calculator
  • Compare models

Provider

  • Earn with your GPU
  • Register GPU interest
  • Download for Mac
  • Download for Windows
  • Download for Linux

Resource

  • Security and Data
  • Resources
  • Tools
  • Guides
  • llms.txt

Compare

  • OpenRouter alternatives
  • Together AI alternatives
  • Groq alternatives
  • Runpod alternatives
  • Claude Code alternatives
  • Cursor alternatives
  • All comparisons

Company

  • About
  • Contact
  • Affiliate program
  • HIPS Payments

Legal

  • Legal
  • Consumer Health Data Privacy Policy
  • Report content
  • Cookie preferences

Support

  • Contact HIPS
  • Looking for payments support?

HIPS. AI inference for builders.

hips.com

Hyperscale Inference Processing Systems OÜ