Giter Site home page Giter Site logo

whisper-jax-colab's Issues

AttributeError: module 'jax.numpy' has no attribute 'DeviceArray'

All of these colabs are no longer working. They all result in the following error:

---------------------------------------------------------------------------

AttributeError                            Traceback (most recent call last)

[<ipython-input-1-82b9abc29980>](https://localhost:8080/#) in <cell line: 8>()
      6 import os
      7 import jax
----> 8 from whisper_jax import FlaxWhisperPipline
      9 import jax.numpy as jnp
     10 

3 frames

[/usr/local/lib/python3.10/dist-packages/jax/_src/deprecations.py](https://localhost:8080/#) in getattr(name)
     51       warnings.warn(message, DeprecationWarning, stacklevel=2)
     52       return fn
---> 53     raise AttributeError(f"module {module!r} has no attribute {name!r}")
     54 
     55   return getattr

AttributeError: module 'jax.numpy' has no attribute 'DeviceArray'

problem with the loading of the models in the collab

When I run any of colab notebook I got this error

`alueError Traceback (most recent call last)
in <cell line: 11>()
9 import jax.numpy as jnp
10
---> 11 pipeline = FlaxWhisperPipline("openai/whisper-medium", dtype=jnp.float16)
12 from jax.experimental.compilation_cache import compilation_cache as cc
13 cc.initialize_cache("/content/jax_cache")

4 frames
/usr/local/lib/python3.10/dist-packages/transformers/modeling_flax_utils.py in params(self)
268 def params(self) -> Union[Dict, FrozenDict]:
269 if not self._is_initialized:
--> 270 raise ValueError(
271 "params cannot be accessed from model when the model is created with _do_init=False. "
272 "You must call init_weights manually and store the params outside of the model and "

ValueError: params cannot be accessed from model when the model is created with _do_init=False. You must call init_weights manually and store the params outside of the model and pass it explicitly where needed.`

Whats can be the problem?

XlaRuntimeError on openai/whisper-medium Free Colab (T4)


XlaRuntimeError Traceback (most recent call last)

in <cell line: 11>()
9 import jax.numpy as jnp
10
---> 11 pipeline = FlaxWhisperPipline("openai/whisper-medium", dtype=jnp.float16)
12 from jax.experimental.compilation_cache import compilation_cache as cc
13 cc.initialize_cache("/content/jax_cache")

13 frames

[... skipping hidden 14 frame]

/usr/local/lib/python3.10/dist-packages/jax/_src/dispatch.py in backend_compile(backend, module, options, host_callbacks)
463 # TODO(sharadmv): remove this fallback when all backends allow compile
464 # to take in host_callbacks
--> 465 return backend.compile(built_c, compile_options=options)
466
467 _ir_dump_counter = itertools.count()

XlaRuntimeError: FAILED_PRECONDITION: DNN library initialization failed. Look at the errors above for more details.

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.