MathBite commited on
Commit
e27ed2b
·
verified ·
1 Parent(s): b92f27a

blocked addition boost

Browse files
Files changed (1) hide show
  1. modeling.py +1 -1
modeling.py CHANGED
@@ -116,7 +116,7 @@ class SelfCorrectiveLlama(LlamaForCausalLM):
116
  torch.full_like(deletion_tokens_boost, torch.finfo(deletion_tokens_boost.dtype).min) # Suppress if no hallucination
117
  )
118
 
119
- logits[:, :, -self.num_new_tokens:].add_(to_add)
120
 
121
  # 6. Return the custom output object
122
  return SelfCorrectiveLlamaOutput(
 
116
  torch.full_like(deletion_tokens_boost, torch.finfo(deletion_tokens_boost.dtype).min) # Suppress if no hallucination
117
  )
118
 
119
+ # logits[:, :, -self.num_new_tokens:].add_(to_add)
120
 
121
  # 6. Return the custom output object
122
  return SelfCorrectiveLlamaOutput(