NVIDIA-NeMo / NVIDIA-NeMo/RL

`use_reference_model` is much slower than expected

Open
#144 8 comments 1 reaction 1 assignee Assigned to @wangshangsam View on GitHub
bug Performance t-pytdensor
Dominant language
Python
Stars
2k
Forks
561
Avg merge
4d 5h
Merged PRs (30d)
145

Description

While testing DPO, I am finding that the weight swap when getting the reference logprobs is a big bottleneck. On a single GPU with Llama 1B, it takes ~11s to get the reference logprobs with the weight swap but under 1s without the weight swap.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.