camenduru / whisper-jax-colab Goto Github PK
View Code? Open in Web Editor NEWLicense: The Unlicense
License: The Unlicense
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'
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?
Hi , can it be also modified to have input from micrphone. It is also possible to do translation right ?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.