S
Stitex
Infrastructure

How to Build an On-Premise AI Server: Step-by-Step Guide

Spinning up a model on your own hardware can take an evening. Getting whole departments to rely on it every day takes real engineering, not just installing a model. Here's the full path, from picking a model to security, with real configurations and prices from a server we run ourselves for our own products.

July 21, 202613 min readStitex Technologies

Why Your Company Needs a Self-Hosted AI Server

An on-premise AI server solves three problems a cloud chatbot can’t. First, your data stays put: contracts, personal records, and internal correspondence never leave your network, which matters under GDPR-style rules and, for companies operating in Russia, the 152-FZ data-protection law. Second, the cost is fixed: you pay for hardware once, instead of a token bill that grows every time you add an active user. Third, independence: the server keeps running through outages, without an internet connection, and without depending on a foreign vendor’s billing or access policies.

Still weighing cloud versus your own hardware? We break down the three-year total cost of ownership in a companion piece: on-premise LLM vs. the cloud. Below is how to actually build the thing.

Step 1. Define Your Use Cases and User Count

This is the step that matters most: your use cases and peak concurrent users determine the model size, and the model size determines the hardware. Get it wrong and you either overpay for GPUs you didn’t need, or end up with a server that grinds to a halt once fifteen people are using it at once.

Start with a list of real scenarios. In practice, they almost always fall into a handful of groups:

  • Documents and internal knowledge — search, 'how do we usually handle this' answers, policy summaries,
  • Legal and finance work — contract review, invoice and receipt processing, reconciliation,
  • Customer-facing tasks — support, drafting quotes, reviewing correspondence,
  • Development — a code assistant that doesn't send your source code out the door,
  • Analytics — plain-language reports, spotting anomalies in the data.

Separately, pin down your peak number of simultaneous requests. Five people who ask a question now and then and fifty people who live in the tool all day long need fundamentally different hardware.

Step 2. Choose a Model Class

Local models are measured by parameter count, in billions (B). More parameters generally means smarter answers and more VRAM required. For business use, models in the 27–32B “working class“ are usually the sweet spot: capable enough for most tasks, and reliable at following long, detailed instructions.

Model classWhat it's good for
7–9BChat, summarization, simple lookups against a knowledge base. Fast and cheap, but loses the thread on long instructions.
12–14BHandles documents well: drafts, emails, basic code. The practical minimum for real work.
27–32BContract review, complex multi-step instructions, vision, long context. The sweet spot for business use.
70BClose to top-tier cloud models on most business tasks. Needs two GPUs.
100B+ (MoE)The best reasoning quality available locally. Needs server-grade accelerators and dedicated power.

The good news: nearly every strong model released in 2026 is open-weight (Qwen, Llama, DeepSeek, Gemma, Mistral) and free to use commercially. You’re paying for hardware and setup, not a model license.

Step 3. Size the GPU Memory and Pick Hardware

The resource that actually limits local AI isn’t the CPU or system RAM, it’s video memory (VRAM). The whole model has to fit in the GPU’s memory at once. A rough rule of thumb for a compressed (quantized) model: about as many gigabytes of VRAM as the model has billions of parameters, plus headroom for context length and concurrent users.

Sizing memory precisely
A precise VRAM estimate has to account for the model weights, the context window, any vision or speech models running alongside it, and how many people hit the server at once. A rule of thumb gets you in the right ballpark; real capacity planning needs real numbers for your own workload.

Beyond the GPU, a server also needs a CPU, system RAM (usually about twice the total VRAM), fast NVMe storage for models and data, and a power supply and cooling sized for the load. The GPU is what sets the ceiling on quality, and it eats most of the budget.

Step 4. Pick a Form Factor: Tower or Rack

The same model can be built into two very different boxes. The choice comes down to where the server will actually live.

Tower Server

A powerful workstation in a floor-standing case. It sits right in the office, runs off a regular outlet, and needs no rack or server-room cooling. Quiet, cheaper to buy, and quick to get running. One or two GPUs cover models up to 70B — a good fit for 5 to 50 users.

Rack Server (4U)

A server-grade build for a 19-inch rack: redundant power, hot-swap drives, cooling built for 24/7 operation, and room for two to eight GPUs packed in tight. This is what busy departments and growing headcounts need: 50 users and up.

Step 5. Build the Software Stack

“Install the model“ is the easy part. A server people actually rely on every day is a stack with several layers:

  • Inference engine — runs the model and serves requests, with queuing and batching for multiple users at once,
  • Web chat interface for staff, with access split by department,
  • Search over your own documents (RAG) — the model answers from your files, not from memory,
  • Vision and speech models — if you need photos, scanned documents, or call transcripts handled,
  • Integrations — accounting software (1C is the standard in Russia; elsewhere, your own ERP), CRM, email, Slack or Telegram, as needed.

Step 6. Train It on Your Own Data

A corporate AI tool is only as valuable as what it knows about your company, and that’s rarely solved by retraining the model’s weights (expensive, and usually unnecessary). Most of the time it’s done through RAG: your website, product catalog, documents, policies, and internal wiki get indexed, and the model answers by pulling from them. That way it speaks in your own facts instead of making things up, and updating its knowledge is as simple as adding a document.

The quality of RAG comes down to how documents are chunked, how good the embeddings are, and whether results get reranked before the model sees them. That’s real engineering work — and it’s exactly where DIY setups tend to start answering questions nobody asked.

Step 7. Lock Down Security

The whole point of running your own server is confidentiality, so access policy deserves to be strict. There are three common modes, up to full isolation:

  • Air-gapped: the server is physically disconnected from the internet, and no request ever leaves the building — maximum protection,
  • Hybrid: routine work stays local, and only rare, complex queries go out to an external model, after stripping names, ID numbers, and figures,
  • Audit-logged: every request that leaves for an external API is logged, what went out and when, for after-the-fact review.

Ready-Made Configurations and Pricing

So you’re not budgeting blind, here’s a turnkey ballpark: hardware, assembly, model setup, and configuration. The final quote depends on exchange rates and GPU availability, but the order of magnitude looks like this (dollar figures are rough, at roughly ₽90 to the dollar, for orientation only):

ConfigurationHardwareUsersTurnkey price
Starter1 GPU · 24GB5–15 peoplefrom ₽450,000 (~$5,000)
Standard1 GPU · 32GB15–50 peoplefrom ₽800,000 (~$8,900)
Advanced2 GPUs · 48GB+50–150 peoplefrom ₽2,000,000 (~$22,000)
Maximumserver-grade 80GB+150+ peoplefrom ₽5,000,000 (~$56,000)

We keep pricing transparent: components are billed at current market rates with no hidden markup on hardware, and our own work (sourcing, assembly, testing, and model setup) is billed separately. Already have a suitable server? We’ll deploy on it, and all that’s left is the setup.

“Just Buy a GPU and Set It Up Ourselves“ — Where Teams Usually Get Stuck

Getting a model running on one machine for one person really is simple. The trouble starts once whole departments need to rely on it every day. Here’s what usually eats up the weeks:

  • Picking the model and the quantization level — too much compression kills quality, too little won't fit in memory; the balance only shows up in tests on your own tasks,
  • Document search — without proper RAG the model answers from memory instead of your files,
  • Multiple users at once — what flies for one person grinds to a halt at fifteen without queuing and real memory planning,
  • Integrations and access control — ERP or accounting software, CRM, permissions by department; this is where "installed a model" ends and "a system" begins,
  • Maintenance — models and libraries move fast, and a setup with no upkeep is stale within six months.

Bottom Line

An on-premise AI server comes down to seven steps: use cases → model → GPU memory → form factor → software stack → training on your own data → security. None of it is out of reach for an ordinary company, and it typically pays for itself once you’re past 10–15 active daily users. The hard part isn’t turning it on, it’s keeping the server steady under real departmental load and making sure it answers with your facts, not made-up ones. If you’d rather skip the trial and error, we build these servers turnkey and support them afterward.

We'll spec and build it for your team

Tell us how many people will use it and what kind of documents they'll work with, and we'll size the configuration and quote a turnkey price. The consultation is free.