Skip to content

Minimal and Generic Cmdstanpy for Deployment #752

Closed Answered by WardBrian
winedarksea asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is "yes". Prophet's python package essentially does exactly what you describe, just inside a Python wheel.

Now, whether or not your sysadmin will be happier with a precompiled executable from somewhere, I can't say

Let's call the build machine "B" and the prod machine "P". Here are the rough steps you would need to take

  • Build CmdStan on B. Use it to build model.bin.
  • Copy a few files from B to P. These files are model.bin, $CMDSTAN/stan/lib/stan_math/lib/tbb/libtbb.so, and $CMDSTAN/stan/lib/stan_math/lib/tbb/libtbb.so.2. The easiest thing to do is probably place all 3 of these files in the same folder on P.
    • The second and third files are the only part of this that is "tr…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by winedarksea
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants