GithubHelp home page GithubHelp logo

Comments (2)

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

Hey @alcarazolabs! The idea behind Whisper JAX is that it has minimal dependencies, solely Transformers, JAX, Flax and cached-property:

whisper-jax/setup.py

Lines 24 to 28 in 9c50a6e

_deps = [
"transformers>=4.27.4,<4.35.0",
"flax",
"cached-property",
]

Because JAX has different installation routes depending on your hardware, it's impossible to put it in a requirements.txt file in a way that respects each installation route. Instead, it is advocated that users install JAX based on the official instructions, and then install the remaining 3 dependencies for Whisper JAX (Transformers, Flax and cached-property). If you're having issues with installing JAX on CUDA, I recommend you ask on the JAX repository for more detailed support!

We don't pin any of the requirements on Flax since all you need is a version that is compatible with your JAX version. If we pinned the version of Flax, the requirements would become more stringent, and also not forward compatible with new versions of JAX/Flax.

Therefore, the requirements are fully defined as required dependencies in setup.py. You can install the trio of requirements by running:

pip install git+https://github.com/sanchit-gandhi/whisper-jax.git

from whisper-jax.

bvrockwell avatar bvrockwell commented on May 29, 2024

Hi @sanchit-gandhi - would you be able to list your benchmark/* dependencies please? These scripts actually don't seem to work anymore with naive package installs, but I could be wrong. If I simply install the additional required packages naively (ex: pip install datasets, ...), the benchmarking scripts fail and complain about jax_array. For context: I'm using python3.9 and jax 0.4.25 and have run "pip install ." after cloning the repo. The src code itself works fine but i'd like to run the benchmarks to validate performance. Thanks very much!

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.