ॐ श्री गणेशाय नमः
    Jasmin.
    Back to Blog
    Artificial IntelligenceBeginner

    Before You Self-Host Any AI Model: 25 Things to Check Before Spending Money

    Planning to self-host Llama, DeepSeek, Qwen or another AI model? Learn the 25 essential checks for GPU memory, server costs, performance and maintenance.

    7 min read1260 words

    You found an open-source AI model on Hugging Face. It looks impressive, but will it run on your computer? How much GPU memory will it need? How much will it cost monthly? Can it handle real customers?

    Downloading an AI model may be free, but running and maintaining it is not necessarily free. This beginner-friendly guide helps you estimate hardware and operating expenses before self-hosting Llama, DeepSeek, Qwen, or another model.

    1. What Does Self-Hosting Mean?

    Self-hosting means running an AI model on infrastructure you manage instead of sending requests to a managed API.

    • ▸Own computer: Run smaller models locally with Ollama or llama.cpp.
    • ▸Cloud GPU: Rent GPU capacity from Runpod, Lambda, or another cloud provider.
    • ▸Dedicated server: Buy or lease GPU hardware and manage power, cooling, networking, and operations.

    2. Check Model Size First

    The B in 8B, 70B, or 405B means billion parameters. Approximate BF16 weight memory is two bytes per parameter:

    ModelParametersApproximate BF16 weight memory
    Llama 3.1 8B8B16 GB
    Qwen3 32B32B64 GB
    Llama 3.1 70B70B140 GB
    Llama 3.1 405B405B810 GB
    DeepSeek R1671B total1,342 GB

    These figures cover model weights only. Context, concurrent requests, and serving software require additional memory. A 70B model does not necessarily fit on a 70 GB GPU.

    3. Check Quantization

    Quantization stores weights at lower precision. A 70B model that needs around 140 GB in BF16 might need roughly 40–48 GB for quantized weights, depending on format. Check software compatibility, quality on your tasks, and actual memory usage before deploying.

    4. Understand GPU VRAM

    Available VRAMModels worth evaluating
    8 GBSmall quantized 1B–4B models
    12 GBQuantized 7B–8B models
    16 GBMany quantized 7B–14B models
    24 GB8B and selected quantized models up to around 32B
    48 GBMany quantized 32B configurations
    80 GBQuantized 70B and other high-memory models
    Multiple 80 GB GPUsLarger 70B–405B-class deployments

    These are rough starting points, not guaranteed compatibility. Context length, quantization, architecture, and serving framework change requirements.

    5. Calculate GPU Rental Costs

    Suppose a GPU costs $1 per hour:

    • ▸One hour: $1
    • ▸One day continuously: $24
    • ▸One month at 730 hours: $730
    • ▸At an illustrative ₹90/USD: ₹65,700 per month

    If you run it only four hours per day for 30 days, compute costs $120, or ₹10,800. Persistent storage and reserved resources may still incur charges when compute is stopped.

    Monthly GPU Cost = Number of GPUs × Hourly GPU Price × Running Hours

    6. Estimate Users and Peak Traffic

    Estimate daily active users, requests per user, average prompt and output lengths, peak concurrent requests, and acceptable latency. For example, 1,000 users making 10 requests each generate 10,000 requests daily. A busy-hour traffic spike may need far more capacity than evenly distributed traffic. Benchmark with representative workloads.

    7. Check Context Window

    Long documents, prompts, and chat histories consume context. Longer context can increase memory and processing time. Choose a context window based on actual application needs rather than the maximum advertised size.

    8. Check CPU, RAM, and Storage

    GPU capacity is not enough. You need CPU for request processing, RAM for supporting processes, and storage for model weights, databases, logs, and backups. An illustrative small single-GPU deployment might use 8–16 CPU cores, 32–64 GB RAM, and 100–200 GB storage. Cloud instances may bundle CPU and RAM; avoid double-counting them.

    9. Measure Inference Speed

    Benchmark time to first token, tokens per second, end-to-end latency, throughput under concurrent requests, and GPU utilization. At 40 output tokens per second, generating 400 tokens takes about 10 seconds before prompt processing and queue time.

    10. Choose Model Serving Software

    • ▸Ollama: Beginner-friendly local model running.
    • ▸llama.cpp: Efficient local inference and quantized formats.
    • ▸vLLM: High-throughput LLM serving.
    • ▸Hugging Face Transformers: Flexible model loading and inference.

    Verify compatibility with the exact model, quantization format, GPU, and operating system.

    11. Budget for Maintenance

    Maintenance includes driver updates, serving software, security patches, monitoring, troubleshooting, access controls, and model upgrades. For example, 10 hours of monthly engineering at ₹2,000/hour costs ₹20,000. This is an illustrative rate, not a market standard.

    12. Include Hidden Infrastructure Expenses

    ExpensePurpose
    GPUModel inference
    CPU and RAMApplication and supporting processes
    StorageWeights, databases, logs
    NetworkingTransfers and load balancing
    MonitoringMetrics, alerts, logs
    SecurityAccess controls and patching
    BackupsRecovery
    MaintenanceEngineering and operations
    RedundancyReliability and failover
    ContingencyUnexpected usage and incidents

    13. Example: Hosting an 8B Model

    Imagine running a quantized 8B chatbot continuously on a GPU costing $0.90/hour, using ₹90/USD.

    ExpenseMonthly estimate
    GPU: $0.90 × 730 × ₹90₹59,130
    Additional storage and infrastructure₹4,000
    Monitoring and backups₹3,000
    Maintenance₹15,000
    Subtotal₹81,130
    15% contingency, rounded₹12,170
    Estimated monthly budget₹93,300

    This is an illustrative single-instance budget without dedicated high availability, not a vendor quote. A managed API may be cheaper at low usage.

    14. The 25-Point Self-Hosting Checklist

    Model Selection

    1. ▸What task must the model perform?
    2. ▸What is its exact name and version?
    3. ▸How many parameters does it have?
    4. ▸Is a quantized version available?
    5. ▸Does its license allow your intended commercial use?

    Hardware Requirements

    1. ▸How much GPU VRAM is required?
    2. ▸How much additional memory is needed for context and concurrent users?
    3. ▸How many GPUs are required?
    4. ▸What CPU and RAM are needed?
    5. ▸How much storage is needed for models, logs, and backups?

    Performance and Users

    1. ▸How many users will access the model daily?
    2. ▸How many requests will each user make?
    3. ▸How many requests may arrive simultaneously?
    4. ▸What response time is acceptable?
    5. ▸Has the model been benchmarked with realistic traffic?

    Hosting and Cost

    1. ▸What is the GPU rental price per hour?
    2. ▸How many hours will the GPU run each month?
    3. ▸What additional storage and networking charges apply?
    4. ▸Would a managed API be cheaper for the expected workload?
    5. ▸What is the cost per successful request?

    Production and Maintenance

    1. ▸Who will maintain the server?
    2. ▸What monitoring and security controls are required?
    3. ▸What happens if the GPU or server fails?
    4. ▸How will model updates and quality be tested?
    5. ▸What is the total monthly budget including contingency?

    If you cannot answer these questions, your budget estimate is not yet reliable.

    15. Self-Host or Use an API?

    Self-hosting may make sense for private infrastructure, model customization, predictable high-volume usage, or greater control. A managed API may be better for early-stage products with uncertain traffic and limited operations capacity. Compare model quality, latency, reliability, and all operating expenses—not just hourly GPU prices.

    16. Your Total Budget Formula

    Total Monthly Cost = GPU + Additional Infrastructure + Maintenance + Monitoring + Backups + Contingency

    Cost per Successful AI Task = Total Monthly Cost ÷ Successfully Completed AI Tasks

    An inexpensive model with unreliable answers may cost more once retries and human review are counted.

    Final Advice: Know Your Workload Before Renting a GPU

    Start with your business requirements, shortlist suitable models, estimate usage, benchmark quality and performance, and only then calculate GPU needs and full operating costs.

    Before you run any AI model, understand what it needs, what it delivers, and what it will cost to keep running.

    Jasmin Shukla — AI Consulting & Technology Solutions

    For AI model evaluation and infrastructure planning, visit https://www.jasminshukla.com.

    Technical References

    Costs are illustrative planning estimates using an assumed ₹90/USD rate. Actual prices and requirements vary.

    Self-Hosted AILLMGPU HostingAI InfrastructureCost EstimationOllama
    Share: Twitter LinkedIn

    Written by

    Jasmin Shukla
    Jasmin ShuklaAuthor

    Jasmin Shukla is a production AI builder and educator who teaches AI engineering by shipping real business systems — agents, RAG, MCP, and automation.

    AgentsRAGMCPFastAPIn8nPythonLaravelNext.js

    Need production-ready AI agents built?

    I consult on the problem first, then build the agents, RAG, MCP, or automation. If your team needs to understand the system, I will teach them.