In fact, I want to use it similar to ONNX javascript that allows me to do inference in the bowser without Restful or backend.
There is a way to run C++, python, or other programming languages in javascript today.

But, what is the size for torch-serve?
Can I run it with script or code rather than Restful API.
And the size for installing the requirement for torch serve?