تخطَّ إلى المحتوى الرئيسي
Vantaige

قاعدة المعرفة التقنية

مسرد VRAM ونماذج الذكاء الاصطناعي التقني

شروحات مبسطة وعملية لأكثر من 50 مصطلحًا جوهريًا في تشغيل النماذج محليًا، وتقنيات التكميم، ومعماريات الانتباه، وحسابات ذاكرة GPU دون أي تعقيد غير مبرر.

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 والنماذج اللغوية المحلية

أدلة تقنية شاملة، وتحليلات معمارية، وإرشادات لاختيار العتاد لمساعدتك على تشغيل نماذج الذكاء الاصطناعي محليًا بدقة وثقة مطلقة.

أداة تفاعلية6 دقائق للقراءة
افهم لماذا يتسبب طول السياق في استنزاف الذاكرة وأخطاء CUDA OOM، واكتشف المعادلة الرياضية وكيفية تقليل الاستهلاك بنسبة 50% إلى 75%.
حاسبة تفاعلية لذاكرة السياق
مقارنة معماريات MHA وGQA وDeepSeek MLA
توفير الذاكرة عبر تكميم FP8 وINT4 لذاكرة KV
استهلاك الذاكرة في المحادثات متعددة الجولات
قراءة الدليل
مفكك التكوين7 دقائق للقراءة
افحص مستودعات النماذج كمهندس تعلم آلي: فك شفرة config.json، وحدد حدود السياق الحقيقية، وتجنب فخ معمارية MoE.
أداة تفاعلية لفحص معاملات config.json
شرح قواعد تسميات تكميم GGUF
قواعد الذاكرة لمعاملات MoE النشطة مقابل الإجمالية
نافذة السياق ومعاملات توسيع RoPE
قراءة الدليل
مصفوفة التراخيص5 دقائق للقراءة
الفروق القانونية والعملية بين المصدر المفتوح الحقيقي المعتمد من OSI ونماذج الأوزان المفتوحة مثل Llama 3 وDeepSeek وQwen وGemma.
مصفوفة مقارنة تراخيص النماذج التفاعلية
حدود الاستخدام التجاري وسقوف عدد المستخدمين
قيود تقطير البيانات الاصطناعية لتدريب النماذج
قائمة التحقق للامتثال المؤسسي للشركات
قراءة الدليل
دليل العتاد8 دقائق للقراءة
تعرف على سبب تفوق النطاق الترددي على قوة المعالجة، والمقارنة بين أجهزة Mac وNvidia، وسعة VRAM المطلوبة للنماذج من 8B إلى 70B.
مستويات سعة VRAM (من 8GB إلى 128GB+)
معادلة النطاق الترددي للذاكرة مقابل المعالجة
مقارنة أجهزة Apple Silicon Mac مقابل حواسيب Nvidia
مخططات بناء محطة عمل ببطاقتي GPU لنماذج 70B
قراءة الدليل