Repository navigation
Port changes from finetune to DPO - #28
Conversation
|
Didn't we merge |
|
The first error is something subtle with the There's not actually any need for the |
|
EDIT: the below is wrong, I misread the code. This |
|
Added a test in #29 , though I'm not sure it tests the right things. Please let me know @Swanand-Kadhe |
|
@garrett361 I made some fixes and i tested it and it should be working now.
|
|
Sounds good, do you mind adding an actual test @fabianlim ? Can build off of #29? |
| batch: Dict[str, Union[List, torch.LongTensor]], | ||
| average_log_prob: bool = False, | ||
| output_router_logits: bool = False, | ||
| padding_free: bool = False, |
There was a problem hiding this comment.
just noting that we'll want this to be padding_free --> packing when the pr is made against main
There was a problem hiding this comment.
this is actually an internal flag. the one in FlatArguments has already been changed.. but ok I changed
There was a problem hiding this comment.
yeah, just wanted to make it less confusing for future developers anyway.
Signed-off-by: Yu Chin Fabian Lim <flim@sg.ibm.com>
Signed-off-by: Yu Chin Fabian Lim <flim@sg.ibm.com>
6c862fd to
6ca51a8
Compare
|
@garrett361 @Swanand-Kadhe it matches my previous results, I updated the main comment |
|
Thank you very much, @fabianlim and @garrett361! |
|
@Swanand-Kadhe we already changed this PR to merge with main and it was already rebased |
|
Ah, right, sorry for missing it @fabianlim. It would be good to merge it with |
fabianlim
left a comment
There was a problem hiding this comment.
We have updated this PR and fixed the issues. merging
This PR ports changes from finetune to enable DPO
padding-freebranchReproduces previous results before moving to main
dpodpo_norm, looks like it doesnt perform as well as the latter (perhaps it requires new settings forbeta)