torchdrug icon indicating copy to clipboard operation
torchdrug copied to clipboard

Incompatible with huggingface transformers?

Open hxu105 opened this issue 1 year ago • 2 comments

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,

hxu105 avatar Apr 08 '24 21:04 hxu105

I also encountered the same problem, importing torchdrug would cause PEFT to be unavailable

XvesS avatar Dec 21 '24 11:12 XvesS

Have you solved this problem now?

XvesS avatar Dec 21 '24 11:12 XvesS