This commit is contained in:
Daniel Bourke committed 2022-08-05 10:12:29 +10:00
1 parent 8e15cae033
commit f98d7c2b25
1 file changed
+1 -1
+1 -1
View File
@@ -3462,7 +3462,7 @@
"\n",
"Searching the ViT paper for \"optimizer\", section 4.1 on Training & Fine-tuning states:\n",
"\n",
"> **Training \\& Fine-tuning.** We train all models, including ResNets, using Adam (Kingma \\& Ba, 2015 ) with $\\beta_{1}=0.9, \\beta_{2}=0.999$, a batch size of 4096 and apply a high weight decay of $0.1$, which we found to be useful for transfer of all models (Appendix D.1 shows that, in contrast to common practices, Adam works slightly better than SGD for ResNets in our setting).\n",
"> **Training & Fine-tuning.** We train all models, including ResNets, using Adam (Kingma & Ba, 2015 ) with $\\beta_{1}=0.9, \\beta_{2}=0.999$, a batch size of 4096 and apply a high weight decay of $0.1$, which we found to be useful for transfer of all models (Appendix D.1 shows that, in contrast to common practices, Adam works slightly better than SGD for ResNets in our setting).\n",
"\n",
"So we can see they chose to use the \"Adam\" optimizer ([`torch.optim.Adam()`](https://pytorch.org/docs/stable/generated/torch.optim.Adam.html#torch.optim.Adam)) rather than SGD (stochastic gradient descent, [`torch.optim.SGD()`](https://pytorch.org/docs/stable/generated/torch.optim.SGD.html#torch.optim.SGD)).\n",
"\n",