-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
loss = 0 after first log with trainer API #31391
Comments
Hi @not-lain, that's probably not a bug. The dataset have only 200 rows. Could you try with a bigger dataset ? |
Hi @SunMarc I have tried with both |
@SunMarc after some fiddling It seems that this is not related to the trainer API rather to my training script model.text_model.train()
model.config.use_cache = False
model.text_model.transformer.gradient_checkpointing_enable()
torch.autograd.set_detect_anomaly(True)
since this is not related to the trainer API i'm closing this one, thanks for the support |
System Info
transformers
version: 4.41.2Who can help?
cc @muellerzr @SunMarc
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
https://colab.research.google.com/drive/1Rlcbd3SCibgJQmzAGZW7pyiK01pwumB4?usp=sharing
![image](https://private-user-images.githubusercontent.com/70411813/339044469-bc0c40b5-a022-4e7b-9040-91f14465bbb0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MDEwNTAsIm5iZiI6MTcxOTkwMDc1MCwicGF0aCI6Ii83MDQxMTgxMy8zMzkwNDQ0NjktYmMwYzQwYjUtYTAyMi00ZTdiLTkwNDAtOTFmMTQ0NjViYmIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDA2MTIzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmNDI0YzYwYTVkOWJiNGE5ZjUyMDIwOTFjMzdmNDFlZDQ1NWNjM2VmYWUzNWFjMmQ4MmYwZTNhMzM1Y2E1YmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XLcmP7xM7Fd-oxrKsymWJk8oGAk3off7VhYvakqIaK0)
Expected behavior
normal loss
The text was updated successfully, but these errors were encountered: