Conversation
…cmdstanpy into feature/436-num-chains
|
Setting up PR. more unit tests would be good. |
WardBrian
left a comment
There was a problem hiding this comment.
Thanks again for doing this so quickly
|
thanks for reviewing this so quickly. great feedback - will address over the weekend. |
|
regarding CmdStan args vs. method-specific args, the CmdStan CLI requires that args be grouped under headings "method", "data", "output". Given this, you're correct that |
Codecov Report
@@ Coverage Diff @@
## develop #492 +/- ##
===========================================
+ Coverage 77.95% 78.40% +0.44%
===========================================
Files 30 30
Lines 8991 9186 +195
===========================================
+ Hits 7009 7202 +193
- Misses 1982 1984 +2
Continue to review full report at Codecov.
|
|
if all unit tests pass, this is ready for re-review. |
|
Great, I'll review after that change. One thing that immediately strikes out to me: I think the info_dict method may be useful for other stuff in the future and might belong as part of the |
|
Actually, to add on to the above comment, we should make info_dict return |
|
the code is ready for review, but we still need to update the doc and and examples for 2.28. the changes made on the CmdStan side w/r/t |
WardBrian
left a comment
There was a problem hiding this comment.
Thanks for all the work on this. A few more nitpicky things and hopefully the last go-round on the progress bars
WardBrian
left a comment
There was a problem hiding this comment.
I think this is probably my last comments. This PR is looking great when you consider how inherently messy the cmdstan interface is
|
this totally sucks - discovered that model method making this work is important in order to be able to explain how to take advantage of new num_threads. the problem seems to be that make won't update target unless it needs to. changed logic in |
|
Unless you believe that bug was introduced by this PR I think it’s better to merge this and handle that separately. These big PRs get very hard to review |
|
this bug has been there all along - that's why unit tests are removing exe files here and there. I'm just surprised that this wasn't tested more back when we added this feature. |
Submission Checklist
Summary
Added logic to expose CmdStan 2.28 cross-chain parallelism via argument
num_chains.When model has been compiled with
STAN_THREADS=true,samplemethod will usenum_chainsarg to run multi-chain process by default.Refactored RunSet object so that is has attributes for both number of subprocesses and number of chains. Removed redundant checks on input args in RunSet; documented RunSet class accordingly.
Added tqdm hook to handle multi-chain processes output.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: