-
Notifications
You must be signed in to change notification settings - Fork 6
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
Speed up Stan compilation #13
Comments
I believe there are 2 conditions:
Not behind my laptop right now to check that. |
Of course this is all on a single machine as we don’t store ‘tmp’ on github. |
Thanks Rob. If that turns out to be laborious or problematic in some way, we can keep it as is. |
Once back in CO I would like to look into some changes to CmdStan that would have helped out for our purposes and minimize compilations. One other thing we could do is to write all results go to a dir that is not on Github, like tmp, but do store selected versions and time stamped results. That way, if we run a quick test, it does not override the results from longer runs that we would like to keep. Will require some manual intervention (or/and a new release of the package). But once registered, that is simple. |
Sounds like a plan. It would be nice if we could speed that up or have the ability to write to the hard drive like rstan. I did some benchmarking of the load times. It turns out that a significant amount of time is spent loading Julia packages and compiling. On my system, executing the code from the top of the script to |
Yes, I am also very concerned about these very long startup times. I expect a lot of the discussions around PackageCompiler (and maybe containers) are all at least partially a consequence of this. Just filed the registration issue. |
I'll go ahead and close this since we should run multiple chains to have valid rhat estimates. |
…-25-09-07-21-489-296925211 CompatHelper: bump compat for "Turing" to "0.10"
You may have noticed that compiling a Stan model for each processor is slow in the parallel version. Each model is compiled one at a time. Rather than making this a parallel process, I was wondering whether the compiled executable and .hpp files can be copied like we already do with the Stan model file? One complication I noticed is that the .hpp file uses the model name. If this is the only complication, it might be easy to do some sort of find and replace. Are there other problems aside from that?
The text was updated successfully, but these errors were encountered: