There are two different types of PyTorch models:
See the sections below for more details.
Because PyTorch models can contain arbitrary python code, they are packed the same as arbitrary python code.
Please see the Python packing docs.
Carton can run TorchScript models without requiring Python at runtime. This allows you to run your model completely in native code.
Please see the TorchScript packing docs.