跳到主要内容
Vantaige

技术知识库

本地大模型与显存技术术语表

通俗、严谨、拒绝无用黑话,收录50余个关于本地AI运行、模型量化、注意力机制与显存规划的核心技术概念。

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

本地LLM与显存知识中心

深度技术指南、架构拆解与硬件选配手册,帮助开发者毫无压力地在本地部署、运行和扩展大语言模型。

交互式工具6 分钟阅读
搞懂为什么长上下文会导致显存溢出(OOM)、精确数学计算公式,以及如何将KV缓存占用降低50%至75%。
交互式上下文显存计算器
MHA vs GQA vs DeepSeek MLA架构对比
FP8与INT4量化缓存带来的显存节省
多轮对话上下文显存开销拆解
阅读指南
配置解码器7 分钟阅读
像算法工程师一样审视Hugging Face仓库:解析config.json、识别真实上下文极限,避开MoE参数陷阱。
交互式config.json参数解析器
GGUF量化命名规则彻底拆解
MoE总参数与激活参数显存规则
上下文窗口与RoPE扩展参数详解
阅读指南
许可证矩阵5 分钟阅读
厘清真正符合OSI标准的开源AI与Llama 3、DeepSeek、Qwen 2.5等开放权重模型之间的商业法律差异。
热门模型许可证对比矩阵
商用限制与用户量门槛分析
合成数据蒸馏限制条款解读
企业出海与商业合规检查清单
阅读指南
硬件指南8 分钟阅读
深入解析为什么显存带宽比算力更重要、苹果统一内存与英伟达对比,以及8B到70B模型实际需要的显存配置。
显存容量分级(8GB至128GB+)
显存带宽与生成速度公式
Apple Silicon Mac对比Nvidia PC
双卡搭建本地70B工作站配置方案
阅读指南