richarddwang / electra_pytorch

Pretrain and finetune ELECTRA with fastai and huggingface. (Results of the paper replicated !)
325 stars 42 forks source link

NameError: name 'sort_by_run' is not defined #36

Closed tomo-logbii closed 1 year ago

tomo-logbii commented 1 year ago

Hi!! When executing the command python pretrain.py got the following error.

Screen Shot 2023-03-17 at 2 23 11

I would be happy if you could reply to me when you know something and have a time.

richarddwang commented 1 year ago

Hi,

This seems to be a version problem, you can try downgrading fastcore. https://github.com/richarddwang/electra_pytorch/issues/26#issuecomment-1354116226

tomo-logbii commented 1 year ago

@richarddwang That works! Thanks a lot!!😁