fastnlp / CPT

CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Generation
481 stars 70 forks source link

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' #45

Closed Cyanash closed 1 year ago

Cyanash commented 2 years ago

Cause HuggingFace Transoformers updated,https://github.com/huggingface/transformers/commit/f5af87361718be29a1d3ddb2d8ef23f85b1c70c3

choosewhatulike commented 2 years ago

Please check the requirements: pytorch==1.8.1 transformers==4.4.1