anarlavrenov commited on
Commit
830c0ea
·
verified ·
1 Parent(s): 3f5bb73

Handle token_type_ids in LIMEForCausalLM

Browse files
Files changed (1) hide show
  1. modeling_lime.py +1 -0
modeling_lime.py CHANGED
@@ -72,6 +72,7 @@ class LIMEForCausalLM(PreTrainedModel, GenerationMixin):
72
  self,
73
  input_ids: torch.LongTensor,
74
  attention_mask: Optional[torch.Tensor] = None,
 
75
  labels: Optional[torch.LongTensor] = None,
76
  return_dict: Optional[bool] = None,
77
  **kwargs
 
72
  self,
73
  input_ids: torch.LongTensor,
74
  attention_mask: Optional[torch.Tensor] = None,
75
+ token_type_ids: Optional[torch.LongTensor] = None,
76
  labels: Optional[torch.LongTensor] = None,
77
  return_dict: Optional[bool] = None,
78
  **kwargs