txsun1997/Black-Box-Tuning

modeling_roberta.py line 632

Closed this issue · 1 comments

TypeError: add_code_sample_docstrings() got an unexpected keyword argument 'tokenizer_class'
How to solve it?

First check if your transformers version is 4.1.1, or you can simply remove @add_code_sample_docstrings (line 631-636)