Skip to content

Error during Finetuning (AttributeError: 'CLIPTextEmbeddings' object has no attribute 'embedding_forward') #4

@lostnull

Description

@lostnull

Got the following error while trying to finetune the model. Python package versions used are same as in the environment.yaml file

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/usr/lib/python3.8/multiprocessing/spawn.py", line 126, in _main
    self = reduction.pickle.load(from_parent)
  File "/root/fine-tuning/ProSpect/.venv/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'CLIPTextEmbeddings' object has no attribute 'embedding_forward'

Python package versions

  • taming-transformers-rom1504==0.0.6
  • transformers==4.18.0
  • torch==1.10.2+cu111
  • torch-fidelity==0.3.0
  • torchmetrics==0.6.0
  • torchvision==0.11.3+cu111
  • pytorch-lightning==1.5.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions