Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi,can I run berax on my GPU ? #13

Open
NickShanyt opened this issue Nov 28, 2023 · 4 comments
Open

Hi,can I run berax on my GPU ? #13

NickShanyt opened this issue Nov 28, 2023 · 4 comments

Comments

@NickShanyt
Copy link

Hi, I have successfully run BERTax on the CPU, but at a very limited speed.
I now have a GPU server with CUDA version 11.4.1 and CUDNN version 8.2.4, and I tried to run BERTax on it, but it failed.
After my troubleshooting, I surmise that it has something to do with the version of Tensorflow that BERTax uses.
Are you able to come up with a more detailed configuration method?

I found that CUDA version 11.4 needs to match Tensorflow version 2.6.

@NickShanyt
Copy link
Author

Extra info, when I first install Tensorflow==2.12.0 (it works on my another CPU platform) and then install bertax via conda install -c fkretschmer bertax, bertax runs fine on the CPU.

@f-kretschmer
Copy link
Collaborator

Unfortunately BERTax needs an older version of tensorflow due to its keras-bert-dependency. Perhaps the docker version can help here: https://github.com/f-kretschmer/bertax#docker ?

@JiayiJennie
Copy link

Hi! Could you provide the tensorflow version used in bertax? Thanks!

@f-kretschmer
Copy link
Collaborator

In the development we used version 2.4.1, although everything depends on using keras-bert, with the version 0.86.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants