You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trl/trainer/dpo_trainer.py line 542
The tokenizer for super().init () should be set to self.tokenizer instead of tokenizer, otherwise the previous is_vision_model will be invalid.
The text was updated successfully, but these errors were encountered:
In line 341-343, if self.is_vision_model == True, then self.processor = tokenizer(i.e., processor) and self.tokenizer = tokenizer.tokenizer.
However, In line 536-548, super().init(...) will set self.tokenizer = tokenizer(i.e., processor).
In this case, both self.tokenizer & self.processor are tokenizer(i.e., processor).
trl/trainer/dpo_trainer.py line 542
The tokenizer for super().init () should be set to self.tokenizer instead of tokenizer, otherwise the previous is_vision_model will be invalid.
The text was updated successfully, but these errors were encountered: