Question about forward process
Hi. I have a question about the forward process implementation. Take this function https://github.com/czg1225/dParallel/blob/23c03b78b5c7ef4818381d4f65c8422986f94c1c/Dream/dream_train.py#L90 https://github.com/czg1225/dParallel/blob/23c03b78b5c7ef4818381d4f65c8422986f94c1c/Dream/dream_train.py#L105-L127 as an example. In L115-121, it seems like the masks are generated for the whole batch. Then why do we need a range(b) loop?
Thanks for your time!
Hi @cychomatica Sorry, this is indeed a small error, but since we are using microbatch=1 in our code, it has no impact in this case. If you want to change the code to support training with microbatch>1, you may need to modify the L115-121 code to generate a mask for each sample within the microbatch