-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
Followed all steps on git, but got below error when run generate.sh:
Traceback (most recent call last):
File "/kaggle/input/songgen/other/default/1/SongGeneration/generate.py", line 12, in <module>
from codeclm.models import builders
File "/kaggle/input/songgen/other/default/1/SongGeneration/codeclm/models/__init__.py", line 10, in <module>
from . import builders
File "/kaggle/input/songgen/other/default/1/SongGeneration/codeclm/models/builders.py", line 10, in <module>
from codeclm.utils.utils import dict_from_config
File "/kaggle/input/songgen/other/default/1/SongGeneration/codeclm/utils/utils.py", line 14, in <module>
import flashy
File "/usr/local/lib/python3.11/dist-packages/flashy/__init__.py", line 11, in <module>
from . import distrib, adversarial
File "/usr/local/lib/python3.11/dist-packages/flashy/distrib.py", line 21, in <module>
from dora.distrib import rank, world_size, init # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/dora/__init__.py", line 68, in <module>
import hydra
File "/usr/local/lib/python3.11/dist-packages/hydra/__init__.py", line 5, in <module>
from hydra import utils
File "/usr/local/lib/python3.11/dist-packages/hydra/utils.py", line 10, in <module>
from hydra._internal.utils import (
File "/usr/local/lib/python3.11/dist-packages/hydra/_internal/utils.py", line 21, in <module>
from hydra.core.utils import get_valid_filename, split_config_path
File "/usr/local/lib/python3.11/dist-packages/hydra/core/utils.py", line 19, in <module>
from hydra.core.hydra_config import HydraConfig
File "/usr/local/lib/python3.11/dist-packages/hydra/core/hydra_config.py", line 6, in <module>
from hydra.conf import HydraConf
File "/usr/local/lib/python3.11/dist-packages/hydra/conf/__init__.py", line 62, in <module>
class JobConf:
File "/usr/local/lib/python3.11/dist-packages/hydra/conf/__init__.py", line 87, in JobConf
@dataclass
^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 1232, in dataclass
return wrap(cls)
^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 1222, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'hydra.conf.JobConf.JobConfig.OverrideDirname'> for field override_dirname is not allowed: use default_factory
It seems it is out of Python 3.11's stricter dataclass rules clashing with older Hydra internals. Tried to upgrade the hydra-core to 1.3.2+, but will have other dependency issues. Anyway able to test the base model on Kaggle or Colab?
Thanks
Metadata
Metadata
Assignees
Labels
No labels