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

Can't run examples/vit_cifar100/train_deepspeed.py #555

Open
2 of 4 tasks
twmht opened this issue Nov 9, 2023 · 1 comment
Open
2 of 4 tasks

Can't run examples/vit_cifar100/train_deepspeed.py #555

twmht opened this issue Nov 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@twmht
Copy link

twmht commented Nov 9, 2023

System Info

Traceback (most recent call last):
  File "/home/acer/FlagAI/examples/vit_cifar100/train_deepspeed.py", line 69, in <module>
    loader = AutoLoader(task_name="classification",
  File "/home/acer/FlagAI/flagai/auto_model/auto_loader.py", line 333, in __init__
    self.model = getattr(LazyImport(self.model_name[0]),
  File "/home/acer/FlagAI/flagai/model/base_model.py", line 190, in from_pretrain
    return load_local(checkpoint_path, only_download_config=only_download_config)
  File "/home/acer/FlagAI/flagai/model/base_model.py", line 118, in load_local
    model = cls.init_from_json(config_path, device=device, **kwargs)
  File "/home/acer/FlagAI/flagai/model/base_model.py", line 75, in init_from_json
    model = cls(change_json_to_cls(args), **kwargs)
  File "/home/acer/FlagAI/flagai/model/vision/vit.py", line 232, in __init__
    vit_config = VitConfig(**config)
TypeError: flagai.model.vision.vit.VitConfig() argument after ** must be a mapping, not ConfigObj

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as T5/AltCLIP, ...)
  • My own task or dataset (give details below)

Reproduction

  1. python examples/vit_cifar100/train_deepspeed.py

Expected behavior

tranining success

@twmht twmht added the bug Something isn't working label Nov 9, 2023
@ftgreat
Copy link
Collaborator

ftgreat commented Nov 30, 2023

You can manually update flagai sources. 0fc0cc2
Later we plan to make a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants