Skip to content

Instantly share code, notes, and snippets.

@kd2718
Created May 15, 2020 22:46
Show Gist options
  • Save kd2718/196785d9336df26ecd9a25b173254161 to your computer and use it in GitHub Desktop.
Save kd2718/196785d9336df26ecd9a25b173254161 to your computer and use it in GitHub Desktop.
model_args = {
"num_train_epochs": 2,
'reprocess_input_data': True,
'overwrite_output_dir': True,
"fp16": False,
}
# Create a ClassificationModel
model = ClassificationModel(
"roberta", "roberta-base", args=model_args
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment