You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does textattack allow running the attack calculation on a single model doing distributed inference across multiple GPUs?
For example, one can use the argument device_map="auto", which distributes a large model to multiple GPUs, on HuggingFaceModelWrapper. However, it seems that if you split a single instance of a large model onto multiple GPUs, then when doing the attack, such as using attacker.attack_dataset(), then there will be a RuntimeError similar to the following (if two GPUs are present) RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!
The text was updated successfully, but these errors were encountered:
RealPolitiX
changed the title
Attack on HF models split into multiple GPUs
Attack on an HF model split into multiple GPUs
Aug 2, 2024
Does textattack allow running the attack calculation on a single model doing distributed inference across multiple GPUs?
For example, one can use the argument
device_map="auto"
, which distributes a large model to multiple GPUs, onHuggingFaceModelWrapper
. However, it seems that if you split a single instance of a large model onto multiple GPUs, then when doing the attack, such as usingattacker.attack_dataset()
, then there will be a RuntimeError similar to the following (if two GPUs are present)RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!
The text was updated successfully, but these errors were encountered: