After finishing the training phase, I want to save the RoBERTa classifier model for later evaluation purpose.
I am getting this error.
AttributeError Traceback (most recent call last)
in
1 out_model = âsrc_classifier_final_ICWSM_10eâ
----> 2 src_classifier.save_model(fâmodels/{out_model}_finalâ)
~/.local/lib/python3.8/site-packages/torch/nn/modules/module.py in getattr(self, name)
945 if name in modules:
946 return modules[name]
â 947 raise AttributeError("â{}â object has no attribute â{}â".format(
948 type(self).name, name))
949
AttributeError: âRobertaForSequenceClassificationâ object has no attribute âsave_modelâ