timoschick / pet

This repository contains the code for "Exploiting Cloze Questions for Few-Shot Text Classification and Natural Language Inference"
https://arxiv.org/abs/2001.07676
Apache License 2.0
1.62k stars 283 forks source link

resolve AdamW deprecation warning #85

Closed rhelmeczi closed 2 years ago

rhelmeczi commented 2 years ago

Update the optimizer usage to resolve the deprecation warning from the transformers library: "This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set no_deprecation_warning=True to disable this warning"