blocked addition boost
Browse files- 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(
|