-
Notifications
You must be signed in to change notification settings - Fork 19
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
More useful logging when sampling multiple chains #82
Comments
This is a longstanding issue and should be improved. The main reason for why currently not the progress of individual samples is shown is that it is a bit challenging to do it right: it is expected that users only have to implement the Some explanation of the progress logging in general (copied from Slack):
|
From what I understand the parallel |
I thought about injecting a callback, and maybe it's the best solution. But there's a major problem: we don't call |
I see! It might be a good idea to provide a generic threaded/distributed dispatching mechanism (extending the |
That's exactly what's done currently, but maybe you mean something else? You just have to write a |
Seems like I misinterpreted your comment then, you're right, the distributed |
If I sample multiple chains, the progress bar shown in the terminal only updates when a chain finishes sampling. This perhaps makes sense if I am quickly sampling many chains in parallel, but this is essentially useless for the common case of a user sampling 2-8 chains of medium to long runtimes in parallel, since as a user I don't have an estimate if the chains will finish sampling in 4 minutes or 4 days.
Currently one works around this by sampling a single chain "long enough" to guess how long it will take to finish, killing the sampler, and then restarting with multiple chains, but it would be better if multiple progress bars were shown, one for each chain, perhaps with a global progress bar showing how many chains have finished. On Slack a while ago, someone proposed that if a user sampled more chains than progress bars would fit in the terminal, then it might be better to use something like the animation Julia uses when compiling packages.
Are the limitations to doing something like this in this package or one of its dependencies?
The text was updated successfully, but these errors were encountered: