Skip to content

Instantly share code, notes, and snippets.

@C-EB
Created February 6, 2025 16:06
Show Gist options
  • Save C-EB/7d0a7b1f0db43db68dc97352c13e43f9 to your computer and use it in GitHub Desktop.
Save C-EB/7d0a7b1f0db43db68dc97352c13e43f9 to your computer and use it in GitHub Desktop.
Data collator
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