CPT
CPT copied to clipboard
RuntimeError:add_code_sample_docstrings() got an unexpected keyword argument 'tokenizer_class'RuntimeError: Failed to import roformer.modeling_roformer because of the following error (look up to see its traceback): add_code_sample_docstrings() got an unexpected keyword argument 'tokenizer_class'
Cause HuggingFace Transoformers updated,https://github.com/huggingface/transformers/commit/f5af87361718be29a1d3ddb2d8ef23f85b1c70c3
Please check the requirements: pytorch==1.8.1 transformers==4.4.1