Closed fxb392 closed 1 year ago
@QingruZhang The model_args、tb_writer has same problem.
rankallocator=rankallocator, model_args=model_args, tb_writter=tb_writter,
Hi, please follow the instructions here to install the dependencies and updated transformers, which contains the revised trainer definition. Then, you could use the scripts povided in scripts
folder to run QA tasks. Hope this can answer you question.
Could you tell me the version of transformer(Trainer) you install? Now i upgrade the transformer to a latest version=4.30.2 but can 't init the QuestionAnsweringTrainer. The parent Trainer also haven't rankallocator、rankallocator、tb_writter.
Futhermore,I didn't find the code to add loar for model.
Hi, the lora is added by the updated transformers
. Thus, you need to install it from the source by running cd NLG_QA
, pip install -e .
, which we show by the README therein.
Ok.thanks you a lot ,i got it .
When initialize the QuestionAnsweringTrainer,i encountered this error.Why the init() menth of QuestionAnsweringTrainer haven't self.rankallocator variable ?
error:TypeError: init() got an unexpected keyword argument 'rankallocator' #4