Coder Social home page Coder Social logo

Comments (5)

vpratz avatar vpratz commented on September 4, 2024 3

Ahh, ok. Is the error absent when you install TF 2.15.0 without BayesFlow? Or is there a version change with the BF installation?

As this seems a usual problem according to this issue, we probably have to find which TF-related dependency changes and introduces the problem, though I don't know whether we can resolve this. Could you try the following?

  • Create a conda environment, install TF 2.15.0 with CUDA and check whether the errors occur (if they do, it's TF version and not BF related)
  • save the environment using conda list --explicit > env-pre-bf.txt
  • Install BayesFlow, check whether the errors occur (expecting that they will)
  • save the environment using conda list --explicit > env-post-bf.txt
  • diff env-pre-bf.txt env-post-bf.txt

The resulting diff may tell us something about the changes BF introduces to the TensorFlow installation, which might give us a lead on what we need to fix

from bayesflow.

vpratz avatar vpratz commented on September 4, 2024 2

Thanks for reaching out! If I remember correctly, I have encountered those warnings/errors, but could use the GPU anyway. In the last line it says it is able to create a GPU device. What is the output of tf.config.list_physical_devices('GPU'), does a GPU show up there or is it an empty list?

Regarding the 2.16 version of TensorFlow: We are currently working on adapting BF to Keras 3, which will also enable using the newest TensorFlow version. As this is a bigger change, it will need a bit more time, you can track the progress in the PR #159

from bayesflow.

ali-akhavan89 avatar ali-akhavan89 commented on September 4, 2024 1

I completely understand it is challenging, but it would be great if the new BF release could support tensorflow-cpu 2.16 too.

from bayesflow.

stefanradev93 avatar stefanradev93 commented on September 4, 2024 1

Absolutely. The new release will support all recent tensorflow, pytorch, and jax versions.

from bayesflow.

jgman86 avatar jgman86 commented on September 4, 2024

Hey Valentin, yes It finds the gpu - but from my searches the errors at the beginning indicate, that the libs are not used then, which results in slower training. and its also suspicious, that those errors are absent, before the bayesflow installtion ! yes I already track the streamline-backend branch and can't wait to finally use torch as backend ;-)

from bayesflow.

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.