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

Inference Speed #391

Open
joaopedro-fg opened this issue Mar 18, 2024 · 1 comment
Open

Inference Speed #391

joaopedro-fg opened this issue Mar 18, 2024 · 1 comment

Comments

@joaopedro-fg
Copy link

Hello!
I'm using PyABSA in an application where I have to do aspect term extractation and polarity for about 3000 texts every 15 minutes. At the moment, I'm using an Nvidia L4, however, it still takes about 30 minutes to process all the texts. Is there any way to speed up the inference process?

@yangheng95
Copy link
Owner

Maybe you can use smaller modeling length (e.g., 80) and larger batch size (64 or 128).
And you can try the fp16 precision using torch.cuda.amp.autocast().

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

2 participants