verl
verl copied to clipboard
[Bug] Out-of-Memory Errors During NPU resume kv cache
System Info
Information
- [ ] The official example scripts
- [x] My own modified scripts
Tasks
- [x] An officially supported task in the
examplesfolder (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.