Earlier quoted context omitted.
Wow, make it open source quickly!!! :hype:. It's a classic Python REST API for model serving. But we have very low latency constraints. As such, rewriting in more high performant backend languages e.g. Go or Rust would substantially reduce resource usage (by reducing horizontal scaling need). Pre-baked model serving frameworks e.g. Nvidia's Triton aren't an option, since we have to query a feature store, and do some…
I’ve also ran models in Go, transformers even T5. There wasn’t that much overhead maybe some annoying compilation stuff but nothing crazy. This was tensorflow btw which has Go bindings support. It is a smart & worthwhile move, we also needed to drop python for performance/cost gains.
Show HN: Carton – Run any ML model from any programming language
31–40 of 59 posts
Re: Show HN: Carton – Run any ML model from any programming language
#32> From any [*] programming language. [*] If "any programming language" is Python or Javascript.
Re: Show HN: Carton – Run any ML model from any programming language
#33Slightly related dumb question, I saw on GitHub that TensorFlow has Java support. Does anyone actually use TensorFlow with Java?
Re: Show HN: Carton – Run any ML model from any programming language
#34Make it for Go, and I am sold. Running ML models in Go services is still an unsolved problem.
Re: Show HN: Carton – Run any ML model from any programming language
#35Maybe I'm missing something here, isn't this largely achieved by ONNX already? [0] https://onnx.ai
Re: Show HN: Carton – Run any ML model from any programming language
#36> Carton wraps your model with some metadata and puts it in a zip file Why a zip file?
Re: Show HN: Carton – Run any ML model from any programming language
#37Earlier quoted context omitted.
I’ve also ran models in Go, transformers even T5. There wasn’t that much overhead maybe some annoying compilation stuff but nothing crazy. This was tensorflow btw which has Go bindings support. It is a smart & worthwhile move, we also needed to drop python for performance/cost gains.
eh, awesome! Seems this one, right? https://github.com/galeone/tfgo . Quite many stars.
Actually the docs around this weren’t great. Took the train-in-python & inference-in-go approach. And only for versions greater than tf2
Re: Show HN: Carton – Run any ML model from any programming language
#38Potentially this could be a lot better but I’d be curious what speed overhead the IPC layer adds. At least with ONNX you get a nice speed bump :)
Re: Show HN: Carton – Run any ML model from any programming language
#39Earlier quoted context omitted.
eh, awesome! Seems this one, right? https://github.com/galeone/tfgo . Quite many stars.
I think just native https://pkg.go.dev/github.com/tensorflow/tensorflow/tensorfl... but tfgo looks interesting. Actually the docs around this weren’t great. Took the train-in-python & inference-in-go approach. And only for versions greater than tf2
Re: Show HN: Carton – Run any ML model from any programming language
#40is this ancillary to what [these guys]( https://github.com/unifyai/ivy ) are trying to do?
That seems different to me. OP is talking about using ML models outside of python (well, in python, too). That link seems to be talking about using ML models across frameworks (pytorch, tensorflow, jax, etc) in python.