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

The kernel appears to have died. It will restart automatically. #66

Closed him-singhvi closed 2 years ago

him-singhvi commented 2 years ago
  1. pip install fastbook

  2. pip install ohmeow-blurr

  3. from fastbook import load_learner

as soon as I run the line number 3 jupyter kernel dies and show below error image

I also tried running import fastbook in python terminal it shows me segmentation fault

ohmeow commented 2 years ago

load_learner is defined in fastai library (not fastbook). Take a look at the fastai docs for structuring your imports correctly (sometimes it can be difficult figuring out where everything lives).

-wg

On Wed, Mar 16, 2022 at 11:44 AM him-singhvi @.***> wrote:

1.

pip install fastbook 2.

pip install ohmeow-blurr 3.

from fastbook import load_learner

as soon as I run the line number 3 jupyter kernel dies and show below error [image: image] https://user-images.githubusercontent.com/30286290/158664057-25541c93-773b-4eac-be3f-0c47fdcfe34f.png

I also tried running import fastbook in python terminal it shows me segmentation fault

— Reply to this email directly, view it on GitHub https://github.com/ohmeow/blurr/issues/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADNMAPS5GEYWFGDPS2BZDVAITYTANCNFSM5Q4WFLEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

him-singhvi commented 2 years ago

but for me on python 3.7 it worked for one server. image

you can see from fastai it throws error but from fastbook it worked fine and loaded the model too. Is it because of python version. I am using 3.8 at the machine where I am having issue. Please guide,

ohmeow commented 2 years ago

load_learner is defined in fastai.leaner.

See: https://docs.fast.ai/learner.html#load_learner

ohmeow commented 2 years ago

Going to close this out if its resolved (or I don't hear anything back). Lmk.