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

Progress Logging does not appear in cluster manager output #1916

Closed
astro-kevin opened this issue Dec 4, 2022 · 5 comments
Closed

Progress Logging does not appear in cluster manager output #1916

astro-kevin opened this issue Dec 4, 2022 · 5 comments

Comments

@astro-kevin
Copy link

I'm sampling a Turing model in a cluster managed by SLURM. The progress bar generated from log-progress doesn't seem to appear until the sampling is all finished. I know it isn't to do with the progressbars generally because I use ProgressMeters elsewhere in my code. But I'm not sure whether this is to do with Turing or with ProgressLogging.jl.

@devmotion
Copy link
Member

Maybe you are facing TuringLang/AbstractMCMC.jl#82?

@astro-kevin
Copy link
Author

I don't believe I am. I'm not sampling multiple chains at once, but only a single chain.

@devmotion
Copy link
Member

I see. In that case everything should work automatically if one does not explicitly use a logger with a log level less than or equal to ProgressLogging.ProgressLevel (in that case users have to make sure that their logger handles progress logs correctly). On Windows with Julia <= 1.5.3 and with IJulia the default progress logging backend used by AbstractMCMC is ConsoleProgressMonitor, and otherwise TerminalLoggers is used.

You could try to check if the minimal progress logging examples, e.g., in the docs of TerminalLoggers, work correctly on the cluster (https://julialogging.github.io/TerminalLoggers.jl/dev/#Progress-bars-1).

@damonbayer
Copy link

When you say they don't appear are you talking about an interactive session or a scheduled job with an output file?

@yebai yebai closed this as completed Sep 4, 2023
@yebai
Copy link
Member

yebai commented Sep 4, 2023

Please reopen if needed.

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

4 participants