Skip to content

Commit

Permalink
fix None error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Feb 28, 2024
1 parent d31be12 commit 477c7e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions angle_emb/train_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def main():
'fixed_teacher_name_or_path': args.fixed_teacher_name_or_path
}
if args.apply_tdmse:
trainer_kwargs = trainer_kwargs or {}
trainer_kwargs = dict(trainer_kwargs, **{
'apply_tdmse_kl': args.apply_tdmse_kl,
'tdmse_kl_temperature': args.tdmse_kl_temperature,
Expand Down

0 comments on commit 477c7e0

Please sign in to comment.