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

Reducing GPU utilization while working with CLAREAugmenter #812

Open
dkoterwa opened this issue Feb 28, 2025 · 0 comments
Open

Reducing GPU utilization while working with CLAREAugmenter #812

dkoterwa opened this issue Feb 28, 2025 · 0 comments

Comments

@dkoterwa
Copy link

dkoterwa commented Feb 28, 2025

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:

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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant