-
Notifications
You must be signed in to change notification settings - Fork 131
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 set the batch size? #61
Labels
question
Further information is requested
Comments
Hi @atoutou pipe = nlu.load('xx.embed_sentence.labse', gpu=True)
pipe.print_info() will print
With Should fix your problem. Let me know if it helps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The prediction process takes a long time to finish so I check the GPU memory usage and find out it only uses 3GB memory ( I have 16GB memory GPU).
I want to set a larger batch size to speed up the process but I can't find the argument.
How to set the batch size when using the predict function?
import nlu
pipe = nlu.load('xx.embed_sentence.labse', gpu=True)
pipe.pipe.predict(text, output_level='document')
Thanks
The text was updated successfully, but these errors were encountered: