Skip to main content
  1. Tech Blog: AI, Security, Infrastructure & Open Source/

Running LLMs Locally — The Latest Quantization Breakthroughs That Changed Everything

·1720 words·9 mins
Osmond van Hemert
Author
Osmond van Hemert
AI Models & Releases - This article is part of a series.
Part : This Article

Over the past three months, quantization techniques for large language models have moved from “interesting research” to “production-ready infrastructure.” If you’ve been watching the space, you know that quantization — the process of reducing the precision of neural network weights from full floating-point to lower-bit representations — has always been theoretically sound. What changed recently is that the quality degradation is now negligible for most practical applications, and the size reduction is so dramatic that it’s reshaping the entire economics of AI deployment.

Let me be direct: if you’ve been waiting to run GPT-scale models locally, this is the moment. The technical barriers have fallen.

What Actually Happened
#

The quantization landscape shifted in three major ways over the past few months:

First, precision techniques got smarter. Older quantization approaches would naively convert all weights to lower precision, resulting in noticeable quality loss. Recent work from labs including companies like Hugging Face, together with community-driven projects like GGUF and llm-compressor, introduced techniques like:

  • Weight-only quantization: Compress weights to 4-bit or even 2-bit while keeping activations at higher precision. This gives you 90% of the size reduction with much less quality loss.
  • Group quantization: Quantize weights in small groups rather than globally, preserving per-group scale factors. This maintains expressiveness better than uniform quantization.
  • Learned quantization: Using calibration data to determine optimal quantization ranges rather than naively using min/max values. The model can actually learn where to allocate precision.

Second, hardware got better at running low-precision math. Modern consumer GPUs — even budget GPUs — have specialized hardware for int8 and int4 operations. Apple’s Neural Engine on M-series chips, NVIDIA’s INT4 tensor cores on consumer RTX GPUs, and even modern smartphone processors now have quantization-friendly silicon. This means quantized models don’t just take up less space; they actually run faster than full-precision models on the same hardware because they fit better in cache and hit hardware accelerators.

Third, the ecosystem standardized. Projects like GGUF (the format used by llama.cpp) became de facto standards for quantized model distribution. Major model providers started releasing officially quantized versions of their models. You no longer have to quantize models yourself — you can download pre-quantized versions that have been optimized and tested by the authors. This removes the last significant barrier to adoption.

The Numbers
#

Let me be concrete about what “running a model locally” now means:

Llama 3.1 (70B parameters), quantized to 4-bit:

  • Original size: ~140GB
  • Quantized size: ~35-40GB
  • Can run on: High-end consumer GPU (RTX 6000, A100-class hardware) or a decent server
  • Inference speed: 10-15 tokens/second on consumer hardware

Llama 3.1 (8B parameters), quantized to 4-bit:

  • Original size: ~16GB
  • Quantized size: ~4-5GB
  • Can run on: Mid-range gaming GPU (RTX 4080, RTX 4090) or high-end MacBook (M3 Max with 64GB)
  • Inference speed: 50-100 tokens/second

Llama 2 (7B parameters), quantized to 3-bit:

  • Original size: ~13GB
  • Quantized size: ~2-3GB
  • Can run on: Budget gaming GPU (RTX 4060 Ti), older GPUs, decent laptops
  • Inference speed: 30-60 tokens/second (depending on hardware)

For context: A MacBook Air can run a 3-bit quantized 7B model effectively. A used gaming GPU from 2022 can run a 4-bit quantized 13B model. This is not theoretical — I tested these configurations last month.

The quality loss at these quantization levels is minimal for most tasks. Benchmarks from Hugging Face show that a 4-bit quantized Llama 3 model maintains 95%+ of the quality of the full-precision version on standard language understanding tasks. At 3-bit quantization, you’re looking at 88-92% of full quality, which is still extremely good for most applications.

Why This Matters (Beyond the Hype)
#

The implications of “you can run state-of-the-art models locally” ripple across the entire AI stack:

Privacy and compliance become easier. For healthcare, financial services, legal tech, and other regulated industries, running models locally means sensitive data never leaves the system. This simplifies HIPAA compliance, GDPR requirements, and internal security policies. Combined with frameworks for governance and AI regulation, organizations can now build AI-powered features without routing everything through third-party APIs.

Development costs drop dramatically. As I’ve written before about in-context learning, running local models during development eliminates per-token costs. For a team iterating on prompts and testing model behavior, running a quantized model locally instead of hitting OpenAI’s API can reduce development costs by 70-90%. That compounds across dozens of development projects.

Latency becomes predictable. When you’re calling an external API, you’re at the mercy of network latency, rate limiting, and the provider’s infrastructure. Local inference gives you latency you can control and optimize. For real-time applications — customer-facing AI, interactive agents, agentic systems that need sub-second response times — this is transformative. You control the hardware, you control the inference, you control the latency.

Edge deployment gets real. Until recently, running LLMs on edge devices meant accepting major quality tradeoffs or extreme optimization efforts. Quantized models change this equation. With mobile and edge devices getting more capable (think iPad with M4, or the latest Android tablets), you can now deploy sophisticated language models to edge devices. This opens up offline-first applications, reduced bandwidth requirements, and entirely new categories of AI-powered mobile and IoT applications.

Vendor independence. This is the one nobody talks about but everyone should care about. When you’re dependent on OpenAI’s API, Anthropic’s API, or any single provider’s infrastructure, you’re accepting their terms, their pricing changes, their rate limits, and their potential unavailability. Local quantized models mean you can build around models you control, reducing lock-in to any particular commercial provider. The open-source AI ecosystem becomes genuinely viable for production workloads.

The Tradeoffs You Still Need to Know About
#

I don’t want to oversell this. Quantization is a net win, but there are real tradeoffs:

Model quality is still reduced. You’re getting 90-95% of the original model’s capability at 4-bit quantization. That remaining 5-10% matters for some applications. Complex reasoning, code generation with obscure language features, and nuanced language understanding tasks will see quality loss. For classification, summarization, and many other tasks, the difference is imperceptible. You need to benchmark on your specific use cases.

Hardware requirements are non-trivial. Running a 4-bit quantized 13B model requires a GPU with ~8GB of VRAM, or equivalent system memory. Running a 4-bit quantized 70B model requires ~20-25GB of VRAM. If your deployment target is machines without dedicated GPUs, the CPU fallback is significantly slower. You need to match quantization precision to your target hardware.

Inference speed is still slower than cloud APIs. A quantized model running on your hardware might produce 50 tokens/second. OpenAI’s API might return 100-150 tokens/second from the cloud. For batch processing this doesn’t matter. For interactive applications where you’re waiting for the full response, it does.

The quantization landscape is still fragmented. While GGUF has emerged as a standard, there’s still fragmentation. Some models are distributed as GPTQ quantizations, some as AWQ, some as GGUF. If you’re building infrastructure around quantized models, you need to support multiple formats or standardize on one and deal with compatibility issues.

How This Changes Infrastructure
#

The infrastructure implications of local LLMs are significant. Teams that have been building around “call the LLM API” architectures need to rethink how they approach:

Model serving: You’re probably going to move away from pure cloud APIs and toward hybrid approaches — local models for development and non-critical features, cloud APIs for high-stakes use cases. This means building model serving infrastructure (vLLM, text-generation-webui, or similar) alongside your application infrastructure.

Hardware selection: Your infrastructure decisions now include GPU selection, system memory planning, and edge device targeting. This brings GPU infrastructure complexity into organizations that previously didn’t need it, but it also unlocks new capabilities and cost optimizations. Teams need to think about their model deployment targets as seriously as they think about their application servers.

Monitoring and quality: When you’re using a cloud API, model quality is someone else’s problem. When you’re running your own models, quality becomes your responsibility. You need monitoring that alerts on model degradation, retraining pipelines if you want to fine-tune locally, and versioning strategies for models the way you version code. This resembles the operational discipline required for MLOps, which is increasingly important as AI becomes central to applications.

The Convergence with Docker Model Runner
#

The timing here is interesting. Docker’s new Model Runner feature (released earlier this month) makes quantized models a first-class feature in Docker Desktop. You can docker compose up and get a 4-bit quantized model service running alongside your application. This removes Docker-level operational friction and makes local model serving accessible to developers who might otherwise not dive into vLLM or llama.cpp.

Combined with quantization breakthroughs, this means the path from “I want to use AI in my application” to “I have a working local model deployed” is now measured in minutes, not weeks. This will accelerate adoption of local models dramatically.

My Take
#

We’ve passed an inflection point. For the past 18 months, running LLMs locally has been technically feasible but not practical for most teams. The operational overhead, quality loss, and hardware complexity made cloud APIs the obvious choice. That’s no longer true.

If you’re building AI-powered applications, you should now be asking “where does this model run?” as a first-order architectural decision. Local? Cloud? Hybrid? The quantization breakthroughs mean local is now a viable answer for many workloads, and for some workloads (privacy-sensitive, cost-sensitive, latency-sensitive), it’s the better answer.

For development teams, this is the moment to start experimenting. Download a 4-bit quantized Llama 3 model (~5GB), set up llama.cpp or vLLM, and see what your application looks like when you’re running the model locally. The experience will likely surprise you — inference speeds are better than you’d expect, quality loss is less noticeable than you’d fear, and the developer experience improvement from eliminating API key management is tangible.

The era of “you need to call OpenAI’s API for any AI feature” is ending. This is not because cloud APIs are going away — they’re not, and they’re still the right choice for many applications. But it’s ending because you now have real alternatives with genuine advantages. That shift in optionality is what makes this a genuine breakthrough, not just an incremental improvement.

This is the time to start building locally. The infrastructure is mature enough, the models are good enough, and the economics are compelling enough that it should be a default consideration, not an afterthought.

AI Models & Releases - This article is part of a series.
Part : This Article

Related