Many businesses want to use AI while keeping contracts, payroll records, and customer data off overseas servers. A common approach is to run open-source large language models (LLMs) such as Qwen, Llama, Gemma, and DeepSeek on company servers.
This article highlights seven GitHub repositories for running LLMs in-house, divided into two groups: tools that run the model (the engine) and chat interfaces (what users see). The figures were collected on November 20, 2026.
At a glance
| # | Repository | GitHub stars | Language | License | Best fit |
|---|---|---|---|---|---|
| 1 | ollama/ollama | ~187.7k | Go | MIT | A quick trial on one machine with a single command |
| 2 | ggml-org/llama.cpp | ~135.8k | C++ | MIT | Lower-spec machines, CPU-only setups, laptops, and Macs |
| 3 | vllm-project/vllm | ~97.2k | Python | Apache 2.0 | GPU servers serving multiple users concurrently |
| 4 | sgl-project/sglang | ~38.9k | Python | Apache 2.0 | Heavy workloads that need fast responses and include many repeated requests |
| 5 | mudler/LocalAI | ~50.5k | Go | MIT | A single server replacing the OpenAI API for text, images, and speech |
| 6 | open-webui/open-webui | ~159.1k | Svelte | Custom BSD-based license | An internal chat interface for the whole company |
| 7 | janhq/jan | ~45.9k | Rust, TypeScript | Apache 2.0 | Offline chat on a personal computer |
Star counts are rounded and were collected through the GitHub API on November 20, 2026. Stars measure interest rather than quality.
How we chose these projects
- Active maintenance: The repository had commits in November 2026.
- Runs entirely on your infrastructure: There is no requirement to send data to an external service.
- OpenAI-compatible API (or a ready-to-use interface), so existing software can connect easily.
- Clear licensing for business use, with any additional terms noted.
Engines and interfaces
- Engines (Ollama, llama.cpp, vLLM, SGLang, LocalAI) load the model into memory and return responses through an API. End users do not see this layer.
- Interfaces (Open WebUI, Jan) provide the chat screen, user management, and conversation history. The interface calls the engine.
A complete in-house system usually pairs one engine with one interface, such as vLLM and Open WebUI.
1. Ollama: The easiest way to get started
Ollama lets you download and run a model with a single command, such as ollama run qwen3. It provides a catalog of packaged models, runs on Windows, macOS, and Linux, and offers an OpenAI-compatible API.
Screenshot of the Ollama repository on GitHub. Source: github.com, captured November 24, 2026.
- Strengths: Straightforward setup, suitable for experiments and small teams.
- Consideration: When many users make GPU-backed requests at once, vLLM or SGLang can usually handle more requests.
- License: MIT.
2. llama.cpp: Runs on lower-spec hardware
llama.cpp is a C/C++ library for running LLMs efficiently on CPUs, Apple Silicon Macs, and consumer GPUs. The GGUF model format and quantization, which compresses models to 4–8 bits, allow large models to run on machines with less memory. Many other tools, including Ollama, build on llama.cpp.
- Best fit: Offices without GPUs, personal workstations, and edge devices.
-
Included:
llama-serverprovides an OpenAI-compatible API. - License: MIT.
3. vLLM: Serve multiple users on GPUs
vLLM is a high-throughput LLM serving engine that manages GPU memory efficiently to handle concurrent requests. It is a popular choice for running an internal LLM in production across a company.
Screenshot of the vLLM repository on GitHub. Source: github.com, captured November 24, 2026.
- Strengths: Fast with multiple users, supports many model families, and offers an OpenAI-compatible API.
- Consideration: Requires a GPU and someone experienced in operating servers.
- License: Apache 2.0.
4. SGLang: Optimized for heavy workloads
SGLang is also a high-performance serving engine for LLMs and multimodal models. It can reuse computation when requests share a prefix, such as the same long system prompt, reducing wait times.
- Best fit: Internal chatbots with long system prompts and agents that call models repeatedly.
- License: Apache 2.0.
5. LocalAI: One server for multiple APIs
LocalAI acts as a self-hosted OpenAI API, providing one endpoint for text generation, speech recognition, image generation, and embeddings. It uses several engines and can run on CPU alone.
- Best fit: Software already calling the OpenAI API that you want to move in-house with minimal code changes.
- License: MIT.
6. Open WebUI: A chat interface for the whole company
Open WebUI is a ChatGPT-style web interface that connects to Ollama or any OpenAI-compatible API. It supports sign-in, user permissions, document uploads for retrieval-augmented Q&A (RAG), and conversation history.
Screenshot of the Open WebUI repository on GitHub. Source: github.com, captured November 24, 2026.
- Strengths: Quickly set up an internal assistant without writing a user interface.
- License note: Open WebUI uses a custom BSD-3-based license with a branding clause. For deployments serving more than 50 users in 30 days, removing or replacing the Open WebUI logo requires an enterprise license. Internal use with the original branding generally avoids this issue.
7. Jan: Offline chat on a personal computer
Jan is a desktop alternative to ChatGPT for Windows, macOS, and Linux that runs models entirely offline on the user's machine. It can expose a local API for other applications.
- Best fit: Individuals or departments that need to process sensitive documents on their own machines without sending them over the network.
- License: Apache 2.0. The GitHub API does not detect it automatically, so see the original LICENSE file.
Another project worth noting
- lobehub/lobehub (~85.9k stars, TypeScript) provides chat and agent interfaces for teams and connects to multiple model providers, including Ollama. It uses the LobeHub Community License, based on Apache 2.0 with additional terms for commercial use or derivative products. Read those terms before incorporating it into a product you sell to customers.
Which should you choose?
| Situation | Recommendation |
|---|---|
| Testing on one machine without prior experience | Ollama + Open WebUI |
| No GPU, only a CPU or a Mac | llama.cpp (or Ollama) |
| Serving the whole company from a GPU server | vLLM or SGLang + Open WebUI |
| Moving software that currently calls the OpenAI API in-house | LocalAI, vLLM |
| Employees processing sensitive documents on their own machines | Jan |
How much hardware do you need?
These are rough estimates for 4-bit quantized models, intended to give a sense of the requirements.
| Model size | Approximate memory required | Example hardware |
|---|---|---|
| 3–8 billion parameters | 4–8 GB | Laptop, Mac with 16 GB, consumer GPU |
| 14–32 billion parameters | 10–24 GB | GPU with 24 GB, Mac with 32–64 GB |
| 70 billion parameters or more | 40 GB or more | Multiple GPUs or a server GPU |
In addition to the model weights, budget memory for long contexts and concurrent users. Test with real data before buying hardware.
Five things to do before deploying an in-house LLM
- Choose a model based on its license. Each model, such as Llama, Qwen, or Gemma, has its own license, separate from the tool that runs it.
- Evaluate it in Vietnamese. Test it on real company questions and documents as well as reviewing benchmark rankings.
- Require authentication before exposing the API to the internet. Many tools do not set a password by default.
- Enforce document permissions. The assistant should only answer from documents that the person asking has permission to view.
- Combine in-house and cloud models. Run sensitive work in-house. For work that needs a more capable model, call an API after masking sensitive data.
The fifth point is why many businesses put an AI gateway in front of both in-house and cloud models. It gives them one entry point for routing requests, masking sensitive data, and tracking costs. See KimQ AI Gateway and Top 7 open-source AI gateways. To build agents on in-house models, see Top 10 open-source AI agent frameworks.
Frequently asked questions
Is running an LLM in-house cheaper than calling an API?
It depends on usage. For a small number of users, calling an API is usually cheaper because you avoid buying GPUs and operating the infrastructure. Running in-house makes more sense when usage is high and consistent or the data must stay inside the organization.
Can open-source models understand Vietnamese?
Recent model families such as Qwen, Gemma, and Llama handle Vietnamese reasonably well, but quality varies with model size. Test them directly on your own data.
How do Ollama and vLLM differ?
Ollama prioritizes ease of use and fits experiments and small teams. vLLM prioritizes serving multiple concurrent users on GPUs and fits production deployments.
Does the data really stay in-house?
Yes, if the model, interface, and database all run on your infrastructure and you disable features that call external services, such as web search and cloud models. Check your network configuration to confirm.
This article was drafted with AI assistance. Its content and figures were checked against official sources on November 24, 2026. Screenshots come from official pages and include source credits and capture dates.
About KimQ Tech
KimQ Tech builds AI and operations automation tools for Vietnamese businesses: AI Gateway, Zalo AI Assistant, Workflow Automation, Accounts Receivable, Inventory and Purchasing, and Incoming Invoices. For advice on choosing and deploying a tool, contact KimQ Tech or email contact@kimq.tech.



Top comments (0)