Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel crashing while converting #663

Open
EmanuelCastanho opened this issue Dec 15, 2022 · 4 comments
Open

Kernel crashing while converting #663

EmanuelCastanho opened this issue Dec 15, 2022 · 4 comments

Comments

@EmanuelCastanho
Copy link

RF was previously defined.

# Can crash sometimes
# Convert model to pytroch with Hummingbird-ml
RFconv = convert(RF, 'pytorch')

# Save Model Converted
RFconv.save(os.path.join(ResultsFolder, "RFmodel_V3"))

When I ran this on macOS it crashes the Jupyter kernel, this doesn't happen in Windows.

Screenshot 2022-12-15 at 16 14 19

@interesaaat
Copy link
Collaborator

Thanks for reporting this, but this is hard to debug. It crashes during conversion, not saving, right? Can you provide a stack trace and which versions are you using?

@EmanuelCastanho
Copy link
Author

Yes, it crashes during conversion.
Here is some information about my setup:

  • MacBook Pro Intel with Ventura 13.0
  • Visual Studio Code 1.74.0 with Jupyter extension v2022.11.1003412109
  • Attached Anaconda environment macOS_environment.txt
  • Attached Kernel crash error Error.txt

@interesaaat
Copy link
Collaborator

From the error log it looks that is something related to trailets? (Not an Hummingbird dependency)

error 23:29:05.817: Disposing session as kernel process died ExitCode: undefined, Reason: /Users/USER/miniconda3/envs/CreateModel-Env/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Maybe on Windows worked because you had a newer trailets version? Can you please check?

@EmanuelCastanho
Copy link
Author

EmanuelCastanho commented Dec 20, 2022

I am using recent versions of traitlets on both machines (Windows - 5.3.0 and MacOS - 5.7.1), I tried to:

  • Downgrade MacOS 5.7.1 to 5.3.0
  • Upgrade MacOS 5.7.1 to 5.8.0

However, the kernel continued to crash on both cases when running convert.

I can't downgrade to versions bellow 5.0.0, because I have other libraries that depend on the most recent versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants