# Local AI

> Source: https://aiwiki.ai/wiki/local_ai
> Updated: 2026-11-18
> Fact-checked: 2026-11-18
> Categories: AI Inference, Developer Tools, Large Language Models, Open Source AI
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Local AI." aiwiki.ai, 18 Nov 2026. https://aiwiki.ai/wiki/local_ai
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Local AI** is the practice of running artificial intelligence models on hardware that the user owns or controls, such as a laptop, a desktop PC, a workstation or a home server, instead of sending each request to a model hosted by a cloud provider. [Hugging Face](https://aiwiki.ai/wiki/hugging_face)'s documentation describes it as running models "locally on your machine" and lists four advantages: privacy, speed, control and cost [1]. Much of the tooling targets [large language models](https://aiwiki.ai/wiki/large_language_model) (a "local LLM"), and the same approach is used for image generation, speech recognition and other [generative AI](https://aiwiki.ai/wiki/generative_ai) workloads [2]. It relies on models whose weights can be downloaded ([open weights](https://aiwiki.ai/wiki/open_weights)) [18], on [quantization](https://aiwiki.ai/wiki/quantization) to shrink those weights, and on portable [inference](https://aiwiki.ai/wiki/inference) software with backends for consumer hardware [3].

The practice spread quickly in March 2023, when Georgi Gerganov's [llama.cpp](https://aiwiki.ai/wiki/llama_cpp) made it possible to run [Meta](https://aiwiki.ai/wiki/meta_ai)'s [LLaMA](https://aiwiki.ai/wiki/llama) model on a MacBook using 4-bit quantization [4]. A software stack formed within the year: the [GGUF](https://aiwiki.ai/wiki/gguf) file format, packaged runners such as [Ollama](https://aiwiki.ai/wiki/ollama) and [LM Studio](https://aiwiki.ai/wiki/lmstudio), and Apple's [MLX](https://aiwiki.ai/wiki/mlx) framework. As of November 18, 2026 the llama.cpp repository had about 135,600 [GitHub](https://aiwiki.ai/wiki/github) stars and Ollama's about 187,600 [5][6].

Users and vendors give similar reasons for running models locally: data stays on the machine, there are no per-token fees, the software works offline, and the user decides which model runs and when it changes [1][7]. The drawbacks are documented as well. [Epoch AI](https://aiwiki.ai/wiki/epoch_ai) estimated in August 2025 that the best models that fit on one high-end consumer GPU match what frontier models could do 6 to 12 months earlier [8], and a study of the r/LocalLLaMA community found that its members named steep learning curves, performance gaps against closed systems and resource constraints as deterrents [7].

This article covers the concept. For model recommendations by memory tier see [Best Local and On-Device LLMs](https://aiwiki.ai/wiki/best_local_llms), and for setup steps see [How to run LLMs locally](https://aiwiki.ai/wiki/how_to_run_llms_locally).

## Terminology and scope

Projects in the field use the phrase about themselves. Hugging Face announced that the llama.cpp team was joining it "to ensure the long-term progress of Local AI" [9], LM Studio states its mission as "making local AI accessible, useful, and ubiquitous" [10], and [Microsoft](https://aiwiki.ai/wiki/microsoft) describes [Foundry Local](https://aiwiki.ai/wiki/foundry_local) as "an end-to-end local AI solution for shipping applications that run entirely on your device" [11].

Three neighboring terms overlap with it.

- **On-device AI.** Platform vendors use this term for models that run on the phone or PC itself. Google's Android documentation applies it to [Gemini Nano](https://aiwiki.ai/wiki/gemini_nano), which runs inside the AICore system service; the service also keeps the model up to date [12]. A 2024 review of on-device language models concentrates on resource-constrained edge devices and on case studies from mobile manufacturers [13]. With local AI tools, by contrast, the user picks a model from a hub and a local app to run it [1]. Usage is not strict: LM Studio's own blog calls models running on a Mac "on-device LLMs" [14]. See [on-device AI](https://aiwiki.ai/wiki/on_device_ai).
- **Edge AI.** IBM defines edge AI as deploying AI algorithms and models directly on local edge devices such as sensors or Internet of Things devices, and gives self-driving cars, wearables, security cameras and smart home appliances as examples [15]. See [edge AI](https://aiwiki.ai/wiki/edge_ai).
- **Self-hosting.** Organizations can deploy models on their own infrastructure instead of subscribing to a commercial service, which Pan and colleagues call local or on-premise deployment [16]. One measurement study describes open-source and commercial frameworks "enabling individuals and organizations to self-host advanced LLM capabilities" [17]. See [self-hosting LLMs](https://aiwiki.ai/wiki/self_hosting_llms).

Running a model locally requires its weights, so local AI is tied to open-weight releases. Epoch AI's 2024 report on such models counts a model as "open" when its weights can be downloaded, including when the license is restrictive [18]. The original LLaMA weights were an example: access required agreeing to terms that excluded commercial use [4]. The r/LocalLLaMA study found the community split between "open source purists", who ask for replicability and specific licensing, and "pragmatists", who value any release that is useful in practice, open weights included [7].

## History

### Precursors in 2022

[Stability AI](https://aiwiki.ai/wiki/stability_ai) released [Stable Diffusion](https://aiwiki.ai/wiki/stable_diffusion) to the public on August 22, 2022, saying the model should need about 6.9 GB of VRAM and that NVIDIA chips were recommended at launch [19]. [Simon Willison](https://aiwiki.ai/wiki/simon_willison) later wrote that the release let people generate images from text on their own hardware and let developers experiment with the model's internals [4]. In September 2022 the [ggml](https://aiwiki.ai/wiki/ggml) tensor library and whisper.cpp, Gerganov's C/C++ port of [OpenAI](https://aiwiki.ai/wiki/openai)'s [Whisper](https://aiwiki.ai/wiki/whisper) speech recognition model, appeared on GitHub [20][21][4].

### LLaMA, llama.cpp and Alpaca (March 2023)

Meta's LLaMA paper, submitted to arXiv on February 27, 2023, described models from 7 billion to 65 billion [parameters](https://aiwiki.ai/wiki/parameter) that were released "to the research community" [22]. On March 3 a torrent of the weights was posted on 4chan. The Verge reported that a researcher who compared the leaked files with the official ones confirmed that they matched, and that Meta acknowledged some people had tried to get around its approval process [23].

Gerganov published llama.cpp on March 10, 2023 [5]. Its README said: "The main goal is to run the model using 4-bit quantization on a MacBook" [4]. At 4 bits the 7B model took about 4 GB on disk and the 13B model just under 8 GB, and Willison reported running both on his laptop within a day of the release. Over the following two days other people got the 7B model running on a Raspberry Pi 4 with 4 GB of RAM, at about 10 seconds per [token](https://aiwiki.ai/wiki/token), and LLaMA running on a Pixel 6 phone, at 26 seconds per token [4]. Willison predicted that, unless Meta relaxed its licensing terms, LLaMA "will likely end up more a proof-of-concept that local language models are feasible on consumer hardware than a new foundation model that people use going forward" [4].

On March 13 a group at [Stanford University](https://aiwiki.ai/wiki/stanford_university) announced [Alpaca](https://aiwiki.ai/wiki/alpaca), a version of LLaMA 7B [fine-tuned](https://aiwiki.ai/wiki/fine_tuning) on 52,000 instruction-following demonstrations for less than $600. The group published the training data, the code and a demo that day, and held back the model weights while it asked Meta for guidance [24][4]. The alpaca.cpp repository, created on March 16, combined LLaMA, an open reproduction of Alpaca and a chat interface built on llama.cpp, and described itself as a way to "Run a fast ChatGPT-like model locally on your device"; its changes were later merged into llama.cpp [25]. Other local runners date from the same weeks: the repositories for [KoboldCpp](https://aiwiki.ai/wiki/koboldcpp) (March 16), [LocalAI](https://aiwiki.ai/wiki/localai_software) (March 18) and [GPT4All](https://aiwiki.ai/wiki/gpt4all) (March 27) were all created that month [26][2][27].

The Reddit forum r/LocalLLaMA became a meeting place for this activity. Lee and colleagues note that it was named after LLaMA and grew into a general forum for locally runnable open-weight models; the corpus they collected from it, covering March 10, 2023 to January 30, 2025, holds 52,518 posts and 731,615 comments from 61,408 commenters [7].

### A common format and packaged tools (2023)

GGUF, which its specification calls a "successor file format to GGML, GGMF and GGJT", was merged into llama.cpp on August 21, 2023 [28][29]. The specification lists single-file deployment, extensibility, `mmap` compatibility and carrying all the information needed to load a model as design goals [28]. Lee and colleagues record that r/LocalLLaMA users collectively endorsed the new format as a response to breakage caused by frequent format changes [7].

Packaged applications arrived in the same period. LM Studio launched in May 2023 [10], the Ollama repository was created on June 26, 2023 [6], and the repository for [Open WebUI](https://aiwiki.ai/wiki/open_webui) followed in October [30]. In December 2023 Apple's machine learning research team released MLX, an array framework for [Apple silicon](https://aiwiki.ai/wiki/apple_silicon) [31][32].

### Vendors and model developers (2024 to 2026)

In February 2024 Ollama added an endpoint compatible with OpenAI's Chat Completions API, and in October 2024 LM Studio 0.3.4 added an MLX engine [33][14]. In 2025 hardware vendors described several products by the size of model a machine could hold in memory: [Apple](https://aiwiki.ai/wiki/apple) announced a Mac Studio with up to 512 GB of unified memory in March, [AMD](https://aiwiki.ai/wiki/amd) published LM Studio benchmarks for its Ryzen AI Max+ 395 processor the same month, and [NVIDIA](https://aiwiki.ai/wiki/nvidia) announced in October that its [DGX Spark](https://aiwiki.ai/wiki/nvidia_dgx_spark) desktop system was shipping [34][35][36].

On August 5, 2025 OpenAI released [gpt-oss](https://aiwiki.ai/wiki/gpt_oss), two open-weight reasoning models under the [Apache License 2.0](https://aiwiki.ai/wiki/apache_license) [71][38]. The model card says the smaller gpt-oss-20b runs within 16 GB of memory and points people using consumer hardware to Ollama and LM Studio [37].

On February 20, 2026 Hugging Face announced that Gerganov and the ggml team were joining the company. It said the team keeps full autonomy over llama.cpp and that the project stays open source, and it described the moment as one in which "local inference becomes a meaningful and competitive alternative to cloud inference" [9]. On November 13, 2026 the project released llama.cpp v1.0.0 and ggml v1.0.0 and committed to semantic versioning, with breaking changes to the public C API marked by a new major version [3]. The model releases that these tools run are listed in the [timeline of open-weight models](https://aiwiki.ai/wiki/timeline_of_open_weight_models).

| Date | Event | Source |
| --- | --- | --- |
| 2022-08-22 | Stable Diffusion public release | [19] |
| 2022-09 | ggml and whisper.cpp repositories created | [20][21] |
| 2023-02-27 | LLaMA paper submitted to arXiv | [22] |
| 2023-03-03 | LLaMA weights posted as a torrent on 4chan | [23] |
| 2023-03-10 | llama.cpp repository created | [5] |
| 2023-03-13 | Stanford Alpaca released | [24] |
| 2023-05 | LM Studio launched | [10] |
| 2023-06-26 | Ollama repository created | [6] |
| 2023-08-21 | GGUF merged into llama.cpp | [29] |
| 2023-12 | Apple releases MLX | [31] |
| 2024-02-08 | Ollama adds an OpenAI-compatible endpoint | [33] |
| 2024-10-08 | LM Studio 0.3.4 ships an MLX engine | [14] |
| 2025-08-05 | OpenAI releases gpt-oss under Apache 2.0 | [71] |
| 2025-09-19 | Ollama previews cloud-hosted models | [39] |
| 2025-10-13 | NVIDIA announces that DGX Spark is shipping | [36] |
| 2026-02-20 | ggml and llama.cpp team joins Hugging Face | [9] |
| 2026-03-30 | Ollama previews an MLX backend on Apple silicon | [40] |
| 2026-11-13 | llama.cpp v1.0.0 and ggml v1.0.0 | [3] |

## Software stack

The table groups the software by the job it does. Several products appear in more than one row.

| Layer | What it does | Examples |
| --- | --- | --- |
| Model files | Store weights and metadata in a form a runtime can load | [GGUF](https://aiwiki.ai/wiki/gguf), [Safetensors](https://aiwiki.ai/wiki/safetensors), MLX-format weights |
| Runtime | Loads the weights and computes tokens on the CPU or GPU | [llama.cpp](https://aiwiki.ai/wiki/llama_cpp), [MLX](https://aiwiki.ai/wiki/mlx), [vLLM](https://aiwiki.ai/wiki/vllm), [MLC LLM](https://aiwiki.ai/wiki/mlc_llm), [exo](https://aiwiki.ai/wiki/exo) |
| Model manager or desktop app | Downloads models, applies settings, offers a chat window | [Ollama](https://aiwiki.ai/wiki/ollama), [LM Studio](https://aiwiki.ai/wiki/lmstudio), [Jan](https://aiwiki.ai/wiki/jan_ai), [GPT4All](https://aiwiki.ai/wiki/gpt4all), [KoboldCpp](https://aiwiki.ai/wiki/koboldcpp), [TextGen](https://aiwiki.ai/wiki/text_generation_webui) |
| Front end | Browser or node-graph interface in front of a runtime | [Open WebUI](https://aiwiki.ai/wiki/open_webui), [ComfyUI](https://aiwiki.ai/wiki/comfyui) |
| Local API server | Serves the model over HTTP, usually in OpenAI's format | llama.cpp server, Ollama, LM Studio, [LocalAI](https://aiwiki.ai/wiki/localai_software) |

### Runtimes

llama.cpp describes itself as "LLM inference in C/C++", is built on the ggml library, and is released under the [MIT License](https://aiwiki.ai/wiki/mit_license). Its stated goal is "to enable LLM (and MLLM) inference with minimal setup and state-of-the-art performance on a wide range of hardware - locally and in the cloud" [5]. Its build documentation covers CPU-only builds and GPU backends that include Metal, [CUDA](https://aiwiki.ai/wiki/cuda), Vulkan, SYCL and HIP [41].

MLX, also MIT-licensed, is Apple's array framework for machine learning on Apple silicon [32]. Language models run through its MLX-LM package, which integrates with the Hugging Face Hub [42]. [vLLM](https://aiwiki.ai/wiki/vllm), under Apache 2.0, calls itself "a high-throughput and memory-efficient inference and serving engine for LLMs" [43]. [MLC LLM](https://aiwiki.ai/wiki/mlc_llm), also under Apache 2.0, is a machine learning compiler and deployment engine for language models [44]. [exo](https://aiwiki.ai/wiki/exo), under Apache 2.0, joins several devices into one cluster so that a model too large for any single machine can still run, using MLX as its inference backend [45].

Packaged applications build on these engines. Ollama's README lists llama.cpp as its supported backend, and since a preview in March 2026 Ollama on Apple silicon is built on MLX [6][40]. LM Studio says its runtime has "MLX and llama.cpp under the hood" [46]. Outside language models, whisper.cpp runs speech recognition, and [ComfyUI](https://aiwiki.ai/wiki/comfyui), under the [GNU General Public License](https://aiwiki.ai/wiki/gnu_general_public_license) version 3, is a node-graph interface and backend for diffusion models [21][47].

### Model formats

GGUF is a binary format designed for fast loading that stores both the tensors and a standardized set of metadata in a single file [48][28]. [Safetensors](https://aiwiki.ai/wiki/safetensors), by contrast, is a tensor-only format [48]. It was designed as a safe alternative to Python's pickle format [49], which is the default for [PyTorch](https://aiwiki.ai/wiki/pytorch) weights and can execute arbitrary code when a file is loaded [50]. Weights are also published in MLX format, including by an open community of contributors on the Hub [42]. As of November 2026 the Hugging Face Hub listed about 223,000 models under its GGUF library filter and about 29,000 under MLX [51][52].

### Applications and front ends

| Project | Description | License |
| --- | --- | --- |
| [Ollama](https://aiwiki.ai/wiki/ollama) | Downloads and runs open models "locally or in the cloud" | MIT [6] |
| [LM Studio](https://aiwiki.ai/wiki/lmstudio) | Desktop app that downloads and runs local LLMs; free to use at home and, since July 8, 2025, at work | Proprietary (LM Studio app terms) [72][10] |
| [Jan](https://aiwiki.ai/wiki/jan_ai) | Desktop app that its repository describes as "an open source alternative to ChatGPT that runs 100% offline on your computer" | Apache 2.0 [53] |
| [GPT4All](https://aiwiki.ai/wiki/gpt4all) | "Run Local LLMs on Any Device", from Nomic | MIT [27] |
| [KoboldCpp](https://aiwiki.ai/wiki/koboldcpp) | Runs GGUF models with a KoboldAI interface from a single file | AGPL 3.0 [26] |
| [TextGen](https://aiwiki.ai/wiki/text_generation_webui) | "A desktop app for local LLMs", called text-generation-webui until the project was renamed in April 2026, with llama.cpp, [Transformers](https://aiwiki.ai/wiki/transformers_library), ExLlamaV3 and TensorRT-LLM backends | AGPL 3.0 [54] |
| [Open WebUI](https://aiwiki.ai/wiki/open_webui) | Self-hosted web interface "built to run entirely offline" that connects to Ollama or to OpenAI-compatible APIs | Open WebUI License (not OSI-approved) [30][73] |
| [LocalAI](https://aiwiki.ai/wiki/localai_software) | API server for text, image, speech and video models that speaks the OpenAI and Anthropic formats | MIT [2] |

Two entries in the table are not open-source software. LM Studio is proprietary: its terms of service grant "a non-exclusive, non-transferable license to use the Software solely for Your personal and / or internal business purposes", prohibit modifying the software and describe its source code as a trade secret. The current terms, dated August 23, 2026, also provide for paid features billed by subscription or by usage [72]. The Open WebUI License is the project's own: it adds a condition against removing Open WebUI branding to BSD-style terms, with exceptions that include deployments of 50 or fewer users [30]. It is not among the licenses approved by the Open Source Initiative, whose list does include the MIT, Apache 2.0, GPL 3.0 and AGPL 3.0 licenses used by the other software projects named in this article [73].

The GPT4All authors titled their 2023 workshop paper "GPT4All: An Ecosystem of Open Source Compressed Language Models" and wrote that the project "aims to democratize access to LLMs" [55].

### OpenAI-compatible servers

Several local runners expose an HTTP server that follows the [OpenAI API](https://aiwiki.ai/wiki/openai_api), so software written for a cloud model can be pointed at a local one by changing the base URL [56]. Ollama's announcement showed the official OpenAI Python client working against `http://localhost:11434/v1` with a placeholder API key [33]. LM Studio serves the same style of endpoints on localhost and says the requests "stay local" [56][57]. The llama.cpp server offers OpenAI-compatible chat completions, responses and embeddings routes and a route compatible with the [Anthropic](https://aiwiki.ai/wiki/anthropic_api) Messages API [58]. vLLM, LocalAI and Foundry Local document OpenAI-compatible servers as well [43][2][11]. Coding agents are connected the same way: LM Studio documents Codex support through its OpenAI-compatible responses endpoint, and Ollama's March 2026 preview showed [Claude Code](https://aiwiki.ai/wiki/claude_code) running against a local model [56][40]. See [OpenAI-compatible API](https://aiwiki.ai/wiki/openai_compatible_api).

## Hardware constraints

### Memory

The llama.cpp documentation notes that models are fully loaded into memory, so a machine needs about as much RAM as the model file is large [59]. Epoch AI modeled the VRAM a model needs on a GPU as

$$
\text{VRAM} \approx \text{weights} + \text{KV cache} + \text{runtime overhead}
$$

using 0.54 bytes per parameter for 4-bit weights, about 6.6 GiB of [KV cache](https://aiwiki.ai/wiki/kv_cache) for an 8,000-token context and about 2 GiB of overhead. Under those assumptions a 24 GB RTX 4090 tops out near 27 billion parameters and a 32 GB [RTX 5090](https://aiwiki.ai/wiki/nvidia_geforce_rtx_5090) near 40 billion. Epoch added that larger models can run by offloading part of the model out of VRAM or by quantizing more aggressively, at a cost in speed or output quality respectively [8].

Runtimes can split a model between the GPU and system memory. Ollama reports the split for each loaded model (for example "48%/52% CPU/GPU") and uses a default [context window](https://aiwiki.ai/wiki/context_window) of 4,096 tokens unless told otherwise [60]. LM Studio's system requirements recommend at least 16 GB of RAM, and on Windows at least 4 GB of dedicated VRAM; they say 8 GB Macs should stick to smaller models and modest context sizes [61].

### Unified memory

Apple silicon uses what Apple calls unified memory, and MLX is built around it: "Arrays in MLX live in shared memory", so operations can run on the CPU or the GPU without transferring data [32][34]. AMD and NVIDIA use the same term for their 2025 systems. The table sets those systems beside two graphics cards with dedicated VRAM, using the vendors' figures and Epoch AI's estimates.

| Hardware | Memory available to a model | Capacity claim | Source |
| --- | --- | --- | --- |
| NVIDIA GeForce RTX 4090 | 24 GB VRAM | About 27B parameters at 4 bits (Epoch AI estimate) | [8] |
| NVIDIA GeForce RTX 5090 | 32 GB VRAM | About 40B parameters at 4 bits (Epoch AI estimate) | [8] |
| AMD Ryzen AI Max+ 395 | Up to 128 GB unified, of which up to 96 GB can be converted to VRAM | Not stated as a parameter count | [35] |
| NVIDIA DGX Spark | 128 GB unified | Inference on models of up to 200B parameters (NVIDIA) | [36] |
| Apple Mac Studio with M3 Ultra | Up to 512 GB unified | LLMs with over 600B parameters in memory (Apple) | [34] |

### Quantization

Quantization lowers the precision of the weights, for example from 32-bit [floating point](https://aiwiki.ai/wiki/floating_point) to 4-bit integers, which shrinks the file and can speed up inference. The llama.cpp quantization guide gives these sizes for [Llama 3.1](https://aiwiki.ai/wiki/llama_3_1) [59]:

| Model | Original size | Q4_K_M size |
| --- | --- | --- |
| 8B | 32.1 GB | 4.9 GB |
| 70B | 280.9 GB | 43.1 GB |
| 405B | 1,625.1 GB | 249.1 GB |

An evaluation published in the Findings of ACL 2024 concluded that LLMs with 4-bit quantization can keep performance comparable to the unquantized models, that a larger quantized model can outperform a smaller one, and that quantization can also slow inference down, so engineering work and hardware support are needed to balance speed and memory [62]. Some models are released with a target format in mind: OpenAI's gpt-oss models were post-trained with MXFP4 quantization, which is what lets the 20b model run within 16 GB [37]. A 2026 benchmark on consumer NVIDIA GPUs measured [NVFP4](https://aiwiki.ai/wiki/nvfp4) at 1.6 times the throughput of BF16 with 41% less energy and a 2 to 4% loss in quality [63].

## Motivations

**Privacy.** Hugging Face's documentation puts it as "You won't be sending your data to a remote server" [1]. Ollama's FAQ says: "Ollama runs locally. We don't see your prompts or data when you run locally" [60]. LM Studio's documentation says that nothing typed into a chat with a downloaded model leaves the device, and that documents used for [retrieval-augmented generation](https://aiwiki.ai/wiki/retrieval_augmented_generation) stay on the machine [57]. In the r/LocalLLaMA study, members cited sensitive code and personal data, and one described a therapy application that needed local inference to protect patients [7].

**Offline use.** LM Studio says it "can operate entirely offline" once model files are on the machine; searching for and downloading models, runtimes and updates still needs a connection [57]. Microsoft lists working offline among the reasons to use Foundry Local [11].

**Cost.** The r/LocalLLaMA study found that a one-time hardware purchase encouraged experimentation because there were no metered fees; one member calculated that processing 8 billion tokens locally cost $20 in electricity against $400 through the cheapest API provider [7]. Knoop and Holtmann measured electricity-only costs of $0.001 to $0.04 per million tokens on consumer NVIDIA GPUs and estimated that the hardware pays for itself in under four months at 30 million tokens a day [63]. A cost model by Pan and colleagues for organizations found break-even within a few months for small models, about two years for medium models and about five years for large ones. They concluded that on-premise deployment is viable mainly for very high volumes (50 million tokens a month or more) or strict data-residency requirements, and they note that their model leaves out staffing and maintenance [16].

**Control.** Members of r/LocalLLaMA valued the consistency of a model that does not change underneath them, citing unannounced API updates that broke their workflows. The authors group these motives under "data and compute sovereignty" [7]. The study also documents demand for "uncensored" fine-tunes among users who object to the safety filters of proprietary models [7].

**Relieving [data centers](https://aiwiki.ai/wiki/data_center).** Saad-Falcon and colleagues argue that local inference could take load off centralized infrastructure. They tested more than 20 local models (20 billion active parameters or fewer) on one million real single-turn chat and reasoning queries and scored each answer against a frontier model. When each query was routed to the best-suited local model, local models handled 88.7% of the queries, and the win-or-tie rate of a single local model against frontier models rose from 23.2% for a 2023 model to 71.3% for a 2025 model [64].

## Limits and criticism

**Capability gap.** Epoch AI's 2024 report found that the best open-weight models had lagged the best closed ones by 5 to 22 months on benchmarks, which it summarized as a lag of about one year [18]. Its 2025 follow-up restricted the comparison to models that fit on a single consumer GPU and measured average lags of 7.4 months on [GPQA](https://aiwiki.ai/wiki/gpqa) Diamond, 7.3 months on [MMLU-Pro](https://aiwiki.ai/wiki/mmlu-pro), 6.3 months on the [Artificial Analysis](https://aiwiki.ai/wiki/artificial_analysis) Intelligence Index and 12.4 months on [LMArena](https://aiwiki.ai/wiki/lmarena_org) Elo. It cautioned that small open models are more likely to be optimized for specific benchmarks, so the real-world lag may be longer [8]. Saad-Falcon and colleagues found that local models' coverage fell to about 60% in technical fields such as architecture and engineering, against more than 93% in creative and humanities fields [64]. In the Minions experiments, a small local model that simply chatted back and forth with a cloud model recovered 87% of the cloud model's performance, and the authors traced the shortfall to trouble following multi-step instructions and reasoning over long contexts [65].

**Efficiency and cost.** The intelligence-per-watt study found that local accelerators delivered at least 1.4 times lower intelligence per watt than cloud accelerators running identical models [64]. Members of r/LocalLLaMA acknowledged that hosted APIs remain more economical for very large context windows, and one estimated that an Apple M4 machine would need six years of running at its limit to cover its cost compared with using OpenAI's models [7]. Pan and colleagues found that against aggressively priced commercial APIs the break-even time for large models can stretch to between five and nine years [16].

**Usability.** Lee and colleagues report a "sharp learning curve", with fragmented repositories and complicated installation compared with hosted chat products [7]. Hugging Face's 2026 announcement acknowledged the problem, saying it was "crucial to improve and simplify the way in which casual users deploy and access local models" [9].

**Security of exposed servers.** Ollama binds to 127.0.0.1 by default, so the server is reachable only from the same machine unless the user changes the address [60]. In 2024 Wiz Research reported CVE-2024-37032, a path traversal flaw in Ollama that led to remote code execution and was fixed in version 0.1.34. Wiz pointed out that Ollama had no built-in authentication and that Docker deployments exposed the API server publicly, and it advised against exposing Ollama to the internet without an authenticating reverse proxy [66]. An internet-wide survey by Hou and colleagues identified 320,102 public-facing LLM services across 15 frameworks [17]. A year-long measurement accepted at the 2026 ACM Internet Measurement Conference counted 152,137 IP addresses exposing Ollama between February 2025 and February 2026 and found that, across five vulnerabilities, only 0.43% to 2.90% of hosts running a version older than the fix were upgraded in place [67].

**Loss of provider controls.** When llama.cpp appeared, Willison observed that hosted providers had a limited ability to control how their models were used and that this control is gone once people run models on their own hardware; he listed spam, scams and disinformation among the risks [4]. Epoch AI makes a similar point about open models in general: they are easier to modify and spread without oversight from the original developers [18].

## Hybrid local and cloud use

Tools that began as local runners have added hosted options. In September 2025 Ollama previewed cloud models for sizes "that wouldn't fit on a personal computer", usable from the same local tools and API, and its FAQ documents a local-only mode that disables them [39][60]. LM Studio's site also describes cloud services, which it says operate with zero data retention [46].

Researchers have also studied splitting work between local and cloud models. In the MinionS protocol a cloud model breaks a task into subtasks that a local model runs over chunks of a long document; the authors report a 5.7-fold reduction in cloud cost on average while recovering 97.9% of the cloud model's performance [65]. Pan and colleagues suggest that mid-sized organizations run sensitive workloads locally and send bursts of traffic to cloud APIs [16].

## Adoption

Several indicators give a sense of scale.

- **Downloads.** The Ollama image on Docker Hub had been pulled more than 202 million times as of November 2026 [68]. LM Studio's Yagil Burowski wrote in July 2025 of "millions of downloads worldwide" [10].
- **Developer surveys.** Stack Overflow's 2025 Developer Survey asked respondents who use or develop [AI agents](https://aiwiki.ai/wiki/ai_agents) which tools they had used "for AI agent orchestration or agent frameworks in the past year". Of the 3,758 who answered, 51.1% chose Ollama, the highest share of any tool listed, ahead of LangChain at 32.9% [69].
- **Open-source activity.** GitHub's Octoverse report for 2025 ranked vLLM first, Ollama seventh and llama.cpp eighth among open-source projects by number of contributors. It also named vLLM and Ollama among fast-rising AI projects that it said were "showing the pull of local inference, coding agents, and model runners" [70].

The table lists GitHub figures for the main projects as of November 18, 2026.

| Project | Repository created | License | GitHub stars |
| --- | --- | --- | --- |
| [Ollama](https://aiwiki.ai/wiki/ollama) | 2023-06-26 | MIT | 187,575 [6] |
| [Open WebUI](https://aiwiki.ai/wiki/open_webui) | 2023-10-06 | Open WebUI License (not OSI-approved) | 159,039 [30] |
| [ComfyUI](https://aiwiki.ai/wiki/comfyui) | 2023-01-17 | GPL 3.0 | 147,508 [47] |
| [llama.cpp](https://aiwiki.ai/wiki/llama_cpp) | 2023-03-10 | MIT | 135,648 [5] |
| [vLLM](https://aiwiki.ai/wiki/vllm) | 2023-02-09 | Apache 2.0 | 97,177 [43] |
| [GPT4All](https://aiwiki.ai/wiki/gpt4all) | 2023-03-27 | MIT | 77,344 [27] |
| whisper.cpp | 2022-09-25 | MIT | 55,297 [21] |
| [LocalAI](https://aiwiki.ai/wiki/localai_software) | 2023-03-18 | MIT | 50,439 [2] |
| [TextGen](https://aiwiki.ai/wiki/text_generation_webui) | 2022-12-21 | AGPL 3.0 | 47,737 [54] |
| [Jan](https://aiwiki.ai/wiki/jan_ai) | 2023-08-17 | Apache 2.0 | 45,808 [53] |
| [MLX](https://aiwiki.ai/wiki/mlx) | 2023-11-28 | MIT | 29,213 [32] |
| [KoboldCpp](https://aiwiki.ai/wiki/koboldcpp) | 2023-03-16 | AGPL 3.0 | 12,346 [26] |

## See also

- [Best Local and On-Device LLMs](https://aiwiki.ai/wiki/best_local_llms)
- [On-device AI](https://aiwiki.ai/wiki/on_device_ai)
- [Edge AI](https://aiwiki.ai/wiki/edge_ai)
- [Small language model](https://aiwiki.ai/wiki/small_language_model)
- [Open-source AI](https://aiwiki.ai/wiki/open_source_ai)
- [Open Source AI Definition](https://aiwiki.ai/wiki/open_source_ai_definition)

## References

1. Hugging Face. "Use AI Models Locally". Hugging Face Hub documentation, accessed November 18, 2026. https://huggingface.co/docs/hub/local-apps
2. mudler. "LocalAI". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/mudler/LocalAI
3. Bevenius, D., Gerganov, G., and merve. "llama.cpp v1.0.0 : A stronger foundation for the local AI ecosystem". Hugging Face Blog, November 13, 2026. https://huggingface.co/blog/ggml-org/llama-cpp-v1
4. Willison, S. "Large language models are having their Stable Diffusion moment". Simon Willison's Weblog, March 11, 2023. https://simonwillison.net/2023/Mar/11/llama/
5. ggml-org. "llama.cpp: LLM inference in C/C++". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/ggml-org/llama.cpp
6. Ollama. "ollama/ollama". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/ollama/ollama
7. Lee, W., Howison, J., Lee, M. K., and Li, H. "Open AI in the Wild: Adoption and Adaptation of Open Models on r/LocalLLaMA". arXiv:2606.22211, June 20, 2026 (accepted at FAccT '26). https://arxiv.org/abs/2606.22211
8. Somala, V., and Emberson, L. "Frontier AI performance becomes accessible on consumer hardware within a year". Epoch AI, August 15, 2025. https://epoch.ai/data-insights/consumer-gpu-model-gap
9. Gerganov, G., Nguyen, X.-S., Grygier, A., Lysandre, Mustar, V., and Chaumond, J. "GGML and llama.cpp join HF to ensure the long-term progress of Local AI". Hugging Face Blog, February 20, 2026. https://huggingface.co/blog/ggml-joins-hf
10. Burowski, Y. "LM Studio is free for use at work". LM Studio Blog, July 8, 2025. https://lmstudio.ai/blog/free-for-work
11. Microsoft. "What is Foundry Local?". Microsoft Learn, accessed November 18, 2026. https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-local/what-is-foundry-local
12. Google. "Gemini Nano". Android Developers, last updated October 29, 2026. https://developer.android.com/ai/gemini-nano
13. Xu, J., Li, Z., Chen, W., Wang, Q., Gao, X., Cai, Q., and Ling, Z. "On-Device Language Models: A Comprehensive Review". arXiv:2409.00088, August 26, 2024. https://arxiv.org/abs/2409.00088
14. Burowski, Y., Coghlan, A., Mehta, N., and Clayton, M. "LM Studio 0.3.4 ships with Apple MLX". LM Studio Blog, October 8, 2024. https://lmstudio.ai/blog/lmstudio-v0.3.4
15. Susnjara, S., and Smalley, I. "What Is Edge AI?". IBM Think, accessed November 18, 2026. https://www.ibm.com/think/topics/edge-ai
16. Pan, G., Chodnekar, V., Roy, A., and Wang, H. "A Cost-Benefit Analysis of On-Premise Large Language Model Deployment: Breaking Even with Commercial LLM Services". arXiv:2509.18101, August 30, 2025 (v3, November 11, 2025). https://arxiv.org/abs/2509.18101
17. Hou, X., Han, J., Zhao, Y., and Wang, H. "Unveiling the Landscape of LLM Deployment in the Wild: An Empirical Study". arXiv:2505.02502, May 5, 2025. https://arxiv.org/abs/2505.02502
18. Cottier, B., You, J., Martemianova, N., and Owen, D. "How far behind are open models?". Epoch AI, November 4, 2024. https://epoch.ai/blog/open-models-report
19. Stability AI. "Stable Diffusion Public Release". Stability AI, August 22, 2022. https://stability.ai/news/stable-diffusion-public-release
20. ggml-org. "ggml: Tensor library for machine learning". GitHub repository metadata, accessed November 18, 2026. https://github.com/ggml-org/ggml
21. ggml-org. "whisper.cpp: Port of OpenAI's Whisper model in C/C++". GitHub repository (LICENSE and repository metadata), accessed November 18, 2026. https://github.com/ggml-org/whisper.cpp
22. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., and Lample, G. "LLaMA: Open and Efficient Foundation Language Models". arXiv:2302.13971, February 27, 2023. https://arxiv.org/abs/2302.13971
23. Vincent, J. "Meta's powerful AI language model has leaked online - what happens now?". The Verge, March 8, 2023. https://www.theverge.com/2023/3/8/23629362/meta-ai-language-model-llama-leak-online-misuse
24. Taori, R., Gulrajani, I., Zhang, T., Dubois, Y., Li, X., Guestrin, C., Liang, P., and Hashimoto, T. B. "Alpaca: A Strong, Replicable Instruction-Following Model". Stanford Center for Research on Foundation Models, March 13, 2023. https://crfm.stanford.edu/2023/03/13/alpaca.html
25. antimatter15. "alpaca.cpp: Locally run an Instruction-Tuned Chat-Style LLM". GitHub repository (README and repository metadata), accessed November 18, 2026. https://github.com/antimatter15/alpaca.cpp
26. LostRuins. "KoboldCpp". GitHub repository (LICENSE and repository metadata), accessed November 18, 2026. https://github.com/LostRuins/koboldcpp
27. Nomic AI. "GPT4All: Run Local LLMs on Any Device". GitHub repository (LICENSE and repository metadata), accessed November 18, 2026. https://github.com/nomic-ai/gpt4all
28. ggml-org. "GGUF" (file format specification). ggml repository, docs/gguf.md, accessed November 18, 2026. https://github.com/ggml-org/ggml/blob/master/docs/gguf.md
29. Gerganov, G. "GGUF". Pull request #2398, ggml-org/llama.cpp, opened July 26, 2023, merged August 21, 2023. https://github.com/ggml-org/llama.cpp/pull/2398
30. Open WebUI. "open-webui/open-webui". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/open-webui/open-webui
31. Evans, J. "Apple launches MLX machine-learning framework for Apple Silicon". Computerworld, December 6, 2023. https://www.computerworld.com/article/1611155/apple-launches-mlx-machine-learning-framework-for-apple-silicon.html
32. ml-explore. "MLX: An array framework for Apple silicon". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/ml-explore/mlx
33. Ollama. "OpenAI compatibility". Ollama Blog, February 8, 2024. https://ollama.com/blog/openai-compatibility
34. Apple. "Apple unveils new Mac Studio, the most powerful Mac ever". Apple Newsroom, March 5, 2025. https://www.apple.com/newsroom/2025/03/apple-unveils-new-mac-studio-the-most-powerful-mac-ever/
35. AMD. "AMD Ryzen AI MAX+ 395 Processor: Breakthrough AI Performance in Thin and Light". AMD Blogs, March 17, 2025. https://www.amd.com/en/blogs/2025/amd-ryzen-ai-max-395-processor-breakthrough-ai-.html
36. NVIDIA. "NVIDIA DGX Spark Arrives for World's AI Developers". NVIDIA Newsroom, October 13, 2025. https://nvidianews.nvidia.com/news/nvidia-dgx-spark-arrives-for-worlds-ai-developers
37. OpenAI. "gpt-oss-20b" (model card). Hugging Face, accessed November 18, 2026. https://huggingface.co/openai/gpt-oss-20b
38. OpenAI. "gpt-oss-120b & gpt-oss-20b Model Card". arXiv:2508.10925, August 8, 2025. https://arxiv.org/abs/2508.10925
39. Ollama. "Cloud models". Ollama Blog, September 19, 2025. https://ollama.com/blog/cloud-models
40. Ollama. "Ollama is now powered by MLX on Apple Silicon in preview". Ollama Blog, March 30, 2026. https://ollama.com/blog/mlx
41. ggml-org. "Build llama.cpp locally". llama.cpp repository, docs/build.md, accessed November 18, 2026. https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md
42. Hugging Face. "Using MLX at Hugging Face". Hugging Face Hub documentation, accessed November 18, 2026. https://huggingface.co/docs/hub/mlx
43. vLLM project. "vLLM: A high-throughput and memory-efficient inference and serving engine for LLMs". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/vllm-project/vllm
44. MLC AI. "MLC LLM: Universal LLM Deployment Engine with ML Compilation". GitHub repository (README and LICENSE), accessed November 18, 2026. https://github.com/mlc-ai/mlc-llm
45. exo labs. "exo: Run frontier AI locally". GitHub repository (README and LICENSE), accessed November 18, 2026. https://github.com/exo-explore/exo
46. LM Studio. "LM Studio Bionic - Agent for Work and Code" (home page). Element Labs, accessed November 18, 2026. https://lmstudio.ai/
47. Comfy-Org. "ComfyUI". GitHub repository (LICENSE and repository metadata), accessed November 18, 2026. https://github.com/Comfy-Org/ComfyUI
48. Hugging Face. "GGUF". Hugging Face Hub documentation, accessed November 18, 2026. https://huggingface.co/docs/hub/gguf
49. Hugging Face. "Safetensors". Safetensors documentation, accessed November 18, 2026. https://huggingface.co/docs/safetensors/index
50. Hugging Face. "Pickle Scanning". Hugging Face Hub documentation, accessed November 18, 2026. https://huggingface.co/docs/hub/security-pickle
51. Hugging Face. Model listing filtered by the GGUF library (222,981 models), accessed November 18, 2026. https://huggingface.co/models?library=gguf
52. Hugging Face. Model listing filtered by the MLX library (29,226 models), accessed November 18, 2026. https://huggingface.co/models?library=mlx
53. Menlo Research. "Jan". GitHub repository (LICENSE and repository metadata), accessed November 18, 2026. https://github.com/janhq/jan
54. oobabooga. "TextGen". GitHub repository (README, LICENSE and repository metadata), accessed November 18, 2026. https://github.com/oobabooga/textgen
55. Anand, Y., Nussbaum, Z., Treat, A., Miller, A., Guo, R., Schmidt, B., GPT4All Community, Duderstadt, B., and Mulyar, A. "GPT4All: An Ecosystem of Open Source Compressed Language Models". arXiv:2311.04931, November 6, 2023 (NLP-OSS workshop at EMNLP 2023). https://arxiv.org/abs/2311.04931
56. LM Studio. "OpenAI Compatibility Endpoints". LM Studio documentation, accessed November 18, 2026. https://lmstudio.ai/docs/developer/openai-compat
57. LM Studio. "Offline Operation". LM Studio documentation, accessed November 18, 2026. https://lmstudio.ai/docs/app/offline
58. ggml-org. "LLaMA.cpp HTTP Server". llama.cpp repository, tools/server/README.md, accessed November 18, 2026. https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
59. ggml-org. "quantize". llama.cpp repository, tools/quantize/README.md, accessed November 18, 2026. https://github.com/ggml-org/llama.cpp/blob/master/tools/quantize/README.md
60. Ollama. "Local FAQ". Ollama documentation, accessed November 18, 2026. https://docs.ollama.com/faq
61. LM Studio. "System Requirements". LM Studio documentation, accessed November 18, 2026. https://lmstudio.ai/docs/app/system-requirements
62. Jin, R., Du, J., Huang, W., Liu, W., Luan, J., Wang, B., and Xiong, D. "A Comprehensive Evaluation of Quantization Strategies for Large Language Models". Findings of ACL 2024; arXiv:2402.16775, February 26, 2024. https://arxiv.org/abs/2402.16775
63. Knoop, J., and Holtmann, H. "Private LLM Inference on Consumer Blackwell GPUs: A Practical Guide for Cost-Effective Local Deployment in SMEs". arXiv:2601.09527, January 14, 2026. https://arxiv.org/abs/2601.09527
64. Saad-Falcon, J., Narayan, A., Akengin, H. O., Griffin, J. W., Shandilya, H., Gamarra Lafuente, A., Goel, M., Joseph, R., Natarajan, S., Guha, E. K., Zhu, S., Athiwaratkun, B., Hennessy, J., Mirhoseini, A., and Ré, C. "Intelligence per Watt: Measuring Intelligence Efficiency of Local AI". arXiv:2511.07885, November 11, 2025 (v7, October 1, 2026; NeurIPS 2026). https://arxiv.org/abs/2511.07885
65. Narayan, A., Biderman, D., Eyuboglu, S., May, A., Linderman, S., Zou, J., and Re, C. "Minions: Cost-efficient Collaboration Between On-device and Cloud Language Models". arXiv:2502.15964, February 21, 2025. https://arxiv.org/abs/2502.15964
66. Tzadik, S. "Probllama: Ollama Remote Code Execution Vulnerability (CVE-2024-37032) - Overview and Mitigations". Wiz Blog, June 24, 2024. https://www.wiz.io/blog/probllama-ollama-vulnerability-cve-2024-37032
67. Xu, Z., Li, X., Qiu, Y., and Sun, L. "Ollama in the Wild: A Longitudinal Measurement of Exposed Ollama LLM Endpoints at Internet Scale". arXiv:2609.07115, September 7, 2026 (accepted at ACM IMC 2026). https://arxiv.org/abs/2609.07115
68. Docker Hub. "ollama/ollama" (pull count 202,275,592), accessed November 18, 2026. https://hub.docker.com/r/ollama/ollama
69. Stack Overflow. "AI". 2025 Stack Overflow Developer Survey, accessed November 18, 2026. https://survey.stackoverflow.co/2025/ai
70. GitHub Staff. "Octoverse: A new developer joins GitHub every second as AI leads TypeScript to #1". The GitHub Blog, October 28, 2025. https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/
71. OpenAI. "Introducing gpt-oss". OpenAI, August 5, 2025. Archived January 3, 2026. https://web.archive.org/web/20260103041556/https://openai.com/index/introducing-gpt-oss
72. LM Studio. "LM Studio Desktop App Terms of Service". Element Labs, version of August 23, 2026. https://lmstudio.ai/app-terms
73. Open Source Initiative. "Licenses" (list of OSI-approved licenses), accessed November 18, 2026. https://opensource.org/licenses

