You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a print("start forward") statement to the start of my model's forward method and an print("end forward") statement to the end of my model's forward method.
I noticed that when I turn on grad_accum="auto" (along with a batch_size > 1), that instead of the stdout output looking like:
start forward
end forward
start forward
end forward
I'll get something like
start forward
start forward
(my model crashes after this, because I have some stateful code for skip-connection-related things in the forward method that relies on the assumption that the model is not being called in parallel).
The text was updated successfully, but these errors were encountered:
I added a
print("start forward")
statement to the start of my model'sforward
method and anprint("end forward")
statement to the end of my model's forward method.I noticed that when I turn on
grad_accum="auto"
(along with abatch_size
> 1), that instead of the stdout output looking like:I'll get something like
(my model crashes after this, because I have some stateful code for skip-connection-related things in the forward method that relies on the assumption that the model is not being called in parallel).
The text was updated successfully, but these errors were encountered: