Skip to content

Commit

Permalink
Update reference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgroot42 authored Feb 7, 2024
1 parent 9f61a49 commit 4a56bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimir/attacks/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def _attack(self, document, probs, tokens=None, **kwargs):
if loss is None:
loss = self.model.get_ll(document, probs=probs, tokens=tokens)
ref_loss = self.ref_model.get_ll(document, probs=probs, tokens=tokens)
return ref_loss - loss
return loss - ref_loss

0 comments on commit 4a56bf8

Please sign in to comment.