ohmeow / blurr

A library that integrates huggingface transformers with the world of fastai, giving fastai devs everything they need to train, evaluate, and deploy transformer specific models.
https://ohmeow.github.io/blurr
Apache License 2.0
289 stars 34 forks source link

Problem with the DataBlock creation for MLM #85

Open Dmaturana81 opened 2 years ago

Dmaturana81 commented 2 years ago

I've been trying to do some MLModelling with Blurr and transformers from huggingface. When I come to the datablock creation I get an Error.

imagen

It is a problem with the DataBlock class from fastai and fastcore delegate decorator.

From what I understood it is delegating the dataloaders creation, but looks like the delegator is waiting an annotation attribute taht doesn't exist. I am using google colab

ranjan-sumit commented 2 years ago

Were you able to solve it? I am also getting the same problem.

Dmaturana81 commented 2 years ago

For the moment I gave a dl_type to the DataBlock constructor, SortedDL solved the problem.

ranjan-sumit commented 2 years ago

Could you please share the sample code? It would be really helpful for me.

ohmeow commented 2 years ago

Folks, yah ... there is an issue in fastcore that is fixed if you install from github. Waiting for a release :)