Back to directory

Running Local LLMs

A guide to running large language models on local hardware using frameworks such as llama.cpp, Ollama, Hugging Face Transformers, vLLM and LM Studio, with setup steps and performance notes.

Running Local LLMs

This guide walks through running large language models on a local machine for privacy, offline access and cost efficiency, listing hardware and software requirements such as a multi-core CPU, at least 16GB of RAM, an optional 8GB-or-larger GPU, and Python and CUDA versions needed for GPU acceleration.

Each covered framework gets its own installation and usage section: llama.cpp for CPU- and GPU-optimized inference with quantization, Ollama for a simple local API and one-line model pulls, Hugging Face Transformers including quantized loading with BitsAndBytes and TorchAO, vLLM, and LM Studio, along with a performance comparison across them.

More in Tutorials

See all 478
  • BootLife

    github.com

    Conway's Game of Life implemented to run directly from a 512-byte x86 boot sector in assembly, using VGA memory itself as the simulation grid.

  • A technical blog post deriving the Y combinator as a composition of combinator birds in an array language, and examining how eager evaluation changes fixed-point recursion compared with the usual lazy telling.

  • System Design Atlas

    atlas-sysdes.vercel.app

    A free reference of worked system design problems with interactive architecture diagrams, covering ranked designs such as a feed, a chat app, a URL shortener, and a rate limiter, plus pages on the technologies behind them.