Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tape/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(self,
self.max_grad_norm = max_grad_norm
self._global_step = 0
self._local_rank = local_rank
self._overflow_buf = torch.cuda.IntTensor([0]) # type: ignore
self._overflow_buf = torch.IntTensor([0]) # type: ignore
self.gradient_accumulation_steps = gradient_accumulation_steps
self._delay_accumulation = fp16 and local_rank != -1

Expand Down