ltg
/

davda54 commited on
Commit
67055b8
1 Parent(s): cd99491

Update modeling_deberta.py

Browse files
Files changed (1) hide show
  1. modeling_deberta.py +1 -1
modeling_deberta.py CHANGED
@@ -1190,7 +1190,7 @@ class DebertaV2ForCausalLM(DebertaV2ForMaskedLM):
1190
  batch_size, seq_length = input_ids.shape
1191
  input_ids = torch.cat(
1192
  [
1193
- torch.full((batch_size, 1), self.cls_token_id, device=input_ids.device)
1194
  input_ids,
1195
  torch.full((batch_size, self.n_masks), self.mask_token_id, device=input_ids.device),
1196
  torch.full((batch_size, 1), self.sep_token_id, device=input_ids.device)
 
1190
  batch_size, seq_length = input_ids.shape
1191
  input_ids = torch.cat(
1192
  [
1193
+ torch.full((batch_size, 1), self.cls_token_id, device=input_ids.device),
1194
  input_ids,
1195
  torch.full((batch_size, self.n_masks), self.mask_token_id, device=input_ids.device),
1196
  torch.full((batch_size, 1), self.sep_token_id, device=input_ids.device)