Skip to content

Commit

Permalink
Higher preicison for grad computation
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 14, 2024
1 parent 4772696 commit 78adca8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/openwebtext/compute_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def main():
# We can invest some time in getting more accurate SVD results.
score_args.use_full_svd = True
score_args.precondition_dtype = torch.float32
score_args.per_sample_gradient_dtype = torch.float32
analyzer.compute_pairwise_scores(
scores_name=args.scores_name,
score_args=score_args,
Expand Down

0 comments on commit 78adca8

Please sign in to comment.