-
Notifications
You must be signed in to change notification settings - Fork 114
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
Progress Bar #74
Comments
Hello, what would be the use case of a progress bar? If running it on a batch of text, you can get a quick progress bar by using tqdm in your for loop. |
That's in case I wanna query sentences one by one, which is not good because it slows the machine down as the model does initialization for each sentence. |
It shouldn't initialise the model for each sentence, are you defining the model first and then do the prediction for each sentence? e.g.
|
IDK. I had seen in other hugging face models that each batch starts with a low speed and then the progress bar goes more fastly when it moves more to the end (for each batch). |
Depends on how big your batch is and how much you can fit into your memory, if it's large enough it might be more efficient to do it in smaller batches. Are you doing this on cpu or gpu? |
Can you add a progress bar feature too?
The text was updated successfully, but these errors were encountered: