We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I was trying to use CLAREAugmenter from your library and was surprised that it consumes more than 40GB of VRAM during the augmentation process.
CLAREAugmenter
I have some longer texts (~800 tokens) but did not expect that a method loading a simple distilroberta underneath will cause any memory issues.
distilroberta
Is there any way to reduce the memory consumption in this augmenter?
The code that I am using is really simple:
from textattack.augmentation.recipes import CLAREAugmenter augmenter = CLAREAugmenter(pct_words_to_swap=0.1) augmented_texts= [] for text in texts: augmented_texts.append(augmenter.augment(text))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I was trying to use
CLAREAugmenter
from your library and was surprised that it consumes more than 40GB of VRAM during the augmentation process.I have some longer texts (~800 tokens) but did not expect that a method loading a simple
distilroberta
underneath will cause any memory issues.Is there any way to reduce the memory consumption in this augmenter?
The code that I am using is really simple:
The text was updated successfully, but these errors were encountered: