Created
May 1, 2022 06:39
-
-
Save charlieoneill11/b43f8489a37fb3120c9ac1c3bb18f50d to your computer and use it in GitHub Desktop.
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
from transformers import Trainer | |
trainer = Trainer(model=model, args=training_args, | |
compute_metrics=compute_metrics, | |
train_dataset=offensive_encoded["train"], | |
eval_dataset=offensive_encoded["validation"], | |
tokenizer=tokenizer) | |
trainer.train(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment