Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Accuracy Jump on Resume – Potential Scaler Issue? #378

Open
FiorenzoParascandolo1 opened this issue Feb 19, 2025 · 0 comments

Comments

@FiorenzoParascandolo1
Copy link

I'm currently experimenting with a new type of positional encoding in the SwinTransformer repository. Due to hardware limitations (only 2 GPUs available), I run my training in resumed sessions to cover a full 300 epochs. Each session runs for 12 hours, during which I can complete about 13 epochs.

To ensure the model doesn't see the same samples in each resumed session, I change the seed on every resume. Without changing the seed, the model would be exposed to the same data ordering in every 12-hour run.

Observed Behavior:

First Epoch of Each Resume: There's a significant jump in accuracy.
Subsequent Epochs: After the initial jump, accuracy improvements are minimal.
Could this pattern be related to the scaler? I'm curious if the scaler might be affecting the training dynamics when resuming or if there's another underlying cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant