-
Notifications
You must be signed in to change notification settings - Fork 24
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
🧹 Cleanup of the batch size environment variables #121
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution!
@@ -65,7 +65,7 @@ docker run -p 8080:80 \ | |||
--net=host --privileged \ | |||
-v $(pwd)/data:/data \ | |||
-e HF_TOKEN=${HF_TOKEN} \ | |||
-e MAX_BATCH_SIZE=1 \ | |||
-e MAX_BATCH_SIZE=4 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could have left it to 1, but it's ok.
if [[ -z "${BATCH_SIZE}" ]]; then | ||
BATCH_SIZE=2 | ||
if [[ -z "${MAX_BATCH_SIZE}" ]]; then | ||
MAX_BATCH_SIZE=4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could have done the change from 2 to 4 on the next commit, but anyway that's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes i though about that but thanks for pointing it out
What does this PR do?
Why