You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError Traceback (most recent call last)
in
----> 1 trainer.train()
~/anaconda3/lib/python3.7/site-packages/transformers/trainer.py in train(self, resume_from_checkpoint, trial, **kwargs)
1051 raise ValueError(f"Can't find a valid checkpoint at {resume_from_checkpoint}")
1052
-> 1053 logger.info(f"Loading model from {resume_from_checkpoint}).")
1054
1055 if os.path.isfile(os.path.join(resume_from_checkpoint, CONFIG_NAME)):
in training_step(self, model, inputs)
45 loss = self.compute_loss(model, inputs)
46 else:
---> 47 loss = self.compute_loss(model, inputs)
48
49 if self.args.gradient_accumulation_steps > 1:
~/anaconda3/lib/python3.7/site-packages/transformers/trainer.py in compute_loss(self, model, inputs, return_outputs)
1473 # Save model checkpoint
1474 checkpoint_folder = f"{PREFIX_CHECKPOINT_DIR}-{self.state.global_step}"
-> 1475
1476 if self.hp_search_backend is not None and trial is not None:
1477 if self.hp_search_backend == HPSearchBackend.OPTUNA:
~/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
725 result = self._slow_forward(*input, **kwargs)
726 else:
--> 727 result = self.forward(*input, **kwargs)
728 for hook in itertools.chain(
729 _global_forward_hooks.values(),
in forward(self, input_values, attention_mask, output_attentions, output_hidden_states, return_dict, labels)
83 loss = None
84 if labels is not None:
---> 85 if self.config.problem_type is None:
86 if self.num_labels == 1:
87 self.config.problem_type = "regression"
AttributeError: 'Wav2Vec2Config' object has no attribute 'problem_type'
The text was updated successfully, but these errors were encountered:
Hi,can you help me with this problem.
thank u!
AttributeError Traceback (most recent call last)
in
----> 1 trainer.train()
~/anaconda3/lib/python3.7/site-packages/transformers/trainer.py in train(self, resume_from_checkpoint, trial, **kwargs)
1051 raise ValueError(f"Can't find a valid checkpoint at {resume_from_checkpoint}")
1052
-> 1053 logger.info(f"Loading model from {resume_from_checkpoint}).")
1054
1055 if os.path.isfile(os.path.join(resume_from_checkpoint, CONFIG_NAME)):
in training_step(self, model, inputs)
45 loss = self.compute_loss(model, inputs)
46 else:
---> 47 loss = self.compute_loss(model, inputs)
48
49 if self.args.gradient_accumulation_steps > 1:
~/anaconda3/lib/python3.7/site-packages/transformers/trainer.py in compute_loss(self, model, inputs, return_outputs)
1473 # Save model checkpoint
1474 checkpoint_folder = f"{PREFIX_CHECKPOINT_DIR}-{self.state.global_step}"
-> 1475
1476 if self.hp_search_backend is not None and trial is not None:
1477 if self.hp_search_backend == HPSearchBackend.OPTUNA:
~/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
725 result = self._slow_forward(*input, **kwargs)
726 else:
--> 727 result = self.forward(*input, **kwargs)
728 for hook in itertools.chain(
729 _global_forward_hooks.values(),
in forward(self, input_values, attention_mask, output_attentions, output_hidden_states, return_dict, labels)
83 loss = None
84 if labels is not None:
---> 85 if self.config.problem_type is None:
86 if self.num_labels == 1:
87 self.config.problem_type = "regression"
AttributeError: 'Wav2Vec2Config' object has no attribute 'problem_type'
The text was updated successfully, but these errors were encountered: