verl-project/verl

[FR] Documentation about Resolving OOM

Closed

#1,014 opened on Apr 10, 2025

 (6 comments) (7 reactions) (0 assignees)Python (4,413 forks)auto 404
call for contributiondocumentationgood first issue

Repository metrics

Stars
 (22,985 stars)
PR merge metrics
 (Avg merge 3d 6h) (125 merged PRs in 30d)

Description

Motivation

There are many issues related to OOM, e.g. #328 . We might need a clear guide about how to resolve OOM.

Plan

A non-exclusive enumeration about related configurations:

  1. Rollout:gpu_memory_utilization
  2. Other Inference:
    1. Liger Kernel
    2. *_max_len_per_gpu / micro_batch_size_per_gpu
  3. Training:
    1. Liger Kernel
    2. Ulysses Sequence Parallelism
    3. gradient checkpointing
    4. offload

TODO

  • Complete the list of related configurations
  • Benchmark the effect & overhead of each configuration

Contributor guide