mlx-examples icon indicating copy to clipboard operation
mlx-examples copied to clipboard

grad-checkpoint makes trained tokens increase gradually

Open alphrc opened this issue 2 years ago • 2 comments

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?

alphrc avatar Jul 09 '24 02:07 alphrc

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?

awni avatar Jul 09 '24 13:07 awni

Closing as inactive. If there was an issue here please comment and we can reopen.

awni avatar Jul 17 '24 15:07 awni