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

TypeError: unhashable type: 'slice' in Learner.summary with fastai version 2.5.3 #56

Closed manisnesan closed 2 years ago

manisnesan commented 2 years ago

Reproducer fastai : 2.5.3 transformers : 4.12.2 ohmeow-blurr : 0.1.0

https://gist.github.com/manisnesan/404ec6f61376b5a1f3b6798816ffe311

This is due to the change introduced here. https://github.com/fastai/fastai/pull/3506

manisnesan commented 2 years ago

Hi @ohmeow, there is a regression with the recent fastai release 2.5.3

ohmeow commented 2 years ago

Looking at this now. Thanks for the heads up

ohmeow commented 2 years ago

Yup. Just posted a PR for fastai to fix. Will close this out if/once its verified.

Thanks - wg

ohmeow commented 2 years ago

This looks fixed in latest fastai. Feel free to reopen if not.