Supported Frameworks
Below are the supported frameworks for models that can be uploaded into Inferless.- Pytorch
- Tensorflow
File structure requirements(Pytorch)
In the case of aPyTorch
model in Google Vertex AI,
-
The model file needs to have a
model.pt
file -
By default, Google Vertex AI creates it as
model.pth
.
model.pt
, please follow the below instructions.
- For Vertex AI, typically when using the pytorch prebuilt container for training models we create a model archive file as follows :
-
Since Inferless runtime for pytorch supports model.pt format, the
<pytorch-model-file>
specified above should be of .pt format.- Eg:
"SERIALIZED_FILE": f"{model_artifacts_dir}/
model.pt
"
- Eg:
-
Please ensure to save your model in
.pt format
and in yourcustom_handler.py
file do the necessary changes to load the model from.pt
file. - You can now use this model file to import your file into Inferless.
<Video here>
**Tensorflow**
- There is no need for any additional steps/file modifications. The Vertex AI link of the generated model can directly be used for import.