Skip to main content
Vantaige

Technical Knowledge Base

The Local LLM & VRAM Glossary

50+ definitions, technical formulas, and practical takeaways demystifying model quantization, memory architectures, attention mechanisms, hardware offloading, and open-source licensing.

Showing 34 of 34 terms
ATerms starting with A

Active Parameters vs. Total Parameters

Memory & Attention

Total parameters represent all weights stored on disk and loaded into memory; active parameters represent the subset actually executed during compute for a single token.

AWQ (Activation-Aware Weight Quantization)

Quantization & Formats

A 4-bit GPU quantization technique that preserves the top 1% of salient weights based on activation magnitudes, ensuring near-FP16 accuracy with high inference speed.

BTerms starting with B

Bits Per Weight (bpw)

Quantization & Formats

The effective average number of storage bits allocated to each parameter in a model after quantization and scaling factors are accounted for.

CTerms starting with C

Community License (Llama / Gemma)

Licensing & Openness

A custom open-weights license designed by large tech corporations that grants free access for research and small-to-medium businesses, but restricts mega-scale commercial use.

Context Window / Sequence Length

Memory & Attention

The maximum total number of tokens (prompt input plus generated output) that a model can comprehend and attend to in a single conversation session.

CUDA Out of Memory (CUDA OOM)

Hardware & Offloading

A fatal runtime exception thrown by NVIDIA CUDA when an allocation request for weights, KV cache, or activations exceeds available physical VRAM.

ETerms starting with E

EXL2 (ExLlamaV2 Quantization)

Quantization & Formats

An advanced mixed-precision quantization format designed specifically for NVIDIA GPUs by turboderp, offering continuous bitrates and industry-leading generation speed.

FTerms starting with F

FlashAttention (FlashAttention-2 / 3)

Inference Engines

An exact attention algorithm that reorganizes memory accesses to keep operations inside fast GPU SRAM (cache) rather than repeatedly reading from slower HBM/VRAM.

GTerms starting with G

Gated Model / Gated Repo

Licensing & Openness

A model repository on platforms like Hugging Face that requires users to accept legal terms or request explicit author permission before downloading weights.

GGUF (GPT-Generated Unified Format)

Quantization & Formats

A standardized, extensible single-file binary format developed by Georgi Gerganov and the llama.cpp community designed for fast local CPU/GPU inference and layer offloading.

GQA (Grouped-Query Attention)

Memory & Attention

An attention architecture where multiple query heads share a single key-value head, reducing KV cache VRAM by 4x to 8x while preserving reasoning capability.

KTerms starting with K

K-Quants (Q4_K_M, Q5_K_M, Q8_0)

Quantization & Formats

Advanced quantization schemes in llama.cpp that group weights into super-blocks and allocate higher precision to critical attention and feed-forward layers.

KV Cache (Key-Value Cache)

Memory & Attention

A dedicated block of GPU memory that stores previously computed attention key and value tensors for every token in a conversation, preventing redundant recomputations.

LTerms starting with L

Layer Offloading (n-gpu-layers)

Hardware & Offloading

Splitting a model across hardware by loading as many transformer layers as fit into GPU VRAM while leaving the remaining layers in system CPU RAM.

llama.cpp

Inference Engines

The foundational, highly optimized C/C++ inference engine created by Georgi Gerganov that powers the vast majority of local LLM tools across CPU, CUDA, Metal, and ROCm.

MTerms starting with M

Memory Bandwidth (GB/s)

Hardware & Offloading

The rate at which a processor can read data from and write data to its memory, measured in gigabytes per second; this directly dictates LLM generation speed.

MHA (Multi-Head Attention)

Memory & Attention

The classic attention architecture where every single query head possesses its own dedicated key and value head, creating the largest and most VRAM-hungry KV cache.

Mixture of Experts (MoE)

Memory & Attention

A neural network architecture where multiple specialized sub-networks ('experts') exist, but only a small subset is activated for each individual token.

MLA (Multi-Head Latent Attention)

Memory & Attention

DeepSeek's pioneering attention mechanism that compresses key-value vectors into a low-rank latent vector before caching, slashing KV cache memory by over 90%.

MLX (Apple Silicon Framework)

Inference Engines

Apple's native machine learning framework designed specifically for Apple Silicon M-series unified architecture, delivering maximum speed and efficiency on macOS.

OTerms starting with O

Ollama

Inference Engines

A user-friendly, CLI-driven application and daemon that packages llama.cpp into a Docker-like model management system with a clean REST API.

Open Source AI (OSI Standard)

Licensing & Openness

An AI system meeting the Open Source Initiative (OSI) OSAID 1.0 standard, requiring open model weights, full training code, and comprehensive training data information.

Open Weights

Licensing & Openness

A release model where a creator publishes the neural network weights for download and self-hosting, but keeps the underlying dataset, preprocessing scripts, or training pipeline private.

PTerms starting with P

PagedAttention

Inference Engines

An attention algorithm that stores KV cache tensors in non-contiguous physical memory blocks (pages), eliminating memory fragmentation and enabling near-zero memory waste.

Permissive AI License (Apache 2.0 / MIT)

Licensing & Openness

Software and weight licenses (like Apache 2.0 or MIT) that grant full commercial rights, modifications, and redistribution with minimal restrictions.

Perplexity (PPL)

Quantization & Formats

A mathematical metric that measures how well a language model predicts a sample test dataset; lower perplexity indicates higher accuracy and better reasoning.

QTerms starting with Q

Quantization

Quantization & Formats

The process of reducing the numerical precision of a model's weights and activations (e.g., from 16-bit float down to 8-bit, 4-bit, or 2-bit) to drastically reduce memory usage and speed up computation.

STerms starting with S

Safetensors

Quantization & Formats

A fast, secure, memory-mappable file format created by Hugging Face for storing deep learning tensors without the arbitrary code execution risks of Python pickles.

Sliding Window Attention (SWA)

Memory & Attention

An attention strategy where tokens only attend to a fixed window of preceding tokens (e.g., the last 4,096 tokens), placing a hard ceiling on KV cache memory growth.

Synthetic Data & Distillation Restrictions

Licensing & Openness

Clauses in AI terms of service that prohibit using the model's outputs to train, fine-tune, or evaluate other competing artificial intelligence models.

TTerms starting with T

Tensor Parallelism (TP) vs. Pipeline Parallelism (PP)

Hardware & Offloading

Methods for distributing a large model across multiple GPUs; Tensor Parallelism splits individual weight matrices, while Pipeline Parallelism places different layers on different cards.

UTerms starting with U

Unified Memory (Apple Silicon)

Hardware & Offloading

A shared memory architecture used in Apple M-series chips where CPU, GPU, and Neural Engine access the same high-bandwidth pool of physical memory without bus copies.

VTerms starting with V

vLLM

Inference Engines

A high-throughput, enterprise-grade LLM serving engine developed at UC Berkeley, renowned for PagedAttention, continuous batching, and chunked prefill.

VRAM (Video Random-Access Memory)

Hardware & Offloading

Dedicated ultra-high-bandwidth memory physically located on a discrete graphics card (GPU) used for storing model weights, KV cache, and intermediate activations.

Knowledge & Deep Dives

VRAM & Local AI Knowledge Hub

Everything you need to know about sizing hardware, understanding model architecture, and running local LLMs without out-of-memory crashes.

Interactive Widget6 min read
Why context length explodes memory usage, the exact KV cache formula, MHA vs. GQA vs. MLA (DeepSeek), and how to calculate cache in seconds.
Interactive KV sizing widget
MHA vs GQA vs MLA math
Quantized cache (FP8 / Q4)
Explore guide
Config Decoder7 min read
Inspect Hugging Face repositories like an ML engineer: decode config.json, identify true context windows, and avoid the MoE parameter trap.
Interactive config.json inspector
MoE active vs total trap
GGUF naming decoded
Explore guide
License Matrix5 min read
The legal and practical differences between true OSI Open Source AI and open-weight models like Llama 3, DeepSeek, Qwen 2.5, and Gemma 2.
Full license comparison matrix
Commercial usage caps
Synthetic distillation rules
Explore guide
Hardware Tiers9 min read
What hardware to actually buy: VRAM capacity tiers (8GB to 96GB), memory bandwidth vs. TFLOPS, Apple Silicon vs. Nvidia, and dual-GPU builds.
8GB to 96GB breakdown
Why bandwidth dictates tok/s
RAM offload PCIe bottlenecks
Explore guide