Add support for exporting models to Carton #3797
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As previously discussed with @tgaddair, this PR adds support for exporting Ludwig models to Carton.
VivekPanyam/carton#162
Background
Carton is a library with the goal of allowing users to run any ML model from any programming language.
It currently supports C, C++, Rust, and Python with support for other languages in progress (NodeJS, OCaml, C#). See the link above or the repo at https://github.com/VivekPanyam/carton for more details.
Implementation
This PR is heavily based on the
export_neuropod
functionality already implemented in Ludwig. It mirrors the implementation and integration tests.Test plan
Added an integration test and verified that it passes locally.
TODO
export_carton
to the documentation