Coder Social home page Coder Social logo

Comments (10)

talipturkmen avatar talipturkmen commented on May 15, 2024 3

you can upgrade jax in colab using
!pip install --upgrade jax jaxlib
it works for me after upgrade

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024 1

LOL:

RuntimeError:
As of JAX 0.4.0, JAX only supports TPU VMs, not the older Colab TPUs.

We recommend trying Kaggle Notebooks
(https://www.kaggle.com/code, click on "New Notebook" near the top) which offer
TPU VMs. You have to create an account, log in, and verify your account to get
accelerator support.
Once you do that, there's a new "TPU 1VM v3-8" accelerator option. This gives
you a TPU notebook environment similar to Colab, but using the newer TPU VM
architecture. This should be a less buggy, more performant, and overall better
experience than the older TPU node architecture.

It is also possible to use Colab together with a self-hosted Jupyter kernel
running on a Cloud TPU VM. See
https://research.google.com/colaboratory/local-runtimes.html
for details.

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024

yes this is going to be rough:

Cloud TPU v3: $8.00 hour
Cloud TPU v4: $12.88 per hour

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024

by the way, it works perfect on Kaggle!

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024

this is also depressing:

Creating TPU node "whisper-tpu-test-server" failed. Error: Request failed with unknown error

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024

get this same error on TPU V2.XX

AttributeError: module 'jax.tree_util' has no attribute 'register_pytree_with_keys_class'

Except for Kallg,e all TPU regions are maxed out for TPU V3.xx

from whisper-jax.

sanchit-gandhi avatar sanchit-gandhi commented on May 15, 2024

Hey @silvacarl2 - it's super sad that Google Colab is no longer really support its TPU architectures. I also initially tried writing the notebook in Colab, but got the same recommendation as you and so switched to Kaggle notebooks.

There is indeed a bit of a queue to get a TPU VM v3-8 with Kaggle, but once you do it's worth it (20 hours free per week is very generous).

from whisper-jax.

sanchit-gandhi avatar sanchit-gandhi commented on May 15, 2024

Also preemptible TPUs will be cheaper if you're happy to accept the risk that you might lose a TPU in return for a lower cost

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024

yes, this works great on Kaggle.

we wanted to test it out and benchmark it but we could not eyt get it to run on anything except Kaggle.

from whisper-jax.

silvacarl2 avatar silvacarl2 commented on May 15, 2024

no worries. this is awesome work because it FLIES on Kaggle.

from whisper-jax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.