Does `Trainer_Critic` class mimic `transformers`'s `Trainer` class?
cwarny opened this issue · 1 comments
At first glance, it seems like the Trainer_Critic
class mimic the transformer
library's Trainer
class. I'm just curious why you felt the need to do that instead of just using the Trainer
class?
@cwarny This trainer critic was modified to include the inputs of test outcome annotations and facilitate tracking of prediction accuracies during training a critic model. Specifically, we mainly modified here
CodeRL/trainers/trainer_critic.py
Lines 1963 to 1968 in b3e2ac9
and here for the new tracking accuracy variable to log the training progress
CodeRL/trainers/trainer_critic.py
Line 1268 in b3e2ac9
The original code of T5 model and trainer do not specifically facilitate this type of classification task so we included the modified code here.