"Self-host AI on-premise so data never leaves the organisation" is an increasingly popular direction. But before buying hardware, the first question has to be: how much does it cost? This article breaks down the three real costs of running a large language model (LLM) yourself: VRAM (how much GPU memory a model needs), electricity (what a GPU running 24/7 costs at official Vietnam rates), and hardware (GPUs or Apple Silicon machines such as Mac Studio) — then compares them against calling a cloud API for the same model. Every figure is sourced from public data, checked on 18 July 2026; the Mac Studio / Mac mini sections were updated on 24 September 2026.
Quick summary
- VRAM needed: estimate quickly as parameters × bytes per parameter. A 70–73 billion-parameter model needs ~36 GB of VRAM at INT4 quantization, ~145 GB at FP16 (weights only, before overhead).
- GPU electricity: at Vietnam's average retail electricity price of VND 2,204.0655/kWh (excl. VAT, from 10 May 2025 — Ministry of Industry and Trade), one H100 (700W TDP) running 24/7 draws ~504 kWh ≈ VND 1.11 million/month in electricity — GPU alone.
- Hardware is the biggest cost — the capital to buy machines typically dwarfs electricity; it is the variable that decides the break-even point. Data-centre GPU prices swing with the market; Mac Studio has public prices: from 79,800,000₫ (AI Box package, 36GB) to 182,400,000₫ (AI Enterprise package, 96GB), VAT included.
- Mac Studio electricity: per Apple, maximum measured consumption is about 200W (M5 Max) to 385W (M5 Ultra) for the whole machine — roughly VND 0.32–0.61 million/month if run continuously at maximum.
- Versus cloud API: for the same Qwen2.5-72B, the reference cloud price is ~$0.475 in / $0.495 out per 1M tokens (Artificial Analysis). At low–moderate volume, renting the API is still cheaper than self-hosting because there is no hardware capital.
- When self-hosting pays off: high, continuous usage — or when you are required to keep data on-site (compliance, data sovereignty) — not as a default "self-hosting is always cheaper".
Key facts (sourced)
- Vietnam average retail electricity price: VND 2,204.0655/kWh (excl. VAT), effective 10 May 2025 — Ministry of Industry and Trade / EVN.
- GPU TDP (official NVIDIA): RTX 4090 = 450W; A100 = 300W (PCIe)/400W (SXM); H100 = up to 700W (SXM).
- Parameter counts (HuggingFace model cards): Qwen2.5-7B = 7.61B; Qwen2.5-32B = 32.5B; Llama 3.3 70B = 70.6B; Qwen2.5-72B = 72.7B.
- Cloud API price for the same model (Qwen2.5-72B, provider median — Artificial Analysis): $0.475 input / $0.495 output per 1M tokens.
- Reference exchange rate: ~VND 26,440/USD (Vietcombank sell, 17 Jul 2026).
- Mac Studio power (Apple): maximum measured ~200W (M5 Max 18-core CPU/32-core GPU) and ~385W (M5 Ultra 36-core CPU/80-core GPU); maximum continuous power rating 480W. Mac mini: maximum continuous power rating 155W.
- Machine prices for Namtech's three internal AI packages (Namtech selling price, 24 Sep 2026, VAT included): AI Box 79,800,000₫ · AI Pro 111,150,000₫ · AI Enterprise 182,400,000₫.
How much VRAM does a model need?
A model needs a minimum amount of GPU memory (VRAM) equal to its parameter count times the bytes stored per parameter. At FP16/BF16 precision each parameter takes 2 bytes; quantizing down to INT8 makes it 1 byte, INT4 makes it 0.5 byte. So a 72.7-billion-parameter model (Qwen2.5-72B, per its HuggingFace model card) needs ~145 GB of VRAM at FP16, but only ~36 GB at INT4 — enough to fit one 80 GB GPU. That is why quantization is nearly mandatory for self-hosting.
Important caveat: the numbers in the table below are weights only. In practice you must add roughly 20–30% for KV-cache, activations and runtime overhead — so treat these as a floor, not a recommended configuration. (GB here uses billions of bytes, to compare cleanly against GPU capacities.)
| Open model | Parameters | VRAM FP16 (2 bytes) | VRAM INT4 (0.5 byte) | Suggested GPU (INT4, incl. overhead) | Matching Mac Studio (estimate) |
|---|---|---|---|---|---|
| Qwen2.5-7B | 7.61B | ~15.2 GB | ~3.8 GB | 1× RTX 4090 (24 GB) — ample | AI Box (36GB) — ample |
| Qwen2.5-32B | 32.5B | ~65 GB | ~16.3 GB | 1× RTX 4090 (24 GB), just fits | AI Box (36GB) |
| Llama 3.3 70B | 70.6B | ~141 GB | ~35.3 GB | 1× A100/H100 80 GB, or 2× RTX 4090 | AI Pro (64GB) |
| Qwen2.5-72B | 72.7B | ~145 GB | ~36.4 GB | 1× A100/H100 80 GB, or 2× RTX 4090 | AI Pro (64GB) |
The takeaway: choose the model size first, then the GPU. A quantized 7–32B model can run on a single 24 GB consumer card; but the 70B-and-up tier already needs an 80 GB data-centre GPU or multiple cards stacked — a large jump in cost.
Apple Silicon machines solve this differently: unified memory — the CPU and GPU share one pool of RAM. By default macOS lets the GPU use about 75% of that memory, so by Namtech's estimate a 64GB Mac Studio can dedicate ~48 GB to the model — enough to load the 70–72B tier at INT4 on a single machine, without stacking cards. This is an estimate from memory capacity, not a speed measurement.
Electricity: what does a GPU running 24/7 cost?
The monthly electricity of a GPU running continuously is TDP (kW) × 720 hours × electricity price. At Vietnam's average retail price of VND 2,204.0655/kWh (excl. VAT, effective 10 May 2025 per the Ministry of Industry and Trade), an H100 rated at 700W running 24/7 draws ~504 kWh and costs about VND 1.11 million/month — and that is the electricity of the GPU alone.
We use the average price as a transparent, verifiable anchor. In reality, a business's bill also depends on voltage level and time-of-use band (off-peak/normal/peak) under the tariff in Decision 1279/QĐ-BCT, plus VAT — and, importantly, total system electricity (CPU, RAM, fans) plus room cooling is typically 1.5–2× the bare GPU draw. In other words, roughly double the figures below to estimate a real bill.
| GPU | VRAM | TDP (power) | Energy/month (24/7) | Electricity/month* |
|---|---|---|---|---|
| NVIDIA RTX 4090 | 24 GB | 450W | 324 kWh | ~VND 714,000 |
| NVIDIA A100 (PCIe) | 40/80 GB | 300W | 216 kWh | ~VND 476,000 |
| NVIDIA A100 (SXM) | 80 GB | 400W | 288 kWh | ~VND 635,000 |
| NVIDIA H100 (SXM) | 80 GB | 700W | 504 kWh | ~VND 1,111,000 |
*Electricity for the GPU alone, at the average price excl. VAT. A real bill is higher due to CPU/RAM/cooling (typically ×1.5–2), VAT, and voltage/time-of-use tariffs.
How much electricity do Mac Studio and Mac mini use?
Same formula, but for Apple machines we use Apple's published figures for the whole machine (CPU, GPU, memory, SSD), not just the GPU as in Table 2. Per Apple, Mac Studio's maximum measured consumption is about 200W with M5 Max and 385W with M5 Ultra; the maximum continuous power rating is 480W for Mac Studio and 155W for Mac mini (Apple spec pages).
| Machine | Power used for the calculation | Energy/month (24/7) | Electricity/month* |
|---|---|---|---|
| Mac mini (M6 / M5 Pro) | 155W — maximum power rating | 111.6 kWh | ~VND 246,000 |
| Mac Studio M5 Max (AI Box, AI Pro packages) | ~200W — Apple's measured maximum | 144 kWh | ~VND 317,000 |
| Mac Studio M5 Ultra (AI Enterprise package) | ~385W — Apple's measured maximum (36-core CPU/80-core GPU) | 277.2 kWh | ~VND 611,000 |
*For the whole machine at maximum, at the average price excl. VAT — the machine does not always run flat out, so this is a ceiling. Apple measured 385W on the M5 Ultra 36-core CPU/80-core GPU; the AI Enterprise package uses the 30-core CPU/64-core GPU version, so we treat 385W as the ceiling. A real bill still depends on VAT and voltage/time-of-use tariffs.
To compare fairly: Table 2 is the GPU alone, Table 2b is the whole machine. Even so, a Mac Studio M5 Max at maximum (~200W for the whole machine) is below the GPU-only draw of every GPU in Table 2; the M5 Ultra (~385W) is in the range of a single A100 on its own. And as a desktop machine (operating temperature 10–35°C per Apple), it does not require a dedicated server room the way a GPU rack does.
The surprise for many: GPU electricity is usually NOT the biggest line. A data-centre GPU costs VND 0.5–1.1 million/month in power — significant, but small next to the capital to buy that same GPU. That is why a TCO analysis cannot skip hardware.
The three components of on-premise TCO
The total cost of ownership (TCO) of self-hosting an LLM has three parts, and the largest is hardware capital — usually far more than electricity and operations combined. The table below ranks the three by magnitude and volatility, so a business knows which variable to lock down before deciding.
| Component | What it includes | Magnitude & volatility |
|---|---|---|
| 1. Hardware capital (CAPEX) | GPUs, servers, networking, storage; depreciated over the lifecycle | Largest — decides the break-even point. Data-centre GPUs swing sharply with the market, so real quotes are needed; Mac Studio has public prices (see Table 5). |
| 2. Electricity (OPEX) | GPU power + the rest of the machine + cooling | Medium. GPU alone ~VND 0.5–1.1M/month/GPU; multiply by ~1.5–2 for the full system. Mac Studio: ~VND 0.32–0.61M/month for the whole machine at maximum (Table 2b). |
| 3. Operations (OPEX) | MLOps staff, model updates, monitoring, maintenance, redundancy | Steady but easily forgotten; for small organisations it can be the "most expensive" part due to lack of people. |
Self-hosting versus renting a cloud API
At low-to-moderate usage, renting a cloud API for the same model is usually cheaper than self-hosting, because you avoid hardware capital. Take Qwen2.5-72B itself: the reference cloud price (provider median, per Artificial Analysis) is $0.475 per 1M input tokens and $0.495 per 1M output tokens. Converting at ~VND 26,440/USD (Vietcombank, 17 Jul 2026):
| Monthly volume | Cloud API cost | Self-host electricity (80 GB GPU, excl. CAPEX) |
|---|---|---|
| 50M input + 50M output tokens | $48.5 ≈ VND 1.28M | ~VND 0.64–1.11M (A100/H100) + GPU capital |
| 200M input + 100M output tokens | $144.5 ≈ VND 3.82M | ~VND 0.64–1.11M (A100/H100) + GPU capital |
Read the table correctly: self-host electricity is nearly fixed per running hour, while cloud cost scales with tokens. So cloud is cheaper at low usage; only above a high, continuous volume threshold does self-hosting's electricity + hardware depreciation become cheaper per token. But the deciding figure is hardware capital. Data-centre GPU prices swing sharply, so this article does not price them; a business must get real quotes and amortise them.
Mac Studio has public prices, so the division can be done. The AI Pro machine (64GB, enough to load Qwen2.5-72B at INT4 per the Table 1 estimate) costs 111,150,000₫ VAT included. Assuming 36-month depreciation, that is ~VND 3.09 million/month, plus at most ~VND 0.32 million electricity (Table 2b) — on par with the API cost at 200M input + 100M output tokens (VND 3.82 million). This is only an illustrative division: the article has not verified whether one machine can keep up with that volume, because speed depends on the model, prompt length and number of concurrent users — measure on real workloads before concluding.
What it means for Vietnamese businesses
For most Vietnamese businesses, the sensible choice is not "all self-hosted" or "all cloud", but segmenting by data and volume. For the self-hosted part, Namtech deploys on Apple Silicon (Mac Studio), extending our roadmap to build internal AI and our piece on AI data sovereignty. The reasons: large unified memory in one machine, public pricing, low power draw, and it sits right in the office.
Choosing a configuration by need
| Package | Machine | Hardware price | Memory for the model* | Max model size (4-bit)* | Max power | Best for |
|---|---|---|---|---|---|---|
| AI Box | Mac Studio M5 Max 18CPU 32GPU 36GB 512GB | 79,800,000₫ | ~27 GB | ~43B parameters | ~200W | Small teams, one department |
| AI Pro | Mac Studio M5 Max 18CPU 40GPU 64GB 512GB | 111,150,000₫ | ~48 GB | ~76B parameters | ~200W | Multiple departments, advanced RAG |
| AI Enterprise | Mac Studio M5 Ultra 30CPU 64GPU 96GB 1TB | 182,400,000₫ | ~72 GB | ~115B parameters | ≤ ~385W | Whole company, large models, RAG + ERP integration |
| AI Cluster | Several Mac Studio machines linked together | Quoted per project | Depends on machines | Depends on machines | Depends on machines | Workloads beyond one machine |
*Namtech estimates to guide machine choice, not benchmark measurements: usable memory ≈ RAM × 0.75 (the share macOS lets the GPU use by default); a 4-bit quantized model ≈ 0.5 byte/parameter, with 20% reserved for context. Prices cover hardware only; software and deployment are quoted separately. Power: Apple's measured maximum (see Table 2b).
Models run on common Mac tools: MLX, Ollama or LM Studio, with open models such as Qwen, SEA-LION and Gemma — pick a size from Table 1, then check it against the "Max model size" column above. See each machine on the Mac Studio page, or compare the three configurations side by side.
If you only need to experiment or for personal use, Mac mini is cheaper: the M6 32GB costs 41,040,000₫ (estimated models up to ~38B parameters) and the M5 Pro 64GB costs 86,070,000₫ (~76B). The trade-off is lower memory bandwidth (170 GB/s and 307 GB/s, versus 460–614 GB/s for M5 Max per Apple) — and bandwidth is the main factor in text-generation speed — so it will be slower than a Mac Studio with the same memory. Put machines side by side on the Mac comparison page.
When should you still use GPUs?
Mac Studio does not win every case. NVIDIA GPUs remain the right choice when:
- Many concurrent users or batch processing: data-centre GPUs with dedicated serving software (such as vLLM) batch many requests at once more efficiently than a desktop machine.
- Very long prompts, RAG over large document sets: reading the prompt depends on raw compute, where GPUs are stronger; the Mac's advantage is large memory in one machine, not long-prompt processing speed.
- Training / fine-tuning models, or software that only runs on NVIDIA CUDA.
- You already have a server room, racks and a GPU operations team — the marginal cost of adding GPUs is then lower.
The selection principles stay the same, GPU or Mac:
- Start with one machine, sized by model: a quantized 7–32B need → AI Box; the 70–72B tier → AI Pro; larger models or the whole company → AI Enterprise, then AI Cluster beyond one machine.
- Sensitive data → self-host; routine tasks → consider the API: if the use case requires keeping data on-site (compliance with the Personal Data Protection Law No. 91/2025/QH15, customer contracts), self-hosting is a requirement — the cost is the price of sovereignty, not a way to save money.
- Compute TCO with your own numbers: take your real token volume + real hardware prices + real electricity bills, then compare cloud vs self-host. Do not decide on the gut feeling that "on-premise must be cheaper".
Self-hosting an LLM on-premise is not cheaper by default — it becomes cheaper when usage is high and continuous, and it is always worth it when data must stay inside the organisation.
Frequently asked questions
How do I quickly estimate the VRAM a model needs?
Take parameters × bytes per parameter: FP16 = 2 bytes, INT8 = 1 byte, INT4 = 0.5 byte. For example a 72.7B model needs ~145 GB at FP16 and ~36 GB at INT4 (weights only); in practice add 20–30% for KV-cache and activations.
What does running a GPU 24/7 cost in Vietnam?
It's TDP(kW) × 720 hours × electricity price. At the average price of VND 2,204.0655/kWh (excl. VAT, from 10 May 2025 per the Ministry of Industry and Trade): RTX 4090 (450W) ~VND 714,000/month, A100 SXM (400W) ~VND 635,000, H100 SXM (700W) ~VND 1.11 million — this is the GPU alone; a real bill is higher due to cooling, VAT and voltage/time-of-use tariffs.
How much electricity does a Mac Studio running 24/7 cost?
Per Apple, Mac Studio consumes at most about 200W (M5 Max) to 385W (M5 Ultra) for the whole machine. At the average price of VND 2,204.0655/kWh (excl. VAT), running continuously at maximum costs about VND 317,000/month (M5 Max, AI Box and AI Pro packages) to VND 611,000/month (M5 Ultra, AI Enterprise package). This is a ceiling; a real bill also depends on VAT and time-of-use tariffs.
Is self-hosting cheaper than renting a cloud API?
Not by default. At low-to-moderate volume, cloud APIs are usually cheaper because there is no hardware capital. Self-hosting is cheaper per token only when usage is high and continuous enough to amortise the GPU. Self-hosting also has non-monetary value: keeping data on-site.
What is the biggest cost of self-hosting an LLM?
Usually hardware capital, far exceeding electricity and operations. Data-centre GPU prices swing sharply, so real quotes are needed; Mac Studio has public prices: 79,800,000₫ (AI Box package) to 182,400,000₫ (AI Enterprise package), VAT included. Amortise over the lifecycle to compute an accurate TCO.
How should a small business start?
Start with one AI Box machine (Mac Studio M5 Max 36GB, 79,800,000₫ VAT included), running a quantized 7–32B open model such as Qwen, SEA-LION or Gemma via MLX, Ollama or LM Studio (estimated maximum ~43B parameters at 4-bit). Use it for internal tasks, measure real token volume, then decide whether to move up to AI Pro, AI Enterprise or shift part of it to cloud based on real data.
When should I choose GPUs instead of Mac Studio?
When you have many concurrent users or batch processing, very long prompts over large document sets (reading the prompt needs raw compute, where GPUs are stronger), training or fine-tuning, software that only runs on CUDA, or an existing server room and GPU operations team. Mac Studio's strengths are large memory in one machine, public pricing and low power draw.
Compute an accurate on-premise AI TCO for your case
Namtech helps businesses pick the model size, choose a Mac Studio package (AI Box, AI Pro, AI Enterprise or AI Cluster) and estimate a realistic TCO (memory, electricity, hardware, operations) — plus a hybrid on-premise/cloud plan to optimise both cost and data sovereignty.
Book a free consultationNote: This article is compiled from public sources as of 18 July 2026; the Mac Studio / Mac mini sections were updated on 24 September 2026. VRAM figures are estimates from the params × bytes formula (weights only, before 20–30% overhead); model sizes on Mac are estimates from memory capacity, not benchmarks; electricity is computed from official power figures (NVIDIA, Apple) and the official average electricity price, excl. VAT; Mac prices are Namtech selling prices including VAT as of 24 September 2026 and follow Apple's list prices; cloud API prices and exchange rates may change. Informational only — not technical, investment or legal advice.
- Ministry of Industry and Trade — Retail electricity price adjustment from 10 May 2025 (VND 2,204.0655/kWh, Decision 1279/QĐ-BCT)
- NVIDIA — GeForce RTX 4090 (Total Graphics Power 450W)
- NVIDIA — A100 Tensor Core GPU (Max TDP 300W PCIe / 400W SXM)
- NVIDIA — H100 Tensor Core GPU (Max TDP up to 700W SXM)
- Apple — Mac Studio power consumption and thermal output (M5 Max max ~200W, M5 Ultra max ~385W)
- Apple VN — Mac Studio specifications (maximum continuous power 480W, memory bandwidth)
- Apple VN — Mac mini specifications (maximum continuous power 155W)
- Apple VN — Mac Studio list prices (basis for Namtech selling prices)
- HuggingFace — Qwen2.5-72B-Instruct (72.7B parameters)
- HuggingFace — Qwen2.5-32B-Instruct (32.5B parameters)
- HuggingFace — Qwen2.5-7B-Instruct (7.61B parameters)
- HuggingFace — Llama-3.3-70B-Instruct (70.6B parameters)
- Artificial Analysis — Qwen2.5-72B pricing ($0.475 in / $0.495 out per 1M tokens)
- VTC News — USD/VND exchange rate 17 Jul 2026 (Vietcombank sell ~VND 26,440)