Trying to convert pystan to cmdstanpy to use in a UDF - question about dependencies etc #815
Unanswered
onektwenty4
asked this question in
Q&A
Replies: 1 comment
-
|
The built executable will depend on some system libraries (usually as long as the build machine is running at least a similar operating system version, these are fine, but if you get an error that says something like ”GLIBC_VERSION”, these are to blame) and Intel’s threaded building blocks library, which is usually in cmdstan/lib/stan/lib/stan_math/lib/tbb. You can manually copy these files around, or if you’re trying to build a package that would be suitable for pypi or similar you can check out https://github.com/WardBrian/cookiecutter-cmdstanpy-wrapper |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to be able to call a model from a python UDF in snowpark or pyspark.
I guess I would compile my stan code to an executable? and then package that executable with the UDF source and deploy this package to my runtime? And the UDF itself would say compile=False and load the built exe.
What are the dependencies of the generated exe? Does that need all the C++ toolchain once that is built? Or (hopefully) will that exe have few dependencies?
Thank you for any help.
Beta Was this translation helpful? Give feedback.
All reactions