Skip to content

Commit

Permalink
🎨 Format Python code with psf/black
Browse files Browse the repository at this point in the history
  • Loading branch information
Willmish committed Sep 18, 2024
1 parent 7b26dbc commit 03d9a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llm_unlearn_ucl/unlearn_harm.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def main(args) -> None:
attention_mask=batch["attention_mask"].to(device),
labels=batch["labels"].to(device),
)
prob_p = torch.nn.functional.softmax(pretrained_outputs.logits, -1).cpu()
prob_p = torch.nn.functional.softmax(
pretrained_outputs.logits, -1
).cpu()
pretrained_model_precomputed_normal_outputs_aggregated[-1].append(
prob_p
)
Expand Down

0 comments on commit 03d9a18

Please sign in to comment.