forked from linkedin/Liger-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ref_input parameter to support separate inputs for reference model (
linkedin#467) This PR fixes linkedin#447 by adding support for separate inputs for the reference model. ### Changes - Add `ref_input` parameter to `forward()` and `_compute_loss()` methods - Use `ref_input` for reference model calculations if provided, otherwise fallback to using the main input - Update docstrings to document the new parameter ### Testing The changes are backward compatible - if `ref_input` is not provided, it will use the main input for reference model calculations, maintaining the current behavior. Fixes linkedin#447 --------- Co-authored-by: openhands <[email protected]>
- Loading branch information
1 parent
966eb73
commit eee40c5
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters