grad-checkpoint makes trained tokens increase gradually
After using --grad-checkpoint, the trained tokens increase gradually and reach the size of the whole dataset at the last iteration, while not using it would have the trained tokens in each iteration always be the same of the size of the dataset.
Why?
I'm not understanding your question. Trained tokens should be going up in all cases because its an sum over the total number of tokens trained on so far. I don't think you should see a difference there in terms of total tokens so it's possible there is a bug.
Could you share the command you ran / output you were seeing so we can reproduce that?
Closing as inactive. If there was an issue here please comment and we can reopen.