Created
February 6, 2025 16:06
-
-
Save C-EB/7d0a7b1f0db43db68dc97352c13e43f9 to your computer and use it in GitHub Desktop.
Data collator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_collator = DataCollatorForSeq2Seq( | |
tokenizer, | |
model=model, | |
return_tensors="pt" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment