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

HF_Seq2SeqBeforeBatchTransform is not defined #73

Closed LukasFides closed 2 years ago

LukasFides commented 2 years ago

Hi,

I am trying out the provided BART fine tuning script and am facing issues with certain components.

Is there an alternative for the HF_Seq2SeqBeforeBatchTransform? I am currently running into the error:

hf_batch_tfm = HF_Seq2SeqBeforeBatchTransform(hf_arch, hf_config, hf_tokenizer, hf_model, task='summarization', NameError: name 'HF_Seq2SeqBeforeBatchTransform' is not defined

Any help is highly appreciated.

Cheers, Lukas

ohmeow commented 2 years ago

I think you're referencing this ... https://ohmeow.com/posts/2020/05/23/text-generation-with-blurr.html

I just updated it to use blurr 1.0.x.

If this fixes your issues, please close this out. Thanks for letting me know it was broken :)

LukasFides commented 2 years ago

Hi, Thank you very much for your feedback. Yes the new updated version solves the issue :). I will close the issue with this comment.