Calling pre-compiled JAX code from C++ #22184
Replies: 2 comments 5 replies
-
Let me provide a concrete example (but OK to depart from this in your answers). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
My question is related to #5337, but I have a few extra requirements.
Suppose I want to deploy a JAX model, to be called from a C++ program.
As discussed in the link above, JAX can export an HLO file, which can then be compiled via
xla::PjRtClient::Compile
.In many applications (e.g. real-time systems, memory-limited/restricted systems, etc), it would be desirable to offload this compilation process to an offline process, and simply include/link a library with the pre-compiled code.
Is this feasible? Can it already be done? Would greatly appreciate an example or some pointers. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions