Skip to content

Commit

Permalink
Revert "[s2s/distill] hparams.tokenizer_name = hparams.teacher (huggi…
Browse files Browse the repository at this point in the history
…ngface#8382)"

This reverts commit 3c67702.
  • Loading branch information
fabiocapsouza authored Nov 15, 2020
1 parent 0efe3b1 commit db3aef9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/seq2seq/distillation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def __init__(self, hparams):
)
if hparams.length_penalty != -1:
student.config.length_penalty = hparams.length_penalty
hparams.tokenizer_name = hparams.teacher # Use teacher's tokenizer
super().__init__(hparams, model=student, config=student.config)
model_type = student.config.model_type
self.e_layer_ids, self.d_layer_ids = e_layer_ids, d_layer_ids # type: List[int], List[int]
Expand Down

0 comments on commit db3aef9

Please sign in to comment.