Home / Blog / Cloud & DevOps

    Running Open-Source LLMs on Your Own Infrastructure

    By Softworth Solutions · · 4 min read · For readers in UAE, India, UK, US

    Rows of servers and cabling in a data centre

    In short: Self-hosting an open-source LLM makes sense when data must stay in your environment, when steady high volume makes per-token pricing expensive, or when you need full control of the model. Otherwise a managed API is usually cheaper and simpler, and many teams end up running both.

    Open-weight models have become good enough that the question is no longer whether you can run your own, but whether you should. Let's walk through when it pays off, what hardware you need and how to run it like a proper production service.

    When is a self-hosted LLM worth it?

    It is worth it when control matters more than convenience. The strongest reasons are data residency, predictable high volume, customisation and offline use.

    • Contracts or regulators require prompts and documents to stay in your network or country.
    • You run millions of routine requests a month, such as extraction or classification.
    • You want to fine-tune and pin an exact model version.
    • You operate factories, field sites or air-gapped environments.

    On the other side, top proprietary models still lead on the hardest reasoning tasks, and APIs need no GPU skills. Our comparison of open-source vs proprietary LLMs covers the trade-off in more depth.

    How do you choose a model?

    Choose with your own evaluation set, not a leaderboard. Open-weight families from Meta, Mistral, Alibaba, Google, DeepSeek and the UAE's Technology Innovation Institute come in many sizes. For focused jobs, a well-prompted model of roughly 7 to 30 billion parameters is often good enough and far cheaper to run than the giants.

    Read every licence, as terms vary. If you need Indian languages or Arabic, test those specifically, because quality differs a lot between models.

    How much GPU memory do you need?

    A handy rule: model weights take about 2 bytes per parameter at 16-bit, 1 byte at 8-bit and about half a byte at 4-bit. Then add generous headroom for the KV cache, which grows with context length and concurrent users.

    Approximate GPU memory for model weights (excluding KV cache)
    Model size16-bit4-bitTypical hardware
    8B parametersAbout 16 GBAbout 5 to 6 GBOne 24 GB GPU
    30B parametersAbout 60 GBAbout 18 to 20 GBOne 48 to 80 GB GPU
    70B parametersAbout 140 GBAbout 35 to 45 GBOne or more 80 GB GPUs

    Eight-bit quantisation usually costs little quality. Four-bit can be very good, but test it on your own tasks, especially structured output.

    Rows of servers and cabling in a data centre

    What does the serving stack look like?

    Use an inference server built for throughput. vLLM is a popular choice for its batching and memory management, and its OpenAI-compatible API makes swapping between hosted and self-hosted models easy. Hugging Face TGI and SGLang are strong alternatives, while llama.cpp and Ollama suit laptops and small deployments.

    Around it, add containers, an API gateway with authentication and per-team quotas, privacy-aware logging and metrics such as time to first token and GPU utilisation. Keep the endpoint on a private network, download weights from official sources and prefer the safetensors format. Our guide to monitoring LLM apps covers the observability side.

    An illustrative example

    Consider an Abu Dhabi government contractor that must keep tender documents inside the UAE. It deploys a mid-sized open-weight model on GPUs in a UAE cloud region, served through vLLM behind its internal API gateway. Routine summarising and clause extraction run there at a fixed monthly cost. For the occasional complex legal analysis on non-sensitive material, the team calls a frontier API. A single routing layer decides which model handles each request.

    What does it cost in each market?

    Cloud GPU rental ranges from roughly USD 1 to over USD 4 per GPU hour depending on card and commitment, about INR 85 to 350, GBP 0.80 to 3.20 or AED 3.70 to 15. Committed pricing lowers that considerably. Buying hardware pays off only with consistently high utilisation and the people to run it.

    Residency often decides the location. UAE public-sector work usually needs in-country hosting, Indian clients increasingly ask for India regions under the DPDP Act, and UK buyers often prefer UK regions. Always compare cost per million tokens on your hardware with API pricing at the same quality.

    Key facts

    • vLLM is an open-source LLM inference and serving engine that introduced PagedAttention for efficient KV cache memory management. (vLLM documentation)
    • The UAE's Technology Innovation Institute develops and releases the Falcon family of open large language models. (Technology Innovation Institute)
    • India's government approved the IndiaAI Mission in March 2024, including funding for shared AI compute capacity. (IndiaAI)

    Key takeaways

    • Self-host for residency, steady volume or control; otherwise start with an API.
    • Pick the smallest model that passes your own evaluation set.
    • Size GPUs for weights plus KV cache under real concurrency.
    • Run it like any critical service: private, authenticated and monitored.

    If you are weighing self-hosting, SWS AI can benchmark candidate models on your data and design an LLMOps setup that fits your security and budget. Talk to us.

    Frequently asked questions

    Are open-source LLMs as good as proprietary models?

    For many business tasks such as extraction, summarisation and RAG over company documents, the best open-weight models are competitive. Leading proprietary models still tend to win on the hardest reasoning tasks. Test on your own workload.

    Can I run an LLM without a GPU?

    Yes, for small quantised models at low volume, using llama.cpp on modern CPUs or Apple silicon. Throughput is limited, so it suits development and light internal use rather than many users.

    Can we keep LLM processing inside the UAE or India?

    Yes. Self-hosting an open-weight model in a UAE or India cloud region, or on your own servers, keeps prompts and documents in-country. Check whether logs, backups and any external API calls also stay within the required boundary.

    Is self-hosting cheaper than an API?

    Only at sustained volume with good GPU utilisation. An idle GPU is expensive. Work out cost per million tokens on your chosen hardware and compare it with API pricing at equivalent quality.


    Planning an AI or software project? Talk to our team for a free consultation and an honest estimate.

    Previous: Change Management for AI Adoption: Getting Your Team On Board
    Next: Measuring Microsoft 365 Copilot ROI: Usage, Adoption and Value

    Keep reading