# RAM

- **Canonical URL:** https://getaimath.com/dictionary/ram/
- **Topics:** [Hardware & AI Computing](https://getaimath.com/dictionary/category/hardware-and-ai-computing/)
- **Last updated:** 2026-11-25

## What is RAM?

**In one sentence:** RAM is a computer's main working memory, where programs and data are kept while in use.

For AI, RAM holds models running on the CPU or overflow from the GPU. It is usually slower than VRAM but much larger and cheaper.

![AI Hardware (GPUs & VRAM): The Fast Chef & The Kitchen Door — Simple cartoon showing a Super-Fast Chef (GPU) who needs ingredients from a nearby Countertop Fridge (VRAM) via a wide double-door (Memory Bandwidth), instead of walking down a slow hallway to the Basement Pantry (System RAM).](https://getaimath.com/diagrams/hardware-and-ai-computing.png)
*Napkin Diagram (Hardware & AI Computing): A fast GPU chip is like a fast chef—if the memory doorway is too narrow, the chef just stands around waiting for ingredients.*

## What is an example of RAM?

A laptop with 32 GB of RAM can run a 4-bit 13B model on its CPU.

## Why does RAM matter?

More RAM lets you run bigger models, even without a strong GPU.

## RAM vs. VRAM

VRAM sits directly on the graphics card with ultra-wide bandwidth to feed GPU cores fast, whereas regular system RAM holds more gigabytes cheaply for the CPU at much lower bandwidth.

| Dimension | RAM | [VRAM](https://getaimath.com/dictionary/vram/) |
| --- | --- | --- |
| Typical bandwidth | 50 GB/s to 100 GB/s on standard DDR5 PCs | 500 GB/s to 3,000+ GB/s (GDDR6X / HBM3e) |
| Capacity vs. cost | Cheap and easy to upgrade (32–512+ GB) | Expensive and capped per card (8–80+ GB) |
| On Apple Silicon | The same unified memory pool, shared by CPU, GPU and NPU | No separate VRAM—the GPU uses the shared unified memory |

## Related Concepts

- [VRAM](https://getaimath.com/dictionary/vram/): VRAM is the fast memory built onto a graphics card, where AI model weights and the KV cache are stored while running.
- [Unified Memory](https://getaimath.com/dictionary/unified-memory/): Unified memory is a design where the CPU and GPU share one big pool of memory instead of having separate memory.
- [FLOPS vs TOPS](https://getaimath.com/dictionary/flops-vs-tops/): FLOPS counts floating-point (decimal-style) calculations, while TOPS counts operations that are often simpler integer math.
- [Shared Memory](https://getaimath.com/dictionary/shared-memory/): Shared memory can mean memory that several processors use together, or a small, very fast memory area inside a GPU that a group of cores shares.
- [TOPS](https://getaimath.com/dictionary/tops/): TOPS means trillions of operations per second, usually for integer math like INT8, and is often used for NPUs.
- [Memory Bandwidth](https://getaimath.com/dictionary/memory-bandwidth/): Memory bandwidth is how fast data can move between a chip's memory and its processors, usually measured in gigabytes per second.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/ram/)
