Serveless memory problem when deploy Wav2Vec2 with custom inference code

pytorch_model.bin size in gb: 1.17GB
model.tar.gz size in gb: 1.08GB
Number of parameters: 315438720

I’m creating the model.tar.gz using the following command:

tar zcvf model.tar.gz *