Skip to content

Incompatible with huggingface transformers? #248

@hxu105

Description

@hxu105

Howdy,

I am having one issue when I import torchdrug and transformers at the same time. Importing torchdrug will somehow disable some functionality for hugging face transformers and peft as well as torch.distributed.fsdp.FullySharedDataParallel.
image

In multiple GPU settings, importing torchdrug will cause AssertionError: Expects a fully sharded module but got FullyShardedDataParallel( (_fsdp_wrapped_module):... I just find these errors quite weird for me, if you can provide any hint or solution, I will be very grateful for your help.

Many thanks,

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