CALM-pytorch icon indicating copy to clipboard operation
CALM-pytorch copied to clipboard

Memory Usage Increase Issue

Open pluto32 opened this issue 1 year ago • 0 comments

When training, there is an issue where memory usage continuously increases during the loss calculation in the following part:

loss = F.cross_entropy( rearrange(logits, 'b n c -> b c n'), labels, ignore_index=self.pad_id )

I would like to ask if anyone else has experienced the same issue.

pluto32 avatar Jun 03 '24 06:06 pluto32