`use_reference_model` is much slower than expected
Open
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
Assessment
This issue has not been assessed yet.