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

JIT compile always crashes the kernel and restarts on google colab TPU. #197

Open
anurag12-webster opened this issue Jul 2, 2024 · 1 comment

Comments

@anurag12-webster
Copy link

When i execute below code the kernel crashes everytime and restarts.

code:

from whisper_jax import FlaxWhisperPipline

# instantiate pipeline
pipeline = FlaxWhisperPipline("openai/whisper-large-v2")

# JIT compile the forward call - slow, but we only do once
text = pipeline("elon8m.mp3")

# used cached function thereafter - super fast!!
text = pipeline("elon8m.mp3")

console output

/usr/local/lib/python3.10/dist-packages/transformers/utils/generic.py:311: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  torch.utils._pytree._register_pytree_node(

below is the image for reference

image

@quantumsleeper
Copy link

Same error on Kaggle!

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