Unverified Commit 61073099 authored by Manav Rathod's avatar Manav Rathod Committed by GitHub
Browse files

fixed default labels for QA model (#8399)

parent 0b02489b
......@@ -328,7 +328,7 @@ class Trainer:
self.hp_search_backend = None
self.use_tune_checkpoints = False
default_label_names = (
["start_positions, end_positions"]
["start_positions", "end_positions"]
if type(self.model) in MODEL_FOR_QUESTION_ANSWERING_MAPPING.values()
else ["labels"]
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment