Code Monkey home page Code Monkey logo

Comments (3)

timrudner avatar timrudner commented on August 26, 2024 1

Thanks for catching this. I added chex==0.0.7 to the environment.yml file.

from s-fsvi.

timrudner avatar timrudner commented on August 26, 2024

Hi,

I don't have a solution for you, but the error looks like it's likely a JAX issue. To check whether this is a JAX installation issue, try running

import jax
from jax.lib import xla_bridge
print(f"Device: {xla_bridge.get_backend().platform}")

seed=0
main_rng = jaxrandom.PRNGKey(seed)

If this runs without errors and shows that you're running JAX on GPU, your JAX setup is likely working correctly. If you're getting an error, I would recommend checking if you're using the jax, jaxlib, optax, and chex versions specified in the environment.yml file.

from s-fsvi.

rm-wu avatar rm-wu commented on August 26, 2024

Thanks for your quick answer! I managed to solve the problem. It wasn't a jax problem, but when I checked the other libraries I noticed that chex is not listed in the environment.yml, this leads to install the wrong version of chex.
I tried with chex==0.0.7, which is the version I found in the colab_requirements.txt, and this fixes the problem.

from s-fsvi.

Related Issues (2)

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.