ohmeow / ohmeow_website

Apache License 2.0
25 stars 21 forks source link

store_attr() got an unexpected keyword argument 'names' #13

Closed kouohhashi closed 3 years ago

kouohhashi commented 3 years ago

Hi, Thanks for great demo.

BTW, when i tried to go through the notebook, I got error at hf_batch_tfm = HF_SummarizationBatchTransform(hf_arch, hf_tokenizer) .

Screen Shot 2020-09-19 at 2 31 22 PM Screen Shot 2020-09-19 at 2 31 34 PM

Error said store_attr() got an unexpected keyword argument 'names'

Is this because of my fastai2 version?

My fastai version: 2.0.6 My transformers version: 3.1.0

ohmeow commented 3 years ago

It may be more so your fastcore version. See the docs on store_attr here.

fastai should ensure the correct version of fastcore is being reference, so perhaps try upgrading to the latest fastai and see if that resolves the issue. Lmk.

kouohhashi commented 3 years ago

Thanks. you are right. After upgrading fastcore, it worked!