[KongchangAI]
ConceptOut of Memory / 显存溢出 / 显存不足

OOM

A phenomenon in large model inference where GPU VRAM is exhausted, causing the process to crash. Because GPU memory is physically isolated and cannot elastically expand, the primary trigger in high-concurrency or long-context scenarios is the depletion of KV cache capacity.

Timeline (last 90 days)

Oct 18

OOM (out of memory) is one of the most common runtime failures when deploying ML services; in containerized or PaaS free-tier environments, the memory available to a process is usually hard-capped (for example, 512MB or 1GB).

Unverified50%
Oct 16

On a machine with 2 GB of memory, what actually causes OOM is often not average memory usage, but the sudden spike in peak RSS during a particular rendering or decoding step.

Unverified50%
Oct 15

On a server with 1 vCPU / 2 GB of memory, knowing whether peak memory is approaching the OOM line is more useful than knowing average usage; ru_maxrss records the historical high-water mark and can catch short memory bursts.

Unverified50%
Oct 15

On a machine with 2GB of memory, running multiple parallel processes for image tasks reduces efficiency due to resource contention; calling gc.collect() after processing each asset helps free memory between assets.

Unverified50%
Oct 15

OOM (Out of Memory) is the most commonly encountered failure in local inference: when the VRAM jointly occupied by model weights, KV cache, and concurrent requests exceeds GPU capacity, the CUDA runtime directly terminates the process.

Unverified50%
Oct 15

If the gateway implementation relies on unbounded in-memory queues to buffer chunks from upstream, under high-concurrency scenarios of 5,000 to 10,000 active streams, memory usage will grow linearly with connection duration, directly causing OOM crashes.

Unverified50%
Oct 7

A severely overspecified model parameter count will cause an OOM (out-of-memory) error and prevent startup, while a slightly overspecified count will borrow regular memory and cause a significant drop in speed

Unverified50%
Oct 5

For devices with tight memory, blindly using a larger quantization model may result in frequent OOM errors.

Unverified50%
Oct 5

OOM, or Out of Memory, refers to a situation where the memory requested by a program exceeds the available system limit, causing the operating system to forcibly terminate the process.

Unverified50%
Oct 1

After loading a 70B-parameter model onto an 80GB A100, the space left for the KV cache is extremely limited, and when concurrency increases or context length grows, the KV cache can rapidly exhaust VRAM, triggering OOM and crashing the inference process.

Unverified50%

5 more timeline events

All Facts (15)

Unverified

OOM (out of memory) is one of the most common runtime failures when deploying ML services; in containerized or PaaS free-tier environments, the memory available to a process is usually hard-capped (for example, 512MB or 1GB).

50%
Unverified

On a machine with 2 GB of memory, what actually causes OOM is often not average memory usage, but the sudden spike in peak RSS during a particular rendering or decoding step.

50%
Unverified

On a server with 1 vCPU / 2 GB of memory, knowing whether peak memory is approaching the OOM line is more useful than knowing average usage; ru_maxrss records the historical high-water mark and can catch short memory bursts.

50%
Unverified

On a machine with 2GB of memory, running multiple parallel processes for image tasks reduces efficiency due to resource contention; calling gc.collect() after processing each asset helps free memory between assets.

50%
Unverified

OOM (Out of Memory) is the most commonly encountered failure in local inference: when the VRAM jointly occupied by model weights, KV cache, and concurrent requests exceeds GPU capacity, the CUDA runtime directly terminates the process.

50%
Unverified

A severely overspecified model parameter count will cause an OOM (out-of-memory) error and prevent startup, while a slightly overspecified count will borrow regular memory and cause a significant drop in speed

50%
Unverified

For devices with tight memory, blindly using a larger quantization model may result in frequent OOM errors.

50%
Unverified

OOM, or Out of Memory, refers to a situation where the memory requested by a program exceeds the available system limit, causing the operating system to forcibly terminate the process.

50%
Unverified

OOM (out-of-memory / GPU memory overflow) is a stability threat unique to large model inference services, because GPU VRAM is a physically isolated fixed resource that cannot be temporarily expanded using virtual memory or swap the way CPU memory can.

50%
Unverified

After loading a 70B-parameter model onto an 80GB A100, the space left for the KV cache is extremely limited, and when concurrency increases or context length grows, the KV cache can rapidly exhaust VRAM, triggering OOM and crashing the inference process.

50%
Unverified

VRAM fragmentation can cause large tensor allocation to fail with an OOM error even when the total remaining VRAM is sufficient, because no contiguous block of adequate size can be found.

50%
Unverified

One of the core bottlenecks for running large language models locally is memory capacity, as model parameters need to be loaded into RAM or VRAM.

50%
Unverified

When memory is pushed to the limit, Linux's OOM mechanism may kill the service process due to excessive RAM usage; this can be avoided by setting oom_score_adj to -1000 to prevent the system from mistakenly killing it.

50%
Unverified

Long-context reasoning accumulates large attention matrices in GPU VRAM, and when the context window approaches the model's maximum length limit, VRAM consumption rises sharply, leading to out-of-memory (OOM) errors.

50%
Unverified

If the gateway implementation relies on unbounded in-memory queues to buffer chunks from upstream, under high-concurrency scenarios of 5,000 to 10,000 active streams, memory usage will grow linearly with connection duration, directly causing OOM crashes.

50%

Source Articles