Skip to content

Commit

Permalink
Update distil_logits.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystalcareai authored Sep 17, 2024
1 parent 12a3bc9 commit 09fbb0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distil_logits.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def distillation_loss(self, student_logits, teacher_logits, inputs, original_los
tokenizer=student_tokenizer,
args=training_arguments,
max_seq_length=config["tokenizer"]["max_length"],
dataset_text_field="text",
)

# Add the teacher model to the trainer
Expand Down

0 comments on commit 09fbb0c

Please sign in to comment.