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
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Each microbatch runs the traced Jaxpr once. However, some parts of the Jaxpr is not related to microbatch. This results in redundant computations and wrong behavior. For example:
Here the random_num is not related to batch args(x), but each microbatch generates its own random_num. If there are two microbatches x = [x1, x2], the expected result is [x1@rn, x2@rn], but we actually get [x1@rn1, x2@rn2]. We should separate the rng and reuse the result in all microbatches
The text was updated successfully, but these errors were encountered:
Each microbatch runs the traced Jaxpr once. However, some parts of the Jaxpr is not related to microbatch. This results in redundant computations and wrong behavior. For example:
Here the
random_num
is not related to batch args(x
), but each microbatch generates its ownrandom_num
. If there are two microbatchesx = [x1, x2]
, the expected result is[x1@rn, x2@rn]
, but we actually get[x1@rn1, x2@rn2]
. We should separate the rng and reuse the result in all microbatchesThe text was updated successfully, but these errors were encountered: