verl icon indicating copy to clipboard operation
verl copied to clipboard

[Bug] Out-of-Memory Errors During NPU resume kv cache

Open ZLiao097 opened this issue 6 months ago • 0 comments

System Info

Information

  • [ ] The official example scripts
  • [x] My own modified scripts

Tasks

  • [x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

When training the Qwen3.5 model, I observed obvious video memory leaks. The memory usage kept increasing step by step and eventually triggered OOM errors.

After troubleshooting, we confirmed that the virtual memory was disabled before weight updates on GPU devices and re-enabled right after the updates. The original code was not adapted for NPU hardware. The OOM issue was fully resolved after adding NPU-compatible adaptation logic.

Expected behavior

Related code changes are merged in this PR.

ZLiao097 avatar May 20 '26 07:05 ZLiao097