Skip to content

Commit

Permalink
Update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 11, 2024
1 parent 37b37d1 commit 041a6e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/openwebtext/compute_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ def main():
analyzer.set_dataloader_kwargs(dataloader_kwargs)

scores_name = args.factor_strategy
rank = args.query_gradient_rank if args.query_gradient_rank != -1 else None
score_args = extreme_reduce_memory_score_arguments(
damping_factor=None, module_partitions=1, query_gradient_low_rank=args.query_gradient_rank, dtype=torch.bfloat16
damping_factor=None, module_partitions=1, query_gradient_low_rank=rank, dtype=torch.bfloat16
)
score_args.module_partitions = 2
score_args.num_query_gradient_accumulations = 10
Expand Down

0 comments on commit 041a6e3

Please sign in to comment.