google-research / long-range-arena

Long Range Arena for Benchmarking Efficient Transformers
Apache License 2.0
720 stars 79 forks source link

ModuleNotFoundError: No module named 'flax.deprecated' #54

Closed DaShenZi721 closed 1 year ago

DaShenZi721 commented 1 year ago

Hello! Thanks for offering this benchmark! However, when I use the following commands

PYTHONPATH="$(pwd)":"$PYTHON_PATH" python lra_benchmarks/listops/train.py \
      --config=lra_benchmarks/listops/configs/transformer_base.py \
      --model_dir=/tmp/listops \
      --task_name=basic \
      --data_dir=$HOME/lra_data/listops/

I got this message

Traceback (most recent call last):
  File "lra_benchmarks/listops/train.py", line 28, in <module>
    from flax.deprecated import nn
ModuleNotFoundError: No module named 'flax.deprecated'

Is there any solutions?

DaShenZi721 commented 1 year ago

This is my setting:

DaShenZi721 commented 1 year ago

I try to replace from flax.deprecated import nn with from flax import nn, and it works!

AlexKay28 commented 1 year ago

@DaShenZi721 which python version did you use?