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

Compatibility issues about flax/jax/optim/optax #5

Open
AnabelicSun opened this issue Oct 24, 2024 · 0 comments
Open

Compatibility issues about flax/jax/optim/optax #5

AnabelicSun opened this issue Oct 24, 2024 · 0 comments

Comments

@AnabelicSun
Copy link

While running the example code in Readme, such error occurs:

./run.sh
2024-10-24 14:45:56.243665: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-10-24 14:45:56.301708: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-10-24 14:45:56.318591: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
Traceback (most recent call last):
File "/home/anabelian/GIT/meliad/transformer/ht_main.py", line 28, in
from transformer import launcher
File "/home/anabelian/GIT/meliad/transformer/launcher.py", line 23, in
import training_loop
File "/home/anabelian/GIT/meliad/training_loop.py", line 32, in
import optimizer_config as opt_config
File "/home/anabelian/GIT/meliad/optimizer_config.py", line 21, in
from flax import optim
ImportError: cannot import name 'optim' from 'flax' (/home/anabelian/alphageo/lib/python3.11/site-packages/flax/init.py)

it seems that newer version of flax does not support optim, however in requirement:
flax>=0.5.0
jax>=0.3.13
optax>=0.1.2

it seems that it is better to specify flax = 0.5.3 and jax = 0.3.13 to prevent problems?

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

1 participant