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

How to perform attack in a multi-process manner? #113

Closed
Riroaki opened this issue Sep 4, 2020 · 4 comments · Fixed by #120
Closed

How to perform attack in a multi-process manner? #113

Riroaki opened this issue Sep 4, 2020 · 4 comments · Fixed by #120
Labels
enhancement New feature or request Todo Need to do in the future

Comments

@Riroaki
Copy link

Riroaki commented Sep 4, 2020

The attack process is too slow. Is there any way to accelerate it or multi-process it?

@Fanchao-Qi
Copy link
Collaborator

Hmm, some attack method is slow indeed, especially the method that uses language model. Empirically we find that language model actually contributes little to the attack performance. So if you are using the attack method that uses language model, we recommend you removing it.

Sorry that OpenAttack does not support multi-process now. But we will consider adding this function.

@Fanchao-Qi Fanchao-Qi added Todo Need to do in the future enhancement New feature or request labels Sep 11, 2020
@Riroaki
Copy link
Author

Riroaki commented Sep 13, 2020

Well, I implemented multiprocessing manually, though rather naive but it works.
Thanks for your reply, and I think it's necessary to invest whether multiprocessing affects the speed of a single model...in my case, the time cost of a single model increased when there are multiple models working simultaneously on a GPU device😂

@a710128 a710128 linked a pull request Sep 24, 2020 that will close this issue
zhougr18 added a commit that referenced this issue Dec 14, 2020
complete multi-process manner #113, supporting Chinese data #98
@Fanchao-Qi
Copy link
Collaborator

The newest version has incorporated the support of multi-process. Thanks for your suggestion.

@zhy605420954
Copy link

The newest version has incorporated the support of multi-process. Thanks for your suggestion.

could you please tell me how to perform attack in a multi-process manner? I couldn't find any message about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Todo Need to do in the future
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants