oweller2 commited on
Commit
84cec5b
1 Parent(s): d5412b2

remove breakpoint and prints

Browse files
Files changed (1) hide show
  1. modeling_flexbert.py +2 -3
modeling_flexbert.py CHANGED
@@ -1705,12 +1705,11 @@ class FlexBertForCausalLM(FlexBertPreTrainedModel):
1705
  # # reshape to batch size
1706
  # logits = logits.view(-1, self.vocab_size)
1707
  # # NOTE: error from here above
1708
- breakpoint()
1709
 
1710
  if self.pad_logits:
1711
- print(f"Padding logits: {logits.shape}")
1712
  new_logits = self.pad_inputs(logits, indices, batch_size, seq_len-1)[0]
1713
- print(f"New logits: {new_logits.shape}")
1714
  # print(new_logits.shape)
1715
  # if new_logits.dim() == 2:
1716
  # new_logits = new_logits.unsqueeze(0)
 
1705
  # # reshape to batch size
1706
  # logits = logits.view(-1, self.vocab_size)
1707
  # # NOTE: error from here above
 
1708
 
1709
  if self.pad_logits:
1710
+ # print(f"Padding logits: {logits.shape}")
1711
  new_logits = self.pad_inputs(logits, indices, batch_size, seq_len-1)[0]
1712
+ # print(f"New logits: {new_logits.shape}")
1713
  # print(new_logits.shape)
1714
  # if new_logits.dim() == 2:
1715
  # new_logits = new_logits.unsqueeze(0)