What is the best open-source repo for running LLMs locally?
The best open-source AI repos for running LLMs locally right now are llama.cpp, Open WebUI and vLLM. Start with llama.cpp for one machine and quantized GGUF models, add Open WebUI when you want a ChatGPT-style chat in the browser, and pick vLLM when you need to serve a model to many users through an OpenAI-compatible API.
Comparison
| Repo | What it does | Stars | Start here |
|---|---|---|---|
| llama.cpp | llama.cpp is a dependency-free C/C++ engine for running LLMs and vision language models locally or in the cloud, with quantization, many GPU backends, a CLI and an OpenAI-compatible server. | 132,010 | Run an open model locally in one command |
| Open WebUI | Open WebUI is a self-hosted AI platform with a chat interface for Ollama and OpenAI-compatible APIs that can run entirely offline. | 156,670 | Run a private ChatGPT-style app for your local models |
| vLLM | vLLM is a fast, easy-to-use library for LLM inference and serving, with an OpenAI-compatible API server. | 95,106 | Serve an open LLM behind an OpenAI-compatible API |
| LocalAI | LocalAI is an open-source AI engine that runs LLMs, vision, voice, image and video models on any hardware, with no GPU required. | 49,983 | Self-host an OpenAI-compatible API on your own server |
| Unsloth | Unsloth is a desktop app and toolkit to run and train LLMs and diffusion models locally, supporting GGUF and MLX models, with installers for Windows, macOS, Linux and Docker. | n/a | Run and fine-tune open models from a desktop app |
| AirLLM | AirLLM cuts inference memory so very large language models run on a single small GPU without quantization, distillation or pruning, by streaming model layers instead of loading the whole model. | 40,782 | Run a 70B-class model on a single 4GB GPU |
| Strata | Strata runs large open models such as Qwen3.8-Flash-Next, Qwen3.6-35B-A3B and DeepSeekV4.1-Flash on your own computer, as a desktop app or a terminal app, with no account. | 33,669 | Run a frontier-size open model locally from the terminal |
| llmfit | llmfit inspects your CPU, RAM, GPU and VRAM and recommends which open-source LLMs and quantizations your hardware can comfortably run, with a TUI, JSON output and real benchmark runs. | n/a | Find which open models your machine can run |
When to pick which
llama.cpp
llama.cpp is a dependency-free C/C++ engine for running LLMs and vision language models locally or in the cloud, with quantization, many GPU backends, a CLI and an OpenAI-compatible server.
Best for: Developers who want to run open models locally on laptops, workstations or servers with minimal setup.
Needs: macOS, Linux or Windows; Enough RAM or VRAM for the chosen GGUF model
Start here: Run an open model locally in one command
- Install: curl -LsSf https://llama.app/install.sh | sh (Windows PowerShell: irm https://llama.app/install.ps1 | iex)
- Run a small model first: llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF
- Pick a quant with a suffix, for example ggml-org/GLM-4.7-Flash-GGUF:Q4_K_M; without one it uses Q4_K_M or the first file in the repo
- Set a context size with -c (0 means use the model's own)
Open WebUI
Open WebUI is a self-hosted AI platform with a chat interface for Ollama and OpenAI-compatible APIs that can run entirely offline. It adds local RAG over your documents with hybrid search, web search from many providers, custom models and agents with tools and knowledge, voice and video calls, role-based access control for teams, and SQLite or PostgreSQL storage. It installs with pip, Docker or Kubernetes.
Best for: Individuals and teams who want a ChatGPT-style interface for local or cloud models on their own server.
Needs: Docker, or Python with pip; Ollama for local models, or an OpenAI-compatible API key; A GPU is optional (the :cuda image uses it)
Start here: Run a private ChatGPT-style app for your local models
- With Docker: docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
- Or with Python: pip install open-webui, then open-webui serve
- Open http://localhost:3000 and create the admin account
- Pick an Ollama model, or add an OpenAI-compatible API in settings
vLLM
vLLM is a fast, easy-to-use library for LLM inference and serving, with an OpenAI-compatible API server.
Best for: Engineers and ML teams who need to run open-weight language models on their own GPUs or CPUs at high throughput.
Needs: Python with uv or pip installed; A supported NVIDIA, AMD or Intel GPU, or an x86, ARM or PowerPC CPU; A Hugging Face model you are allowed to download and use
Start here: Serve an open LLM behind an OpenAI-compatible API
- Install vLLM with uv pip install vllm.
- Run vllm download-kernels to fetch precompiled kernels for faster startup.
- Start the server with vllm serve <model-id>; the README mentions an OpenAI-compatible API server but does not show this exact command, so check the Quickstart.
- Send one chat request to the server from your app using an OpenAI-style client.
LocalAI
LocalAI is an open-source AI engine that runs LLMs, vision, voice, image and video models on any hardware, with no GPU required. Each backend (llama.cpp, vLLM, whisper.cpp, stable-diffusion, MLX and more) is pulled only when a model needs it, and every backend sits behind drop-in OpenAI, Anthropic and ElevenLabs compatible APIs, with multi-user auth, quotas and built-in agents with tools, RAG and MCP.
Best for: Developers and teams who want a private, self-hosted replacement for cloud AI APIs that existing OpenAI or Anthropic clients can talk to.
Needs: Docker or Podman, or the macOS app (not signed by Apple); Optional GPU: NVIDIA, AMD, Intel, Apple Silicon or Vulkan; CPU-only works; Disk space for the models you pull
Start here: Self-host an OpenAI-compatible API on your own server
- Start the CPU image: docker run -ti --name local-ai -p 8080:8080 localai/localai:latest
- Or with an NVIDIA GPU: docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12
- Load a model, for example local-ai run llama-3.2-1b-instruct:q4_k_m
- Point your app's OpenAI base URL at http://localhost:8080
Unsloth
Unsloth is a desktop app and toolkit to run and train LLMs and diffusion models locally, supporting GGUF and MLX models, with installers for Windows, macOS, Linux and Docker.
Best for: Developers and ML hobbyists who want to run or fine-tune open models on their own hardware.
Needs: Windows, macOS or Linux, or Docker; A GPU for training
Start here: Run and fine-tune open models from a desktop app
- Install: brew install --cask unsloth, or winget install --id UnslothAI.Unsloth -e on Windows, or curl -fsSL https://unsloth.ai/install.sh | sh
- Open Unsloth and run a model to check your hardware works
- Build a dataset from PDFs, CSVs or DOCX files with Data Recipes
- Start a LoRA or QLoRA fine-tune on a small model first
AirLLM
AirLLM cuts inference memory so very large language models run on a single small GPU without quantization, distillation or pruning, by streaming model layers instead of loading the whole model. The README reports 70B models on a 4GB card, DeepSeek-V3 (671B) on about 12GB and Kimi K3 on under 4GB, all through one AutoModel API, plus optional 4-bit or 8-bit compression for speed and new training support for huge models on small VRAM.
Best for: Developers and researchers with a modest GPU who want to experiment with very large open models without renting big cloud machines.
Needs: Python and pip; A CUDA GPU (a few GB of VRAM) or a Mac with mlx and torch for Llama-style models; Lots of disk for split layer shards; some models need specific transformers versions; Optional: bitsandbytes for compression
Start here: Run a 70B-class model on a single 4GB GPU
- Run pip install airllm
- In Python, from airllm import AutoModel and load a model with AutoModel.from_pretrained("Qwen/Qwen3-32B") or another repo ID
- Tokenize your prompt with model.tokenizer as in the Quickstart
- Call model.generate with max_new_tokens and decode the output
Strata
Strata runs large open models such as Qwen3.8-Flash-Next, Qwen3.6-35B-A3B and DeepSeekV4.1-Flash on your own computer, as a desktop app or a terminal app, with no account. It picks quantized model packs that fit your hardware, reads what does not fit in memory from your SSD, and exposes OpenAI- and Anthropic-compatible APIs so Claude Code, Codex CLI, OpenCode and other tools can use the local model.
Best for: Developers and privacy minded users with a recent NVIDIA, AMD, Intel Arc or Apple Silicon machine who want strong local models without cloud costs.
Needs: Windows, Linux or macOS on supported hardware (NVIDIA RTX 20 to 50, recent AMD Radeon, Intel Arc on Linux, Apple Silicon M1 or newer); Plenty of free disk space; DeepSeekV4.1 sets need about 245 to 280 GB; The model packs download on first run
Start here: Run a frontier-size open model locally from the terminal
- On Linux or Mac run curl -fsSL https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
- On Windows run the PowerShell installer from the README, then open a new terminal
- Run strata launch and follow the prompts to download and start a model
- Check the Models section and docs to choose a pack that fits your memory
llmfit
llmfit inspects your CPU, RAM, GPU and VRAM and recommends which open-source LLMs and quantizations your hardware can comfortably run, with a TUI, JSON output and real benchmark runs.
Best for: Developers deciding which local models to download for their machine.
Needs: macOS, Windows, Linux or Docker
Start here: Find which open models your machine can run
- Install: brew install llmfit, winget install --exact --id AlexsJones.llmfit, or uv tool install -U llmfit
- Or try it without installing: uvx llmfit
- Run llmfit to open the interactive TUI; your hardware is detected and shown at the top
- Press / to filter models by name, family or quantization
Use cases for running LLMs locally
- Run an open model locally in one command
- Serve a local model behind an OpenAI-compatible API
- Fit a bigger model on limited hardware
- Run a private ChatGPT-style app for your local models
- Chat with your own documents using local RAG
- Share one AI workspace with your team, with roles and groups
- Serve an open LLM behind an OpenAI-compatible API
- Get structured JSON output from a self-hosted model
- Serve several LoRA fine-tunes from one base model
- Self-host an OpenAI-compatible API on your own server
- Chat with local models from the terminal
- Run any model from Hugging Face, Ollama or an OCI registry
- Run and fine-tune open models from a desktop app
- Run Claude Code on a local quantized model
- Run Unsloth in Docker on a GPU server
- Run a 70B-class model on a single 4GB GPU
- Speed up large-model inference with 4-bit block compression
- Run large Llama-style models on a Mac with AirLLM
- Run a frontier-size open model locally from the terminal
- Point Claude Code or Codex at a local model with strata connect
- Run DeepSeekV4.1-Flash on a 12 GB GPU by streaming from SSD
- Find which open models your machine can run
- Get model recommendations as JSON for scripts
- Measure real tokens per second on your hardware
Questions
What is the best open-source repo for running LLMs locally?
The best open-source AI repos for running LLMs locally right now are llama.cpp, Open WebUI and vLLM. Start with llama.cpp for one machine and quantized GGUF models, add Open WebUI when you want a ChatGPT-style chat in the browser, and pick vLLM when you need to serve a model to many users through an OpenAI-compatible API.
Which repo for running LLMs locally is easiest to start with?
llama.cpp: its starter use case "Run an open model locally in one command" is rated Beginner and takes about 10 minutes.
How do I get started with llama.cpp?
Install: curl -LsSf https://llama.app/install.sh | sh (Windows PowerShell: irm https://llama.app/install.ps1 | iex); Run a small model first: llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF; Pick a quant with a suffix, for example ggml-org/GLM-4.7-Flash-GGUF:Q4_K_M; without one it uses Q4_K_M or the first file in the repo. Full steps and a copy-paste agent prompt: https://dedupedai.com/use-cases/ggml-org-llama-cpp/chat-with-local-model-from-hugging-face/
Are these running LLMs locally repos free?
They are open-source projects on GitHub (check each license; some, like fair-code projects, limit commercial use). Some also sell a hosted version or need a paid model API key; the requirements for each repo are listed on this page.
How is this list of running LLMs locally repos chosen?
Deduped tracks the hottest AI repos on GitHub and writes step-by-step use cases from each README. For this page we picked the repos that do this job, ordered by fit and then GitHub stars. Repos we only inferred from a short README, or that we do not index, are left out. The page is rebuilt with the site; stars are as of the last build in 2026.
More answers
- Best open-source AI repos for AI coding agents
- Best open-source AI repos for skills and workflows for coding agents
- Best open-source AI repos for browser automation with AI agents
- Best open-source AI repos for web scraping for LLMs and RAG
- Best open-source AI repos for RAG and chatting with your documents
- Best open-source AI repos for long-term memory for AI agents
- Best open-source AI repos for voice, speech-to-text and text-to-speech
- Best open-source AI repos for AI video editing and generation
- Best open-source AI repos for AI image generation and editing
- Best open-source AI repos for UI design with AI coding agents
- Best open-source AI repos for MCP servers
- Best open-source AI repos for 3D modeling and CAD with AI
- Best open-source AI repos for research with AI agents
- Best open-source AI repos for running several coding agents in parallel
- Best open-source AI repos for LLM gateways and model routers
- Best open-source AI repos for AI workflow automation
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them free