Skip to content

broken finetuning notebook #209

Description

@kkailaasa

hey team, due to some new update of numpy to 2 the finetuning part of the notebook is broken and there are also few more dependency issues that need to be fixed so can you just fix the version of the dependency in some req.txt or a py conf so all the working versions are installed

The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.
0it [00:00, ?it/s]
Traceback (most recent call last):
  File "/usr/local/bin/accelerate", line 4, in <module>
    from accelerate.commands.accelerate_cli import main
  File "/usr/local/lib/python3.11/dist-packages/accelerate/commands/accelerate_cli.py", line 19, in <module>
    from accelerate.commands.estimate import estimate_command_parser
  File "/usr/local/lib/python3.11/dist-packages/accelerate/commands/estimate.py", line 35, in <module>
    import timm
  File "/usr/local/lib/python3.11/dist-packages/timm/__init__.py", line 8, in <module>
    from .models import (
  File "/usr/local/lib/python3.11/dist-packages/timm/models/__init__.py", line 1, in <module>
    from .beit import *
  File "/usr/local/lib/python3.11/dist-packages/timm/models/beit.py", line 48, in <module>
    from timm.data import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
  File "/usr/local/lib/python3.11/dist-packages/timm/data/__init__.py", line 5, in <module>
    from .dataset import ImageDataset, IterableImageDataset, AugMixDataset
  File "/usr/local/lib/python3.11/dist-packages/timm/data/dataset.py", line 13, in <module>
    from .readers import create_reader
  File "/usr/local/lib/python3.11/dist-packages/timm/data/readers/__init__.py", line 1, in <module>
    from .reader_factory import create_reader
  File "/usr/local/lib/python3.11/dist-packages/timm/data/readers/reader_factory.py", line 4, in <module>
    from .reader_image_folder import ReaderImageFolder
  File "/usr/local/lib/python3.11/dist-packages/timm/data/readers/reader_image_folder.py", line 11, in <module>
    from timm.utils.misc import natural_key
  File "/usr/local/lib/python3.11/dist-packages/timm/utils/__init__.py", line 16, in <module>
    from .summary import update_summary, get_outdir
  File "/usr/local/lib/python3.11/dist-packages/timm/utils/summary.py", line 9, in <module>
    import wandb
  File "/usr/local/lib/python3.11/dist-packages/wandb/__init__.py", line 27, in <module>
    from wandb import sdk as wandb_sdk
  File "/usr/local/lib/python3.11/dist-packages/wandb/sdk/__init__.py", line 25, in <module>
    from .artifacts.artifact import Artifact
  File "/usr/local/lib/python3.11/dist-packages/wandb/sdk/artifacts/artifact.py", line 45, in <module>
    from wandb import data_types, env, util
  File "/usr/local/lib/python3.11/dist-packages/wandb/data_types.py", line 32, in <module>
    from .sdk.data_types import _dtypes
  File "/usr/local/lib/python3.11/dist-packages/wandb/sdk/data_types/_dtypes.py", line 393, in <module>
    NumberType.types.append(np.float_)
                            ^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.. Did you mean: 'float16'? 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions