- add loss_mask parameter to get_logprobs to decouple attention from loss masking - DPO/GRPO strategies compose key-padding + causal mask before model forward - prevents prompt tokens from being masked out of attention and missing causal masking
- add loss_mask parameter to get_logprobs to decouple attention from loss masking - DPO/GRPO strategies compose key-padding + causal mask before model forward - prevents prompt tokens from being masked out of attention and missing causal masking