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

In python interpreter make streams unbuffered by default #67

Closed
astaff opened this issue Dec 18, 2019 · 2 comments · Fixed by #71
Closed

In python interpreter make streams unbuffered by default #67

astaff opened this issue Dec 18, 2019 · 2 comments · Fixed by #71

Comments

@astaff
Copy link

astaff commented Dec 18, 2019

With buffered streams, when running python scripts users won't be seeing realtime logs in neuro logs. Starting python interpreter as python -u or setting PYTHONUNBUFFERED=1 will make log streams nearly realtime.

I suggest setting PYTHONUNBUFFERED=1 in Dockerfile to make it a default for every python interpreter run assuming that the users are not gonna pay attention and run their training scripts with python -u

@atemate
Copy link
Contributor

atemate commented Dec 23, 2019

is this option required for all jobs? Note, it might slow down training that writes to logs a lot, see aws/amazon-sagemaker-examples#319.

Maybe we should still close this issue on the Template side: neuro-inc/flow-template#264

@mariyadavydova
Copy link
Contributor

Well, I agree with the following assumption:

the users are not gonna pay attention and run their training scripts with python -u

We have a problem with non-real-time logs right now, which this change gonna fix. It might slow down the train process, but we'll see and solve this problem later.

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

Successfully merging a pull request may close this issue.

3 participants