|
|
|
|
|
by joshgev
1196 days ago
|
|
I'm more excited about StableHLO and IREE than about their integration into Pytorch, Tensorflow, etc. I want to see a DSL that can be used to describe models elegantly and then export them either to a shared object or to something that can be run with a runtime (in this case IREE). Things like ONNX and TorchScript promised this but I've had little luck getting these to work well enough to trust them in large scale production deployments. I understand that PyTorch is an awesome tool for researchers, but it doesn't necessarily fit into a prod environment. |
|
You need to write some infrastructure around PyTorch to make it work. Something like a key/mapping in each checkpoint that says which architecture to choose with which parameters.
It sure could be easier, but is saving the model's code into the checkpoint enough? Things like the data pre-processing expected by the model would also have to be included for it to really be self-contained.